From a809ca4bb11c3a4f207b7c864351c01a3be66d33 Mon Sep 17 00:00:00 2001 From: scottmakestech <83726258+scottmakestech@users.noreply.github.com> Date: Thu, 26 Feb 2026 07:16:40 -0600 Subject: [PATCH] Plotly 3 update for supporting no inline styles --- static/css/plotly.css | 1 + static/js/plotly-locale-cs.js | 2 +- static/js/plotly-locale-da.js | 1 + static/js/plotly-locale-de.js | 2 +- static/js/plotly-locale-es.js | 2 +- static/js/plotly-locale-fi.js | 1 + static/js/plotly-locale-fr.js | 2 +- static/js/plotly-locale-it.js | 2 +- static/js/plotly-locale-ja.js | 2 +- static/js/plotly-locale-ko.js | 2 +- static/js/plotly-locale-pt-br.js | 2 +- static/js/plotly-locale-ru.js | 2 +- static/js/plotly-locale-si.js | 2 +- static/js/plotly-locale-sv.js | 2 +- static/js/plotly-locale-tr.js | 2 +- static/js/plotly-locale-uk.js | 2 +- static/js/plotly-locale-zh-cn.js | 2 +- static/js/plotly-locale-zh-tw.js | 2 +- static/js/plotly-min.js | 46 ++++++++++++++- static/js/stats.js | 8 +-- themes/le-2025/layouts/partials/plotly.html | 58 ++++++++++--------- themes/le-2025/layouts/shortcodes/plotly.html | 58 ++++++++++--------- 22 files changed, 125 insertions(+), 78 deletions(-) create mode 100644 static/css/plotly.css create mode 100644 static/js/plotly-locale-da.js create mode 100644 static/js/plotly-locale-fi.js diff --git a/static/css/plotly.css b/static/css/plotly.css new file mode 100644 index 0000000000..f71eb273c0 --- /dev/null +++ b/static/css/plotly.css @@ -0,0 +1 @@ +.js-plotly-plot .plotly,.js-plotly-plot .plotly div{direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0}.js-plotly-plot .plotly input,.js-plotly-plot .plotly button{font-family:"Open Sans",verdana,arial,sans-serif}.js-plotly-plot .plotly input:focus,.js-plotly-plot .plotly button:focus{outline:none}.js-plotly-plot .plotly a{text-decoration:none}.js-plotly-plot .plotly a:hover{text-decoration:none}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges}.js-plotly-plot .plotly .user-select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.js-plotly-plot .plotly svg a{fill:#447adb}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5}.js-plotly-plot .plotly .main-svg{position:absolute;top:0;left:0;pointer-events:none}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all}.js-plotly-plot .plotly .cursor-default{cursor:default}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair}.js-plotly-plot .plotly .cursor-move{cursor:move}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize}.js-plotly-plot .plotly .cursor-grab{cursor:-webkit-grab;cursor:grab}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px}.js-plotly-plot .plotly .ease-bg{-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s}.js-plotly-plot .plotly .modebar--hover>:not(.watermark){opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1}.js-plotly-plot .plotly:focus-within .modebar--hover .modebar-group{opacity:1}.js-plotly-plot .plotly .modebar-group{float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap}.js-plotly-plot .plotly .modebar-group a{display:grid;place-content:center}.js-plotly-plot .plotly .modebar-btn{position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0)}.js-plotly-plot .plotly .modebar-btn svg{position:relative}.js-plotly-plot .plotly .modebar-btn:focus-visible{outline:1px solid #000;outline-offset:1px;border-radius:3px}.js-plotly-plot .plotly .modebar.vertical{display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px}.js-plotly-plot .plotly .modebar.vertical .modebar-group{display:block;float:none;padding-left:0px;padding-bottom:8px}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{display:block;text-align:center}.js-plotly-plot .plotly [data-title]:before,.js-plotly-plot .plotly [data-title]:after{position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%}.js-plotly-plot .plotly [data-title]:hover:before,.js-plotly-plot .plotly [data-title]:hover:after{display:block;opacity:1}.js-plotly-plot .plotly [data-title]:before{content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px}.js-plotly-plot .plotly [data-title]:after{content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px}.js-plotly-plot .plotly .vertical [data-title]:before,.js-plotly-plot .plotly .vertical [data-title]:after{top:0%;right:200%}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px}.plotly-notifier{font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px}.plotly-notifier p{margin:0}.plotly-notifier .notifier-note{min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.plotly-notifier .notifier-close{color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px}.plotly-notifier .notifier-close:hover{color:#444;text-decoration:none;cursor:pointer}.js-plotly-plot .plotly .mapboxgl-map{overflow:hidden;position:relative;}.js-plotly-plot .plotly .mapboxgl-missing-css{display:none;}.js-plotly-plot .plotly .mapboxgl-canary{background-color:salmon;}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left{position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right{position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;}.js-plotly-plot .plotly .mapboxgl-ctrl{clear: both; pointer-events: auto; transform: translate(0, 0);}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display: none;}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner{display: block; margin-top:2px}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact:hover{padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact::after{content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact{min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after{bottom: 0; right: 0}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after{bottom: 0; left: 0}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin: 0 0 10px 10px; float: left;}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin: 0 10px 10px 0; float: right;}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib{color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib a{color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib a:hover{color: inherit; text-decoration: underline;}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight: bold; margin-left: 2px;}.js-plotly-plot .plotly .mapboxgl-attrib-empty{display: none;}.js-plotly-plot .plotly .mapboxgl-ctrl-logo{display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')} \ No newline at end of file diff --git a/static/js/plotly-locale-cs.js b/static/js/plotly-locale-cs.js index e9adaea1fc..b4c8a1b2d5 100644 --- a/static/js/plotly-locale-cs.js +++ b/static/js/plotly-locale-cs.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"cs",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obd\xe9ln\xedkov\xfd v\xfdb\u011br","Click to enter Colorscale title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu barevn\xe9 \u0161k\xe1ly","Click to enter Component A title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty A","Click to enter Component B title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty B","Click to enter Component C title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty C","Click to enter Plot title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu grafu","Click to enter X axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy X","Click to enter Y axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy Y","Click to enter radial axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu radi\xe1ln\xed osy","Compare data on hover":"Porovnat hodnoty p\u0159i najet\xed my\u0161\xed","Double-click on legend to isolate one trace":"Dvojklikem na legendu izolujete jedinou datovou sadu","Double-click to zoom back out":"Dvojklikem vr\xe1t\xedte zv\u011bt\u0161en\xed","Download plot as a png":"Ulo\u017eit jako PNG","Download plot":"Ulo\u017eit","Edit in Chart Studio":"Editovat v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje pouze SVG form\xe1t. Zm\u011bn\u011bno na SVG.","Lasso Select":"Vyb\u011br lasem","Orbital rotation":"Rotace (orbit\xe1ln\xed)",Pan:"Posunovat","Produced with Plotly.js":"Vytvo\u0159eno pomoc\xed Plotly.js",Reset:"Obnovit nastaven\xed","Reset axes":"Obnovit nastaven\xed os","Reset camera to default":"Obnovit nastaven\xed kamery na v\xfdchoz\xed stav","Reset camera to last save":"Obnovit nastaven\xed kamery na posledn\xed ulo\u017een\xfd stav","Reset view":"Obnovit nastaven\xed pohledu","Reset views":"Obnovit nastaven\xed pohled\u016f","Show closest data on hover":"Zobrazit najbli\u017e\u0161\xed hodnotu p\u0159i najet\xed my\u0161\xed","Snapshot succeeded":"Sn\xedmek vytvo\u0159en","Sorry, there was a problem downloading your snapshot!":"Omlouv\xe1me se, ale do\u0161lo k chyb\u011b stahov\xe1n\xed sn\xedmku!","Taking snapshot - this may take a few seconds":"Vytv\xe1\u0159\xed se sn\xedmek - m\u016f\u017ee zabrat p\xe1r vte\u0159in",Zoom:"Zv\u011bt\u0161en\xed","Zoom in":"Zv\u011bt\u0161it","Zoom out":"Zmen\u0161it","close:":"zav\u0159\xedt:",trace:"datov\xe1 sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"c\xedl:","lower fence:":"doln\xed limit:","upper fence:":"horn\xed limit:","max:":"max.:","mean \xb1 \u03c3:":"pr\u016fm\u011br \xb1 \u03c3:","mean:":"pr\u016fm\u011br:","median:":"medi\xe1n:","min:":"min.:","new text":"nov\xfd text","Turntable rotation":"Rotace (oto\u010dn\xfd st\u016fl)","Toggle Spike Lines":"P\u0159epnout zobrazen\xed vod\xedc\xedch \u010dar","open:":"otev\u0159\xedt:","high:":"horn\xed:","low:":"doln\xed:","Toggle show closest data on hover":"P\u0159epnout zobrazov\xe1n\xed nejbli\u017e\u0161i hodnoty p\u0159i najet\xed my\u0161\xed","incoming flow count:":"po\u010det dat na vstupu:","outgoing flow count:":"po\u010det dat na v\xfdstupu:","kde:":"kde:"},format:{days:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"],shortDays:["ne","po","\xfat","st","\u010dt","p\xe1","so"],months:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"],shortMonths:["led","\xfano","b\u0159e","dub","kv\u011b","\u010der","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"cs",dictionary:{Autoscale:"Auto rozsah","Box Select":"Obd\xe9ln\xedkov\xfd v\xfdb\u011br","Click to enter Colorscale title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu barevn\xe9 \u0161k\xe1ly","Click to enter Component A title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty A","Click to enter Component B title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty B","Click to enter Component C title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu komponenty C","Click to enter Plot title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu grafu","Click to enter X axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy X","Click to enter Y axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu osy Y","Click to enter radial axis title":"Klikn\u011bte pro zad\xe1n\xed n\xe1zvu radi\xe1ln\xed osy","Compare data on hover":"Porovnat hodnoty p\u0159i najet\xed my\u0161\xed","Double-click on legend to isolate one trace":"Dvojklikem na legendu izolujete jedinou datovou sadu","Double-click to zoom back out":"Dvojklikem vr\xe1t\xedte zv\u011bt\u0161en\xed","Download plot as a PNG":"Ulo\u017eit jako PNG","Download plot":"Ulo\u017eit","Edit in Chart Studio":"Editovat v Chart Studio","IE only supports svg. Changing format to svg.":"IE podporuje pouze SVG form\xe1t. Zm\u011bn\u011bno na SVG.","Lasso Select":"Vyb\u011br lasem","Orbital rotation":"Rotace (orbit\xe1ln\xed)",Pan:"Posunovat","Produced with Plotly.js":"Vytvo\u0159eno pomoc\xed Plotly.js",Reset:"Obnovit nastaven\xed","Reset axes":"Obnovit nastaven\xed os","Reset camera to default":"Obnovit nastaven\xed kamery na v\xfdchoz\xed stav","Reset camera to last save":"Obnovit nastaven\xed kamery na posledn\xed ulo\u017een\xfd stav","Reset view":"Obnovit nastaven\xed pohledu","Reset views":"Obnovit nastaven\xed pohled\u016f","Show closest data on hover":"Zobrazit najbli\u017e\u0161\xed hodnotu p\u0159i najet\xed my\u0161\xed","Snapshot succeeded":"Sn\xedmek vytvo\u0159en","Sorry, there was a problem downloading your snapshot!":"Omlouv\xe1me se, ale do\u0161lo k chyb\u011b stahov\xe1n\xed sn\xedmku!","Taking snapshot - this may take a few seconds":"Vytv\xe1\u0159\xed se sn\xedmek - m\u016f\u017ee zabrat p\xe1r vte\u0159in",Zoom:"Zv\u011bt\u0161en\xed","Zoom in":"Zv\u011bt\u0161it","Zoom out":"Zmen\u0161it","close:":"zav\u0159\xedt:",trace:"datov\xe1 sada","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"zdroj:","target:":"c\xedl:","lower fence:":"doln\xed limit:","upper fence:":"horn\xed limit:","max:":"max.:","mean \xb1 \u03c3:":"pr\u016fm\u011br \xb1 \u03c3:","mean:":"pr\u016fm\u011br:","median:":"medi\xe1n:","min:":"min.:","new text":"nov\xfd text","Turntable rotation":"Rotace (oto\u010dn\xfd st\u016fl)","Toggle Spike Lines":"P\u0159epnout zobrazen\xed vod\xedc\xedch \u010dar","open:":"otev\u0159\xedt:","high:":"horn\xed:","low:":"doln\xed:","Toggle show closest data on hover":"P\u0159epnout zobrazov\xe1n\xed nejbli\u017e\u0161i hodnoty p\u0159i najet\xed my\u0161\xed","incoming flow count:":"po\u010det dat na vstupu:","outgoing flow count:":"po\u010det dat na v\xfdstupu:","kde:":"kde:"},format:{days:["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"],shortDays:["ne","po","\xfat","st","\u010dt","p\xe1","so"],months:["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"],shortMonths:["led","\xfano","b\u0159e","dub","kv\u011b","\u010der","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-da.js b/static/js/plotly-locale-da.js new file mode 100644 index 0000000000..5e42f088f4 --- /dev/null +++ b/static/js/plotly-locale-da.js @@ -0,0 +1 @@ +var locale={moduleType:"locale",name:"da",dictionary:{},format:{days:["S\xf8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xf8rdag"],shortDays:["S\xf8n","Man","Tir","Ons","Tor","Fre","L\xf8r"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-de.js b/static/js/plotly-locale-de.js index 6ff4dd7a4c..86443cb69d 100644 --- a/static/js/plotly-locale-de.js +++ b/static/js/plotly-locale-de.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"de",dictionary:{Autoscale:"Automatische Skalierung","Box Select":"Rechteckauswahl","Click to enter Colorscale title":"Klicken, um den Farbskalatitel einzugeben","Click to enter Component A title":"Klicken, um den Titel der Komponente A einzugeben","Click to enter Component B title":"Klicken, um den Titel der Komponente B einzugeben","Click to enter Component C title":"Klicken, um den Titel der Komponente C einzugeben","Click to enter Plot title":"Klicken, um den Titel des Graphen einzugeben","Click to enter X axis title":"Klicken, um den Titel der X-Achse einzugeben","Click to enter Y axis title":"Klicken, um den Titel der Y-Achse einzugeben","Compare data on hover":"\xdcber die Daten fahren, um sie zu vergleichen","Double-click on legend to isolate one trace":"Daten isolieren durch Doppelklick in der Legende","Double-click to zoom back out":"Herauszoomen durch Doppelklick","Download plot as a png":"Graphen als PNG herunterladen","Download plot":"Graphen herunterladen","Edit in Chart Studio":"Im Chart Studio bearbeiten","IE only supports svg. Changing format to svg.":"IE unterst\xfctzt nur SVG-Dateien. Format wird zu SVG gewechselt.","Lasso Select":"Lassoauswahl","Orbital rotation":"Orbitalrotation",Pan:"Verschieben","Produced with Plotly":"Erstellt mit Plotly",Reset:"Zur\xfccksetzen","Reset axes":"Achsen zur\xfccksetzen","Reset camera to default":"Kamera auf Standard zur\xfccksetzen","Reset camera to last save":"Kamera auf letzte Speicherung zur\xfccksetzen","Reset view":"Ansicht zur\xfccksetzen","Reset views":"Ansichten zur\xfccksetzen","Show closest data on hover":"Zeige n\xe4heste Daten beim \xdcberfahren","Snapshot succeeded":"Snapshot erfolgreich","Sorry, there was a problem downloading your snapshot!":"Es gab ein Problem beim Herunterladen des Snapshots","Taking snapshot - this may take a few seconds":"Erstelle einen Snapshot - dies kann einige Sekunden dauern",Zoom:"Zoom","Zoom in":"Hineinzoomen","Zoom out":"Herauszoomen","close:":"Schluss:",trace:"Datenspur","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"Quelle:","target:":"Ziel:","lower fence:":"Untere Schranke:","upper fence:":"Obere Schranke:","max:":"Max.:","mean \xb1 \u03c3:":"Mittelwert \xb1 \u03c3:","mean:":"Mittelwert:","median:":"Median:","min:":"Min.:","Turntable rotation":"Drehscheibenorbit","Toggle Spike Lines":"Bezugslinien an-/abschalten","open:":"Er\xf6ffnung:","high:":"H\xf6chstkurs:","low:":"Tiefstkurs:","Toggle show closest data on hover":"Anzeige der n\xe4hesten Daten an-/abschalten","incoming flow count:":"Anzahl eingehender Verbindungen:","outgoing flow count:":"Anzahl ausgehender Verbindungen:","kde:":"Dichte:"},format:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],date:"%d.%m.%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"de",dictionary:{Autoscale:"Automatische Skalierung","Box Select":"Rechteckauswahl","Click to enter Colorscale title":"Klicken, um den Farbskalatitel einzugeben","Click to enter Component A title":"Klicken, um den Titel der Komponente A einzugeben","Click to enter Component B title":"Klicken, um den Titel der Komponente B einzugeben","Click to enter Component C title":"Klicken, um den Titel der Komponente C einzugeben","Click to enter Plot title":"Klicken, um den Titel des Graphen einzugeben","Click to enter X axis title":"Klicken, um den Titel der X-Achse einzugeben","Click to enter Y axis title":"Klicken, um den Titel der Y-Achse einzugeben","Compare data on hover":"\xdcber die Daten fahren, um sie zu vergleichen","Double-click on legend to isolate one trace":"Daten isolieren durch Doppelklick in der Legende","Double-click to zoom back out":"Herauszoomen durch Doppelklick","Download plot as a PNG":"Graphen als PNG herunterladen","Download plot":"Graphen herunterladen","Edit in Chart Studio":"Im Chart Studio bearbeiten","IE only supports svg. Changing format to svg.":"IE unterst\xfctzt nur SVG-Dateien. Format wird zu SVG gewechselt.","Lasso Select":"Lassoauswahl","Orbital rotation":"Orbitalrotation",Pan:"Verschieben","Produced with Plotly.js":"Erstellt mit Plotly.js",Reset:"Zur\xfccksetzen","Reset axes":"Achsen zur\xfccksetzen","Reset camera to default":"Kamera auf Standard zur\xfccksetzen","Reset camera to last save":"Kamera auf letzte Speicherung zur\xfccksetzen","Reset view":"Ansicht zur\xfccksetzen","Reset views":"Ansichten zur\xfccksetzen","Show closest data on hover":"Zeige n\xe4heste Daten beim \xdcberfahren","Snapshot succeeded":"Snapshot erfolgreich","Sorry, there was a problem downloading your snapshot!":"Es gab ein Problem beim Herunterladen des Snapshots","Taking snapshot - this may take a few seconds":"Erstelle einen Snapshot - dies kann einige Sekunden dauern",Zoom:"Zoom","Zoom in":"Hineinzoomen","Zoom out":"Herauszoomen","close:":"Schluss:",trace:"Datenspur","lat:":"Lat.:","lon:":"Lon.:","q1:":"q1:","q3:":"q3:","source:":"Quelle:","target:":"Ziel:","lower fence:":"Untere Schranke:","upper fence:":"Obere Schranke:","max:":"Max.:","mean \xb1 \u03c3:":"Mittelwert \xb1 \u03c3:","mean:":"Mittelwert:","median:":"Median:","min:":"Min.:","Turntable rotation":"Drehscheibenorbit","Toggle Spike Lines":"Bezugslinien an-/abschalten","open:":"Er\xf6ffnung:","high:":"H\xf6chstkurs:","low:":"Tiefstkurs:","Toggle show closest data on hover":"Anzeige der n\xe4hesten Daten an-/abschalten","incoming flow count:":"Anzahl eingehender Verbindungen:","outgoing flow count:":"Anzahl ausgehender Verbindungen:","kde:":"Dichte:"},format:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],date:"%d.%m.%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-es.js b/static/js/plotly-locale-es.js index 1b0d0c605b..70e8a75106 100644 --- a/static/js/plotly-locale-es.js +++ b/static/js/plotly-locale-es.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"es",dictionary:{Autoscale:"Autoescalar","Box Select":"Seleccionar Caja","Click to enter Colorscale title":"Introducir el t\xedtulo de la Escala de Color","Click to enter Component A title":"Introducir el t\xedtulo del Componente A","Click to enter Component B title":"Introducir el t\xedtulo del Componente B","Click to enter Component C title":"Introducir el t\xedtulo del Componente C","Click to enter Plot title":"Introducir el t\xedtulo de la Gr\xe1fica","Click to enter X axis title":"Introducir el t\xedtulo del eje X","Click to enter Y axis title":"Introducir el t\xedtulo del eje Y","Click to enter radial axis title":"Introducir el t\xedtulo del eje radial","Compare data on hover":"Comparar datos al pasar por encima","Double-click on legend to isolate one trace":"Haga doble-clic en la leyenda para aislar una traza","Double-click to zoom back out":"Haga doble-clic para restaurar la escala","Download plot as a png":"Descargar gr\xe1fica como png","Download plot":"Descargar gr\xe1fica","Edit in Chart Studio":"Editar en Chart Studio","IE only supports svg. Changing format to svg.":"IE solo soporta svg. Cambiando formato a svg.","Lasso Select":"Seleccionar con lazo","Orbital rotation":"Rotaci\xf3n esf\xe9rica",Pan:"Modo Panor\xe1mica","Produced with Plotly":"Hecho con Plotly",Reset:"Reiniciar","Reset axes":"Reiniciar ejes","Reset camera to default":"Restaurar c\xe1mara predeterminada","Reset camera to last save":"Restaurar anterior c\xe1mara","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Mostrar el dato m\xe1s cercano al pasar por encima","Snapshot succeeded":"La captura de la instant\xe1nea finaliz\xf3 correctamente","Sorry, there was a problem downloading your snapshot!":"\xa1La descarga de la instant\xe1nea fall\xf3!","Taking snapshot - this may take a few seconds":"Capturando una instant\xe1nea - podr\xeda tardar unos segundos","Toggle Spike Lines":"Mostrar/Ocultar Gu\xedas","Toggle show closest data on hover":"Activar/Desactivar mostrar el dato m\xe1s cercano al pasar por encima","Turntable rotation":"Rotaci\xf3n plana",Zoom:"Modo Ampliar/Reducir","Zoom in":"Ampliar","Zoom out":"Reducir","close:":"cierre:","high:":"alza:","incoming flow count:":"flujo de entrada:","kde:":"edp:","lat:":"lat:","lon:":"lon:","low:":"baja:","lower fence:":"l\xedmite inferior:","max:":"m\xe1x:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"m\xedn:","new text":"nuevo texto","open:":"apertura:","outgoing flow count:":"flujo de salida:","q1:":"q1:","q3:":"q3:","source:":"fuente:","target:":"destino:",trace:"traza","upper fence:":"l\xedmite superior:"},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"es",dictionary:{Autoscale:"Autoescalar","Box Select":"Seleccionar Caja","Click to enter Colorscale title":"Introducir el t\xedtulo de la Escala de Color","Click to enter Component A title":"Introducir el t\xedtulo del Componente A","Click to enter Component B title":"Introducir el t\xedtulo del Componente B","Click to enter Component C title":"Introducir el t\xedtulo del Componente C","Click to enter Plot title":"Introducir el t\xedtulo de la Gr\xe1fica","Click to enter Plot subtitle":"Introducir el subt\xedtulo de la Gr\xe1fica","Click to enter X axis title":"Introducir el t\xedtulo del eje X","Click to enter Y axis title":"Introducir el t\xedtulo del eje Y","Click to enter radial axis title":"Introducir el t\xedtulo del eje radial","Compare data on hover":"Comparar datos al pasar por encima","Double-click on legend to isolate one trace":"Haga doble-clic en la leyenda para aislar una traza","Double-click to zoom back out":"Haga doble-clic para restaurar la escala","Download plot as a PNG":"Descargar gr\xe1fica como PNG","Download plot":"Descargar gr\xe1fica","Edit in Chart Studio":"Editar en Chart Studio","IE only supports svg. Changing format to svg.":"IE solo soporta svg. Cambiando formato a svg.","Lasso Select":"Seleccionar con lazo","Orbital rotation":"Rotaci\xf3n esf\xe9rica",Pan:"Modo Panor\xe1mica","Produced with Plotly.js":"Hecho con Plotly.js",Reset:"Reiniciar","Reset axes":"Reiniciar ejes","Reset camera to default":"Restaurar c\xe1mara predeterminada","Reset camera to last save":"Restaurar anterior c\xe1mara","Reset view":"Restaurar vista","Reset views":"Restaurar vistas","Show closest data on hover":"Mostrar el dato m\xe1s cercano al pasar por encima","Snapshot succeeded":"La captura de la instant\xe1nea finaliz\xf3 correctamente","Sorry, there was a problem downloading your snapshot!":"\xa1La descarga de la instant\xe1nea fall\xf3!","Taking snapshot - this may take a few seconds":"Capturando una instant\xe1nea - podr\xeda tardar unos segundos","Toggle Spike Lines":"Mostrar/Ocultar Gu\xedas","Toggle show closest data on hover":"Activar/Desactivar mostrar el dato m\xe1s cercano al pasar por encima","Turntable rotation":"Rotaci\xf3n plana",Zoom:"Modo Ampliar/Reducir","Zoom in":"Ampliar","Zoom out":"Reducir","close:":"cierre:","high:":"alza:","incoming flow count:":"flujo de entrada:","kde:":"edp:","lat:":"lat:","lon:":"lon:","low:":"baja:","lower fence:":"l\xedmite inferior:","max:":"m\xe1x:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"m\xedn:","new text":"nuevo texto","open:":"apertura:","outgoing flow count:":"flujo de salida:","q1:":"q1:","q3:":"q3:","source:":"fuente:","target:":"destino:",trace:"traza","upper fence:":"l\xedmite superior:"},format:{days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-fi.js b/static/js/plotly-locale-fi.js new file mode 100644 index 0000000000..f62b2a8573 --- /dev/null +++ b/static/js/plotly-locale-fi.js @@ -0,0 +1 @@ +var locale={moduleType:"locale",name:"fi",dictionary:{Autoscale:"Autoskaalaa","Box Select":"Laatikkovalinta","Click to enter Colorscale title":"Klikkaa antaaksesi v\xe4riskaalan otsikko","Click to enter Component A title":"Klikkaa antaaksesi komponentin A otsikko","Click to enter Component B title":"Klikkaa antaaksesi komponentin B otsikko","Click to enter Component C title":"Klikkaa antaaksesi komponentin C otsikko","Click to enter Plot title":"Klikkaa antaaksesi kuvion otsikko","Click to enter X axis title":"Klikkaa antaaksesi x-akselin otsikko","Click to enter Y axis title":"Klikkaa antaaksesi y-akselin otsikko","Click to enter radial axis title":"Klikkaa antaaksesi radiaalisen akselin otsikko","Compare data on hover":"Vertaa dataa kursorilla","Double-click on legend to isolate one trace":"Kaksoisklikkaa selitett\xe4 erist\xe4\xe4ksesi yksi sarja","Double-click to zoom back out":"Kaksoisklikkaa zoomataksesi ulos","Download plot":"Lataa kuvio","Download plot as a PNG":"Lataa kuvio PNG-muodossa","Edit in Chart Studio":"Muokkaa Chart Studiossa","IE only supports svg. Changing format to svg.":"Formaatiksi vaihdetaan IE:n tukema svg.","Lasso Select":"Lassovalinta","Orbital rotation":"Orbitaalikierto",Pan:"Panorointi","Produced with Plotly.js":"Tuotettu Plotly.jsll\xe4",Reset:"Palauta oletusasetukset","Reset axes":"Palauta akselien oletusasetukset","Reset camera to default":"Palauta kameran oletusasetukset","Reset camera to last save":"Palauta kameran viimeksi tallennetut asetukset","Reset view":"Palauta n\xe4kym\xe4n oletusasetukset","Reset views":"Palauta n\xe4kymien oletusasetukset","Show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Snapshot succeeded":"Tilannekuvan ottaminen onnistui","Sorry, there was a problem downloading your snapshot!":"Pahoittelut, tilannekuvan lataaminen ep\xe4onnistui!","Taking snapshot - this may take a few seconds":"Otetaan tilannekuvaa - odota hetki","Toggle Spike Lines":"N\xe4yt\xe4 huiput","Toggle show closest data on hover":"N\xe4yt\xe4 kursoria l\xe4hin data","Turntable rotation":"Tasokierto",Zoom:"Zoomaus","Zoom in":"Zoomaa sis\xe4\xe4n","Zoom out":"Zoomaa ulos","close:":"loppu:","high:":"korkein:","incoming flow count:":"saapuva virtaus:","kde:":"ydinestimointi:","lat:":"lat.:","lon:":"lon.:","low:":"matalin:","lower fence:":"alempi raja:","max:":"maks.:","mean \xb1 \u03c3:":"keskiarvo \xb1 \u03c3:","mean:":"keskiarvo:","median:":"mediaani:","min:":"min.:","new text":"uusi teksti","open:":"alku:","outgoing flow count:":"l\xe4htev\xe4 virtaus:","q1:":"q1:","q3:":"q3:","source:":"l\xe4hde:","target:":"kohde:",trace:"sarja","upper fence:":"ylempi raja:"},format:{days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["su","ma","ti","ke","to","pe","la"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-fr.js b/static/js/plotly-locale-fr.js index 3ea69ce153..c59b5c9ea3 100644 --- a/static/js/plotly-locale-fr.js +++ b/static/js/plotly-locale-fr.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"fr",dictionary:{Autoscale:"\xc9chelle automatique","Box Select":"S\xe9lection rectangulaire","Click to enter Colorscale title":"Ajouter un titre \xe0 l'\xe9chelle de couleurs","Click to enter Component A title":"Ajouter un titre \xe0 la composante A","Click to enter Component B title":"Ajouter un titre \xe0 la composante B","Click to enter Component C title":"Ajouter un titre \xe0 la composante C","Click to enter Plot title":"Ajouter un titre au graphique","Click to enter X axis title":"Ajouter un titre \xe0 l'axe des x","Click to enter Y axis title":"Ajouter un titre \xe0 l'axe des y","Click to enter radial axis title":"Ajouter un titre \xe0 l'axe radial","Compare data on hover":"Comparaison entre donn\xe9es en survol","Double-click on legend to isolate one trace":"Double-cliquer sur la l\xe9gende pour isoler une s\xe9rie","Double-click to zoom back out":"Double-cliquer pour d\xe9zoomer","Download plot as a png":"T\xe9l\xe9charger le graphique en fichier PNG","Download plot":"T\xe9l\xe9charger le graphique","Edit in Chart Studio":"\xc9diter le graphique sur Chart Studio","IE only supports svg. Changing format to svg.":"IE ne permet que les conversions en SVG. Conversion en SVG en cours.","Lasso Select":"S\xe9lection lasso","Orbital rotation":"Rotation orbitale",Pan:"Translation","Produced with Plotly":"G\xe9n\xe9r\xe9 avec Plotly",Reset:"R\xe9initialiser","Reset axes":"R\xe9initialiser les axes","Reset camera to default":"R\xe9gler la cam\xe9ra \xe0 sa valeur d\xe9faut","Reset camera to last save":"R\xe9gler la cam\xe9ra \xe0 sa valeur sauvegard\xe9e","Reset view":"R\xe9initialiser","Reset views":"R\xe9initialiser","Show closest data on hover":"Donn\xe9es les plus proches en survol","Snapshot succeeded":"Conversion r\xe9ussie","Sorry, there was a problem downloading your snapshot!":"D\xe9sol\xe9, un probl\xe8me est survenu lors du t\xe9l\xe9chargement de votre graphique","Taking snapshot - this may take a few seconds":"Conversion en cours, ceci peut prendre quelques secondes",Zoom:"Zoom","Zoom in":"Zoom int\xe9rieur","Zoom out":"Zoom ext\xe9rieur","close:":"fermeture :",trace:"s\xe9rie","lat:":"lat. :","lon:":"lon. :","q1:":"q1 :","q3:":"q3 :","source:":"source :","target:":"embouchure :","lower fence:":"cl\xf4ture sup\xe9rieure :","upper fence:":"cl\xf4ture inf\xe9rieure :","max:":"max. :","mean \xb1 \u03c3:":"moyenne \xb1 \u03c3 :","mean:":"moyenne :","median:":"m\xe9diane :","min:":"min. :","new text":"nouveau texte","Turntable rotation":"Rotation planaire","Toggle Spike Lines":"Activer/d\xe9sactiver les pics","open:":"ouverture :","high:":"haut :","low:":"bas :","Toggle show closest data on hover":"Activer/d\xe9sactiver le survol","incoming flow count:":"flux entrant :","outgoing flow count:":"flux sortant :","kde:":"est. par noyau :"},format:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortDays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],shortMonths:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],date:"%d/%m/%Y",decimal:",",thousands:" ",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"fr",dictionary:{Autoscale:"\xc9chelle automatique","Box Select":"S\xe9lection rectangulaire","Click to enter Colorscale title":"Ajouter un titre \xe0 l'\xe9chelle de couleurs","Click to enter Component A title":"Ajouter un titre \xe0 la composante A","Click to enter Component B title":"Ajouter un titre \xe0 la composante B","Click to enter Component C title":"Ajouter un titre \xe0 la composante C","Click to enter Plot title":"Ajouter un titre au graphique","Click to enter Plot subtitle":"Ajouter un sous-titre au graphique","Click to enter X axis title":"Ajouter un titre \xe0 l'axe des x","Click to enter Y axis title":"Ajouter un titre \xe0 l'axe des y","Click to enter radial axis title":"Ajouter un titre \xe0 l'axe radial","Compare data on hover":"Comparaison entre donn\xe9es en survol","Double-click on legend to isolate one trace":"Double-cliquer sur la l\xe9gende pour isoler une s\xe9rie","Double-click to zoom back out":"Double-cliquer pour d\xe9zoomer","Download plot as a PNG":"T\xe9l\xe9charger le graphique en fichier PNG","Download plot":"T\xe9l\xe9charger le graphique","Edit in Chart Studio":"\xc9diter le graphique sur Chart Studio","IE only supports svg. Changing format to svg.":"IE ne permet que les conversions en SVG. Conversion en SVG en cours.","Lasso Select":"S\xe9lection lasso","Orbital rotation":"Rotation orbitale",Pan:"Translation","Produced with Plotly.js":"G\xe9n\xe9r\xe9 avec Plotly.js",Reset:"R\xe9initialiser","Reset axes":"R\xe9initialiser les axes","Reset camera to default":"R\xe9gler la cam\xe9ra \xe0 sa valeur d\xe9faut","Reset camera to last save":"R\xe9gler la cam\xe9ra \xe0 sa valeur sauvegard\xe9e","Reset view":"R\xe9initialiser","Reset views":"R\xe9initialiser","Show closest data on hover":"Donn\xe9es les plus proches en survol","Snapshot succeeded":"Conversion r\xe9ussie","Sorry, there was a problem downloading your snapshot!":"D\xe9sol\xe9, un probl\xe8me est survenu lors du t\xe9l\xe9chargement de votre graphique","Taking snapshot - this may take a few seconds":"Conversion en cours, ceci peut prendre quelques secondes",Zoom:"Zoom","Zoom in":"Zoom int\xe9rieur","Zoom out":"Zoom ext\xe9rieur","close:":"fermeture :",trace:"s\xe9rie","lat:":"lat. :","lon:":"lon. :","q1:":"q1 :","q3:":"q3 :","source:":"source :","target:":"embouchure :","lower fence:":"cl\xf4ture inf\xe9rieure :","upper fence:":"cl\xf4ture sup\xe9rieure :","max:":"max. :","mean \xb1 \u03c3:":"moyenne \xb1 \u03c3 :","mean:":"moyenne :","median:":"m\xe9diane :","min:":"min. :","new text":"nouveau texte","Turntable rotation":"Rotation planaire","Toggle Spike Lines":"Activer/d\xe9sactiver les pics","open:":"ouverture :","high:":"haut :","low:":"bas :","Toggle show closest data on hover":"Activer/d\xe9sactiver le survol","incoming flow count:":"flux entrant :","outgoing flow count:":"flux sortant :","kde:":"est. par noyau :"},format:{days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],shortDays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],shortMonths:["Jan","F\xe9v","Mar","Avr","Mai","Jun","Jul","Ao\xfb","Sep","Oct","Nov","D\xe9c"],date:"%d/%m/%Y",decimal:",",thousands:" ",year:"%Y",month:"%b %Y",dayMonth:"%-d %b",dayMonthYear:"%-d %b %Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-it.js b/static/js/plotly-locale-it.js index 45228323c5..6d1bb806f8 100644 --- a/static/js/plotly-locale-it.js +++ b/static/js/plotly-locale-it.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"it",dictionary:{Autoscale:"Scala automaticamente","Box Select":"Selezione box","Click to enter Colorscale title":"Clicca per inserire un titolo alla scala di colori","Click to enter Component A title":"Clicca per inserire un titolo al componente A","Click to enter Component B title":"Clicca per inserire un titolo al componente B","Click to enter Component C title":"Clicca per inserire un titolo al componente C","Click to enter Plot title":"Clicca per inserire un titolo al grafico","Click to enter X axis title":"Clicca per inserire un titolo all'asse X","Click to enter Y axis title":"Clicca per inserire un titolo all'asse Y","Click to enter radial axis title":"Clicca per inserire un titolo per l' asse radiale","Compare data on hover":"Paragona i dati al passaggio del mouse","Double-click on legend to isolate one trace":"Doppio click per isolare i dati di una traccia","Double-click to zoom back out":"Doppio click per tornare allo zoom iniziale","Download plot as a png":"Scarica il grafico come immagine png","Download plot":"Scarica il grafico","Edit in Chart Studio":"Modifica in Chart Studio","IE only supports svg. Changing format to svg.":"IE supporta solo svg. Modifica formato in svg.","Lasso Select":"Selezione lazo","Orbital rotation":"Rotazione orbitale",Pan:"Sposta","Produced with Plotly":"Creato con Plotly",Reset:"Reset","Reset axes":"Resetta gli assi","Reset camera to default":"Reimposta la camera ai valori predefiniti","Reset camera to last save":"Reimposta la camera all' ultimo salvataggio","Reset view":"Reimposta la vista","Reset views":"Reimposta le viste","Show closest data on hover":"Mostra i dati pi\xf9 vicini al passaggio del mouse","Snapshot succeeded":"Screenshot creato con successo","Sorry, there was a problem downloading your snapshot!":"Si \xe8 verificato un errore durante la creazione dello screenshot","Taking snapshot - this may take a few seconds":"Creazione screenshot - potrebbe richiedere qualche secondo",Zoom:"Zoom","Zoom in":"Ingrandisci","Zoom out":"Rimpicciolisci","close:":"chiudi:",trace:"traccia","lat:":"lat.:","lon:":"lon.:","q1:":"q1:","q3:":"q3:","source:":"sorgente:","target:":"target:","max:":"max.:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"min.:","new text:":"Nuovo testo:","upper fence:":"limite superiore:","lower fence:":"limite inferiore:","Turntable rotation":"Rotazione piattaforma","Toggle Spike Lines":"Abilita linee di identificazione","open:":"apri:","high:":"alto:","kde:":"kde:","low:":"basso:","incoming flow count:":"Flusso in entrata:","outgoing flow count:":"Flusso in uscita:","Toggle show closest data on hover":"Abilita mostra i dati pi\xf9 vicini al passaggio del mouse"},format:{days:["Domenica","Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"it",dictionary:{Autoscale:"Scala automaticamente","Box Select":"Selezione box","Click to enter Colorscale title":"Clicca per inserire un titolo alla scala colori","Click to enter Component A title":"Clicca per inserire un titolo al componente A","Click to enter Component B title":"Clicca per inserire un titolo al componente B","Click to enter Component C title":"Clicca per inserire un titolo al componente C","Click to enter Plot title":"Clicca per inserire un titolo al grafico","Click to enter X axis title":"Clicca per inserire un titolo all'asse X","Click to enter Y axis title":"Clicca per inserire un titolo all'asse Y","Click to enter radial axis title":"Clicca per inserire un titolo per l' asse radiale","Compare data on hover":"Compara i dati al passaggio del mouse","Double-click on legend to isolate one trace":"Doppio click per isolare i dati di una traccia","Double-click to zoom back out":"Doppio click per tornare allo zoom iniziale","Download plot as a PNG":"Scarica il grafico come immagine PNG","Download plot":"Scarica il grafico","Edit in Chart Studio":"Modifica in Chart Studio","IE only supports svg. Changing format to svg.":"IE supporta solo svg. Modifica formato in svg.","Lasso Select":"Selezione lazo","Orbital rotation":"Rotazione orbitale",Pan:"Sposta","Produced with Plotly.js":"Creato con Plotly.js",Reset:"Reset","Reset axes":"Resetta gli assi","Reset camera to default":"Reimposta la camera ai valori predefiniti","Reset camera to last save":"Reimposta la camera all' ultimo salvataggio","Reset view":"Reimposta la vista","Reset views":"Reimposta le viste","Show closest data on hover":"Mostra i dati pi\xf9 vicini al passaggio del mouse","Snapshot succeeded":"Screenshot creato con successo","Sorry, there was a problem downloading your snapshot!":"Si \xe8 verificato un errore durante la creazione dello screenshot","Taking snapshot - this may take a few seconds":"Creazione screenshot - potrebbe richiedere qualche secondo",Zoom:"Zoom","Zoom in":"Ingrandisci","Zoom out":"Riduci","close:":"chiudi:",trace:"traccia","lat:":"lat:","lon:":"lon:","q1:":"q1:","q3:":"q3:","source:":"sorgente:","target:":"target:","max:":"max:","mean \xb1 \u03c3:":"media \xb1 \u03c3:","mean:":"media:","median:":"mediana:","min:":"min:","new text:":"Nuovo testo:","upper fence:":"limite superiore:","lower fence:":"limite inferiore:","Turntable rotation":"Rotazione piattaforma","Toggle Spike Lines":"Abilita linee di identificazione","open:":"apri:","high:":"alto:","kde:":"kde:","low:":"basso:","incoming flow count:":"Flusso in entrata:","outgoing flow count:":"Flusso in uscita:","Toggle show closest data on hover":"Abilita mostra i dati pi\xf9 vicini al passaggio del mouse",concentration:"concentrazione"},format:{days:["Domenica","Luned\xec","Marted\xec","Mercoled\xec","Gioved\xec","Venerd\xec","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-ja.js b/static/js/plotly-locale-ja.js index 2c289bccf0..8742a89dcb 100644 --- a/static/js/plotly-locale-ja.js +++ b/static/js/plotly-locale-ja.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"ja",dictionary:{Autoscale:"\u81ea\u52d5\u30ba\u30fc\u30e0","Box Select":"\u77e9\u5f62\u9078\u629e","Click to enter Colorscale title":"\u8272\u30b9\u30b1\u30fc\u30eb\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component A title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8A\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component B title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8B\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component C title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8C\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Plot title":"\u30d7\u30ed\u30c3\u30c8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter X axis title":"X\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Y axis title":"Y\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Compare data on hover":"\u30db\u30d0\u30fc\u4e2d\u306e\u30c7\u30fc\u30bf\u3092\u6bd4\u8f03","Double-click on legend to isolate one trace":"\u51e1\u4f8b\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u30661\u3064\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9\u5316\u3057\u307e\u3059","Double-click to zoom back out":"\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u30ba\u30fc\u30e0\u3092\u623b\u3057\u307e\u3059","Download plot as a png":"PNG\u30d5\u30a1\u30a4\u30eb\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","Download plot":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","Edit in Chart Studio":"Chart Studio\u3067\u7de8\u96c6","IE only supports svg. Changing format to svg.":"IE\u306fSVG\u306e\u307f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002SVG\u306b\u5909\u63db\u3057\u307e\u3059\u3002","Lasso Select":"\u6295\u3052\u7e04\u9078\u629e","Orbital rotation":"\u8ecc\u9053\u56de\u8ee2",Pan:"\u62e1\u5927","Produced with Plotly":"Plotly\u306b\u3088\u308a\u4f5c\u6210",Reset:"\u30ea\u30bb\u30c3\u30c8","Reset axes":"\u8ef8\u3092\u30ea\u30bb\u30c3\u30c8","Reset camera to default":"\u30ab\u30e1\u30e9\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u623b\u3059","Reset camera to last save":"\u30ab\u30e1\u30e9\u3092\u6700\u5f8c\u306e\u4fdd\u5b58\u72b6\u614b\u306b\u623b\u3059","Reset view":"\u30d3\u30e5\u30fc\u3092\u30ea\u30bb\u30c3\u30c8","Reset views":"\u30d3\u30e5\u30fc\u3092\u30ea\u30bb\u30c3\u30c8","Show closest data on hover":"\u30db\u30d0\u30fc\u6642\u306b\u4e00\u756a\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u8868\u793a","Snapshot succeeded":"\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306b\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u3059\u307f\u307e\u305b\u3093\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u3067\u3059!","Taking snapshot - this may take a few seconds":"\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u5f71",Zoom:"\u30ba\u30fc\u30e0","Zoom in":"\u62e1\u5927","Zoom out":"\u7e2e\u5c0f","close:":"\u9589\u3058\u308b:",trace:"\u30c8\u30ec\u30fc\u30b9:","lat:":"\u7def\u5ea6:","lon:":"\u7d4c\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6570:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6570:","source:":"\u30bd\u30fc\u30b9:","target:":"\u30bf\u30fc\u30b2\u30c3\u30c8:","lower fence:":"\u30d5\u30a7\u30f3\u30b9\u4e0b\u9650:","upper fence:":"\u30d5\u30a7\u30f3\u30b9\u4e0a\u9650:","max:":"\u6700\u5927:","mean \xb1 \u03c3:":"\u5e73\u5747 \xb1 \u03c3:","mean:":"\u5e73\u5747:","median:":"\u4e2d\u592e\u5024:","min:":"\u6700\u5c0f:","Turntable rotation":"\u8ef8\u56de\u8ee2:","Toggle Spike Lines":"\u30b9\u30d1\u30a4\u30af\u30e9\u30a4\u30f3\u306e\u30aa\u30f3\u30aa\u30d5","open:":"\u958b\u304f:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u30db\u30d0\u30fc\u6642\u306b\u4e00\u756a\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u8868\u793a\u306e\u30aa\u30f3\u30aa\u30d5","incoming flow count:":"\u6d41\u5165\u30d5\u30ed\u30fc\u30ab\u30a6\u30f3\u30c8:","outgoing flow count:":"\u6d41\u51fa\u30d5\u30ed\u30fc\u30ab\u30a6\u30f3\u30c8:","kde:":"kde:","Click to enter radial axis title":"\u653e\u5c04\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","new text":"\u65b0\u898f\u30c6\u30ad\u30b9\u30c8"},format:{days:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],shortDays:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],months:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],shortMonths:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],date:"%Y/%m/%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"ja",dictionary:{Autoscale:"\u81ea\u52d5\u30ba\u30fc\u30e0","Box Select":"\u77e9\u5f62\u9078\u629e","Click to enter Colorscale title":"\u8272\u30b9\u30b1\u30fc\u30eb\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component A title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8A\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component B title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8B\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Component C title":"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8C\u306e\u30bf\u30a4\u30c8\u30eb\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Plot title":"\u30d7\u30ed\u30c3\u30c8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter X axis title":"X\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Click to enter Y axis title":"Y\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","Compare data on hover":"\u30db\u30d0\u30fc\u4e2d\u306e\u30c7\u30fc\u30bf\u3092\u6bd4\u8f03","Double-click on legend to isolate one trace":"\u51e1\u4f8b\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u30661\u3064\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u7121\u52b9\u5316\u3057\u307e\u3059","Double-click to zoom back out":"\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u30ba\u30fc\u30e0\u3092\u623b\u3057\u307e\u3059","Download plot as a PNG":"PNG\u30d5\u30a1\u30a4\u30eb\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","Download plot":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","Edit in Chart Studio":"Chart Studio\u3067\u7de8\u96c6","IE only supports svg. Changing format to svg.":"IE\u306fSVG\u306e\u307f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002SVG\u306b\u5909\u63db\u3057\u307e\u3059\u3002","Lasso Select":"\u6295\u3052\u7e04\u9078\u629e","Orbital rotation":"\u8ecc\u9053\u56de\u8ee2",Pan:"\u62e1\u5927","Produced with Plotly.js":"Plotly.js\u306b\u3088\u308a\u4f5c\u6210",Reset:"\u30ea\u30bb\u30c3\u30c8","Reset axes":"\u8ef8\u3092\u30ea\u30bb\u30c3\u30c8","Reset camera to default":"\u30ab\u30e1\u30e9\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u623b\u3059","Reset camera to last save":"\u30ab\u30e1\u30e9\u3092\u6700\u5f8c\u306e\u4fdd\u5b58\u72b6\u614b\u306b\u623b\u3059","Reset view":"\u30d3\u30e5\u30fc\u3092\u30ea\u30bb\u30c3\u30c8","Reset views":"\u30d3\u30e5\u30fc\u3092\u30ea\u30bb\u30c3\u30c8","Show closest data on hover":"\u30db\u30d0\u30fc\u6642\u306b\u4e00\u756a\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u8868\u793a","Snapshot succeeded":"\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306b\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u3059\u307f\u307e\u305b\u3093\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u3067\u3059!","Taking snapshot - this may take a few seconds":"\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u64ae\u5f71",Zoom:"\u30ba\u30fc\u30e0","Zoom in":"\u62e1\u5927","Zoom out":"\u7e2e\u5c0f","close:":"\u9589\u3058\u308b:",trace:"\u30c8\u30ec\u30fc\u30b9:","lat:":"\u7def\u5ea6:","lon:":"\u7d4c\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6570:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6570:","source:":"\u30bd\u30fc\u30b9:","target:":"\u30bf\u30fc\u30b2\u30c3\u30c8:","lower fence:":"\u30d5\u30a7\u30f3\u30b9\u4e0b\u9650:","upper fence:":"\u30d5\u30a7\u30f3\u30b9\u4e0a\u9650:","max:":"\u6700\u5927:","mean \xb1 \u03c3:":"\u5e73\u5747 \xb1 \u03c3:","mean:":"\u5e73\u5747:","median:":"\u4e2d\u592e\u5024:","min:":"\u6700\u5c0f:","Turntable rotation":"\u8ef8\u56de\u8ee2:","Toggle Spike Lines":"\u30b9\u30d1\u30a4\u30af\u30e9\u30a4\u30f3\u306e\u30aa\u30f3\u30aa\u30d5","open:":"\u958b\u304f:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u30db\u30d0\u30fc\u6642\u306b\u4e00\u756a\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u8868\u793a\u306e\u30aa\u30f3\u30aa\u30d5","incoming flow count:":"\u6d41\u5165\u30d5\u30ed\u30fc\u30ab\u30a6\u30f3\u30c8:","outgoing flow count:":"\u6d41\u51fa\u30d5\u30ed\u30fc\u30ab\u30a6\u30f3\u30c8:","kde:":"kde:","Click to enter radial axis title":"\u653e\u5c04\u8ef8\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u30af\u30ea\u30c3\u30af","new text":"\u65b0\u898f\u30c6\u30ad\u30b9\u30c8"},format:{days:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],shortDays:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],months:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],shortMonths:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],date:"%Y/%m/%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-ko.js b/static/js/plotly-locale-ko.js index 2474fc8ca4..03975f100a 100644 --- a/static/js/plotly-locale-ko.js +++ b/static/js/plotly-locale-ko.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"ko",dictionary:{Autoscale:"\uc790\ub3d9 \ud06c\uae30\uc9c0\uc815","Box Select":"\ubc15\uc2a4 \uc120\ud0dd","Click to enter Colorscale title":"Colorscale \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component A title":"A\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component B title":"B\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component C title":"C\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Plot title":"\ucc28\ud2b8 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter X axis title":"X\ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Y axis title":"Y\ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter radial axis title":"\uc6d0\ud615 \ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Compare data on hover":"\ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub9ac\uba74 \ub370\uc774\ud130\uc640 \ube44\uad50\ud569\ub2c8\ub2e4","Double-click on legend to isolate one trace":"\ubc94\ub840\ub97c \ub354\ube14 \ud074\ub9ad\ud558\uc5ec \ud558\ub098\uc758 \ud2b8\ub808\uc774\uc2a4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4","Double-click to zoom back out":"\ub354\ube14 \ud074\ub9ad\ud558\uc5ec \uc90c\uc744 \ud574\uc81c\ud569\ub2c8\ub2e4","Download plot as a png":".png \uc774\ubbf8\uc9c0 \ud30c\uc77c\ub85c \ucc28\ud2b8\ub97c \ub2e4\uc6b4\ub85c\ub4dc \ud569\ub2c8\ub2e4","Download plot":"\ucc28\ud2b8\ub97c \ub2e4\uc6b4\ub85c\ub4dc \ud569\ub2c8\ub2e4","Edit in Chart Studio":"Chart Studio\ub97c \uc218\uc815\ud569\ub2c8\ub2e4","IE only supports svg. Changing format to svg.":"IE\ub294 svg\ub9cc\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \ud3ec\ub9f7\uc744 svg\ub85c \ubcc0\uacbd\ud558\uc138\uc694","Lasso Select":"\uc62c\uac00\ubbf8 \uc120\ud0dd","Orbital rotation":"\uada4\ub3c4 \uc218\uc815",Pan:"\uc774\ub3d9","Produced with Plotly":"Plotly \uc81c\uacf5",Reset:"\ucd08\uae30\ud654","Reset axes":"\ucd95 \ucd08\uae30\ud654","Reset camera to default":"camera\ub97c \uae30\ubcf8\uac12\uc73c\ub85c \ucd08\uae30\ud654","Reset camera to last save":"camera\ub97c \ub9c8\uc9c0\ub9c9\uc73c\ub85c \uc800\uc7a5\ud55c \uac12\uc73c\ub85c \ucd08\uae30\ud654","Reset view":"view \ucd08\uae30\ud654","Reset views":"views \ucd08\uae30\ud654","Show closest data on hover":"\ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub9ac\uba74 \uadfc\uc811\ud55c \ub370\uc774\ud130\ub97c \ubcf4\uc774\uae30","Snapshot succeeded":"Snapshot \uc131\uacf5","Sorry, there was a problem downloading your snapshot!":"\uc8c4\uc1a1\ud569\ub2c8\ub2e4, snapshot\uc744 \ub2e4\uc6b4\ub85c\ub4dc \uc911 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4!","Taking snapshot - this may take a few seconds":"snapshot \ucc0d\uae30 - \uc218 \ucd08\uac00 \uac78\ub9b4 \uc218 \uc788\uc2b5\ub2c8\ub2e4","Toggle Spike Lines":"\uc2a4\uc704\uce58\ub85c Lines\uc744 \uace0\uc815\ud569\ub2c8\ub2e4","Toggle show closest data on hover":"\uc2a4\uc704\uce58\ub85c \ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub838\uc744 \ub54c \uac00\uc7a5 \uac00\uae4c\uc6b4 \ub370\uc774\ud130\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4","Turntable rotation":"Turntable \ud68c\uc804",Zoom:"\ud655\ub300(\uc90c)","Zoom in":"\ud655\ub300(\uc90c \uc778)","Zoom out":"\ucd95\uc18c(\uc90c \uc544\uc6c3)",close:"\ub2eb\uae30",high:"\ub192\uc74c",low:"\ub0ae\uc74c",max:"\ucd5c\ub313\uac12","mean \xb1 \u03c3":"\ud3c9\uade0 \xb1 \u03c3",mean:"\ud3c9\uade0",median:"\uc911\uac04 \uac12",min:"\ucd5c\uc19f\uac12","new text":"\uc0c8\ub85c\uc6b4 \ud14d\uc2a4\ud2b8",open:"\uc5f4\uae30",q1:"q1",q3:"q3",source:"\uc18c\uc2a4",target:"\ud0c0\uac9f"},format:{days:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],shortDays:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],months:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],shortMonths:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"ko",dictionary:{Autoscale:"\uc790\ub3d9 \ud06c\uae30\uc9c0\uc815","Box Select":"\ubc15\uc2a4 \uc120\ud0dd","Click to enter Colorscale title":"Colorscale \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component A title":"A\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component B title":"B\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Component C title":"C\ub370\uc774\ud130\uc758 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Plot title":"\ucc28\ud2b8 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter X axis title":"X\ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter Y axis title":"Y\ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Click to enter radial axis title":"\uc6d0\ud615 \ucd95 \uc81c\ubaa9\uc744 \uc9c0\uc815\ud558\ub824\uba74 \ud074\ub9ad\ud558\uc138\uc694","Compare data on hover":"\ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub9ac\uba74 \ub370\uc774\ud130\uc640 \ube44\uad50\ud569\ub2c8\ub2e4","Double-click on legend to isolate one trace":"\ubc94\ub840\ub97c \ub354\ube14 \ud074\ub9ad\ud558\uc5ec \ud558\ub098\uc758 \ud2b8\ub808\uc774\uc2a4\ub97c \ubd84\ub9ac\ud569\ub2c8\ub2e4","Double-click to zoom back out":"\ub354\ube14 \ud074\ub9ad\ud558\uc5ec \uc90c\uc744 \ud574\uc81c\ud569\ub2c8\ub2e4","Download plot as a PNG":"PNG \uc774\ubbf8\uc9c0 \ud30c\uc77c\ub85c \ucc28\ud2b8\ub97c \ub2e4\uc6b4\ub85c\ub4dc \ud569\ub2c8\ub2e4","Download plot":"\ucc28\ud2b8\ub97c \ub2e4\uc6b4\ub85c\ub4dc \ud569\ub2c8\ub2e4","Edit in Chart Studio":"Chart Studio\ub97c \uc218\uc815\ud569\ub2c8\ub2e4","IE only supports svg. Changing format to svg.":"IE\ub294 svg\ub9cc\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \ud3ec\ub9f7\uc744 svg\ub85c \ubcc0\uacbd\ud558\uc138\uc694","Lasso Select":"\uc62c\uac00\ubbf8 \uc120\ud0dd","Orbital rotation":"\uada4\ub3c4 \uc218\uc815",Pan:"\uc774\ub3d9","Produced with Plotly.js":"Plotly.js \uc81c\uacf5",Reset:"\ucd08\uae30\ud654","Reset axes":"\ucd95 \ucd08\uae30\ud654","Reset camera to default":"camera\ub97c \uae30\ubcf8\uac12\uc73c\ub85c \ucd08\uae30\ud654","Reset camera to last save":"camera\ub97c \ub9c8\uc9c0\ub9c9\uc73c\ub85c \uc800\uc7a5\ud55c \uac12\uc73c\ub85c \ucd08\uae30\ud654","Reset view":"view \ucd08\uae30\ud654","Reset views":"views \ucd08\uae30\ud654","Show closest data on hover":"\ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub9ac\uba74 \uadfc\uc811\ud55c \ub370\uc774\ud130\ub97c \ubcf4\uc774\uae30","Snapshot succeeded":"Snapshot \uc131\uacf5","Sorry, there was a problem downloading your snapshot!":"\uc8c4\uc1a1\ud569\ub2c8\ub2e4, snapshot\uc744 \ub2e4\uc6b4\ub85c\ub4dc \uc911 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4!","Taking snapshot - this may take a few seconds":"snapshot \ucc0d\uae30 - \uc218 \ucd08\uac00 \uac78\ub9b4 \uc218 \uc788\uc2b5\ub2c8\ub2e4","Toggle Spike Lines":"\uc2a4\uc704\uce58\ub85c Lines\uc744 \uace0\uc815\ud569\ub2c8\ub2e4","Toggle show closest data on hover":"\uc2a4\uc704\uce58\ub85c \ub9c8\uc6b0\uc2a4\ub97c \uc62c\ub838\uc744 \ub54c \uac00\uc7a5 \uac00\uae4c\uc6b4 \ub370\uc774\ud130\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4","Turntable rotation":"Turntable \ud68c\uc804",Zoom:"\ud655\ub300(\uc90c)","Zoom in":"\ud655\ub300(\uc90c \uc778)","Zoom out":"\ucd95\uc18c(\uc90c \uc544\uc6c3)",close:"\ub2eb\uae30",high:"\ub192\uc74c",low:"\ub0ae\uc74c",max:"\ucd5c\ub313\uac12","mean \xb1 \u03c3":"\ud3c9\uade0 \xb1 \u03c3",mean:"\ud3c9\uade0",median:"\uc911\uac04 \uac12",min:"\ucd5c\uc19f\uac12","new text":"\uc0c8\ub85c\uc6b4 \ud14d\uc2a4\ud2b8",open:"\uc5f4\uae30",q1:"q1",q3:"q3",source:"\uc18c\uc2a4",target:"\ud0c0\uac9f"},format:{days:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],shortDays:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],months:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],shortMonths:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-pt-br.js b/static/js/plotly-locale-pt-br.js index 0a226628d4..7b4a4f36c1 100644 --- a/static/js/plotly-locale-pt-br.js +++ b/static/js/plotly-locale-pt-br.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"pt-BR",dictionary:{Autoscale:"Escala autom\xe1tica","Box Select":"Sele\xe7\xe3o retangular","Click to enter Colorscale title":"Clique para editar o t\xedtulo da escala de cor","Click to enter Component A title":"Clique para editar o t\xedtulo do Componente A","Click to enter Component B title":"Clique para editar o t\xedtulo do Componente B","Click to enter Component C title":"Clique para editar o t\xedtulo do Componente C","Click to enter Plot title":"Clique para editar o t\xedtulo do Gr\xe1fico","Click to enter X axis title":"Clique para editar o t\xedtulo do eixo X","Click to enter Y axis title":"Clique para editar o t\xedtulo do eixo Y","Click to enter radial axis title":"Clique para editar o t\xedtulo do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma s\xe9rie","Double-click to zoom back out":"Duplo clique para reverter zoom","Download plot as a png":"Fazer download do gr\xe1fico como imagem (png)","Download plot":"Fazer download do gr\xe1fico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Sele\xe7\xe3o de la\xe7o","Orbital rotation":"Rota\xe7\xe3o orbital",Pan:"Mover","Produced with Plotly":"Criado com o Plotly",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar c\xe2mera para padr\xe3o","Reset camera to last save":"Restaurar c\xe2mera para \xfaltima salva","Reset view":"Restaurar vis\xe3o","Reset views":"Restaurar vis\xf5es","Show closest data on hover":"Exibir dado mais pr\xf3ximo ao pairar","Snapshot succeeded":"Captura instant\xe2nea completa","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instant\xe2nea!","Taking snapshot - this may take a few seconds":"Efetuando captura instant\xe2nea - isso pode levar alguns instantes","Toggle Spike Lines":"Habilitar/desabilitar triangula\xe7\xe3o de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibi\xe7\xe3o de dado mais pr\xf3ximo ao pairar","Turntable rotation":"Rota\xe7\xe3o de mesa",Zoom:"Zoom","Zoom in":"Ampliar zoom","Zoom out":"Reduzir zoom",close:"fechamento",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"m\xe1ximo","mean \xb1 \u03c3":"m\xe9dia \xb1 \u03c3",mean:"m\xe9dia",median:"mediana",min:"m\xednimo","new text":"novo texto",open:"abertura","outgoing flow count":"contagem de fluxo de sa\xedda",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"s\xe9rie","upper fence":"limite superior"},format:{days:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"pt-BR",dictionary:{Autoscale:"Escala autom\xe1tica","Box Select":"Sele\xe7\xe3o retangular","Click to enter Colorscale title":"Clique para editar o t\xedtulo da escala de cor","Click to enter Component A title":"Clique para editar o t\xedtulo do Componente A","Click to enter Component B title":"Clique para editar o t\xedtulo do Componente B","Click to enter Component C title":"Clique para editar o t\xedtulo do Componente C","Click to enter Plot title":"Clique para editar o t\xedtulo do Gr\xe1fico","Click to enter X axis title":"Clique para editar o t\xedtulo do eixo X","Click to enter Y axis title":"Clique para editar o t\xedtulo do eixo Y","Click to enter radial axis title":"Clique para editar o t\xedtulo do eixo radial","Compare data on hover":"Comparar dados ao pairar","Double-click on legend to isolate one trace":"Duplo clique na legenda para isolar uma s\xe9rie","Double-click to zoom back out":"Duplo clique para reverter zoom","Download plot as a PNG":"Fazer download do gr\xe1fico como imagem (PNG)","Download plot":"Fazer download do gr\xe1fico","Edit in Chart Studio":"Editar no Chart Studio","IE only supports svg. Changing format to svg.":"IE suporta apenas svg. Alterando formato para svg","Lasso Select":"Sele\xe7\xe3o de la\xe7o","Orbital rotation":"Rota\xe7\xe3o orbital",Pan:"Mover","Produced with Plotly.js":"Criado com o Plotly.js",Reset:"Restaurar","Reset axes":"Restaurar eixos","Reset camera to default":"Restaurar c\xe2mera para padr\xe3o","Reset camera to last save":"Restaurar c\xe2mera para \xfaltima salva","Reset view":"Restaurar vis\xe3o","Reset views":"Restaurar vis\xf5es","Show closest data on hover":"Exibir dado mais pr\xf3ximo ao pairar","Snapshot succeeded":"Captura instant\xe2nea completa","Sorry, there was a problem downloading your snapshot!":"Desculpe, houve um problema no download de sua captura instant\xe2nea!","Taking snapshot - this may take a few seconds":"Efetuando captura instant\xe2nea - isso pode levar alguns instantes","Toggle Spike Lines":"Habilitar/desabilitar triangula\xe7\xe3o de linhas","Toggle show closest data on hover":"Habilitar/desabilitar exibi\xe7\xe3o de dado mais pr\xf3ximo ao pairar","Turntable rotation":"Rota\xe7\xe3o de mesa",Zoom:"Zoom","Zoom in":"Ampliar zoom","Zoom out":"Reduzir zoom",close:"fechamento",high:"alta","incoming flow count":"contagem de fluxo de entrada",kde:"kde",lat:"latitude",lon:"longitude",low:"baixa","lower fence":"limite inferior",max:"m\xe1ximo","mean \xb1 \u03c3":"m\xe9dia \xb1 \u03c3",mean:"m\xe9dia",median:"mediana",min:"m\xednimo","new text":"novo texto",open:"abertura","outgoing flow count":"contagem de fluxo de sa\xedda",q1:"q1",q3:"q3",source:"origem",target:"destino",trace:"s\xe9rie","upper fence":"limite superior"},format:{days:["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],date:"%d/%m/%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-ru.js b/static/js/plotly-locale-ru.js index 9de407fc3e..15e914c010 100644 --- a/static/js/plotly-locale-ru.js +++ b/static/js/plotly-locale-ru.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"ru",dictionary:{Autoscale:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","Box Select":"\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438","Click to enter Colorscale title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u0448\u043a\u0430\u043b\u044b","Click to enter Component A title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 A","Click to enter Component B title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 B","Click to enter Component C title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 C","Click to enter Plot title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430","Click to enter X axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0438 X","Click to enter Y axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0438 Y","Click to enter radial axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0439 \u043e\u0441\u0438","Compare data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435","Double-click on legend to isolate one trace":"\u0414\u0432\u0430\u0436\u0434\u044b \u0449\u0451\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u043b\u0435\u0433\u0435\u043d\u0434\u0435 \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445","Double-click to zoom back out":"\u0414\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u0432\u0430\u0436\u0434\u044b \u0449\u0451\u043b\u043a\u043d\u0438\u0442\u0435 \u043c\u044b\u0448\u044c\u044e","Download plot":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a","Download plot as a png":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PNG","Edit in Chart Studio":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 Chart Studio","IE only supports svg. Changing format to svg.":"IE \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e svg. \u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 svg.","Lasso Select":"\u041b\u0430\u0441\u0441\u043e","Orbital rotation":"\u041e\u0440\u0431\u0438\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435",Pan:"\u0421\u0434\u0432\u0438\u0433","Produced with Plotly":"\u0421\u043e\u0437\u0434\u0430\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Plotly",Reset:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset axes":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0441\u0435\u0439 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset camera to default":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u0430\u043c\u0435\u0440\u044b \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset camera to last save":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443 \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e","Reset view":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset views":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Show closest data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435","Snapshot succeeded":"\u0421\u043d\u0438\u043c\u043e\u043a \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d","Sorry, there was a problem downloading your snapshot!":"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043d\u0438\u043c\u043a\u0430","Taking snapshot - this may take a few seconds":"\u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043d\u0438\u043c\u043e\u043a - \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434","Toggle Spike Lines":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0439 \u0442\u043e\u0447\u0435\u043a","Toggle show closest data on hover":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438","Turntable rotation":"\u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u043e\u043c \u0441\u0442\u043e\u043b\u0435",Zoom:"\u0417\u0443\u043c","Zoom in":"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c","Zoom out":"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c","close:":"\u0417\u0430\u043a\u0440\u044b\u0442\u0438\u0435:","concentration:":"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f:","high:":"\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c:","incoming flow count:":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u0432\u044f\u0437\u0435\u0439:","kde:":"\u042f\u0434\u0435\u0440\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438:","lat:":"\u0428\u0438\u0440\u043e\u0442\u0430:","lon:":"\u0414\u043e\u043b\u0433\u043e\u0442\u0430:","low:":"\u041c\u0438\u043d\u0438\u043c\u0443\u043c:","lower fence:":"\u041d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430:","max:":"\u041c\u0430\u043a\u0441.:","mean \xb1 \u03c3:":"\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \xb1 \u03c3:","mean:":"\u0421\u0440\u0435\u0434\u043d\u0435\u0435:","median:":"\u041c\u0435\u0434\u0438\u0430\u043d\u0430:","min:":"\u041c\u0438\u043d.:","new text":"\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442","open:":"\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435:","outgoing flow count:":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u0432\u044f\u0437\u0435\u0439:","q1:":"q1:","q3:":"q3:","source:":"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a:","target:":"\u0426\u0435\u043b\u044c:",trace:"\u0420\u044f\u0434","upper fence:":"\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430:"},format:{days:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],shortDays:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],months:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],shortMonths:["\u042f\u043d\u0432.","\u0424\u0435\u0432\u0440.","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440.","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433.","\u0421\u0435\u043d\u0442.","\u041e\u043a\u0442.","\u041d\u043e\u044f","\u0414\u0435\u043a."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"ru",dictionary:{Autoscale:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","Box Select":"\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438","Click to enter Colorscale title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u0448\u043a\u0430\u043b\u044b","Click to enter Component A title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 A","Click to enter Component B title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 B","Click to enter Component C title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 C","Click to enter Plot title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430","Click to enter X axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0438 X","Click to enter Y axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0438 Y","Click to enter radial axis title":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0439 \u043e\u0441\u0438","Compare data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435","Double-click on legend to isolate one trace":"\u0414\u0432\u0430\u0436\u0434\u044b \u0449\u0451\u043b\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u043b\u0435\u0433\u0435\u043d\u0434\u0435 \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445","Double-click to zoom back out":"\u0414\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u0432\u0430\u0436\u0434\u044b \u0449\u0451\u043b\u043a\u043d\u0438\u0442\u0435 \u043c\u044b\u0448\u044c\u044e","Download plot":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a","Download plot as a PNG":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PNG","Edit in Chart Studio":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 Chart Studio","IE only supports svg. Changing format to svg.":"IE \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e svg. \u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 svg.","Lasso Select":"\u041b\u0430\u0441\u0441\u043e","Orbital rotation":"\u041e\u0440\u0431\u0438\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435",Pan:"\u0421\u0434\u0432\u0438\u0433","Produced with Plotly.js":"\u0421\u043e\u0437\u0434\u0430\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Plotly.js",Reset:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset axes":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0441\u0435\u0439 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset camera to default":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u0430\u043c\u0435\u0440\u044b \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset camera to last save":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043c\u0435\u0440\u0443 \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e","Reset view":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Reset views":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Show closest data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435","Snapshot succeeded":"\u0421\u043d\u0438\u043c\u043e\u043a \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d","Sorry, there was a problem downloading your snapshot!":"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0441\u043d\u0438\u043c\u043a\u0430","Taking snapshot - this may take a few seconds":"\u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043d\u0438\u043c\u043e\u043a - \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434","Toggle Spike Lines":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u0439 \u0442\u043e\u0447\u0435\u043a","Toggle show closest data on hover":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c/\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438","Turntable rotation":"\u0412\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u043e\u043c \u0441\u0442\u043e\u043b\u0435",Zoom:"\u0417\u0443\u043c","Zoom in":"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c","Zoom out":"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c","close:":"\u0417\u0430\u043a\u0440\u044b\u0442\u0438\u0435:","concentration:":"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f:","high:":"\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c:","incoming flow count:":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u0432\u044f\u0437\u0435\u0439:","kde:":"\u042f\u0434\u0435\u0440\u043d\u0430\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438:","lat:":"\u0428\u0438\u0440\u043e\u0442\u0430:","lon:":"\u0414\u043e\u043b\u0433\u043e\u0442\u0430:","low:":"\u041c\u0438\u043d\u0438\u043c\u0443\u043c:","lower fence:":"\u041d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430:","max:":"\u041c\u0430\u043a\u0441.:","mean \xb1 \u03c3:":"\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \xb1 \u03c3:","mean:":"\u0421\u0440\u0435\u0434\u043d\u0435\u0435:","median:":"\u041c\u0435\u0434\u0438\u0430\u043d\u0430:","min:":"\u041c\u0438\u043d.:","new text":"\u041d\u043e\u0432\u044b\u0439 \u0442\u0435\u043a\u0441\u0442","open:":"\u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435:","outgoing flow count:":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u0432\u044f\u0437\u0435\u0439:","q1:":"q1:","q3:":"q3:","source:":"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a:","target:":"\u0426\u0435\u043b\u044c:",trace:"\u0420\u044f\u0434","upper fence:":"\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430:"},format:{days:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"],shortDays:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],months:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],shortMonths:["\u042f\u043d\u0432.","\u0424\u0435\u0432\u0440.","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440.","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433.","\u0421\u0435\u043d\u0442.","\u041e\u043a\u0442.","\u041d\u043e\u044f","\u0414\u0435\u043a."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-si.js b/static/js/plotly-locale-si.js index ef82b0d199..271cdb2ce6 100644 --- a/static/js/plotly-locale-si.js +++ b/static/js/plotly-locale-si.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"si",dictionary:{Autoscale:"\u0dc3\u0dca\u0dc0\u0dba\u0d82 \u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1\u0dba","Box Select":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0dc0\u0dbb\u0dab\u0dba","Click to enter Colorscale title":"\u0dc0\u0dbb\u0dca\u0dab\u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component A title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d85 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component B title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d86 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component C title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d87 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Plot title":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0\u0dd9\u0dc4\u0dd2 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter X axis title":"\u0dad\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Y axis title":"\u0dc3\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter radial axis title":"\u0d85\u0dbb\u0dd3\u0dba \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Compare data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0daf\u0dad\u0dca\u0dad \u0dc3\u0dc3\u0db3\u0db1\u0dca\u0db1","Double-click on legend to isolate one trace":"Double-click on legend to isolate one trace","Double-click to zoom back out":"\u0d86\u0db4\u0dc3\u0dd4 \u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0daf\u0dd9\u0dc0\u0dbb\u0d9a\u0dca \u0d94\u0db6\u0db1\u0dca\u0db1","Download plot":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Download plot as a png":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db4\u0dd3\u0d91\u0db1\u0dca\u0da2\u0dd3 \u0dbd\u0dd9\u0dc3 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Draw circle":"\u0d9a\u0dc0\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw closed freeform":"\u0dc3\u0d82\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw line":"\u0dbb\u0dda\u0d9b\u0dcf\u0dc0\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw open freeform":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw rectangle":"\u0dc3\u0dd8\u0da2\u0dd4\u0d9a\u0ddd\u0dab\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Edit in Chart Studio":"\u0db4\u0dca\u200d\u0dbb\u0dc3\u0dca\u0dad\u0dcf\u0dbb \u0da0\u0dd2\u0dad\u0dca\u200d\u0dbb\u0dcf\u0d9c\u0dcf\u0dbb\u0dba\u0dd9\u0dc4\u0dd2 \u0dc3\u0d82\u0dc3\u0dca\u0d9a\u0dbb\u0dab\u0dba","Erase active shape":"\u0dc3\u0d9a\u0dca\u200d\u0dbb\u0dd2\u0dba \u0dc4\u0dd0\u0da9\u0dba \u0db8\u0d9a\u0db1\u0dca\u0db1","IE only supports svg. Changing format to svg.":"\u0d89.\u0d91. \u0d91\u0dc3\u0dca\u0dc0\u0dd3\u0da2\u0dd3 \u0dc3\u0db3\u0dc4\u0dcf \u0db4\u0db8\u0dab\u0d9a\u0dca \u0dc3\u0dc4\u0dcf\u0dba \u0daf\u0d9a\u0dca\u0dc0\u0dba\u0dd2. \u0d86\u0d9a\u0dd8\u0dad\u0dd2\u0dba \u0d91\u0dba\u0da7 \u0dc0\u0dd9\u0db1\u0dc3\u0dca \u0dc0\u0dd9\u0db8\u0dd2\u0db1\u0dca","Lasso Select":"\u0db8\u0dcf\u0dba\u0dd2\u0db8 \u0dc0\u0dbb\u0dab\u0dba","Orbital rotation":"\u0d9a\u0dcf\u0d9a\u0dca\u200d\u0dc2\u0dd2\u0d9a \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Pan:"\u0da0\u0dbd\u0d9a\u0dba","Produced with Plotly":"\u0db4\u0dca\u0dbd\u0ddc\u0da7\u0dca\u0dbd\u0dd2 \u0dc3\u0db8\u0d9f \u0d8b\u0db4\u0daf\u0dc0\u0db1 \u0dbd\u0daf\u0dd2",Reset:"\u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset axes":"\u0d85\u0d9a\u0dca\u200d\u0dc2 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset camera to default":"Reset camera to default","Reset camera to last save":"Reset camera to last save","Reset view":"\u0daf\u0dd0\u0d9a\u0dca\u0db8 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset views":"\u0daf\u0dd0\u0d9a\u0dca\u0db8\u0dca \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Show closest data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0d86\u0dc3\u0db1\u0dca\u0db1\u0db8 \u0daf\u0dad\u0dca\u0dad \u0db4\u0dd9\u0db1\u0dca\u0dc0\u0db1\u0dca\u0db1","Snapshot succeeded":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dba\u0dd2","Sorry, there was a problem downloading your snapshot!":"\u0dc3\u0db8\u0dcf\u0dc0\u0db1\u0dca\u0db1, \u0d94\u0db6\u0d9c\u0dda \u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0db6\u0dcf\u0d9c\u0dd0\u0db1\u0dd3\u0db8\u0dda \u0d9c\u0dd0\u0da7\u0dbd\u0dd4\u0dc0\u0d9a\u0dca \u0d87\u0dad!","Taking snapshot - this may take a few seconds":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0d9c\u0dd0\u0db1\u0dd9\u0db8\u0dd2\u0db1\u0dca - \u0db8\u0dd9\u0dba\u0da7 \u0dad\u0dad\u0dca. \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba\u0d9a\u0dca \u0d9c\u0dad\u0dc0\u0dd2\u0dba \u0dc4\u0dd0\u0d9a\u0dd2\u0dba","Toggle Spike Lines":"Toggle Spike Lines","Toggle show closest data on hover":"Toggle show closest data on hover","Turntable rotation":"\u0db6\u0db8\u0dbb \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Zoom:"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd \u0d9a\u0dbb\u0db1\u0dca\u0db1","Zoom in":"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd\u0db1\u0dba","Zoom out":"\u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba","close:":"\u0dc0\u0dc3\u0db1\u0dca\u0db1:","concentration:":"\u0dc3\u0d82\u0d9a\u0dda\u0db1\u0dca\u0daf\u0dca\u200d\u0dbb\u0dab\u0dba:","high:":"high:","incoming flow count:":"\u0d87\u0dad\u0dd4\u0dc5\u0da7\u0d91\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"low:","lower fence:":"lower fence:","max:":"\u0d8b\u0db4\u0dbb\u0dd2\u0db8:","mean \xb1 \u03c3:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba \xb1 \u03c3:","mean:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba:","median:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0dc3\u0dae\u0dba:","min:":"\u0d85\u0dc0\u0db8:","new text":"\u0db1\u0dc0 \u0db4\u0dcf\u0da8\u0dba","open:":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad:","outgoing flow count:":"\u0db4\u0dd2\u0da7\u0dad\u0da7\u0dba\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","q1:":"q1:","q3:":"q3:","source:":"\u0db8\u0dd6\u0dbd\u0dcf\u0dc1\u0dca\u200d\u0dbb\u0dba:","target:":"\u0d89\u0dbd\u0d9a\u0dca\u0d9a\u0dba:",trace:"trace","upper fence:":"upper fence:"},format:{days:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf","\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf","\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf"],shortDays:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca","\u0dc3\u0dd2\u0d9a\u0dd4","\u0dc3\u0dd9\u0db1"],months:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4\u0dc0\u0db4\u0dca"],shortMonths:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"si",dictionary:{Autoscale:"\u0dc3\u0dca\u0dc0\u0dba\u0d82 \u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1\u0dba","Box Select":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0dc0\u0dbb\u0dab\u0dba","Click to enter Colorscale title":"\u0dc0\u0dbb\u0dca\u0dab\u0db4\u0dbb\u0dd2\u0db8\u0dcf\u0dab\u0db1 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component A title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d85 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component B title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d86 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Component C title":"\u0dc3\u0d82\u0dbb\u0da0\u0d9a\u0dba\u0dda \u0d87 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Plot title":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0\u0dd9\u0dc4\u0dd2 \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter X axis title":"\u0dad\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter Y axis title":"\u0dc3\u0dd2\u0dbb\u0dc3\u0dca \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Click to enter radial axis title":"\u0d85\u0dbb\u0dd3\u0dba \u0d85\u0d9a\u0dca\u200d\u0dc2\u0dba\u0dda \u0dc3\u0dd2\u0dbb\u0dd0\u0dc3\u0dd2\u0dba \u0d87\u0dad\u0dd4\u0dbd\u0dca \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0d94\u0db6\u0db1\u0dca\u0db1","Compare data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0daf\u0dad\u0dca\u0dad \u0dc3\u0dc3\u0db3\u0db1\u0dca\u0db1","Double-click on legend to isolate one trace":"Double-click on legend to isolate one trace","Double-click to zoom back out":"\u0d86\u0db4\u0dc3\u0dd4 \u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0da7 \u0daf\u0dd9\u0dc0\u0dbb\u0d9a\u0dca \u0d94\u0db6\u0db1\u0dca\u0db1","Download plot":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Download plot as a PNG":"\u0d9a\u0ddc\u0da7\u0dd4\u0dc0 \u0db4\u0dd3\u0d91\u0db1\u0dca\u0da2\u0dd3 \u0dbd\u0dd9\u0dc3 \u0db6\u0dcf\u0d9c\u0db1\u0dca\u0db1","Draw circle":"\u0d9a\u0dc0\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw closed freeform":"\u0dc3\u0d82\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw line":"\u0dbb\u0dda\u0d9b\u0dcf\u0dc0\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw open freeform":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad \u0dbd\u0dd9\u0dc3 \u0db1\u0dd2\u0daf\u0dc4\u0dc3\u0dda \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Draw rectangle":"\u0dc3\u0dd8\u0da2\u0dd4\u0d9a\u0ddd\u0dab\u0dba\u0d9a\u0dca \u0d85\u0db3\u0dd2\u0db1\u0dca\u0db1","Edit in Chart Studio":"\u0db4\u0dca\u200d\u0dbb\u0dc3\u0dca\u0dad\u0dcf\u0dbb \u0da0\u0dd2\u0dad\u0dca\u200d\u0dbb\u0dcf\u0d9c\u0dcf\u0dbb\u0dba\u0dd9\u0dc4\u0dd2 \u0dc3\u0d82\u0dc3\u0dca\u0d9a\u0dbb\u0dab\u0dba","Erase active shape":"\u0dc3\u0d9a\u0dca\u200d\u0dbb\u0dd2\u0dba \u0dc4\u0dd0\u0da9\u0dba \u0db8\u0d9a\u0db1\u0dca\u0db1","IE only supports svg. Changing format to svg.":"\u0d89.\u0d91. \u0d91\u0dc3\u0dca\u0dc0\u0dd3\u0da2\u0dd3 \u0dc3\u0db3\u0dc4\u0dcf \u0db4\u0db8\u0dab\u0d9a\u0dca \u0dc3\u0dc4\u0dcf\u0dba \u0daf\u0d9a\u0dca\u0dc0\u0dba\u0dd2. \u0d86\u0d9a\u0dd8\u0dad\u0dd2\u0dba \u0d91\u0dba\u0da7 \u0dc0\u0dd9\u0db1\u0dc3\u0dca \u0dc0\u0dd9\u0db8\u0dd2\u0db1\u0dca","Lasso Select":"\u0db8\u0dcf\u0dba\u0dd2\u0db8 \u0dc0\u0dbb\u0dab\u0dba","Orbital rotation":"\u0d9a\u0dcf\u0d9a\u0dca\u200d\u0dc2\u0dd2\u0d9a \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Pan:"\u0da0\u0dbd\u0d9a\u0dba","Produced with Plotly":"\u0db4\u0dca\u0dbd\u0ddc\u0da7\u0dca\u0dbd\u0dd2 \u0dc3\u0db8\u0d9f \u0d8b\u0db4\u0daf\u0dc0\u0db1 \u0dbd\u0daf\u0dd2",Reset:"\u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset axes":"\u0d85\u0d9a\u0dca\u200d\u0dc2 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset camera to default":"Reset camera to default","Reset camera to last save":"Reset camera to last save","Reset view":"\u0daf\u0dd0\u0d9a\u0dca\u0db8 \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Reset views":"\u0daf\u0dd0\u0d9a\u0dca\u0db8\u0dca \u0dba\u0dc5\u0dd2 \u0dc3\u0d9a\u0dc3\u0db1\u0dca\u0db1","Show closest data on hover":"\u0dc3\u0dd4\u0db1\u0d82\u0d9c\u0dd4 \u0d9a\u0dd2\u0dbb\u0dd3\u0db8\u0dda\u0daf\u0dd3 \u0d86\u0dc3\u0db1\u0dca\u0db1\u0db8 \u0daf\u0dad\u0dca\u0dad \u0db4\u0dd9\u0db1\u0dca\u0dc0\u0db1\u0dca\u0db1","Snapshot succeeded":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0dc3\u0dcf\u0dbb\u0dca\u0dae\u0d9a\u0dba\u0dd2","Sorry, there was a problem downloading your snapshot!":"\u0dc3\u0db8\u0dcf\u0dc0\u0db1\u0dca\u0db1, \u0d94\u0db6\u0d9c\u0dda \u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0db6\u0dcf\u0d9c\u0dd0\u0db1\u0dd3\u0db8\u0dda \u0d9c\u0dd0\u0da7\u0dbd\u0dd4\u0dc0\u0d9a\u0dca \u0d87\u0dad!","Taking snapshot - this may take a few seconds":"\u0da1\u0dcf\u0dba\u0dcf\u0dbb\u0dd6\u0db4\u0dba \u0d9c\u0dd0\u0db1\u0dd9\u0db8\u0dd2\u0db1\u0dca - \u0db8\u0dd9\u0dba\u0da7 \u0dad\u0dad\u0dca. \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba\u0d9a\u0dca \u0d9c\u0dad\u0dc0\u0dd2\u0dba \u0dc4\u0dd0\u0d9a\u0dd2\u0dba","Toggle Spike Lines":"Toggle Spike Lines","Toggle show closest data on hover":"Toggle show closest data on hover","Turntable rotation":"\u0db6\u0db8\u0dbb \u0d9a\u0dbb\u0d9a\u0dd0\u0dc0\u0dd3\u0db8",Zoom:"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd \u0d9a\u0dbb\u0db1\u0dca\u0db1","Zoom in":"\u0dc0\u0dd2\u0dc1\u0dcf\u0dbd\u0db1\u0dba","Zoom out":"\u0d9a\u0dd4\u0da9\u0dcf\u0dbd\u0db1\u0dba","close:":"\u0dc0\u0dc3\u0db1\u0dca\u0db1:","concentration:":"\u0dc3\u0d82\u0d9a\u0dda\u0db1\u0dca\u0daf\u0dca\u200d\u0dbb\u0dab\u0dba:","high:":"high:","incoming flow count:":"\u0d87\u0dad\u0dd4\u0dc5\u0da7\u0d91\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"low:","lower fence:":"lower fence:","max:":"\u0d8b\u0db4\u0dbb\u0dd2\u0db8:","mean \xb1 \u03c3:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba \xb1 \u03c3:","mean:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0db1\u0dca\u200d\u0dba:","median:":"\u0db8\u0db0\u0dca\u200d\u0dba\u0dc3\u0dae\u0dba:","min:":"\u0d85\u0dc0\u0db8:","new text":"\u0db1\u0dc0 \u0db4\u0dcf\u0da8\u0dba","open:":"\u0dc0\u0dd2\u0dc0\u0dd8\u0dad:","outgoing flow count:":"\u0db4\u0dd2\u0da7\u0dad\u0da7\u0dba\u0db1 \u0db4\u0dca\u200d\u0dbb\u0dc0\u0dcf\u0dc4\u0dba \u0d9c\u0dab\u0db1\u0dba:","q1:":"q1:","q3:":"q3:","source:":"\u0db8\u0dd6\u0dbd\u0dcf\u0dc1\u0dca\u200d\u0dbb\u0dba:","target:":"\u0d89\u0dbd\u0d9a\u0dca\u0d9a\u0dba:",trace:"trace","upper fence:":"upper fence:"},format:{days:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf","\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf","\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf"],shortDays:["\u0d89\u0dbb\u0dd2\u0daf\u0dcf","\u0dc3\u0db3\u0dd4\u0daf\u0dcf","\u0d85\u0d9f\u0dc4","\u0db6\u0daf\u0dcf\u0daf\u0dcf","\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca","\u0dc3\u0dd2\u0d9a\u0dd4","\u0dc3\u0dd9\u0db1"],months:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4\u0dc0\u0db4\u0dca"],shortMonths:["\u0daf\u0dd4\u0dbb\u0dd4\u0dad\u0dd4","\u0db1\u0dc0\u0db8\u0dca","\u0db8\u0dd0\u0daf\u0dd2\u0db1\u0dca","\u0db6\u0d9a\u0dca","\u0dc0\u0dd9\u0dc3\u0d9a\u0dca","\u0db4\u0ddc\u0dc3\u0ddc\u0db1\u0dca","\u0d87\u0dc3\u0dc5","\u0db1\u0dd2\u0d9a\u0dd2\u0dab\u0dd2","\u0db6\u0dd2\u0db1\u0dbb","\u0dc0\u0db4\u0dca","\u0d89\u0dbd\u0dca","\u0d8b\u0db3\u0dd4"],date:"%d-%m-%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-sv.js b/static/js/plotly-locale-sv.js index 3e9a1d5e0f..b901b5dea4 100644 --- a/static/js/plotly-locale-sv.js +++ b/static/js/plotly-locale-sv.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"sv",dictionary:{Autoscale:"Autoskala","Box Select":"V\xe4lj rektangel","Click to enter Colorscale title":"Klicka f\xf6r att ange titel p\xe5 f\xe4rgskala","Click to enter Component A title":"Klicka f\xf6r att ange titel p\xe5 komponent A","Click to enter Component B title":"Klicka f\xf6r att ange titel p\xe5 komponent B","Click to enter Component C title":"Klicka f\xf6r att ange titel p\xe5 komponent C","Click to enter Plot title":"Klicka f\xf6r att ange titel p\xe5 diagram","Click to enter X axis title":"Klicka f\xf6r att ange titel p\xe5 x-axel","Click to enter Y axis title":"Klicka f\xf6r att ange titel p\xe5 y-axel","Click to enter radial axis title":"Klicka f\xf6r att ange titel p\xe5 radiell axel","Compare data on hover":"J\xe4mf\xf6r data n\xe4r muspekaren h\xe5lls \xf6ver","Double-click on legend to isolate one trace":"Dubbelklicka p\xe5 f\xf6rklaringen f\xf6r att visa endast en serie","Double-click to zoom back out":"Dubbelklicka f\xf6r att zooma ut igen","Download plot":"Ladda ner diagram","Download plot as a png":"Ladda ner diagram som png","Edit in Chart Studio":"Editera i Chart Studio","IE only supports svg. Changing format to svg.":"IE st\xf6der enbart svg. Byter format till svg.","Lasso Select":"V\xe4lj lasso","Orbital rotation":"Orbital rotation",Pan:"Panorera","Produced with Plotly":"Skapad med Plotly",Reset:"\xc5terst\xe4ll","Reset axes":"\xc5terst\xe4ll axlar","Reset camera to default":"\xc5terst\xe4ll kamera till standard","Reset camera to last save":"\xc5terst\xe4ll kamera till senast sparad","Reset view":"\xc5terst\xe4ll vy","Reset views":"\xc5terst\xe4ll vyer","Show closest data on hover":"Visa n\xe4rmaste v\xe4rde n\xe4r muspekaren h\xe5lls \xf6ver","Snapshot succeeded":"Bild skapad","Sorry, there was a problem downloading your snapshot!":"Tyv\xe4rr gick n\xe5got fel vid nedladdning av bild","Taking snapshot - this may take a few seconds":"Skapar bild - detta kan ta n\xe5gra sekunder","Toggle Spike Lines":"Aktivera/Inaktivera topplinjer","Toggle show closest data on hover":"Aktivera/Inaktivera visa n\xe4rmaste v\xe4rde n\xe4r muspekaren h\xe5lls \xf6ver","Turntable rotation":"Platt rotation",Zoom:"Zooma","Zoom in":"Zooma in","Zoom out":"Zooma ut","close:":"st\xe4ngning:","concentration:":"koncentration:","high:":"h\xf6g:","incoming flow count:":"inkommande fl\xf6de summering:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"l\xe5g:","lower fence:":"undre gr\xe4ns:","max:":"max:","mean \xb1 \u03c3:":"medel \xb1 \u03c3:","mean:":"medel:","median:":"median:","min:":"min:","new text":"ny text","open:":"\xf6ppning:","outgoing flow count:":"utg\xe5ende fl\xf6de summering:","q1:":"q1:","q3:":"q3:","source:":"k\xe4lla:","target:":"m\xe5l:",trace:"serie","upper fence:":"\xf6vre gr\xe4ns:"},format:{days:["S\xf6ndag","M\xe5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xf6rdag"],shortDays:["S\xf6n","M\xe5n","Tis","Ons","Tor","Fre","L\xf6r"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"sv",dictionary:{Autoscale:"Autoskala","Box Select":"V\xe4lj rektangel","Click to enter Colorscale title":"Klicka f\xf6r att ange titel p\xe5 f\xe4rgskala","Click to enter Component A title":"Klicka f\xf6r att ange titel p\xe5 komponent A","Click to enter Component B title":"Klicka f\xf6r att ange titel p\xe5 komponent B","Click to enter Component C title":"Klicka f\xf6r att ange titel p\xe5 komponent C","Click to enter Plot title":"Klicka f\xf6r att ange titel p\xe5 diagram","Click to enter X axis title":"Klicka f\xf6r att ange titel p\xe5 x-axel","Click to enter Y axis title":"Klicka f\xf6r att ange titel p\xe5 y-axel","Click to enter radial axis title":"Klicka f\xf6r att ange titel p\xe5 radiell axel","Compare data on hover":"J\xe4mf\xf6r data n\xe4r muspekaren h\xe5lls \xf6ver","Double-click on legend to isolate one trace":"Dubbelklicka p\xe5 f\xf6rklaringen f\xf6r att visa endast en serie","Double-click to zoom back out":"Dubbelklicka f\xf6r att zooma ut igen","Download plot":"Ladda ner diagram","Download plot as a PNG":"Ladda ner diagram som PNG","Edit in Chart Studio":"Editera i Chart Studio","IE only supports svg. Changing format to svg.":"IE st\xf6der enbart svg. Byter format till svg.","Lasso Select":"V\xe4lj lasso","Orbital rotation":"Orbital rotation",Pan:"Panorera","Produced with Plotly.js":"Skapad med Plotly.js",Reset:"\xc5terst\xe4ll","Reset axes":"\xc5terst\xe4ll axlar","Reset camera to default":"\xc5terst\xe4ll kamera till standard","Reset camera to last save":"\xc5terst\xe4ll kamera till senast sparad","Reset view":"\xc5terst\xe4ll vy","Reset views":"\xc5terst\xe4ll vyer","Show closest data on hover":"Visa n\xe4rmaste v\xe4rde n\xe4r muspekaren h\xe5lls \xf6ver","Snapshot succeeded":"Bild skapad","Sorry, there was a problem downloading your snapshot!":"Tyv\xe4rr gick n\xe5got fel vid nedladdning av bild","Taking snapshot - this may take a few seconds":"Skapar bild - detta kan ta n\xe5gra sekunder","Toggle Spike Lines":"Aktivera/Inaktivera topplinjer","Toggle show closest data on hover":"Aktivera/Inaktivera visa n\xe4rmaste v\xe4rde n\xe4r muspekaren h\xe5lls \xf6ver","Turntable rotation":"Platt rotation",Zoom:"Zooma","Zoom in":"Zooma in","Zoom out":"Zooma ut","close:":"st\xe4ngning:","concentration:":"koncentration:","high:":"h\xf6g:","incoming flow count:":"inkommande fl\xf6de summering:","kde:":"kde:","lat:":"lat:","lon:":"lon:","low:":"l\xe5g:","lower fence:":"undre gr\xe4ns:","max:":"max:","mean \xb1 \u03c3:":"medel \xb1 \u03c3:","mean:":"medel:","median:":"median:","min:":"min:","new text":"ny text","open:":"\xf6ppning:","outgoing flow count:":"utg\xe5ende fl\xf6de summering:","q1:":"q1:","q3:":"q3:","source:":"k\xe4lla:","target:":"m\xe5l:",trace:"serie","upper fence:":"\xf6vre gr\xe4ns:"},format:{days:["S\xf6ndag","M\xe5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xf6rdag"],shortDays:["S\xf6n","M\xe5n","Tis","Ons","Tor","Fre","L\xf6r"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-tr.js b/static/js/plotly-locale-tr.js index 6a370f4691..ea36f76623 100644 --- a/static/js/plotly-locale-tr.js +++ b/static/js/plotly-locale-tr.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"tr",dictionary:{},format:{days:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"],shortDays:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"],shortMonths:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],date:"%d.%m.%Y"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"tr",dictionary:{Autoscale:"Otomatik \xd6l\xe7eklendir","Box Select":"Dikd\xf6rtgen Kutu Se\xe7imi","Click to enter Colorscale title":"Renk \xd6l\xe7e\u011fi ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component A title":"A bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component B title":"B bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Component C title":"C bile\u015feni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Plot title":"Grafik ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter X axis title":"X ekseni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Click to enter Y axis title":"Y ekseni ba\u015fl\u0131\u011f\u0131n\u0131 girmek i\xe7in t\u0131klay\u0131n","Compare data on hover":"\xdczerine gelince verileri kar\u015f\u0131la\u015ft\u0131r","Double-click on legend to isolate one trace":"Bir izi izole etmek i\xe7in g\xf6stergeye (legend) \xe7ift t\u0131klay\u0131n","Double-click to zoom back out":"Geri uzakla\u015ft\u0131rmak i\xe7in \xe7ift t\u0131klay\u0131n","Download plot as a PNG":"Grafi\u011fi PNG olarak indir","Download plot":"Grafi\u011fi indir","Edit in Chart Studio":"Chart Studio'da d\xfczenle","IE only supports svg. Changing format to svg.":"IE yaln\u0131zca svg'yi destekler. Format svg'ye d\xf6n\xfc\u015ft\xfcr\xfcl\xfcyor.","Lasso Select":"Serbest se\xe7im","Orbital rotation":"Y\xf6r\xfcngesel d\xf6nd\xfcrme",Pan:"Kayd\u0131r","Produced with Plotly.js":"Plotly.js ile \xfcretilmi\u015ftir",Reset:"S\u0131f\u0131rla","Reset axes":"Eksenleri s\u0131f\u0131rla","Reset camera to default":"Kameray\u0131 varsay\u0131lana s\u0131f\u0131rla","Reset camera to last save":"Kameray\u0131 son kaydedilene s\u0131f\u0131rla","Reset view":"G\xf6r\xfcn\xfcm\xfc s\u0131f\u0131rla","Reset views":"G\xf6r\xfcn\xfcmleri s\u0131f\u0131rla","Show closest data on hover":"\xdczerine gelince en yak\u0131n veriyi g\xf6ster","Snapshot succeeded":"Anl\u0131k g\xf6r\xfcnt\xfc al\u0131nd\u0131","Sorry, there was a problem downloading your snapshot!":"\xdczg\xfcn\xfcz, anl\u0131k g\xf6r\xfcnt\xfcn\xfcz indirilirken bir sorun olu\u015ftu!","Taking snapshot - this may take a few seconds":"Anl\u0131k g\xf6r\xfcnt\xfc al\u0131n\u0131yor - bu i\u015flem birka\xe7 saniye s\xfcrebilir",Zoom:"Yak\u0131nla\u015ft\u0131r","Zoom in":"Yak\u0131nla\u015f","Zoom out":"Uzakla\u015f","close:":"kapan\u0131\u015f:",trace:"iz","lat:":"enlem:","lon:":"boylam:","q1:":"\xe71:","q3:":"\xe73:","source:":"kaynak:","target:":"hedef:","lower fence:":"alt s\u0131n\u0131r:","upper fence:":"\xfcst s\u0131n\u0131r:","max:":"maks:","mean \xb1 \u03c3:":"ortalama \xb1 \u03c3:","mean:":"ortalama:","median:":"medyan:","min:":"min:","Turntable rotation":"D\xf6ner tabla (turntable) d\xf6n\xfc\u015f\xfc","Toggle Spike Lines":"Yard\u0131mc\u0131 \xc7izgileri A\xe7/Kapat","open:":"a\xe7\u0131l\u0131\u015f:","high:":"y\xfcksek:","low:":"d\xfc\u015f\xfck:","Toggle show closest data on hover":"\xdczerine gelince en yak\u0131n veriyi g\xf6sterme se\xe7ene\u011fini a\xe7/kapat","incoming flow count:":"gelen ak\u0131\u015f say\u0131s\u0131:","outgoing flow count:":"giden ak\u0131\u015f say\u0131s\u0131:","kde:":"\xe7ekirdek yo\u011funluk tahmini (kde):"},format:{days:["Pazar","Pazartesi","Sal\u0131","\xc7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"],shortDays:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"],shortMonths:["Oca","\u015eub","Mar","Nis","May","Haz","Tem","A\u011fu","Eyl","Eki","Kas","Ara"],date:"%d.%m.%Y",decimal:",",thousands:"."}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-uk.js b/static/js/plotly-locale-uk.js index 4d73f6a50a..3441a62ca3 100644 --- a/static/js/plotly-locale-uk.js +++ b/static/js/plotly-locale-uk.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"uk",dictionary:{Autoscale:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0435 \u0448\u043a\u0430\u043b\u044e\u0432\u0430\u043d\u043d\u044f","Box Select":"\u0412\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044f \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u043e\u0457 \u043e\u0431\u043b\u0430\u0441\u0442\u0456","Click to enter Colorscale title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u0448\u043a\u0430\u043b\u0438 \u043a\u043e\u043b\u044c\u043e\u0440\u0443","Click to enter Component A title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 A","Click to enter Component B title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 B","Click to enter Component C title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 C","Click to enter Plot title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u0433\u0440\u0430\u0444\u0456\u043a\u0430","Click to enter X axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043e\u0441\u0456 X","Click to enter Y axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043e\u0441\u0456 Y","Click to enter radial axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0457 \u043e\u0441\u0456","Compare data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456 \u043f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0456 \u0434\u0430\u043d\u0456","Double-click on legend to isolate one trace":"\u0414\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u043f\u043e \u043b\u0435\u0433\u0435\u043d\u0434\u0456 \u0434\u043b\u044f \u0432\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044f \u043e\u043a\u0440\u0435\u043c\u0438\u0445 \u0434\u0430\u043d\u0438\u0445","Double-click to zoom back out":"\u0414\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u043c\u0438\u0448\u0435\u044e","Download plot":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0433\u0440\u0430\u0444\u0456\u043a","Download plot as a png":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 PNG","Edit in Chart Studio":"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0443 Chart Studio","IE only supports svg. Changing format to svg.":"IE \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u043b\u0438\u0448\u0435 svg. \u0424\u043e\u0440\u043c\u0430\u0442 \u0437\u043c\u0456\u043d\u044e\u0454\u0442\u044c\u0441\u044f \u043d\u0430 svg.","Lasso Select":"\u041b\u0430\u0441\u043e","Orbital rotation":"\u0420\u0443\u0445 \u043f\u043e \u043e\u0440\u0431\u0456\u0442\u0456",Pan:"\u0417\u0441\u0443\u0432","Produced with Plotly":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e Plotly",Reset:"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset axes":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043e\u0441\u044f\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset camera to default":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043a\u0430\u043c\u0435\u0440\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset camera to last save":"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u043a\u0430\u043c\u0435\u0440\u0443 \u0432 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043d","Reset view":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset views":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Show closest data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456 \u043f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0456 \u0434\u0430\u043d\u0456","Snapshot succeeded":"\u0417\u043d\u0456\u043c\u043e\u043a \u0443\u0441\u043f\u0456\u0448\u043d\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0439","Sorry, there was a problem downloading your snapshot!":"\u041d\u0430 \u0436\u0430\u043b\u044c, \u0432\u0438\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u0456 \u0437\u043d\u0456\u043c\u043a\u0443","Taking snapshot - this may take a few seconds":"\u0421\u0442\u0432\u043e\u0440\u044e\u0454\u0442\u044c\u0441\u044f \u0437\u043d\u0456\u043c\u043e\u043a - \u0446\u0435 \u043c\u043e\u0436\u0435 \u0437\u0430\u0439\u043d\u044f\u0442\u0438 \u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434","Toggle Spike Lines":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438/\u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043b\u0456\u043d\u0456\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0456\u0439 \u0442\u043e\u0447\u043e\u043a","Toggle show closest data on hover":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438/\u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u0445 \u0434\u0430\u043d\u0438\u0445 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456","Turntable rotation":"\u041e\u0431\u0435\u0440\u0442\u0430\u043d\u043d\u044f \u043d\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0456",Zoom:"\u0417\u0443\u043c","Zoom in":"\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438","Zoom out":"\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438","close:":"\u0417\u0430\u043a\u0440\u0438\u0442\u0442\u044f:","concentration:":"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0456\u044f:","high:":"\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c:","incoming flow count:":"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0432\u0445\u0456\u0434\u043d\u0438\u0445 \u0437\u0432'\u044f\u0437\u043a\u0456\u0432:","kde:":"\u042f\u0434\u0440\u043e\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u0433\u0443\u0441\u0442\u0438\u043d\u0438 \u0440\u043e\u0437\u043f\u043e\u0434\u0456\u043b\u0443:","lat:":"\u0428\u0438\u0440\u043e\u0442\u0430:","lon:":"\u0414\u043e\u0432\u0433\u043e\u0442\u0430:","low:":"\u041c\u0456\u043d\u0456\u043c\u0443\u043c:","lower fence:":"\u041d\u0438\u0436\u043d\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u044f:","max:":"\u041c\u0430\u043a\u0441.:","mean \xb1 \u03c3:":"\u0421\u0435\u0440\u0435\u0434\u043d\u0454 \xb1 \u03c3:","mean:":"\u0421\u0435\u0440\u0435\u0434\u043d\u0454:","median:":"\u041c\u0435\u0434\u0456\u0430\u043d\u0430:","min:":"\u041c\u0456\u043d.:","new text":"\u041d\u043e\u0432\u0438\u0439 \u0442\u0435\u043a\u0441\u0442","open:":"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0442\u044f:","outgoing flow count:":"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0432\u0438\u0445\u0456\u0434\u043d\u0438\u0445 \u0437\u0432'\u044f\u0437\u043a\u0456\u0432:","q1:":"q1:","q3:":"q3:","source:":"\u0414\u0436\u0435\u0440\u0435\u043b\u043e:","target:":"\u0426\u0456\u043b\u044c:",trace:"\u0420\u044f\u0434","upper fence:":"\u0412\u0435\u0440\u0445\u043d\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u044f:"},format:{days:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f'\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"],shortDays:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],months:["\u0421\u0456\u0447\u0435\u043d\u044c","\u041b\u044e\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u041a\u0432\u0456\u0442\u0435\u043d\u044c","\u0422\u0440\u0430\u0432\u0435\u043d\u044c","\u0427\u0435\u0440\u0432\u0435\u043d\u044c","\u041b\u0438\u043f\u0435\u043d\u044c","\u0421\u0435\u0440\u043f\u0435\u043d\u044c","\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0416\u043e\u0432\u0442\u0435\u043d\u044c","\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043d\u044c"],shortMonths:["\u0421\u0456\u0447.","\u041b\u044e\u0442.","\u0411\u0435\u0440\u0435\u0437.","\u041a\u0432\u0456\u0442.","\u0422\u0440\u0430\u0432.","\u0427\u0435\u0440\u0432.","\u041b\u0438\u043f.","\u0421\u0435\u0440\u043f.","\u0412\u0435\u0440\u0435\u0441.","\u0416\u043e\u0432\u0442.","\u041b\u0438\u0441\u0442\u043e\u043f.","\u0413\u0440\u0443\u0434."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"uk",dictionary:{Autoscale:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0435 \u0448\u043a\u0430\u043b\u044e\u0432\u0430\u043d\u043d\u044f","Box Select":"\u0412\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044f \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u043e\u0457 \u043e\u0431\u043b\u0430\u0441\u0442\u0456","Click to enter Colorscale title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u0448\u043a\u0430\u043b\u0438 \u043a\u043e\u043b\u044c\u043e\u0440\u0443","Click to enter Component A title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 A","Click to enter Component B title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 B","Click to enter Component C title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 C","Click to enter Plot title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u0433\u0440\u0430\u0444\u0456\u043a\u0430","Click to enter X axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043e\u0441\u0456 X","Click to enter Y axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043e\u0441\u0456 Y","Click to enter radial axis title":"\u041d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u0434\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u043d\u0430\u0437\u0432\u0438 \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0457 \u043e\u0441\u0456","Compare data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456 \u043f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0456 \u0434\u0430\u043d\u0456","Double-click on legend to isolate one trace":"\u0414\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u043f\u043e \u043b\u0435\u0433\u0435\u043d\u0434\u0456 \u0434\u043b\u044f \u0432\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044f \u043e\u043a\u0440\u0435\u043c\u0438\u0445 \u0434\u0430\u043d\u0438\u0445","Double-click to zoom back out":"\u0414\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0434\u0432\u0456\u0447\u0456 \u043a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u043c\u0438\u0448\u0435\u044e","Download plot":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0433\u0440\u0430\u0444\u0456\u043a","Download plot as a PNG":"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 PNG","Edit in Chart Studio":"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0443 Chart Studio","IE only supports svg. Changing format to svg.":"IE \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u043b\u0438\u0448\u0435 svg. \u0424\u043e\u0440\u043c\u0430\u0442 \u0437\u043c\u0456\u043d\u044e\u0454\u0442\u044c\u0441\u044f \u043d\u0430 svg.","Lasso Select":"\u041b\u0430\u0441\u043e","Orbital rotation":"\u0420\u0443\u0445 \u043f\u043e \u043e\u0440\u0431\u0456\u0442\u0456",Pan:"\u0417\u0441\u0443\u0432","Produced with Plotly.js":"\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e Plotly.js",Reset:"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset axes":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043e\u0441\u044f\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset camera to default":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043a\u0430\u043c\u0435\u0440\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset camera to last save":"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u043a\u0430\u043c\u0435\u0440\u0443 \u0432 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0439 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043d","Reset view":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Reset views":"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","Show closest data on hover":"\u041f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456 \u043f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0456 \u0434\u0430\u043d\u0456","Snapshot succeeded":"\u0417\u043d\u0456\u043c\u043e\u043a \u0443\u0441\u043f\u0456\u0448\u043d\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0439","Sorry, there was a problem downloading your snapshot!":"\u041d\u0430 \u0436\u0430\u043b\u044c, \u0432\u0438\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u0456 \u0437\u043d\u0456\u043c\u043a\u0443","Taking snapshot - this may take a few seconds":"\u0421\u0442\u0432\u043e\u0440\u044e\u0454\u0442\u044c\u0441\u044f \u0437\u043d\u0456\u043c\u043e\u043a - \u0446\u0435 \u043c\u043e\u0436\u0435 \u0437\u0430\u0439\u043d\u044f\u0442\u0438 \u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434","Toggle Spike Lines":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438/\u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043b\u0456\u043d\u0456\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0456\u0439 \u0442\u043e\u0447\u043e\u043a","Toggle show closest data on hover":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438/\u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u0445 \u0434\u0430\u043d\u0438\u0445 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043d\u0456","Turntable rotation":"\u041e\u0431\u0435\u0440\u0442\u0430\u043d\u043d\u044f \u043d\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0456",Zoom:"\u0417\u0443\u043c","Zoom in":"\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438","Zoom out":"\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438","close:":"\u0417\u0430\u043a\u0440\u0438\u0442\u0442\u044f:","concentration:":"\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0456\u044f:","high:":"\u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c:","incoming flow count:":"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0432\u0445\u0456\u0434\u043d\u0438\u0445 \u0437\u0432'\u044f\u0437\u043a\u0456\u0432:","kde:":"\u042f\u0434\u0440\u043e\u0432\u0430 \u043e\u0446\u0456\u043d\u043a\u0430 \u0433\u0443\u0441\u0442\u0438\u043d\u0438 \u0440\u043e\u0437\u043f\u043e\u0434\u0456\u043b\u0443:","lat:":"\u0428\u0438\u0440\u043e\u0442\u0430:","lon:":"\u0414\u043e\u0432\u0433\u043e\u0442\u0430:","low:":"\u041c\u0456\u043d\u0456\u043c\u0443\u043c:","lower fence:":"\u041d\u0438\u0436\u043d\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u044f:","max:":"\u041c\u0430\u043a\u0441.:","mean \xb1 \u03c3:":"\u0421\u0435\u0440\u0435\u0434\u043d\u0454 \xb1 \u03c3:","mean:":"\u0421\u0435\u0440\u0435\u0434\u043d\u0454:","median:":"\u041c\u0435\u0434\u0456\u0430\u043d\u0430:","min:":"\u041c\u0456\u043d.:","new text":"\u041d\u043e\u0432\u0438\u0439 \u0442\u0435\u043a\u0441\u0442","open:":"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0442\u044f:","outgoing flow count:":"\u041a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0432\u0438\u0445\u0456\u0434\u043d\u0438\u0445 \u0437\u0432'\u044f\u0437\u043a\u0456\u0432:","q1:":"q1:","q3:":"q3:","source:":"\u0414\u0436\u0435\u0440\u0435\u043b\u043e:","target:":"\u0426\u0456\u043b\u044c:",trace:"\u0420\u044f\u0434","upper fence:":"\u0412\u0435\u0440\u0445\u043d\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u044f:"},format:{days:["\u043d\u0435\u0434\u0456\u043b\u044f","\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0441\u0435\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440","\u043f'\u044f\u0442\u043d\u0438\u0446\u044f","\u0441\u0443\u0431\u043e\u0442\u0430"],shortDays:["\u043d\u0434","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],months:["\u0421\u0456\u0447\u0435\u043d\u044c","\u041b\u044e\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u041a\u0432\u0456\u0442\u0435\u043d\u044c","\u0422\u0440\u0430\u0432\u0435\u043d\u044c","\u0427\u0435\u0440\u0432\u0435\u043d\u044c","\u041b\u0438\u043f\u0435\u043d\u044c","\u0421\u0435\u0440\u043f\u0435\u043d\u044c","\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0416\u043e\u0432\u0442\u0435\u043d\u044c","\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043d\u044c"],shortMonths:["\u0421\u0456\u0447.","\u041b\u044e\u0442.","\u0411\u0435\u0440\u0435\u0437.","\u041a\u0432\u0456\u0442.","\u0422\u0440\u0430\u0432.","\u0427\u0435\u0440\u0432.","\u041b\u0438\u043f.","\u0421\u0435\u0440\u043f.","\u0412\u0435\u0440\u0435\u0441.","\u0416\u043e\u0432\u0442.","\u041b\u0438\u0441\u0442\u043e\u043f.","\u0413\u0440\u0443\u0434."],date:"%d.%m.%Y",decimal:",",thousands:" "}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-zh-cn.js b/static/js/plotly-locale-zh-cn.js index e604abefbb..78161eb958 100644 --- a/static/js/plotly-locale-zh-cn.js +++ b/static/js/plotly-locale-zh-cn.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"zh-CN",dictionary:{Autoscale:"\u81ea\u52a8\u7f29\u653e","Box Select":"\u77e9\u5f62\u6846\u9009","Click to enter Colorscale title":"\u70b9\u51fb\u8f93\u5165\u8272\u9636\u7684\u6807\u9898","Click to enter Component A title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6A\u7684\u6807\u9898","Click to enter Component B title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6B\u7684\u6807\u9898","Click to enter Component C title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6C\u7684\u6807\u9898","Click to enter Plot title":"\u70b9\u51fb\u8f93\u5165\u56fe\u8868\u7684\u6807\u9898","Click to enter X axis title":"\u70b9\u51fb\u8f93\u5165X\u8f74\u7684\u6807\u9898","Click to enter Y axis title":"\u70b9\u51fb\u8f93\u5165Y\u8f74\u7684\u6807\u9898","Compare data on hover":"\u60ac\u505c\u65f6\u6bd4\u8f83\u6570\u636e","Double-click on legend to isolate one trace":"\u53cc\u51fb\u56fe\u4f8b\u6765\u7a81\u663e\u5bf9\u5e94\u8f68\u8ff9","Double-click to zoom back out":"\u53cc\u51fb\u8fd4\u56de\u7f29\u5c0f\u663e\u793a","Download plot as a png":"\u4e0b\u8f7d\u56fe\u8868\u4e3aPNG\u683c\u5f0f","Download plot":"\u4e0b\u8f7d\u56fe\u8868","Edit in Chart Studio":"\u5728Chart Studio\u4e2d\u7f16\u8f91","IE only supports svg. Changing format to svg.":"IE\u53ea\u652f\u6301SVG\u3002\u8f6c\u6362\u683c\u5f0f\u4e3aSVG\u3002","Lasso Select":"\u5957\u7d22\u9009\u62e9","Orbital rotation":"\u8f68\u9053\u65cb\u8f6c",Pan:"\u5e73\u79fb","Produced with Plotly":"\u7531Plotly\u751f\u6210",Reset:"\u91cd\u7f6e","Reset axes":"\u91cd\u7f6e\u8f74","Reset camera to default":"\u91cd\u7f6e\u955c\u5934\u89c6\u89d2\u4e3a\u9ed8\u8ba4\u72b6\u6001","Reset camera to last save":"\u91cd\u7f6e\u955c\u5934\u89c6\u89d2\u4e3a\u4e0a\u6b21\u4fdd\u5b58\u72b6\u6001","Reset view":"\u91cd\u7f6e\u89c6\u56fe","Reset views":"\u91cd\u7f6e\u89c6\u56fe","Show closest data on hover":"\u60ac\u505c\u65f6\u663e\u793a\u6700\u8fd1\u7684\u6570\u636e","Snapshot succeeded":"\u751f\u6210\u5feb\u7167\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u62b1\u6b49\uff0c\u4e0b\u8f7d\u5feb\u7167\u51fa\u73b0\u95ee\u9898\uff01","Taking snapshot - this may take a few seconds":"\u6b63\u5728\u751f\u6210\u5feb\u7167 - \u53ef\u80fd\u9700\u8981\u51e0\u79d2\u949f",Zoom:"\u7f29\u653e","Zoom in":"\u653e\u5927","Zoom out":"\u7f29\u5c0f","close:":"\u5173\u95ed:",trace:"\u8e2a\u8ff9:","lat:":"\u7eac\u5ea6:","lon:":"\u7ecf\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6570:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6570:","source:":"\u6e90:","target:":"\u76ee\u6807:","lower fence:":"\u5185\u4fa7\u680f(lower fence):","upper fence:":"\u5916\u4fa7\u680f(upper fence):","max:":"\u6700\u5927\u503c:","mean \xb1 \u03c3:":"\u5e73\u5747\u6570 \xb1 \u6807\u51c6\u5dee\u03c3:","mean:":"\u5e73\u5747\u6570:","median:":"\u4e2d\u4f4d\u6570:","min:":"\u6700\u5c0f\u503c:","Turntable rotation":"\u65cb\u8f6c\u8f6c\u76d8:","Toggle Spike Lines":"\u5207\u6362\u663e\u793a\u6570\u636e\u70b9\u8f85\u52a9\u7ebf(Spike Lines)","open:":"\u6253\u5f00:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u5207\u6362\u60ac\u505c\u65f6\u663e\u793a\u6700\u8fd1\u7684\u6570\u636e\u70b9","incoming flow count:":"\u6d41\u5165\u6570\u91cf:","outgoing flow count:":"\u6d41\u51fa\u6570\u91cf:","kde:":"kde:","Click to enter radial axis title":"\u70b9\u51fb\u8f93\u5165\u5f84\u5411\u8f74\u6807\u9898","new text":"\u65b0\u5efa\u6587\u672c"},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"zh-CN",dictionary:{Autoscale:"\u81ea\u52a8\u7f29\u653e","Box Select":"\u77e9\u5f62\u6846\u9009","Click to enter Colorscale title":"\u70b9\u51fb\u8f93\u5165\u8272\u9636\u7684\u6807\u9898","Click to enter Component A title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6A\u7684\u6807\u9898","Click to enter Component B title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6B\u7684\u6807\u9898","Click to enter Component C title":"\u70b9\u51fb\u8f93\u5165\u7ec4\u4ef6C\u7684\u6807\u9898","Click to enter Plot title":"\u70b9\u51fb\u8f93\u5165\u56fe\u8868\u7684\u6807\u9898","Click to enter X axis title":"\u70b9\u51fb\u8f93\u5165X\u8f74\u7684\u6807\u9898","Click to enter Y axis title":"\u70b9\u51fb\u8f93\u5165Y\u8f74\u7684\u6807\u9898","Compare data on hover":"\u60ac\u505c\u65f6\u6bd4\u8f83\u6570\u636e","Double-click on legend to isolate one trace":"\u53cc\u51fb\u56fe\u4f8b\u6765\u7a81\u663e\u5bf9\u5e94\u8f68\u8ff9","Double-click to zoom back out":"\u53cc\u51fb\u8fd4\u56de\u7f29\u5c0f\u663e\u793a","Download plot as a PNG":"\u4e0b\u8f7d\u56fe\u8868\u4e3aPNG\u683c\u5f0f","Download plot":"\u4e0b\u8f7d\u56fe\u8868","Edit in Chart Studio":"\u5728Chart Studio\u4e2d\u7f16\u8f91","IE only supports svg. Changing format to svg.":"IE\u53ea\u652f\u6301SVG\u3002\u8f6c\u6362\u683c\u5f0f\u4e3aSVG\u3002","Lasso Select":"\u5957\u7d22\u9009\u62e9","Orbital rotation":"\u8f68\u9053\u65cb\u8f6c",Pan:"\u5e73\u79fb","Produced with Plotly.js":"\u7531Plotly.js\u751f\u6210",Reset:"\u91cd\u7f6e","Reset axes":"\u91cd\u7f6e\u8f74","Reset camera to default":"\u91cd\u7f6e\u955c\u5934\u89c6\u89d2\u4e3a\u9ed8\u8ba4\u72b6\u6001","Reset camera to last save":"\u91cd\u7f6e\u955c\u5934\u89c6\u89d2\u4e3a\u4e0a\u6b21\u4fdd\u5b58\u72b6\u6001","Reset view":"\u91cd\u7f6e\u89c6\u56fe","Reset views":"\u91cd\u7f6e\u89c6\u56fe","Show closest data on hover":"\u60ac\u505c\u65f6\u663e\u793a\u6700\u8fd1\u7684\u6570\u636e","Snapshot succeeded":"\u751f\u6210\u5feb\u7167\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u62b1\u6b49\uff0c\u4e0b\u8f7d\u5feb\u7167\u51fa\u73b0\u95ee\u9898\uff01","Taking snapshot - this may take a few seconds":"\u6b63\u5728\u751f\u6210\u5feb\u7167 - \u53ef\u80fd\u9700\u8981\u51e0\u79d2\u949f",Zoom:"\u7f29\u653e","Zoom in":"\u653e\u5927","Zoom out":"\u7f29\u5c0f","close:":"\u5173\u95ed:",trace:"\u8e2a\u8ff9:","lat:":"\u7eac\u5ea6:","lon:":"\u7ecf\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6570:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6570:","source:":"\u6e90:","target:":"\u76ee\u6807:","lower fence:":"\u5185\u4fa7\u680f(lower fence):","upper fence:":"\u5916\u4fa7\u680f(upper fence):","max:":"\u6700\u5927\u503c:","mean \xb1 \u03c3:":"\u5e73\u5747\u6570 \xb1 \u6807\u51c6\u5dee\u03c3:","mean:":"\u5e73\u5747\u6570:","median:":"\u4e2d\u4f4d\u6570:","min:":"\u6700\u5c0f\u503c:","Turntable rotation":"\u65cb\u8f6c\u8f6c\u76d8:","Toggle Spike Lines":"\u5207\u6362\u663e\u793a\u6570\u636e\u70b9\u8f85\u52a9\u7ebf(Spike Lines)","open:":"\u6253\u5f00:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u5207\u6362\u60ac\u505c\u65f6\u663e\u793a\u6700\u8fd1\u7684\u6570\u636e\u70b9","incoming flow count:":"\u6d41\u5165\u6570\u91cf:","outgoing flow count:":"\u6d41\u51fa\u6570\u91cf:","kde:":"kde:","Click to enter radial axis title":"\u70b9\u51fb\u8f93\u5165\u5f84\u5411\u8f74\u6807\u9898","new text":"\u65b0\u5efa\u6587\u672c"},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-locale-zh-tw.js b/static/js/plotly-locale-zh-tw.js index 042bec2b38..098cee54af 100644 --- a/static/js/plotly-locale-zh-tw.js +++ b/static/js/plotly-locale-zh-tw.js @@ -1 +1 @@ -var locale={moduleType:"locale",name:"zh-TW",dictionary:{},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],date:"%Y/%m/%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file +var locale={moduleType:"locale",name:"zh-TW",dictionary:{Autoscale:"\u81ea\u52d5\u7e2e\u653e","Box Select":"\u77e9\u5f62\u9078\u64c7","Click to enter Colorscale title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u8272\u968e\u6a19\u984c","Click to enter Component A title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 A \u6a19\u984c","Click to enter Component B title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 B \u6a19\u984c","Click to enter Component C title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u5143\u4ef6 C \u6a19\u984c","Click to enter Plot title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u7e6a\u5716\u6a19\u984c","Click to enter X axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165 X \u8ef8\u6a19\u984c","Click to enter Y axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165 Y \u8ef8\u6a19\u984c","Click to enter radial axis title":"\u9ede\u64ca\u4ee5\u8f38\u5165\u8f3b\u5c04\u8ef8\u6a19\u984c","Compare data on hover":"\u6e38\u6a19\u505c\u7559\u6642\u6bd4\u8f03\u8cc7\u6599","Double-click on legend to isolate one trace":"\u96d9\u64ca\u5716\u4f8b\u4ee5\u9694\u96e2\u55ae\u4e00\u8ecc\u8de1","Double-click to zoom back out":"\u96d9\u64ca\u56de\u5fa9\u7e2e\u653e","Download plot as a PNG":"\u4e0b\u8f09\u5716\u8868\u70ba PNG \u5716\u6a94","Download plot":"\u4e0b\u8f09\u5716\u8868","Draw circle":"\u7e6a\u88fd\u5713\u5708","Draw closed freeform":"\u7e6a\u88fd\u5c01\u9589\u7684\u4efb\u610f\u5716\u5f62","Draw line":"\u7e6a\u88fd\u7dda\u689d","Draw open freeform":"\u7e6a\u88fd\u958b\u653e\u7684\u4efb\u610f\u5716\u5f62","Draw rectangle":"\u7e6a\u88fd\u77e9\u5f62","Edit in Chart Studio":"\u65bc Chart Studio \u7de8\u8f2f","Erase active shape":"\u6e05\u9664\u4f5c\u7528\u4e2d\u7684\u5f62\u72c0","IE only supports svg. Changing format to svg.":"IE \u50c5\u652f\u63f4 SVG\uff0c\u5c07\u8b8a\u66f4\u683c\u5f0f\u70ba SVG\u3002","Lasso Select":"\u5957\u7d22\u9078\u64c7","Orbital rotation":"\u8ecc\u9053\u65cb\u8f49",Pan:"\u5e73\u79fb","Produced with Plotly.js":"\u4f7f\u7528 Plotly.js \u88fd\u4f5c",Reset:"\u91cd\u7f6e","Reset axes":"\u91cd\u7f6e\u8ef8","Reset camera to default":"\u91cd\u7f6e\u76f8\u6a5f\u81f3\u9810\u8a2d\u4f4d\u7f6e","Reset camera to last save":"\u91cd\u7f6e\u76f8\u6a5f\u81f3\u4e0a\u6b21\u5132\u5b58\u7684\u4f4d\u7f6e","Reset view":"\u91cd\u7f6e\u8996\u5716","Reset views":"\u91cd\u7f6e\u8996\u5716","Show closest data on hover":"\u6e38\u6a19\u505c\u7559\u6642\u986f\u793a\u6700\u63a5\u8fd1\u7684\u8cc7\u6599","Snapshot succeeded":"\u5feb\u7167\u6210\u529f","Sorry, there was a problem downloading your snapshot!":"\u62b1\u6b49\uff0c\u4e0b\u8f09\u5feb\u7167\u6642\u767c\u751f\u932f\u8aa4!","Taking snapshot - this may take a few seconds":"\u7522\u751f\u5feb\u7167\u4e2d - \u53ef\u80fd\u9700\u8981\u4e00\u9ede\u6642\u9593",Zoom:"\u7e2e\u653e","Zoom in":"\u653e\u5927","Zoom out":"\u7e2e\u5c0f","close:":"\u95dc\u9589:",concentration:"\u96c6\u4e2d",trace:"\u8ecc\u8de1:","lat:":"\u7def\u5ea6:","lon:":"\u7d93\u5ea6:","q1:":"\u7b2c\u4e00\u56db\u5206\u4f4d\u6578:","q3:":"\u7b2c\u4e09\u56db\u5206\u4f4d\u6578:","source:":"\u4f86\u6e90:","target:":"\u76ee\u6a19:","lower fence:":"\u4e0b\u570d\u7c6c\u503c:","upper fence:":"\u4e0a\u570d\u7c6c\u503c:","max:":"\u6700\u5927\u503c:","mean \xb1 \u03c3:":"\u5e73\u5747 \xb1 \u03c3:","mean:":"\u5e73\u5747\u503c:","median:":"\u4e2d\u4f4d\u6578:","min:":"\u6700\u5c0f\u503c:","Turntable rotation":"\u8f49\u76e4\u65cb\u8f49:","Toggle Spike Lines":"\u5207\u63db\u5c16\u5cf0\u7dda","open:":"\u958b\u555f:","high:":"\u9ad8:","low:":"\u4f4e:","Toggle show closest data on hover":"\u5207\u63db\u6ed1\u9f20\u61f8\u505c\u986f\u793a\u6700\u63a5\u8fd1\u7684\u8cc7\u6599","incoming flow count:":"\u50b3\u5165\u6d41\u91cf\u8a08\u6578:","outgoing flow count:":"\u50b3\u51fa\u6d41\u91cf\u8a08\u6578:","kde:":"kde:","new text":"\u65b0\u6587\u672c"},format:{days:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],shortDays:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],shortMonths:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],date:"%Y-%m-%d"}};"undefined"==typeof Plotly?(window.PlotlyLocales=window.PlotlyLocales||[],window.PlotlyLocales.push(locale)):Plotly.register(locale); \ No newline at end of file diff --git a/static/js/plotly-min.js b/static/js/plotly-min.js index 3a3d7b8976..db891b9126 100644 --- a/static/js/plotly-min.js +++ b/static/js/plotly-min.js @@ -1,7 +1,47 @@ /** -* plotly.js (basic - minified) v1.52.2 -* Copyright 2012-2020, Plotly, Inc. +* plotly.js (basic - minified) v3.4.0 +* Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Plotly=t()}}(function(){return function(){return function t(e,r,n){function a(o,l){if(!r[o]){if(!e[o]){var s="function"==typeof require&&require;if(!l&&s)return s(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){return a(e[o][1][t]||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},{"../src/lib":159}],2:[function(t,e,r){"use strict";e.exports=t("../src/traces/bar")},{"../src/traces/bar":261}],3:[function(t,e,r){"use strict";e.exports=t("../src/core")},{"../src/core":141}],4:[function(t,e,r){"use strict";var n=t("./core");n.register([t("./bar"),t("./pie")]),e.exports=n},{"./bar":2,"./core":3,"./pie":5}],5:[function(t,e,r){"use strict";e.exports=t("../src/traces/pie")},{"../src/traces/pie":276}],6:[function(t,e,r){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},i=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var l,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),l=0===c.x}catch(t){l=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,a){var i,o,l;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),l=o[e]):(o=t._events=n(null),t._eventsCount=0),l){if("function"==typeof l?l=o[e]=a?[r,l]:[l,r]:a?l.unshift(r):l.push(r),!l.warned&&(i=u(t))&&i>0&&l.length>i){l.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+l.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=l.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else l=o[e]=r,++t._eventsCount;return t}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e1&&(e=arguments[1]),e instanceof Error)throw e;var s=new Error('Unhandled "error" event. ('+e+")");throw s.context=e,s}if(!(r=o[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,a=v(t,n),i=0;i=0;o--)if(r[o]===e||r[o].listener===e){l=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(var r=e,n=r+1,a=t.length;n=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],7:[function(t,e,r){!function(){var t={version:"3.5.17"},r=[].slice,n=function(t){return r.call(t)},a=this.document;function i(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(a)try{n(a.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(t,e){s.call(this,t,e+"")},l.setAttributeNS=function(t,e,r){c.call(this,t,e,r+"")},u.setProperty=function(t,e,r){f.call(this,t,e+"",r)}}function d(t,e){return te?1:t>=e?0:NaN}function p(t){return null===t?NaN:+t}function h(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=e.length);n>>1;t(e[i],r)<0?n=i+1:a=i}return n},right:function(e,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=e.length);n>>1;t(e[i],r)>0?a=i:n=i+1}return n}}}t.ascending=d,t.descending=function(t,e){return et?1:e>=t?0:NaN},t.min=function(t,e){var r,n,a=-1,i=t.length;if(1===arguments.length){for(;++a=n){r=n;break}for(;++an&&(r=n)}else{for(;++a=n){r=n;break}for(;++an&&(r=n)}return r},t.max=function(t,e){var r,n,a=-1,i=t.length;if(1===arguments.length){for(;++a=n){r=n;break}for(;++ar&&(r=n)}else{for(;++a=n){r=n;break}for(;++ar&&(r=n)}return r},t.extent=function(t,e){var r,n,a,i=-1,o=t.length;if(1===arguments.length){for(;++i=n){r=a=n;break}for(;++in&&(r=n),a=n){r=a=n;break}for(;++in&&(r=n),a1)return o/(s-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var v=g(d);function m(t){return t.length}t.bisectLeft=v.left,t.bisect=t.bisectRight=v.right,t.bisector=function(t){return g(1===t.length?function(e,r){return d(t(e),r)}:t)},t.shuffle=function(t,e,r){(i=arguments.length)<3&&(r=t.length,i<2&&(e=0));for(var n,a,i=r-e;i;)a=Math.random()*i--|0,n=t[i+e],t[i+e]=t[a+e],t[a+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],a=new Array(r<0?0:r);e=0;)for(e=(n=t[a]).length;--e>=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function b(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error("infinite range");var n,a=[],i=function(t){var e=1;for(;t*e%1;)e*=10;return e}(y(r)),o=-1;if(t*=i,e*=i,(r*=i)<0)for(;(n=t+r*++o)>e;)a.push(n/i);else for(;(n=t+r*++o)=a.length)return r?r.call(n,i):e?i.sort(e):i;for(var s,c,u,f,d=-1,p=i.length,h=a[l++],g=new b;++d=a.length)return e;var n=[],o=i[r++];return e.forEach(function(e,a){n.push({key:e,values:t(a,r)})}),o?n.sort(function(t,e){return o(t.key,e.key)}):n}(o(t.map,e,0),0)},n.key=function(t){return a.push(t),n},n.sortKeys=function(t){return i[a.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new O;if(t)for(var r=0,n=t.length;r=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(H,"\\$&")};var H=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,V={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function q(t){return V(t,X),t}var U=function(t,e){return e.querySelector(t)},G=function(t,e){return e.querySelectorAll(t)},Z=function(t,e){var r=t.matches||t[z(t,"matchesSelector")];return(Z=function(t,e){return r.call(t,e)})(t,e)};"function"==typeof Sizzle&&(U=function(t,e){return Sizzle(t,e)[0]||null},G=Sizzle,Z=Sizzle.matchesSelector),t.selection=function(){return t.select(a.documentElement)};var X=t.selection.prototype=[];function Y(t){return"function"==typeof t?t:function(){return U(t,this)}}function W(t){return"function"==typeof t?t:function(){return G(t,this)}}X.select=function(t){var e,r,n,a,i=[];t=Y(t);for(var o=-1,l=this.length;++o=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),Q.hasOwnProperty(r)?{space:Q[r],local:t}:t}},X.attr=function(e,r){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(J(r,e[r]));return this}return this.each(J(e,r))},X.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node(),n=(t=et(t)).length,a=-1;if(e=r.classList){for(;++a=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},X.sort=function(t){t=function(t){arguments.length||(t=d);return function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}.apply(this,arguments);for(var e=-1,r=this.length;++e0&&(e=e.slice(0,o));var s=ht.get(e);function c(){var t=this[i];t&&(this.removeEventListener(e,t,t.$),delete this[i])}return s&&(e=s,l=vt),o?r?function(){var t=l(r,n(arguments));c.call(this),this.addEventListener(e,this[i]=t,t.$=a),t._=r}:c:r?E:function(){var r,n=new RegExp("^__on([^.]+)"+t.requote(e)+"$");for(var a in this)if(r=a.match(n)){var i=this[a];this.removeEventListener(r[1],i,i.$),delete this[a]}}}t.selection.enter=ft,t.selection.enter.prototype=dt,dt.append=X.append,dt.empty=X.empty,dt.node=X.node,dt.call=X.call,dt.size=X.size,dt.select=function(t){for(var e,r,n,a,i,o=[],l=-1,s=this.length;++l=n&&(n=e+1);!(o=l[n])&&++n0?1:t<0?-1:0}function Dt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function zt(t){return t>1?0:t<-1?Mt:Math.acos(t)}function Rt(t){return t>1?St:t<-1?-St:Math.asin(t)}function Et(t){return((t=Math.exp(t))+1/t)/2}function It(t){return(t=Math.sin(t/2))*t}var Ft=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,a=t[0],i=t[1],o=t[2],l=e[0],s=e[1],c=e[2],u=l-a,f=s-i,d=u*u+f*f;if(d0&&(e=e.transition().duration(g)),e.call(w.event)}function L(){c&&c.domain(s.range().map(function(t){return(t-d.x)/d.k}).map(s.invert)),f&&f.domain(u.range().map(function(t){return(t-d.y)/d.k}).map(u.invert))}function S(t){v++||t({type:"zoomstart"})}function C(t){L(),t({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function O(t){--v||(t({type:"zoomend"}),r=null)}function P(){var e=this,r=_.of(e,arguments),n=0,a=t.select(o(e)).on(y,function(){n=1,M(t.mouse(e),i),C(r)}).on(x,function(){a.on(y,null).on(x,null),l(n),O(r)}),i=k(t.mouse(e)),l=xt(e);pl.call(e),S(r)}function D(){var e,r=this,n=_.of(r,arguments),a={},i=0,o=".zoom-"+t.event.changedTouches[0].identifier,s="touchmove"+o,c="touchend"+o,u=[],f=t.select(r),p=xt(r);function h(){var n=t.touches(r);return e=d.k,n.forEach(function(t){t.identifier in a&&(a[t.identifier]=k(t))}),n}function g(){var e=t.event.target;t.select(e).on(s,v).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o1){m=p[0];var x=p[1],b=m[0]-x[0],_=m[1]-x[1];i=b*b+_*_}}function v(){var o,s,c,u,f=t.touches(r);pl.call(r);for(var d=0,p=f.length;d360?t-=360:t<0&&(t+=360),t<60?n+(a-n)*t/60:t<180?a:t<240?n+(a-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+e):r+e-r*e),new ie(i(t+120),i(t),i(t-120))}function Gt(e,r,n){return this instanceof Gt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length<2?e instanceof Gt?new Gt(e.h,e.c,e.l):ee(e instanceof Yt?e.l:(e=de((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Gt(e,r,n)}qt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,this.l/t)},qt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,t*this.l)},qt.rgb=function(){return Ut(this.h,this.s,this.l)},t.hcl=Gt;var Zt=Gt.prototype=new Ht;function Xt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new Yt(r,Math.cos(t*=Ct)*e,Math.sin(t)*e)}function Yt(t,e,r){return this instanceof Yt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof Yt?new Yt(t.l,t.a,t.b):t instanceof Gt?Xt(t.h,t.c,t.l):de((t=ie(t)).r,t.g,t.b):new Yt(t,e,r)}Zt.brighter=function(t){return new Gt(this.h,this.c,Math.min(100,this.l+Wt*(arguments.length?t:1)))},Zt.darker=function(t){return new Gt(this.h,this.c,Math.max(0,this.l-Wt*(arguments.length?t:1)))},Zt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Yt;var Wt=18,$t=.95047,Qt=1,Jt=1.08883,Kt=Yt.prototype=new Ht;function te(t,e,r){var n=(t+16)/116,a=n+e/500,i=n-r/200;return new ie(ae(3.2404542*(a=re(a)*$t)-1.5371385*(n=re(n)*Qt)-.4985314*(i=re(i)*Jt)),ae(-.969266*a+1.8760108*n+.041556*i),ae(.0556434*a-.2040259*n+1.0572252*i))}function ee(t,e,r){return t>0?new Gt(Math.atan2(r,e)*Ot,Math.sqrt(e*e+r*r),t):new Gt(NaN,NaN,t)}function re(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ne(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ae(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ie(t,e,r){return this instanceof ie?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof ie?new ie(t.r,t.g,t.b):ue(""+t,ie,Ut):new ie(t,e,r)}function oe(t){return new ie(t>>16,t>>8&255,255&t)}function le(t){return oe(t)+""}Kt.brighter=function(t){return new Yt(Math.min(100,this.l+Wt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Yt(Math.max(0,this.l-Wt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return te(this.l,this.a,this.b)},t.rgb=ie;var se=ie.prototype=new Ht;function ce(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ue(t,e,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return e(he(a[0]),he(a[1]),he(a[2]))}return(i=ge.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===t.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),e(o,l,s))}function fe(t,e,r){var n,a,i=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=t==o?(e-r)/l+(e0&&s<1?0:n),new Vt(n,a,s)}function de(t,e,r){var n=ne((.4124564*(t=pe(t))+.3575761*(e=pe(e))+.1804375*(r=pe(r)))/$t),a=ne((.2126729*t+.7151522*e+.072175*r)/Qt);return Yt(116*a-16,500*(n-a),200*(a-ne((.0193339*t+.119192*e+.9503041*r)/Jt)))}function pe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}se.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,a=30;return e||r||n?(e&&e=200&&e<300||304===e){try{t=a.call(o,c)}catch(t){return void l.error.call(o,t)}l.load.call(o,t)}else l.error.call(o,c)}return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(e)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var r=t.event;t.event=e;try{l.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+"",o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return a=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}}),o.send=function(t,n,a){if(2===arguments.length&&"function"==typeof n&&(a=n,n=null),c.open(t,e,!0),null==r||"accept"in s||(s.accept=r+",*/*"),c.setRequestHeader)for(var i in s)c.setRequestHeader(i,s[i]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=a&&o.on("error",a).on("load",function(t){a(null,t)}),l.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,l,"on"),null==i?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(i))}ge.forEach(function(t,e){ge.set(t,oe(e))}),t.functor=ve,t.xhr=me(P),t.dsv=function(t,e){var r=new RegExp('["'+t+"\n]"),n=t.charCodeAt(0);function a(t,r,n){arguments.length<3&&(n=r,r=null);var a=ye(t,e,null==r?i:o(r),n);return a.row=function(t){return arguments.length?a.response(null==(r=t)?i:o(t)):r},a}function i(t){return a.parse(t.responseText)}function o(t){return function(e){return a.parse(e.responseText,t)}}function l(e){return e.map(s).join(t)}function s(t){return r.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return a.parse=function(t,e){var r;return a.parseRows(t,function(t,n){if(r)return r(t,n-1);var a=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,r){return e(a(t),r)}:a})},a.parseRows=function(t,e){var r,a,i={},o={},l=[],s=t.length,c=0,u=0;function f(){if(c>=s)return o;if(a)return a=!1,i;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++24?(isFinite(e)&&(clearTimeout(we),we=setTimeout(Me,e)),_e=0):(_e=1,ke(Me))}function Ae(){for(var t=Date.now(),e=xe;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Le(){for(var t,e=xe,r=1/0;e;)e.c?(e.t8?function(t){return t/r}:function(t){return t*r},symbol:t}});function Oe(e){var r=e.decimal,n=e.thousands,a=e.grouping,i=e.currency,o=a&&n?function(t,e){for(var r=t.length,i=[],o=0,l=a[0],s=0;r>0&&l>0&&(s+l+1>e&&(l=Math.max(1,e-s)),i.push(t.substring(r-=l,r+l)),!((s+=l+1)>e));)l=a[o=(o+1)%a.length];return i.reverse().join(n)}:P;return function(e){var n=Pe.exec(e),a=n[1]||" ",l=n[2]||">",s=n[3]||"-",c=n[4]||"",u=n[5],f=+n[6],d=n[7],p=n[8],h=n[9],g=1,v="",m="",y=!1,x=!0;switch(p&&(p=+p.substring(1)),(u||"0"===a&&"="===l)&&(u=a="0",l="="),h){case"n":d=!0,h="g";break;case"%":g=100,m="%",h="f";break;case"p":g=100,m="%",h="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+h.toLowerCase());case"c":x=!1;case"d":y=!0,p=0;break;case"s":g=-1,h="r"}"$"===c&&(v=i[0],m=i[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=De.get(h)||ze;var b=u&&d;return function(e){var n=m;if(y&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(g<0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+m}else e*=g;var _,w,k=(e=h(e,p)).lastIndexOf(".");if(k<0){var T=x?e.lastIndexOf("e"):-1;T<0?(_=e,w=""):(_=e.substring(0,T),w=e.substring(T))}else _=e.substring(0,k),w=r+e.substring(k+1);!u&&d&&(_=o(_,1/0));var M=v.length+_.length+w.length+(b?0:i.length),A=M"===l?A+i+e:"^"===l?A.substring(0,M>>=1)+i+e+A.substring(M):i+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&&(e<0&&(e*=-1),r&&(e=t.round(e,Se(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ce[8+n/3]};var Pe=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,De=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Se(e,r))).toFixed(Math.max(0,Math.min(20,Se(e*(1+1e-15),r))))}});function ze(t){return t+""}var Re=t.time={},Ee=Date;function Ie(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Ie.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Fe.setUTCDate.apply(this._,arguments)},setDay:function(){Fe.setUTCDay.apply(this._,arguments)},setFullYear:function(){Fe.setUTCFullYear.apply(this._,arguments)},setHours:function(){Fe.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Fe.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Fe.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Fe.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Fe.setUTCSeconds.apply(this._,arguments)},setTime:function(){Fe.setTime.apply(this._,arguments)}};var Fe=Date.prototype;function Ne(t,e,r){function n(e){var r=t(e),n=i(r,1);return e-r1)for(;o=c)return-1;if(37===(a=e.charCodeAt(l++))){if(o=e.charAt(l++),!(i=w[o in He?e.charAt(l++):o])||(n=i(t,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(Ee=Ie);return r._=t,e(r)}finally{Ee=Date}}return r.parse=function(t){try{Ee=Ie;var r=e.parse(t);return r&&r._}finally{Ee=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=sr;var d=t.map(),p=Ge(o),h=Ze(o),g=Ge(l),v=Ze(l),m=Ge(s),y=Ze(s),x=Ge(c),b=Ze(c);i.forEach(function(t,e){d.set(t.toLowerCase(),e)});var _={a:function(t){return l[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:u(r),d:function(t,e){return Ue(t.getDate(),e,2)},e:function(t,e){return Ue(t.getDate(),e,2)},H:function(t,e){return Ue(t.getHours(),e,2)},I:function(t,e){return Ue(t.getHours()%12||12,e,2)},j:function(t,e){return Ue(1+Re.dayOfYear(t),e,3)},L:function(t,e){return Ue(t.getMilliseconds(),e,3)},m:function(t,e){return Ue(t.getMonth()+1,e,2)},M:function(t,e){return Ue(t.getMinutes(),e,2)},p:function(t){return i[+(t.getHours()>=12)]},S:function(t,e){return Ue(t.getSeconds(),e,2)},U:function(t,e){return Ue(Re.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ue(Re.mondayOfYear(t),e,2)},x:u(n),X:u(a),y:function(t,e){return Ue(t.getFullYear()%100,e,2)},Y:function(t,e){return Ue(t.getFullYear()%1e4,e,4)},Z:or,"%":function(){return"%"}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=v.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){m.lastIndex=0;var n=m.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:tr,e:tr,H:rr,I:rr,j:er,L:ir,m:Ke,M:nr,p:function(t,e,r){var n=d.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:ar,U:Ye,w:Xe,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Qe,Y:$e,Z:Je,"%":lr};return u}Re.year=Ne(function(t){return(t=Re.day(t)).setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),Re.years=Re.year.range,Re.years.utc=Re.year.utc.range,Re.day=Ne(function(t){var e=new Ee(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),Re.days=Re.day.range,Re.days.utc=Re.day.utc.range,Re.dayOfYear=function(t){var e=Re.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var r=Re[t]=Ne(function(t){return(t=Re.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=Re.year(t).getDay();return Math.floor((Re.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});Re[t+"s"]=r.range,Re[t+"s"].utc=r.utc.range,Re[t+"OfYear"]=function(t){var r=Re.year(t).getDay();return Math.floor((Re.dayOfYear(t)+(r+e)%7)/7)}}),Re.week=Re.sunday,Re.weeks=Re.sunday.range,Re.weeks.utc=Re.sunday.utc.range,Re.weekOfYear=Re.sundayOfYear;var He={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,qe=/^%/;function Ue(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",i=a.length;return n+(i68?1900:2e3),r+a[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function tr(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function er(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function rr(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function nr(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function ar(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function ir(t,e,r){Ve.lastIndex=0;var n=Ve.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function or(t){var e=t.getTimezoneOffset(),r=e>0?"-":"+",n=y(e)/60|0,a=y(e)%60;return r+Ue(n,"0",2)+Ue(a,"0",2)}function lr(t,e,r){qe.lastIndex=0;var n=qe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function sr(t){for(var e=t.length,r=-1;++r=0?1:-1,l=o*i,s=Math.cos(e),c=Math.sin(e),u=a*c,f=n*s+u*Math.cos(l),d=u*o*Math.sin(l);Or.add(Math.atan2(d,f)),r=t,n=s,a=c}Pr.point=function(o,l){Pr.point=i,r=(t=o)*Ct,n=Math.cos(l=(e=l)*Ct/2+Mt/4),a=Math.sin(l)},Pr.lineEnd=function(){i(t,e)}}function zr(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Rr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Er(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Ir(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Fr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Nr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function jr(t){return[Math.atan2(t[1],t[0]),Rt(t[2])]}function Br(t,e){return y(t[0]-e[0])kt?a=90:c<-kt&&(r=-90),f[0]=e,f[1]=n}};function p(t,i){u.push(f=[e=t,n=t]),ia&&(a=i)}function h(t,o){var l=zr([t*Ct,o*Ct]);if(s){var c=Er(s,l),u=Er([c[1],-c[0],0],c);Nr(u),u=jr(u);var f=t-i,d=f>0?1:-1,h=u[0]*Ot*d,g=y(f)>180;if(g^(d*ia&&(a=v);else if(g^(d*i<(h=(h+360)%360-180)&&ha&&(a=o);g?t_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t):n>=e?(tn&&(n=t)):t>i?_(e,t)>_(e,n)&&(n=t):_(t,n)>_(e,n)&&(e=t)}else p(t,o);s=l,i=t}function g(){d.point=h}function v(){f[0]=e,f[1]=n,d.point=p,s=null}function m(t,e){if(s){var r=t-i;c+=y(r)>180?r+(r>0?360:-360):r}else o=t,l=e;Pr.point(t,e),h(t,e)}function x(){Pr.lineStart()}function b(){m(o,l),Pr.lineEnd(),y(c)>kt&&(e=-(n=180)),f[0]=e,f[1]=n,s=null}function _(t,e){return(e-=t)<0?e+360:e}function w(t,e){return t[0]-e[0]}function k(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t_(g[0],g[1])&&(g[1]=p[1]),_(p[0],g[1])>_(g[0],g[1])&&(g[0]=p[0])):l.push(g=p);for(var s,c,p,h=-1/0,g=(o=0,l[c=l.length-1]);o<=c;g=p,++o)p=l[o],(s=_(g[1],p[0]))>h&&(h=s,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,a]]}}(),t.geo.centroid=function(e){xr=br=_r=wr=kr=Tr=Mr=Ar=Lr=Sr=Cr=0,t.geo.stream(e,Hr);var r=Lr,n=Sr,a=Cr,i=r*r+n*n+a*a;return i=0;--l)a.point((f=u[l])[0],f[1]);else n(p.x,p.p.x,-1,a);p=p.p}u=(p=p.o).z,h=!h}while(!p.v);a.lineEnd()}}}function $r(t){if(e=t.length){for(var e,r,n=0,a=t[0];++n=0?1:-1,k=w*_,T=k>Mt,M=h*x;if(Or.add(Math.atan2(M*w*Math.sin(k),g*b+M*Math.cos(k))),i+=T?_+w*At:_,T^d>=r^m>=r){var A=Er(zr(f),zr(t));Nr(A);var L=Er(a,A);Nr(L);var S=(T^_>=0?-1:1)*Rt(L[2]);(n>S||n===S&&(A[0]||A[1]))&&(o+=T^_>=0?1:-1)}if(!v++)break;d=m,h=x,g=b,f=t}}return(i<-kt||i0){for(x||(o.polygonStart(),x=!0),o.lineStart();++i1&&2&e&&r.push(r.pop().concat(r.shift())),l.push(r.filter(Kr))}return u}}function Kr(t){return t.length>1}function tn(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:E,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function en(t,e){return((t=t.x)[0]<0?t[1]-St-kt:St-t[1])-((e=e.x)[0]<0?e[1]-St-kt:St-e[1])}var rn=Jr(Yr,function(t){var e,r=NaN,n=NaN,a=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,o){var l=i>0?Mt:-Mt,s=y(i-r);y(s-Mt)0?St:-St),t.point(a,n),t.lineEnd(),t.lineStart(),t.point(l,n),t.point(i,n),e=0):a!==l&&s>=Mt&&(y(r-a)kt?Math.atan((Math.sin(e)*(i=Math.cos(n))*Math.sin(r)-Math.sin(n)*(a=Math.cos(e))*Math.sin(t))/(a*i*o)):(e+n)/2}(r,n,i,o),t.point(a,n),t.lineEnd(),t.lineStart(),t.point(l,n),e=0),t.point(r=i,n=o),a=l},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}},function(t,e,r,n){var a;if(null==t)a=r*St,n.point(-Mt,a),n.point(0,a),n.point(Mt,a),n.point(Mt,0),n.point(Mt,-a),n.point(0,-a),n.point(-Mt,-a),n.point(-Mt,0),n.point(-Mt,a);else if(y(t[0]-e[0])>kt){var i=t[0]0)){if(i/=d,d<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=r-s,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i0)){if(i/=p,p<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=n-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>u&&(u=i)}else if(p>0){if(i0&&(a.a={x:s+u*d,y:c+u*p}),f<1&&(a.b={x:s+f*d,y:c+f*p}),a}}}}}}var an=1e9;function on(e,r,n,a){return function(s){var c,u,f,d,p,h,g,v,m,y,x,b=s,_=tn(),w=nn(e,r,n,a),k={point:A,lineStart:function(){k.point=L,u&&u.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){c&&(L(d,p),h&&m&&_.rejoin(),c.push(_.buffer()));k.point=A,m&&s.lineEnd()},polygonStart:function(){s=_,c=[],u=[],x=!0},polygonEnd:function(){s=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],a=0;an&&Dt(c,i,t)>0&&++e:i[1]<=n&&Dt(c,i,t)<0&&--e,c=i;return 0!==e}([e,a]),n=x&&r,i=c.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),T(null,null,1,s),s.lineEnd()),i&&Wr(c,o,r,T,s),s.polygonEnd()),c=u=f=null}};function T(t,o,s,c){var u=0,f=0;if(null==t||(u=i(t,s))!==(f=i(o,s))||l(t,o)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?a:r)}while((u=(u+s+4)%4)!==f);else c.point(o[0],o[1])}function M(t,i){return e<=t&&t<=n&&r<=i&&i<=a}function A(t,e){M(t,e)&&s.point(t,e)}function L(t,e){var r=M(t=Math.max(-an,Math.min(an,t)),e=Math.max(-an,Math.min(an,e)));if(u&&f.push([t,e]),y)d=t,p=e,h=r,y=!1,r&&(s.lineStart(),s.point(t,e));else if(r&&m)s.point(t,e);else{var n={a:{x:g,y:v},b:{x:t,y:e}};w(n)?(m||(s.lineStart(),s.point(n.a.x,n.a.y)),s.point(n.b.x,n.b.y),r||s.lineEnd(),x=!1):r&&(s.lineStart(),s.point(t,e),x=!1)}g=t,v=e,m=r}return k};function i(t,a){return y(t[0]-e)0?0:3:y(t[0]-n)0?2:1:y(t[1]-r)0?1:0:a>0?3:2}function o(t,e){return l(t.x,e.x)}function l(t,e){var r=i(t,1),n=i(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function ln(t){var e=0,r=Mt/3,n=Pn(t),a=n(e,r);return a.parallels=function(t){return arguments.length?n(e=t[0]*Mt/180,r=t[1]*Mt/180):[e/Mt*180,r/Mt*180]},a}function sn(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,a=1+r*(2*n-r),i=Math.sqrt(a)/n;function o(t,e){var r=Math.sqrt(a-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),i-r*Math.cos(t)]}return o.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,Rt((a-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,a,i,o={stream:function(t){return a&&(a.valid=!1),(a=i(t)).valid=!0,a},extent:function(l){return arguments.length?(i=on(t=+l[0][0],e=+l[0][1],r=+l[1][0],n=+l[1][1]),a&&(a.valid=!1,a=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return ln(sn)}).raw=sn,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,a,i=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,r){e=[t,r]}};function c(t){var i=t[0],o=t[1];return e=null,r(i,o),e||(n(i,o),e)||a(i,o),e}return c.invert=function(t){var e=i.scale(),r=i.translate(),n=(t[0]-r[0])/e,a=(t[1]-r[1])/e;return(a>=.12&&a<.234&&n>=-.425&&n<-.214?o:a>=.166&&a<.234&&n>=-.214&&n<-.115?l:i).invert(t)},c.stream=function(t){var e=i.stream(t),r=o.stream(t),n=l.stream(t);return{point:function(t,a){e.point(t,a),r.point(t,a),n.point(t,a)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),l.precision(t),c):i.precision()},c.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),l.scale(t),c.translate(i.translate())):i.scale()},c.translate=function(t){if(!arguments.length)return i.translate();var e=i.scale(),u=+t[0],f=+t[1];return r=i.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(s).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(s).point,a=l.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(s).point,c},c.scale(1070)};var cn,un,fn,dn,pn,hn,gn={point:E,lineStart:E,lineEnd:E,polygonStart:function(){un=0,gn.lineStart=vn},polygonEnd:function(){gn.lineStart=gn.lineEnd=gn.point=E,cn+=y(un/2)}};function vn(){var t,e,r,n;function a(t,e){un+=n*t-r*e,r=t,n=e}gn.point=function(i,o){gn.point=a,t=r=i,e=n=o},gn.lineEnd=function(){a(t,e)}}var mn={point:function(t,e){tpn&&(pn=t);ehn&&(hn=e)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E};function yn(){var t=xn(4.5),e=[],r={point:n,lineStart:function(){r.point=a},lineEnd:o,polygonStart:function(){r.lineEnd=l},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=xn(e),r},result:function(){if(e.length){var t=e.join("");return e=[],t}}};function n(r,n){e.push("M",r,",",n,t)}function a(t,n){e.push("M",t,",",n),r.point=i}function i(t,r){e.push("L",t,",",r)}function o(){r.point=n}function l(){e.push("Z")}return r}function xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var bn,_n={point:wn,lineStart:kn,lineEnd:Tn,polygonStart:function(){_n.lineStart=Mn},polygonEnd:function(){_n.point=wn,_n.lineStart=kn,_n.lineEnd=Tn}};function wn(t,e){_r+=t,wr+=e,++kr}function kn(){var t,e;function r(r,n){var a=r-t,i=n-e,o=Math.sqrt(a*a+i*i);Tr+=o*(t+r)/2,Mr+=o*(e+n)/2,Ar+=o,wn(t=r,e=n)}_n.point=function(n,a){_n.point=r,wn(t=n,e=a)}}function Tn(){_n.point=wn}function Mn(){var t,e,r,n;function a(t,e){var a=t-r,i=e-n,o=Math.sqrt(a*a+i*i);Tr+=o*(r+t)/2,Mr+=o*(n+e)/2,Ar+=o,Lr+=(o=n*t-r*e)*(r+t),Sr+=o*(n+e),Cr+=3*o,wn(r=t,n=e)}_n.point=function(i,o){_n.point=a,wn(t=r=i,e=n=o)},_n.lineEnd=function(){a(t,e)}}function An(t){var e=4.5,r={point:n,lineStart:function(){r.point=a},lineEnd:o,polygonStart:function(){r.lineEnd=l},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:E};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,At)}function a(e,n){t.moveTo(e,n),r.point=i}function i(e,r){t.lineTo(e,r)}function o(){r.point=n}function l(){t.closePath()}return r}function Ln(t){var e=.5,r=Math.cos(30*Ct),n=16;function a(e){return(n?function(e){var r,a,o,l,s,c,u,f,d,p,h,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),v.lineStart=_},polygonEnd:function(){e.polygonEnd(),v.lineStart=y}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,v.point=x,e.lineStart()}function x(r,a){var o=zr([r,a]),l=t(r,a);i(f,d,u,p,h,g,f=l[0],d=l[1],u=r,p=o[0],h=o[1],g=o[2],n,e),e.point(f,d)}function b(){v.point=m,e.lineEnd()}function _(){y(),v.point=w,v.lineEnd=k}function w(t,e){x(r=t,e),a=f,o=d,l=p,s=h,c=g,v.point=x}function k(){i(f,d,u,p,h,g,a,o,r,l,s,c,n,e),v.lineEnd=b,b()}return v}:function(e){return Cn(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})})(e)}function i(n,a,o,l,s,c,u,f,d,p,h,g,v,m){var x=u-n,b=f-a,_=x*x+b*b;if(_>4*e&&v--){var w=l+p,k=s+h,T=c+g,M=Math.sqrt(w*w+k*k+T*T),A=Math.asin(T/=M),L=y(y(T)-1)e||y((x*P+b*D)/_-.5)>.3||l*p+s*h+c*g0&&16,a):Math.sqrt(e)},a}function Sn(t){this.stream=t}function Cn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function On(t){return Pn(function(){return t})()}function Pn(e){var r,n,a,i,o,l,s=Ln(function(t,e){return[(t=r(t,e))[0]*c+i,o-t[1]*c]}),c=150,u=480,f=250,d=0,p=0,h=0,g=0,v=0,m=rn,x=P,b=null,_=null;function w(t){return[(t=a(t[0]*Ct,t[1]*Ct))[0]*c+i,o-t[1]*c]}function k(t){return(t=a.invert((t[0]-i)/c,(o-t[1])/c))&&[t[0]*Ot,t[1]*Ot]}function T(){a=Xr(n=En(h,g,v),r);var t=r(d,p);return i=u-t[0]*c,o=f+t[1]*c,M()}function M(){return l&&(l.valid=!1,l=null),w}return w.stream=function(t){return l&&(l.valid=!1),(l=Dn(m(n,s(x(t))))).valid=!0,l},w.clipAngle=function(t){return arguments.length?(m=null==t?(b=t,rn):function(t){var e=Math.cos(t),r=e>0,n=y(e)>kt;return Jr(a,function(t){var e,l,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(f,d){var p,h=[f,d],g=a(f,d),v=r?g?0:o(f,d):g?o(f+(f<0?Mt:-Mt),d):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(p=i(e,h),(Br(e,p)||Br(h,p))&&(h[0]+=kt,h[1]+=kt,g=a(h[0],h[1]))),g!==s)u=0,g?(t.lineStart(),p=i(h,e),t.point(p[0],p[1])):(p=i(e,h),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&&e&&r^g){var m;v&l||!(m=i(h,e,!0))||(u=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Br(e,h)||t.point(h[0],h[1]),e=h,s=g,l=v},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return u|(c&&s)<<1}}},jn(t,6*Ct),r?[0,-t]:[-Mt,t-Mt]);function a(t,r){return Math.cos(t)*Math.cos(r)>e}function i(t,r,n){var a=[1,0,0],i=Er(zr(t),zr(r)),o=Rr(i,i),l=i[0],s=o-l*l;if(!s)return!n&&t;var c=e*o/s,u=-e*l/s,f=Er(a,i),d=Fr(a,c);Ir(d,Fr(i,u));var p=f,h=Rr(d,p),g=Rr(p,p),v=h*h-g*(Rr(d,d)-1);if(!(v<0)){var m=Math.sqrt(v),x=Fr(p,(-h-m)/g);if(Ir(x,d),x=jr(x),!n)return x;var b,_=t[0],w=r[0],k=t[1],T=r[1];w<_&&(b=_,_=w,w=b);var M=w-_,A=y(M-Mt)0^x[1]<(y(x[0]-_)Mt^(_<=x[0]&&x[0]<=w)){var L=Fr(p,(-h+m)/g);return Ir(L,d),[x,jr(L)]}}}function o(e,n){var a=r?t:Mt-t,i=0;return e<-a?i|=1:e>a&&(i|=2),n<-a?i|=4:n>a&&(i|=8),i}}((b=+t)*Ct),M()):b},w.clipExtent=function(t){return arguments.length?(_=t,x=t?on(t[0][0],t[0][1],t[1][0],t[1][1]):P,M()):_},w.scale=function(t){return arguments.length?(c=+t,T()):c},w.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},w.center=function(t){return arguments.length?(d=t[0]%360*Ct,p=t[1]%360*Ct,T()):[d*Ot,p*Ot]},w.rotate=function(t){return arguments.length?(h=t[0]%360*Ct,g=t[1]%360*Ct,v=t.length>2?t[2]%360*Ct:0,T()):[h*Ot,g*Ot,v*Ot]},t.rebind(w,s,"precision"),function(){return r=e.apply(this,arguments),w.invert=r.invert&&k,T()}}function Dn(t){return Cn(t,function(e,r){t.point(e*Ct,r*Ct)})}function zn(t,e){return[t,e]}function Rn(t,e){return[t>Mt?t-At:t<-Mt?t+At:t,e]}function En(t,e,r){return t?e||r?Xr(Fn(t),Nn(e,r)):Fn(t):e||r?Nn(e,r):Rn}function In(t){return function(e,r){return[(e+=t)>Mt?e-At:e<-Mt?e+At:e,r]}}function Fn(t){var e=In(t);return e.invert=In(-t),e}function Nn(t,e){var r=Math.cos(t),n=Math.sin(t),a=Math.cos(e),i=Math.sin(e);function o(t,e){var o=Math.cos(e),l=Math.cos(t)*o,s=Math.sin(t)*o,c=Math.sin(e),u=c*r+l*n;return[Math.atan2(s*a-u*i,l*r-c*n),Rt(u*a+s*i)]}return o.invert=function(t,e){var o=Math.cos(e),l=Math.cos(t)*o,s=Math.sin(t)*o,c=Math.sin(e),u=c*a-s*i;return[Math.atan2(s*a+c*i,l*r+u*n),Rt(u*r-l*n)]},o}function jn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(a,i,o,l){var s=o*e;null!=a?(a=Bn(r,a),i=Bn(r,i),(o>0?ai)&&(a+=o*At)):(a=t+o*At,i=t-.5*s);for(var c,u=a;o>0?u>i:u2?t[2]*Ct:0),e.invert=function(e){return(e=t.invert(e[0]*Ct,e[1]*Ct))[0]*=Ot,e[1]*=Ot,e},e},Rn.invert=zn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function a(){var t="function"==typeof r?r.apply(this,arguments):r,n=En(-t[0]*Ct,-t[1]*Ct,0).invert,a=[];return e(null,null,1,{point:function(t,e){a.push(t=n(t,e)),t[0]*=Ot,t[1]*=Ot}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(t){return arguments.length?(r=t,a):r},a.angle=function(r){return arguments.length?(e=jn((t=+r)*Ct,n*Ct),a):t},a.precision=function(r){return arguments.length?(e=jn(t*Ct,(n=+r)*Ct),a):n},a.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Ct,a=t[1]*Ct,i=e[1]*Ct,o=Math.sin(n),l=Math.cos(n),s=Math.sin(a),c=Math.cos(a),u=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-s*f*l)*r),s*u+c*f*l)},t.geo.graticule=function(){var e,r,n,a,i,o,l,s,c,u,f,d,p=10,h=p,g=90,v=360,m=2.5;function x(){return{type:"MultiLineString",coordinates:b()}}function b(){return t.range(Math.ceil(a/g)*g,n,g).map(f).concat(t.range(Math.ceil(s/v)*v,l,v).map(d)).concat(t.range(Math.ceil(r/p)*p,e,p).filter(function(t){return y(t%g)>kt}).map(c)).concat(t.range(Math.ceil(o/h)*h,i,h).filter(function(t){return y(t%v)>kt}).map(u))}return x.lines=function(){return b().map(function(t){return{type:"LineString",coordinates:t}})},x.outline=function(){return{type:"Polygon",coordinates:[f(a).concat(d(l).slice(1),f(n).reverse().slice(1),d(s).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(a=+t[0][0],n=+t[1][0],s=+t[0][1],l=+t[1][1],a>n&&(t=a,a=n,n=t),s>l&&(t=s,s=l,l=t),x.precision(m)):[[a,s],[n,l]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],i=+t[1][1],r>e&&(t=r,r=e,e=t),o>i&&(t=o,o=i,i=t),x.precision(m)):[[r,o],[e,i]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],x):[g,v]},x.minorStep=function(t){return arguments.length?(p=+t[0],h=+t[1],x):[p,h]},x.precision=function(t){return arguments.length?(m=+t,c=Hn(o,i,90),u=Vn(r,e,m),f=Hn(s,l,90),d=Vn(a,n,m),x):m},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=qn,a=Un;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),r||a.apply(this,arguments)]}}return i.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||a.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,i):n},i.target=function(t){return arguments.length?(a=t,r="function"==typeof t?null:t,i):a},i.precision=function(){return arguments.length?i:0},i},t.geo.interpolate=function(t,e){return r=t[0]*Ct,n=t[1]*Ct,a=e[0]*Ct,i=e[1]*Ct,o=Math.cos(n),l=Math.sin(n),s=Math.cos(i),c=Math.sin(i),u=o*Math.cos(r),f=o*Math.sin(r),d=s*Math.cos(a),p=s*Math.sin(a),h=2*Math.asin(Math.sqrt(It(i-n)+o*s*It(a-r))),g=1/Math.sin(h),(v=h?function(t){var e=Math.sin(t*=h)*g,r=Math.sin(h-t)*g,n=r*u+e*d,a=r*f+e*p,i=r*l+e*c;return[Math.atan2(a,n)*Ot,Math.atan2(i,Math.sqrt(n*n+a*a))*Ot]}:function(){return[r*Ot,n*Ot]}).distance=h,v;var r,n,a,i,o,l,s,c,u,f,d,p,h,g,v},t.geo.length=function(e){return bn=0,t.geo.stream(e,Gn),bn};var Gn={sphere:E,point:E,lineStart:function(){var t,e,r;function n(n,a){var i=Math.sin(a*=Ct),o=Math.cos(a),l=y((n*=Ct)-t),s=Math.cos(l);bn+=Math.atan2(Math.sqrt((l=o*Math.sin(l))*l+(l=r*i-e*o*s)*l),e*i+r*o*s),t=n,e=i,r=o}Gn.point=function(a,i){t=a*Ct,e=Math.sin(i*=Ct),r=Math.cos(i),Gn.point=n},Gn.lineEnd=function(){Gn.point=Gn.lineEnd=E}},lineEnd:E,polygonStart:E,polygonEnd:E};function Zn(t,e){function r(e,r){var n=Math.cos(e),a=Math.cos(r),i=t(n*a);return[i*a*Math.sin(e),i*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),a=e(n),i=Math.sin(a),o=Math.cos(a);return[Math.atan2(t*i,n*o),Math.asin(n&&r*i/n)]},r}var Xn=Zn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(t.geo.azimuthalEqualArea=function(){return On(Xn)}).raw=Xn;var Yn=Zn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},P);function Wn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(Mt/4+t/2)},a=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),i=r*Math.pow(n(t),a)/a;if(!a)return Jn;function o(t,e){i>0?e<-St+kt&&(e=-St+kt):e>St-kt&&(e=St-kt);var r=i/Math.pow(n(e),a);return[r*Math.sin(a*t),i-r*Math.cos(a*t)]}return o.invert=function(t,e){var r=i-e,n=Pt(a)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/a,2*Math.atan(Math.pow(i/n,1/a))-St]},o}function $n(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),a=r/n+t;if(y(n)1&&Dt(t[r[n-2]],t[r[n-1]],t[a])<=0;)--n;r[n++]=a}return r.slice(0,n)}function oa(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return On(ea)}).raw=ea,ra.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-St]},(t.geo.transverseMercator=function(){var t=Kn(ra),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ra,t.geom={},t.geom.hull=function(t){var e=na,r=aa;if(arguments.length)return n(t);function n(t){if(t.length<3)return[];var n,a=ve(e),i=ve(r),o=t.length,l=[],s=[];for(n=0;n=0;--n)p.push(t[l[c[n]][2]]);for(n=+f;nkt)l=l.L;else{if(!((a=i-Ta(l,o))>kt)){n>-kt?(e=l.P,r=l):a>-kt?(e=l,r=l.N):e=r=l;break}if(!l.R){e=l;break}l=l.R}var s=xa(t);if(pa.insert(e,s),e||r){if(e===r)return Ca(e),r=xa(e.site),pa.insert(s,r),s.edge=r.edge=Da(e.site,s.site),Sa(e),void Sa(r);if(r){Ca(e),Ca(r);var c=e.site,u=c.x,f=c.y,d=t.x-u,p=t.y-f,h=r.site,g=h.x-u,v=h.y-f,m=2*(d*v-p*g),y=d*d+p*p,x=g*g+v*v,b={x:(v*y-p*x)/m+u,y:(d*x-g*y)/m+f};za(r.edge,c,h,b),s.edge=Da(c,t,null,b),r.edge=Da(t,h,null,b),Sa(e),Sa(r)}else s.edge=Da(e.site,s.site)}}function ka(t,e){var r=t.site,n=r.x,a=r.y,i=a-e;if(!i)return n;var o=t.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,c=s-e;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function Ta(t,e){var r=t.N;if(r)return ka(r,e);var n=t.site;return n.y===e?n.x:1/0}function Ma(t){this.site=t,this.edges=[]}function Aa(t,e){return e.angle-t.angle}function La(){Ia(this),this.x=this.y=this.arc=this.site=this.cy=null}function Sa(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,a=t.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=2*(s*(v=i.y-l)-c*u);if(!(f>=-Tt)){var d=s*s+c*c,p=u*u+v*v,h=(v*d-c*p)/f,g=(s*p-u*d)/f,v=g+l,m=ma.pop()||new La;m.arc=t,m.site=a,m.x=h+o,m.y=v+Math.sqrt(h*h+g*g),m.cy=v,t.circle=m;for(var y=null,x=ga._;x;)if(m.y=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:v,y:s};r={x:v,y:c}}else{if(i){if(i.y1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.xkt||y(a-r)>kt)&&(l.splice(o,0,new Ra((m=i.site,x=u,b=y(n-f)kt?{x:f,y:y(e-f)kt?{x:y(r-h)kt?{x:d,y:y(e-d)kt?{x:y(r-p)=r&&c.x<=a&&c.y>=n&&c.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=t[l]}),e}function l(t){return t.map(function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(a(t,e)/kt)*kt,i:e}})}return o.links=function(t){return Ba(l(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},o.triangles=function(t){var e=[];return Ba(l(t)).cells.forEach(function(r,n){for(var a,i,o,l,s=r.site,c=r.edges.sort(Aa),u=-1,f=c.length,d=c[f-1].edge,p=d.l===s?d.r:d.l;++ui&&(a=e.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:Xa(r,n)})),i=$a.lastIndex;return ig&&(g=s.x),s.y>v&&(v=s.y),c.push(s.x),u.push(s.y);else for(f=0;fg&&(g=b),_>v&&(v=_),c.push(b),u.push(_)}var w=g-p,k=v-h;function T(t,e,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var s=t.x,c=t.y;if(null!=s)if(y(s-r)+y(c-n)<.01)M(t,e,r,n,a,i,o,l);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,s,c,a,i,o,l),M(t,e,r,n,a,i,o,l)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,a,i,o,l)}function M(t,e,r,n,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=r>=s,f=n>=c,d=f<<1|u;t.leaf=!1,u?a=s:o=s,f?i=c:l=c,T(t=t.nodes[d]||(t.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,a,i,o,l)}w>k?v=h+w:g=p+k;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){T(A,t,+m(t,++f),+x(t,f),p,h,g,v)}};if(A.visit=function(t){!function t(e,r,n,a,i,o){if(!e(r,n,a,i,o)){var l=.5*(n+i),s=.5*(a+o),c=r.nodes;c[0]&&t(e,c[0],n,a,l,s),c[1]&&t(e,c[1],l,a,i,s),c[2]&&t(e,c[2],n,s,l,o),c[3]&&t(e,c[3],l,s,i,o)}}(t,A,p,h,g,v)},A.find=function(t){return function(t,e,r,n,a,i,o){var l,s=1/0;return function t(c,u,f,d,p){if(!(u>i||f>o||d=_)<<1|e>=b,k=w+4;w=0&&!(n=t.interpolators[a](e,r)););return n}function Ja(t,e){var r,n=[],a=[],i=t.length,o=e.length,l=Math.min(t.length,e.length);for(r=0;r=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function li(t){return 1-Math.cos(t*St)}function si(t){return Math.pow(2,10*(t-1))}function ci(t){return 1-Math.sqrt(1-t*t)}function ui(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function fi(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function di(t){var e,r,n,a=[t.a,t.b],i=[t.c,t.d],o=hi(a),l=pi(a,i),s=hi(((e=i)[0]+=(n=-l)*(r=a)[0],e[1]+=n*r[1],e))||0;a[0]*i[1]=0?t.slice(0,n):t,i=n>=0?t.slice(n+1):"in";return a=ti.get(a)||Ka,i=ei.get(i)||P,e=i(a.apply(null,r.call(arguments,1))),function(t){return t<=0?0:t>=1?1:e(t)}},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,a=e.c,i=e.l,o=r.h-n,l=r.c-a,s=r.l-i;isNaN(l)&&(l=0,a=isNaN(a)?r.c:a);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Xt(n+o*t,a+l*t,i+s*t)+""}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,a=e.s,i=e.l,o=r.h-n,l=r.s-a,s=r.l-i;isNaN(l)&&(l=0,a=isNaN(a)?r.s:a);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360);return function(t){return Ut(n+o*t,a+l*t,i+s*t)+""}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,a=e.a,i=e.b,o=r.l-n,l=r.a-a,s=r.b-i;return function(t){return te(n+o*t,a+l*t,i+s*t)+""}},t.interpolateRound=fi,t.transform=function(e){var r=a.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(t){if(null!=t){r.setAttribute("transform",t);var e=r.transform.baseVal.consolidate()}return new di(e?e.matrix:gi)})(e)},di.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var gi={a:1,b:0,c:0,d:1,e:0,f:0};function vi(t){return t.length?t.pop()+",":""}function mi(e,r){var n=[],a=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:Xa(t[0],e[0])},{i:a-2,x:Xa(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}(e.translate,r.translate,n,a),function(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(vi(r)+"rotate(",null,")")-2,x:Xa(t,e)})):e&&r.push(vi(r)+"rotate("+e+")")}(e.rotate,r.rotate,n,a),function(t,e,r,n){t!==e?n.push({i:r.push(vi(r)+"skewX(",null,")")-2,x:Xa(t,e)}):e&&r.push(vi(r)+"skewX("+e+")")}(e.skew,r.skew,n,a),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var a=r.push(vi(r)+"scale(",null,",",null,")");n.push({i:a-4,x:Xa(t[0],e[0])},{i:a-2,x:Xa(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(vi(r)+"scale("+e+")")}(e.scale,r.scale,n,a),e=r=null,function(t){for(var e,r=-1,i=a.length;++r0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=Te(l.tick)),l):n},l.start=function(){var t,e,r,n=m.length,s=y.length,u=c[0],h=c[1];for(t=0;t=0;)r.push(a[n])}function Pi(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(i=t.children)&&(a=i.length))for(var a,i,o=-1;++o=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return Pi(a,function(e){var n,a;t&&(n=e.children)&&n.sort(t),r&&(a=e.parent)&&(a.value+=e.value)}),l}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(Oi(t,function(t){t.children&&(t.value=0)}),Pi(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var a=e.call(this,t,n);return function t(e,r,n,a){var i=e.children;if(e.x=r,e.y=e.depth*a,e.dx=n,e.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(n=e.value?n/e.value:0;++cl&&(l=n),o.push(n)}for(r=0;ra&&(n=r,a=e);return n}function Gi(t){return t.reduce(Zi,0)}function Zi(t,e){return t+e[1]}function Xi(t,e){return Yi(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Yi(t,e){for(var r=-1,n=+t[0],a=(t[1]-n)/e,i=[];++r<=e;)i[r]=a*r+n;return i}function Wi(e){return[t.min(e),t.max(e)]}function $i(t,e){return t.value-e.value}function Qi(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function Ji(t,e){t._pack_next=e,e._pack_prev=t}function Ki(t,e){var r=e.x-t.x,n=e.y-t.y,a=t.r+e.r;return.999*a*a>r*r+n*n}function to(t){if((e=t.children)&&(s=e.length)){var e,r,n,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(e.forEach(eo),(r=e[0]).x=-r.r,r.y=0,x(r),s>1&&((n=e[1]).x=n.r,n.y=0,x(n),s>2))for(no(r,n,a=e[2]),x(a),Qi(r,a),r._pack_prev=a,Qi(a,n),n=r._pack_next,i=3;i0)for(o=-1;++o=f[0]&&s<=f[1]&&((l=c[t.bisect(d,s,1,h)-1]).y+=g,l.push(i[o]));return c}return i.value=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=ve(t),i):n},i.bins=function(t){return arguments.length?(a="number"==typeof t?function(e){return Yi(e,t)}:ve(t),i):a},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($i),n=0,a=[1,1];function i(t,i){var o=r.call(this,t,i),l=o[0],s=a[0],c=a[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(l.x=l.y=0,Pi(l,function(t){t.r=+u(t.value)}),Pi(l,to),n){var f=n*(e?1:Math.max(2*l.r/s,2*l.r/c))/2;Pi(l,function(t){t.r+=f}),Pi(l,to),Pi(l,function(t){t.r-=f})}return function t(e,r,n,a){var i=e.children;e.x=r+=a*e.x;e.y=n+=a*e.y;e.r*=a;if(i)for(var o=-1,l=i.length;++op.x&&(p=t),t.depth>h.depth&&(h=t)});var g=r(d,p)/2-d.x,v=n[0]/(p.x+r(p,d)/2+g),m=n[1]/(h.depth||1);Oi(u,function(t){t.x=(t.x+g)*v,t.y=t.depth*m})}return c}function o(t){var e=t.children,n=t.parent.children,a=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,a=t.children,i=a.length;for(;--i>=0;)(e=a[i]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var i=(e[0].z+e[e.length-1].z)/2;a?(t.z=a.z+r(t._,a._),t.m=t.z-i):t.z=i}else a&&(t.z=a.z+r(t._,a._));t.parent.A=function(t,e,n){if(e){for(var a,i=t,o=t,l=e,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=oo(l),i=io(i),l&&i;)s=io(s),(o=oo(o)).a=t,(a=l.z+f-i.z-c+r(l._,i._))>0&&(lo(so(l,t,n),t,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!oo(o)&&(o.t=l,o.m+=f-u),i&&!io(s)&&(s.t=i,s.m+=c-d,n=t)}return n}(t,a,t.parent.A||n[0])}function l(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=n[0],t.y=t.depth*n[1]}return i.separation=function(t){return arguments.length?(r=t,i):r},i.size=function(t){return arguments.length?(a=null==(n=t)?s:null,i):a?null:n},i.nodeSize=function(t){return arguments.length?(a=null==(n=t)?null:s,i):a?n:null},Ci(i,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=ao,n=[1,1],a=!1;function i(i,o){var l,s=e.call(this,i,o),c=s[0],u=0;Pi(c,function(e){var n=e.children;n&&n.length?(e.x=function(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}(n),e.y=function(e){return 1+t.max(e,function(t){return t.y})}(n)):(e.x=l?u+=r(e,l):0,e.y=0,l=e)});var f=function t(e){var r=e.children;return r&&r.length?t(r[0]):e}(c),d=function t(e){var r,n=e.children;return n&&(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,d)/2,h=d.x+r(d,f)/2;return Pi(c,a?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(h-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),s}return i.separation=function(t){return arguments.length?(r=t,i):r},i.size=function(t){return arguments.length?(a=null==(n=t),i):a?null:n},i.nodeSize=function(t){return arguments.length?(a=null!=(n=t),i):a?n:null},Ci(i,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,a=[1,1],i=null,o=co,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,a=-1,i=t.length;++a0;)l.push(r=c[a-1]),l.area+=r.area,"squarify"!==s||(n=p(l,g))<=d?(c.pop(),d=n):(l.area-=l.pop().area,h(l,g,i,!1),g=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(h(l,g,i,!0),l.length=l.area=0),e.forEach(f)}}function d(t){var e=t.children;if(e&&e.length){var r,n=o(t),a=e.slice(),i=[];for(u(a,n.dx*n.dy/t.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(h(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);e.forEach(d)}}function p(t,e){for(var r,n=t.area,a=0,i=1/0,o=-1,l=t.length;++oa&&(a=r));return e*=e,(n*=n)?Math.max(e*a*c/n,n/(e*i*c)):1/0}function h(t,e,r,a){var i,o=-1,l=t.length,s=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((a||u>r.dy)&&(u=r.dy);++or.dx)&&(u=r.dx);++o1);return t+e*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r2?yo:ho,l=a?xi:yi;return i=t(e,r,l,n),o=t(r,e,l,Qa),s}function s(t){return i(t)}s.invert=function(t){return o(t)};s.domain=function(t){return arguments.length?(e=t.map(Number),l()):e};s.range=function(t){return arguments.length?(r=t,l()):r};s.rangeRound=function(t){return s.range(t).interpolate(fi)};s.clamp=function(t){return arguments.length?(a=t,l()):a};s.interpolate=function(t){return arguments.length?(n=t,l()):n};s.ticks=function(t){return wo(e,t)};s.tickFormat=function(t,r){return ko(e,t,r)};s.nice=function(t){return bo(e,t),l()};s.copy=function(){return t(e,r,n,a)};return l()}([0,1],[0,1],Qa,!1)};var To={s:1,g:1,p:1,r:1,e:1};function Mo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,a,i){function o(t){return(a?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function l(t){return a?Math.pow(n,t):-Math.pow(n,-t)}function s(t){return r(o(t))}s.invert=function(t){return l(r.invert(t))};s.domain=function(t){return arguments.length?(a=t[0]>=0,r.domain((i=t.map(Number)).map(o)),s):i};s.base=function(t){return arguments.length?(n=+t,r.domain(i.map(o)),s):n};s.nice=function(){var t=go(i.map(o),a?Math:Lo);return r.domain(t),i=t.map(l),s};s.ticks=function(){var t=fo(i),e=[],r=t[0],s=t[1],c=Math.floor(o(r)),u=Math.ceil(o(s)),f=n%1?2:n;if(isFinite(u-c)){if(a){for(;c0;d--)e.push(l(c)*d);for(c=0;e[c]s;u--);e=e.slice(c,u)}return e};s.tickFormat=function(e,r){if(!arguments.length)return Ao;arguments.length<2?r=Ao:"function"!=typeof r&&(r=t.format(r));var a=Math.max(1,n*e/s.ticks().length);return function(t){var e=t/l(Math.round(o(t)));return e*n0?a[t-1]:r[0],tf?0:1;if(c=Lt)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,g,v,m,y,x,b,_,w,k,T,M,A=0,L=0,S=[];if((m=(+o.apply(this,arguments)||0)/2)&&(v=n===Ro?Math.sqrt(l*l+c*c):+n.apply(this,arguments),p||(L*=-1),c&&(L=Rt(v/c*Math.sin(m))),l&&(A=Rt(v/l*Math.sin(m)))),c){y=c*Math.cos(u+L),x=c*Math.sin(u+L),b=c*Math.cos(f-L),_=c*Math.sin(f-L);var C=Math.abs(f-u-2*L)<=Mt?0:1;if(L&&Bo(y,x,b,_)===p^C){var O=(u+f)/2;y=c*Math.cos(O),x=c*Math.sin(O),b=_=null}}else y=x=0;if(l){w=l*Math.cos(f-A),k=l*Math.sin(f-A),T=l*Math.cos(u+A),M=l*Math.sin(u+A);var P=Math.abs(u-f+2*A)<=Mt?0:1;if(A&&Bo(w,k,T,M)===1-p^P){var D=(u+f)/2;w=l*Math.cos(D),k=l*Math.sin(D),T=M=null}}else w=k=0;if(d>kt&&(h=Math.min(Math.abs(c-l)/2,+r.apply(this,arguments)))>.001){g=l0?0:1}function Ho(t,e,r,n,a){var i=t[0]-e[0],o=t[1]-e[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=t[0]+s,f=t[1]+c,d=e[0]+s,p=e[1]+c,h=(u+d)/2,g=(f+p)/2,v=d-u,m=p-f,y=v*v+m*m,x=r-n,b=u*p-d*f,_=(m<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*m-v*_)/y,k=(-b*v-m*_)/y,T=(b*m+v*_)/y,M=(-b*v+m*_)/y,A=w-h,L=k-g,S=T-h,C=M-g;return A*A+L*L>S*S+C*C&&(w=T,k=M),[[w-s,k-c],[w*r/x,k*r/x]]}function Vo(t){var e=na,r=aa,n=Yr,a=Uo,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=ve(e),p=ve(r);function h(){s.push("M",a(t(c),o))}for(;++u1&&a.push("H",n[0]);return a.join("")},"step-before":Zo,"step-after":Xo,basis:$o,"basis-open":function(t){if(t.length<4)return Uo(t);var e,r=[],n=-1,a=t.length,i=[0],o=[0];for(;++n<3;)e=t[n],i.push(e[0]),o.push(e[1]);r.push(Qo(tl,i)+","+Qo(tl,o)),--n;for(;++n9&&(a=3*e/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n));l=-1;for(;++l<=s;)a=(t[Math.min(s,l+1)][0]-t[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(t))}});function Uo(t){return t.length>1?t.join("L"):t+"Z"}function Go(t){return t.join("L")+"Z"}function Zo(t){for(var e=0,r=t.length,n=t[0],a=[n[0],",",n[1]];++e1){l=e[1],i=t[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;cMt)+",1 "+e}function s(t,e,r,n){return"Q 0,0 "+n}return i.radius=function(t){return arguments.length?(r=ve(t),i):r},i.source=function(e){return arguments.length?(t=ve(e),i):t},i.target=function(t){return arguments.length?(e=ve(t),i):e},i.startAngle=function(t){return arguments.length?(n=ve(t),i):n},i.endAngle=function(t){return arguments.length?(a=ve(t),i):a},i},t.svg.diagonal=function(){var t=qn,e=Un,r=ol;function n(n,a){var i=t.call(this,n,a),o=e.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(e){return arguments.length?(t=ve(e),n):t},n.target=function(t){return arguments.length?(e=ve(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=ol,n=e.projection;return e.projection=function(t){return arguments.length?n(function(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-St;return[r*Math.cos(n),r*Math.sin(n)]}}(r=t)):r},e},t.svg.symbol=function(){var t=sl,e=ll;function r(r,n){return(ul.get(t.call(this,r,n))||cl)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ve(e),r):t},r.size=function(t){return arguments.length?(e=ve(t),r):e},r};var ul=t.map({circle:cl,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*dl)),r=e*dl;return"M0,"+-e+"L"+r+",0 0,"+e+" "+-r+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/fl),r=e*fl/2;return"M0,"+r+"L"+e+","+-r+" "+-e+","+-r+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/fl),r=e*fl/2;return"M0,"+-r+"L"+e+","+r+" "+-e+","+r+"Z"}});t.svg.symbolTypes=ul.keys();var fl=Math.sqrt(3),dl=Math.tan(30*Ct);X.transition=function(t){for(var e,r,n=vl||++xl,a=wl(t),i=[],o=ml||{time:Date.now(),ease:oi,delay:0,duration:250},l=-1,s=this.length;++l0;)c[--d].call(t,o);if(i>=1)return f.event&&f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(i=a.time,o=Te(function(t){var e=f.delay;if(o.t=e+i,e<=t)return d(t-e);o.c=d},0,i),f=u[n]={tween:new b,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:e},a=null,++u.count)}yl.call=X.call,yl.empty=X.empty,yl.node=X.node,yl.size=X.size,t.transition=function(e,r){return e&&e.transition?vl?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=yl,yl.select=function(t){var e,r,n,a=this.id,i=this.namespace,o=[];t=Y(t);for(var l=-1,s=this.length;++lrect,.s>rect").attr("width",l[1]-l[0])}function g(t){t.select(".extent").attr("y",s[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function v(){var f,v,m=this,y=t.select(t.event.target),x=n.of(m,arguments),b=t.select(m),_=y.datum(),w=!/^(n|s)$/.test(_)&&a,k=!/^(e|w)$/.test(_)&&i,T=y.classed("extent"),M=xt(m),A=t.mouse(m),L=t.select(o(m)).on("keydown.brush",function(){32==t.event.keyCode&&(T||(f=null,A[0]-=l[1],A[1]-=s[1],T=2),N())}).on("keyup.brush",function(){32==t.event.keyCode&&2==T&&(A[0]+=l[1],A[1]+=s[1],T=0,N())});if(t.event.changedTouches?L.on("touchmove.brush",O).on("touchend.brush",D):L.on("mousemove.brush",O).on("mouseup.brush",D),b.interrupt().selectAll("*").interrupt(),T)A[0]=l[0]-A[0],A[1]=s[0]-A[1];else if(_){var S=+/w$/.test(_),C=+/^n/.test(_);v=[l[1-S]-A[0],s[1-C]-A[1]],A[0]=l[S],A[1]=s[C]}else t.event.altKey&&(f=A.slice());function O(){var e=t.mouse(m),r=!1;v&&(e[0]+=v[0],e[1]+=v[1]),T||(t.event.altKey?(f||(f=[(l[0]+l[1])/2,(s[0]+s[1])/2]),A[0]=l[+(e[0]1?{floor:function(e){for(;l(e=t.floor(e));)e=El(e-1);return e},ceil:function(e){for(;l(e=t.ceil(e));)e=El(+e+1);return e}}:t))},a.ticks=function(t,e){var r=fo(a.domain()),n=null==t?i(r,10):"number"==typeof t?i(r,t):!t.range&&[{range:t},e];return n&&(t=n[0],e=n[1]),t.range(r[0],El(+r[1]+1),e<1?1:e)},a.tickFormat=function(){return n},a.copy=function(){return Rl(e.copy(),r,n)},xo(a,e)}function El(t){return new Date(t)}Ol.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?zl:Dl,zl.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},zl.toString=Dl.toString,Re.second=Ne(function(t){return new Ee(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),Re.seconds=Re.second.range,Re.seconds.utc=Re.second.utc.range,Re.minute=Ne(function(t){return new Ee(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),Re.minutes=Re.minute.range,Re.minutes.utc=Re.minute.utc.range,Re.hour=Ne(function(t){var e=t.getTimezoneOffset()/60;return new Ee(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),Re.hours=Re.hour.range,Re.hours.utc=Re.hour.utc.range,Re.month=Ne(function(t){return(t=Re.day(t)).setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),Re.months=Re.month.range,Re.months.utc=Re.month.utc.range;var Il=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Fl=[[Re.second,1],[Re.second,5],[Re.second,15],[Re.second,30],[Re.minute,1],[Re.minute,5],[Re.minute,15],[Re.minute,30],[Re.hour,1],[Re.hour,3],[Re.hour,6],[Re.hour,12],[Re.day,1],[Re.day,2],[Re.week,1],[Re.month,1],[Re.month,3],[Re.year,1]],Nl=Ol.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Yr]]),jl={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(El)},floor:P,ceil:P};Fl.year=Re.year,Re.scale=function(){return Rl(t.scale.linear(),Fl,Nl)};var Bl=Fl.map(function(t){return[t[0].utc,t[1]]}),Hl=Pl.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Yr]]);function Vl(t){return JSON.parse(t.responseText)}function ql(t){var e=a.createRange();return e.selectNode(a.body),e.createContextualFragment(t.responseText)}Bl.year=Re.year.utc,Re.scale.utc=function(){return Rl(t.scale.linear(),Bl,Hl)},t.text=me(function(t){return t.responseText}),t.json=function(t,e){return ye(t,"application/json",Vl,e)},t.html=function(t,e){return ye(t,"text/html",ql,e)},t.xml=me(function(t){return t.responseXML}),"object"==typeof e&&e.exports?e.exports=t:this.d3=t}()},{}],8:[function(t,e,r){(function(n,a){!function(t,n){"object"==typeof r&&"undefined"!=typeof e?e.exports=n():t.ES6Promise=n()}(this,function(){"use strict";function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,o=void 0,l=void 0,s=function(t,e){g[i]=t,g[i+1]=e,2===(i+=2)&&(l?l(v):_())};var c="undefined"!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&"undefined"!=typeof n&&"[object process]"==={}.toString.call(n),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(v,1)}}var g=new Array(1e3);function v(){for(var t=0;t13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},{}],15:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var a=t.clientX||0,i=t.clientY||0,o=(l=e,l===window||l===document||l===document.body?n:l.getBoundingClientRect());var l;return r[0]=a-o.left,r[1]=i-o.top,r}},{}],16:[function(t,e,r){var n,a=t("./lib/build-log"),i=t("./lib/epsilon"),o=t("./lib/intersecter"),l=t("./lib/segment-chainer"),s=t("./lib/segment-selector"),c=t("./lib/geojson"),u=!1,f=i();function d(t,e,r){var a=n.segments(t),i=n.segments(e),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=a():!1===t&&(u=!1),!1!==u&&u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:s.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:s.intersect(t.combined,u),inverted:t.inverted1&&t.inverted2}},selectDifference:function(t){return{segments:s.difference(t.combined,u),inverted:t.inverted1&&!t.inverted2}},selectDifferenceRev:function(t){return{segments:s.differenceRev(t.combined,u),inverted:!t.inverted1&&t.inverted2}},selectXor:function(t){return{segments:s.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:l(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return d(t,e,n.selectUnion)},intersect:function(t,e){return d(t,e,n.selectIntersect)},difference:function(t,e){return d(t,e,n.selectDifference)},differenceRev:function(t,e){return d(t,e,n.selectDifferenceRev)},xor:function(t,e){return d(t,e,n.selectXor)}},"object"==typeof window&&(window.PolyBool=n),e.exports=n},{"./lib/build-log":17,"./lib/epsilon":18,"./lib/geojson":19,"./lib/intersecter":20,"./lib/segment-chainer":22,"./lib/segment-selector":23}],17:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n("check",{seg1:t,seg2:e})},segmentChop:function(t,e){return n("div_seg",{seg:t,pt:e}),n("chop",{seg:t,pt:e})},statusRemove:function(t){return n("pop_seg",{seg:t})},segmentUpdate:function(t){return n("seg_update",{seg:t})},segmentNew:function(t,e){return n("new_seg",{seg:t,primary:e})},segmentRemove:function(t){return n("rem_seg",{seg:t})},tempStatus:function(t,e,r){return n("temp_status",{seg:t,above:e,below:r})},rewind:function(t){return n("rewind",{seg:t})},status:function(t,e,r){return n("status",{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n("vert",{x:e}))},log:function(t){return"string"!=typeof t&&(t=JSON.stringify(t,!1," ")),n("log",{txt:t})},reset:function(){return n("reset")},selected:function(t){return n("selected",{segs:t})},chainStart:function(t){return n("chain_start",{seg:t})},chainRemoveHead:function(t,e){return n("chain_rem_head",{index:t,pt:e})},chainRemoveTail:function(t,e){return n("chain_rem_tail",{index:t,pt:e})},chainNew:function(t,e){return n("chain_new",{pt1:t,pt2:e})},chainMatch:function(t){return n("chain_match",{index:t})},chainClose:function(t){return n("chain_close",{index:t})},chainAddHead:function(t,e){return n("chain_add_head",{index:t,pt:e})},chainAddTail:function(t,e){return n("chain_add_tail",{index:t,pt:e})},chainConnect:function(t,e){return n("chain_con",{index1:t,index2:e})},chainReverse:function(t){return n("chain_rev",{index:t})},chainJoin:function(t,e){return n("chain_join",{index1:t,index2:e})},done:function(){return n("done")}}}},{}],18:[function(t,e,r){e.exports=function(t){"number"!=typeof t&&(t=1e-10);var e={epsilon:function(e){return"number"==typeof e&&(t=e),t},pointAboveOrOnLine:function(e,r,n){var a=r[0],i=r[1],o=n[0],l=n[1],s=e[0];return(o-a)*(e[1]-i)-(l-i)*(s-a)>=-t},pointBetween:function(e,r,n){var a=e[1]-r[1],i=n[0]-r[0],o=e[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])t!=o-a>t&&(i-c)*(a-u)/(o-u)+c-n>t&&(l=!l),i=c,o=u}return l}};return e}},{}],19:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),a=1;a0})}function u(t,n){var a=t.seg,i=n.seg,o=a.start,l=a.end,c=i.start,u=i.end;r&&r.checkIntersection(a,i);var f=e.linesIntersect(o,l,c,u);if(!1===f){if(!e.pointsCollinear(o,l,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(l,c))return!1;var d=e.pointsSame(o,c),p=e.pointsSame(l,u);if(d&&p)return n;var h=!d&&e.pointBetween(o,c,u),g=!p&&e.pointBetween(l,c,u);if(d)return g?s(n,l):s(t,u),n;h&&(p||(g?s(n,l):s(t,u)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(t,c):0===f.alongB?s(t,f.pt):1===f.alongB&&s(t,u)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var p=c(d),h=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function v(){if(h){var t=u(d,h);if(t)return t}return!!g&&u(d,g)}r&&r.tempStatus(d.seg,!!h&&h.seg,!!g&&g.seg);var m,y,x=v();if(x)t?(y=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,r&&r.segmentUpdate(x.seg),d.other.remove(),d.remove();if(i.getHead()!==d){r&&r.rewind(d.seg);continue}t?(y=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=g?g.seg.myFill.above:a,d.seg.myFill.above=y?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(m=g?d.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:m,below:m}),r&&r.status(d.seg,!!h&&h.seg,!!g&&g.seg),d.other.status=p.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return t?{addRegion:function(t){for(var n,a,i,o=t[t.length-1],s=0;s1)for(var r=1;r1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=O(t,360),e=O(e,100),r=O(r,100),0===e)n=a=i=r;else{var l=r<.5?r*(1+e):r+e-r*e,s=2*r-l;n=o(s,l,t+1/3),a=o(s,l,t),i=o(s,l,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,s,u),f=!0,d="hsl"),e.hasOwnProperty("a")&&(i=e.a));var p,h,g;return i=C(i),{ok:f,format:e.format||d,r:o(255,l(a.r,0)),g:o(255,l(a.g,0)),b:o(255,l(a.b,0)),a:i}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=i(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=u.ok,this._tc_id=a++}function u(t,e,r){t=O(t,255),e=O(e,255),r=O(r,255);var n,a,i=l(t,e,r),s=o(t,e,r),c=(i+s)/2;if(i==s)n=a=0;else{var u=i-s;switch(a=c>.5?u/(2-i-s):u/(i+s),i){case t:n=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(c(n));return i}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/e;e--;)o.push(c({h:n,s:a,v:i})),i=(i+l)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,a=this.toRgb();return e=a.r/255,r=a.g/255,n=a.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=i(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=i(360*t.h),r=i(100*t.s),n=i(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=i(360*t.h),r=i(100*t.s),n=i(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return d(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,a){var o=[z(i(t).toString(16)),z(i(e).toString(16)),z(i(r).toString(16)),z(E(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*O(this._r,255))+"%",g:i(100*O(this._g,255))+"%",b:i(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*O(this._r,255))+"%, "+i(100*O(this._g,255))+"%, "+i(100*O(this._b,255))+"%)":"rgba("+i(100*O(this._r,255))+"%, "+i(100*O(this._g,255))+"%, "+i(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=c(t);r="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},c.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:R(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),a=c(e).toRgb(),i=r/100;return c({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},c.readability=function(e,r){var n=c(e),a=c(r);return(t.max(n.getLuminance(),a.getLuminance())+.05)/(t.min(n.getLuminance(),a.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,a,i=c.readability(t,e);switch(a=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},c.mostReadable=function(t,e,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;us&&(s=n,l=c(e[u]));return c.isReadable(t,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],r))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(L);function C(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function O(e,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(e)&&(e="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(e);return e=o(r,l(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function P(t){return o(1,l(0,t))}function D(t){return parseInt(t,16)}function z(t){return 1==t.length?"0"+t:""+t}function R(t){return t<=1&&(t=100*t+"%"),t}function E(e){return t.round(255*parseFloat(e)).toString(16)}function I(t){return D(t)/255}var F,N,j,B=(N="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",j="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!B.CSS_UNIT.exec(t)}"undefined"!=typeof e&&e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],26:[function(t,e,r){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],27:[function(t,e,r){"use strict";var n=t("./arrow_paths"),a=t("../../plots/font_attributes"),i=t("../../plots/cartesian/constants"),o=t("../../plot_api/plot_template").templatedArray;e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../plot_api/plot_template":193,"../../plots/cartesian/constants":209,"../../plots/font_attributes":229,"./arrow_paths":26}],28:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("../../plots/cartesian/axes"),i=t("./draw").draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach(function(e){var r=a.getFromId(t,e.xref),n=a.getFromId(t,e.yref);e._extremes={},r&&l(e,r),n&&l(e,n)})}function l(t,e){var r,n=e._id,i=n.charAt(0),o=t[i],l=t["a"+i],s=t[i+"ref"],c=t["a"+i+"ref"],u=t["_"+i+"padplus"],f=t["_"+i+"padminus"],d={x:1,y:-1}[i]*t[i+"shift"],p=3*t.arrowsize*t.arrowwidth||0,h=p+d,g=p-d,v=3*t.startarrowsize*t.arrowwidth||0,m=v+d,y=v-d;if(c===s){var x=a.findExtremes(e,[e.r2c(o)],{ppadplus:h,ppadminus:g}),b=a.findExtremes(e,[e.r2c(l)],{ppadplus:Math.max(u,m),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else m=l?m+l:m,y=l?y-l:y,r=a.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,h,m),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&&t._fullData.length)return n.syncOrAsync([i,o],t)}},{"../../lib":159,"../../plots/cartesian/axes":203,"./draw":33}],29:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("../../registry"),i=t("../../plot_api/plot_template").arrayEditor;function o(t,e){var r,n,a,i,o,s,c,u=t._fullLayout.annotations,f=[],d=[],p=[],h=(e||[]).length;for(r=0;r0||r.explicitOff.length>0},onClick:function(t,e){var r,l,s=o(t,e),c=s.on,u=s.off.concat(s.explicitOff),f={},d=t._fullLayout.annotations;if(!c.length&&!u.length)return;for(r=0;r2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var U=!1,G=["x","y"],Z=0;Z1)&&(tt===K?((ct=et.r2fraction(e["a"+J]))<0||ct>1)&&(U=!0):U=!0),X=et._offset+et.r2p(e[J]),$=.5}else"x"===J?(W=e[J],X=b.l+b.w*W):(W=1-e[J],X=b.t+b.h*W),$=e.showarrow?.5:W;if(e.showarrow){st.head=X;var ut=e["a"+J];Q=nt*H(.5,e.xanchor)-at*H(.5,e.yanchor),tt===K?(st.tail=et._offset+et.r2p(ut),Y=Q):(st.tail=X+ut,Y=Q+ut),st.text=st.tail+Q;var ft=x["x"===J?"width":"height"];if("paper"===K&&(st.head=o.constrain(st.head,1,ft-1)),"pixel"===tt){var dt=-Math.max(st.tail-3,st.text),pt=Math.min(st.tail+3,st.text)-ft;dt>0?(st.tail+=dt,st.text+=dt):pt>0&&(st.tail-=pt,st.text-=pt)}st.tail+=lt,st.head+=lt}else Y=Q=it*H($,ot),st.text=X+Q;st.text+=lt,Q+=lt,Y+=lt,e["_"+J+"padplus"]=it/2+Y,e["_"+J+"padminus"]=it/2-Y,e["_"+J+"size"]=it,e["_"+J+"shift"]=Q}if(U)z.remove();else{var ht=0,gt=0;if("left"!==e.align&&(ht=(w-m)*("center"===e.align?.5:1)),"top"!==e.valign&&(gt=(D-y)*("middle"===e.valign?.5:1)),u)n.select("svg").attr({x:I+ht-1,y:I+gt}).call(c.setClipUrl,N?A:null,t);else{var vt=I+gt-h.top,mt=I+ht-h.left;V.call(f.positionText,mt,vt).call(c.setClipUrl,N?A:null,t)}j.select("rect").call(c.setRect,I,I,w,D),F.call(c.setRect,R/2,R/2,E-R,B-R),z.call(c.setTranslate,Math.round(L.x.text-E/2),Math.round(L.y.text-B/2)),O.attr({transform:"rotate("+S+","+L.x.text+","+L.y.text+")"});var yt,xt=function(r,n){C.selectAll(".annotation-arrow-g").remove();var u=L.x.head,f=L.y.head,d=L.x.tail+r,h=L.y.tail+n,m=L.x.text+r,y=L.y.text+n,x=o.rotationXYMatrix(S,m,y),w=o.apply2DTransform(x),A=o.apply2DTransform2(x),P=+F.attr("width"),D=+F.attr("height"),R=m-.5*P,E=R+P,I=y-.5*D,N=I+D,j=[[R,I,R,N],[R,N,E,N],[E,N,E,I],[E,I,R,I]].map(A);if(!j.reduce(function(t,e){return t^!!o.segmentsIntersect(u,f,u+1e6,f+1e6,e[0],e[1],e[2],e[3])},!1)){j.forEach(function(t){var e=o.segmentsIntersect(d,h,u,f,t[0],t[1],t[2],t[3]);e&&(d=e.x,h=e.y)});var B=e.arrowwidth,H=e.arrowcolor,V=e.arrowside,q=C.append("g").style({opacity:s.opacity(H)}).classed("annotation-arrow-g",!0),U=q.append("path").attr("d","M"+d+","+h+"L"+u+","+f).style("stroke-width",B+"px").call(s.stroke,s.rgb(H));if(g(U,V,e),_.annotationPosition&&U.node().parentNode&&!i){var G=u,Z=f;if(e.standoff){var X=Math.sqrt(Math.pow(u-d,2)+Math.pow(f-h,2));G+=e.standoff*(d-u)/X,Z+=e.standoff*(h-f)/X}var Y,W,$=q.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-G)+","+(h-Z),transform:"translate("+G+","+Z+")"}).style("stroke-width",B+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");p.init({element:$.node(),gd:t,prepFn:function(){var t=c.getTranslate(z);Y=t.x,W=t.y,l&&l.autorange&&k(l._name+".autorange",!0),v&&v.autorange&&k(v._name+".autorange",!0)},moveFn:function(t,r){var n=w(Y,W),a=n[0]+t,i=n[1]+r;z.call(c.setTranslate,a,i),T("x",l?l.p2r(l.r2p(e.x)+t):e.x+t/b.w),T("y",v?v.p2r(v.r2p(e.y)+r):e.y-r/b.h),e.axref===e.xref&&T("ax",l.p2r(l.r2p(e.ax)+t)),e.ayref===e.yref&&T("ay",v.p2r(v.r2p(e.ay)+r)),q.attr("transform","translate("+t+","+r+")"),O.attr({transform:"rotate("+S+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",t,M());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}};if(e.showarrow&&xt(0,0),P)p.init({element:z.node(),gd:t,prepFn:function(){yt=O.attr("transform")},moveFn:function(t,r){var n="pointer";if(e.showarrow)e.axref===e.xref?T("ax",l.p2r(l.r2p(e.ax)+t)):T("ax",e.ax+t),e.ayref===e.yref?T("ay",v.p2r(v.r2p(e.ay)+r)):T("ay",e.ay+r),xt(t,r);else{if(i)return;var a,o;if(l)a=l.p2r(l.r2p(e.x)+t);else{var s=e._xsize/b.w,c=e.x+(e._xshift-e.xshift)/b.w-s/2;a=p.align(c+t/b.w,s,0,1,e.xanchor)}if(v)o=v.p2r(v.r2p(e.y)+r);else{var u=e._ysize/b.h,f=e.y-(e._yshift+e.yshift)/b.h-u/2;o=p.align(f-r/b.h,u,0,1,e.yanchor)}T("x",a),T("y",o),l&&v||(n=p.getCursor(l?.5:a,v?.5:o,e.xanchor,e.yanchor))}O.attr({transform:"translate("+t+","+r+")"+yt}),d(z,n)},clickFn:function(r,n){e.captureevents&&t.emit("plotly_clickannotation",q(n))},doneFn:function(){d(z),a.call("_guiRelayout",t,M());var e=document.querySelector(".js-notes-box-panel");e&&e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(".annotation").remove();for(var r=0;r=0,v=e.indexOf("end")>=0,m=f.backoff*p+r.standoff,y=d.backoff*h+r.startstandoff;if("line"===u.nodeName){o={x:+t.attr("x1"),y:+t.attr("y1")},l={x:+t.attr("x2"),y:+t.attr("y2")};var x=o.x-l.x,b=o.y-l.y;if(c=(s=Math.atan2(b,x))+Math.PI,m&&y&&m+y>Math.sqrt(x*x+b*b))return void P();if(m){if(m*m>x*x+b*b)return void P();var _=m*Math.cos(s),w=m*Math.sin(s);l.x+=_,l.y+=w,t.attr({x2:l.x,y2:l.y})}if(y){if(y*y>x*x+b*b)return void P();var k=y*Math.cos(s),T=y*Math.sin(s);o.x-=k,o.y-=T,t.attr({x1:o.x,y1:o.y})}}else if("path"===u.nodeName){var M=u.getTotalLength(),A="";if(M1){c=!0;break}}c?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+l+'"]').remove():(s._pdata=a(t.glplot.cameraParams,[e.xaxis.r2l(s.x)*r[0],e.yaxis.r2l(s.y)*r[1],e.zaxis.r2l(s.z)*r[2]]),n(t.graphDiv,s,l,t.id,s._xa,s._ya))}}},{"../../plots/gl3d/project":232,"../annotations/draw":33}],40:[function(t,e,r){"use strict";var n=t("../../registry"),a=t("../../lib");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:t("./attributes")}}},layoutAttributes:t("./attributes"),handleDefaults:t("./defaults"),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var i=r.attrRegex,o=Object.keys(t),l=0;l=0))return t;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return t}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}i.tinyRGB=function(t){var e=t.toRgb();return"rgb("+Math.round(e.r)+", "+Math.round(e.g)+", "+Math.round(e.b)+")"},i.rgb=function(t){return i.tinyRGB(n(t))},i.opacity=function(t){return t?n(t).getAlpha():0},i.addOpacity=function(t,e){var r=n(t).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+e+")"},i.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var a=n(e||s).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},i.contrast=function(t,e,r){var a=n(t);return 1!==a.getAlpha()&&(a=n(i.combine(t,s))),(a.isDark()?e?a.lighten(e):s:r?a.darken(r):l).toString()},i.stroke=function(t,e){var r=n(e);t.style({stroke:i.tinyRGB(r),"stroke-opacity":r.getAlpha()})},i.fill=function(t,e){var r=n(e);t.style({fill:i.tinyRGB(r),"fill-opacity":r.getAlpha()})},i.clean=function(t){if(t&&"object"==typeof t){var e,r,n,a,o=Object.keys(t);for(e=0;e0?n>=s:n<=s));a++)n>u&&n0?n>=s:n<=s));a++)n>r[0]&&n1){var W=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));Z*=W*c.roundUp(Y/W,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(G.tick0=0)}G.dtick=Z}G.domain=[V+j,V+I-j],G.setScale(),t.attr("transform","translate("+Math.round(s.l)+","+Math.round(s.t)+")");var $,Q=t.select("."+T.cbtitleunshift).attr("transform","translate(-"+Math.round(s.l)+",-"+Math.round(s.t)+")"),J=t.select("."+T.cbaxis),K=0;function tt(n,a){var i={propContainer:G,propName:e._propPrefix+"title",traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select("."+T.cbtitle)},l="h"===n.charAt(0)?n.substr(1):"h"+n;t.selectAll("."+l+",."+l+"-math-group").remove(),h.draw(r,n,u(i,a||{}))}return c.syncOrAsync([i.previousPromises,function(){if(-1!==["top","bottom"].indexOf(M)){var t,r=s.l+(e.x+F)*s.w,n=G.title.font.size;t="top"===M?(1-(V+I-j))*s.h+s.t+3+.75*n:(1-(V+j))*s.h+s.t-3-.25*n,tt(G._id+"title",{attributes:{x:r,y:t,"text-anchor":"start"}})}},function(){if(-1!==["top","bottom"].indexOf(M)){var i=t.select("."+T.cbtitle),o=i.select("text"),u=[-e.outlinewidth/2,e.outlinewidth/2],f=i.select(".h"+G._id+"title-math-group").node(),p=15.6;if(o.node()&&(p=parseInt(o.node().style.fontSize,10)*_),f?(K=d.bBox(f).height)>p&&(u[1]-=(K-p)/2):o.node()&&!o.classed(T.jsPlaceholder)&&(K=d.bBox(o.node()).height),K){if(K+=5,"top"===M)G.domain[1]-=K/s.h,u[1]*=-1;else{G.domain[0]+=K/s.h;var h=g.lineCount(o);u[1]+=(1-h)*p}i.attr("transform","translate("+u+")"),G.setScale()}}t.selectAll("."+T.cbfills+",."+T.cblines).attr("transform","translate(0,"+Math.round(s.h*(1-G.domain[1]))+")"),J.attr("transform","translate(0,"+Math.round(-s.t)+")");var m=t.select("."+T.cbfills).selectAll("rect."+T.cbfill).data(P);m.enter().append("rect").classed(T.cbfill,!0).style("stroke","none"),m.exit().remove();var y=A.map(G.c2p).map(Math.round).sort(function(t,e){return t-e});m.each(function(t,i){var o=[0===i?A[0]:(P[i]+P[i-1])/2,i===P.length-1?A[1]:(P[i]+P[i+1])/2].map(G.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,y[0],y[1]);var l=n.select(this).attr({x:B,width:Math.max(z,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)d.gradient(l,r,e._id,"vertical",e._fillgradient,"fill");else{var s=S(t).replace("e-","");l.attr("fill",a(s).toHexString())}});var x=t.select("."+T.cblines).selectAll("path."+T.cbline).data(v.color&&v.width?D:[]);x.enter().append("path").classed(T.cbline,!0),x.exit().remove(),x.each(function(t){n.select(this).attr("d","M"+B+","+(Math.round(G.c2p(t))+v.width/2%1)+"h"+z).call(d.lineGroupStyle,v.width,L(t),v.dash)}),J.selectAll("g."+G._id+"tick,path").remove();var b=B+z+(e.outlinewidth||0)/2-("outside"===e.ticks?1:0),w=l.calcTicks(G),k=l.makeTransFn(G),C=l.getTickSigns(G)[2];return l.drawTicks(r,G,{vals:"inside"===G.ticks?l.clipEnds(G,w):w,layer:J,path:l.makeTickPath(G,b,C),transFn:k}),l.drawLabels(r,G,{vals:w,layer:J,transFn:k,labelFns:l.makeLabelFns(G,b)})},function(){if(-1===["top","bottom"].indexOf(M)){var t=G.title.font.size,e=G._offset+G._length/2,a=s.l+(G.position||0)*s.w+("right"===G.side?10+t*(G.showticklabels?1:.5):-10-t*(G.showticklabels?.5:0));tt("h"+G._id+"title",{avoid:{selection:n.select(r).selectAll("g."+G._id+"tick"),side:M,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:a,y:e,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}},i.previousPromises,function(){var n=z+e.outlinewidth/2+d.bBox(J.node()).width;if(($=Q.select("text")).node()&&!$.classed(T.jsPlaceholder)){var a,o=Q.select(".h"+G._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(M)?d.bBox(o).width:d.bBox(Q.node()).right-B-s.l,n=Math.max(n,a)}var l=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=q-U;t.select("."+T.cbbg).attr({x:B-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:U-N,width:Math.max(l,2),height:Math.max(c+2*N,2)}).call(p.fill,e.bgcolor).call(p.stroke,e.bordercolor).style("stroke-width",e.borderwidth),t.selectAll("."+T.cboutline).attr({x:B,y:U+e.ypad+("top"===M?K:0),width:Math.max(z,2),height:Math.max(c-2*e.ypad-K,2)}).call(p.stroke,e.outlinecolor).style({fill:"none","stroke-width":e.outlinewidth});var u=({center:.5,right:1}[e.xanchor]||0)*l;t.attr("transform","translate("+(s.l-u)+","+s.t+")");var f={},h=w[e.yanchor],g=k[e.yanchor];"pixels"===e.lenmode?(f.y=e.y,f.t=c*h,f.b=c*g):(f.t=f.b=0,f.yt=e.y+e.len*h,f.yb=e.y-e.len*g);var v=w[e.xanchor],m=k[e.xanchor];if("pixels"===e.thicknessmode)f.x=e.x,f.l=l*v,f.r=l*m;else{var y=l-z;f.l=y*v,f.r=y*m,f.xl=e.x-e.thickness*v,f.xr=e.x+e.thickness*m}i.autoMargin(r,e._id,f)}],r)}(r,e,t);v&&v.then&&(t._promises||[]).push(v),t._context.edits.colorbarPosition&&function(t,e,r){var n,a,i,l=r._fullLayout._size;s.init({element:t.node(),gd:r,prepFn:function(){n=t.attr("transform"),f(t)},moveFn:function(r,o){t.attr("transform",n+" translate("+r+","+o+")"),a=s.align(e._xLeftFrac+r/l.w,e._thickFrac,0,1,e.xanchor),i=s.align(e._yBottomFrac-o/l.h,e._lenFrac,0,1,e.yanchor);var c=s.getCursor(a,i,e.xanchor,e.yanchor);f(t,c)},doneFn:function(){if(f(t),void 0!==a&&void 0!==i){var n={};n[e._propPrefix+"x"]=a,n[e._propPrefix+"y"]=i,void 0!==e._traceIndex?o.call("_guiRestyle",r,n,e._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,e,t)}),e.exit().each(function(e){i.autoMargin(t,e._id)}).remove(),e.order()}}},{"../../constants/alignment":136,"../../lib":159,"../../lib/extend":154,"../../lib/setcursor":178,"../../lib/svg_text_utils":180,"../../plots/cartesian/axes":203,"../../plots/cartesian/axis_defaults":205,"../../plots/cartesian/layout_attributes":215,"../../plots/cartesian/position_defaults":218,"../../plots/plots":235,"../../registry":243,"../color":42,"../colorscale/helpers":53,"../dragelement":60,"../drawing":63,"../titles":129,"./constants":44,d3:7,tinycolor2:25}],47:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t){return n.isPlainObject(t.colorbar)}},{"../../lib":159}],48:[function(t,e,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:t("./attributes"),supplyDefaults:t("./defaults"),draw:t("./draw").draw,hasColorbar:t("./has_colorbar")}},{"./attributes":43,"./defaults":45,"./draw":46,"./has_colorbar":47}],49:[function(t,e,r){"use strict";var n=t("../colorbar/attributes"),a=t("../../lib/regex").counter,i=t("./scales.js").scales;Object.keys(i);function o(t){return"`"+t+"`"}e.exports=function(t,e){t=t||"";var r,l=(e=e||{}).cLetter||"c",s=("onlyIfNumerical"in e?e.onlyIfNumerical:Boolean(t),"noScale"in e?e.noScale:"marker.line"===t),c="showScaleDflt"in e?e.showScaleDflt:"z"===l,u="string"==typeof e.colorscaleDflt?i[e.colorscaleDflt]:null,f=e.editTypeOverride||"",d=t?t+".":"";"colorAttr"in e?(r=e.colorAttr,e.colorAttr):o(d+(r={z:"z",c:"color"}[l]));var p=l+"auto",h=l+"min",g=l+"max",v=l+"mid",m=(o(d+p),o(d+h),o(d+g),{});m[h]=m[g]=void 0;var y={};y[p]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},e.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:m},x[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[g]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:y},x[v]={valType:"number",dflt:null,editType:"calc",impliedEdits:m},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==e.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},{"../../lib/regex":174,"../colorbar/attributes":43,"./scales.js":57}],50:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),a=t("../../lib"),i=t("./helpers").extractOpts;e.exports=function(t,e,r){var o,l=t._fullLayout,s=r.vals,c=r.containerStr,u=c?a.nestedProperty(e,c).get():e,f=i(u),d=!1!==f.auto,p=f.min,h=f.max,g=f.mid,v=function(){return a.aggNums(Math.min,null,s)},m=function(){return a.aggNums(Math.max,null,s)};(void 0===p?p=v():d&&(p=u._colorAx&&n(p)?Math.min(p,v()):v()),void 0===h?h=m():d&&(h=u._colorAx&&n(h)?Math.max(h,m()):m()),d&&void 0!==g&&(h-g>g-p?p=g-(h-g):h-g=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":159,"./helpers":53,"fast-isnumeric":9}],51:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("./helpers").hasColorscale,i=t("./helpers").extractOpts;e.exports=function(t,e){function r(t,e){var r=t["_"+e];void 0!==r&&(t[e]=r)}function o(t,a){var o=a.container?n.nestedProperty(t,a.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l=0;n--,a++){var i=t[n];r[a]=[1-i[0],i[1]]}return r}function h(t,e){e=e||{};for(var r=t.domain,o=t.range,s=o.length,c=new Array(s),u=0;u4/3-l?o:l}},{}],59:[function(t,e,r){"use strict";var n=t("../../lib"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(t,e,r,i){return t="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*t),0,2),e="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*e),0,2),a[e][t]}},{"../../lib":159}],60:[function(t,e,r){"use strict";var n=t("mouse-event-offset"),a=t("has-hover"),i=t("has-passive-events"),o=t("../../lib").removeElement,l=t("../../plots/cartesian/constants"),s=e.exports={};s.align=t("./align"),s.getCursor=t("./cursor");var c=t("./unhover");function u(){var t=document.createElement("div");t.className="dragcover";var e=t.style;return e.position="fixed",e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background="none",document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(t){var e,r,n,c,d,p,h,g,v=t.gd,m=1,y=v._context.doubleClickDelay,x=t.element;v._mouseDownTime||(v._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)y&&(m=Math.max(m-1,1)),v._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(m,p),!g){var r;try{r=new MouseEvent("click",e)}catch(t){var n=f(e);(r=document.createEvent("MouseEvents")).initMouseEvent("click",e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}h.dispatchEvent(r)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},s.coverSlip=u},{"../../lib":159,"../../plots/cartesian/constants":209,"./align":58,"./cursor":59,"./unhover":61,"has-hover":11,"has-passive-events":12,"mouse-event-offset":15}],61:[function(t,e,r){"use strict";var n=t("../../lib/events"),a=t("../../lib/throttle"),i=t("../../lib/dom").getGraphDiv,o=t("../fx/constants"),l=e.exports={};l.wrapped=function(t,e,r){(t=i(t))._fullLayout&&a.clear(t._fullLayout._uid+o.HOVERID),l.raw(t,e,r)},l.raw=function(t,e){var r=t._fullLayout,a=t._hoverdata;e||(e={}),e.target&&!1===n.triggerHandler(t,"plotly_beforehover",e)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,e.target&&a&&t.emit("plotly_unhover",{event:e,points:a}))}},{"../../lib/dom":152,"../../lib/events":153,"../../lib/throttle":181,"../fx/constants":75}],62:[function(t,e,r){"use strict";r.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"}},{}],63:[function(t,e,r){"use strict";var n=t("d3"),a=t("fast-isnumeric"),i=t("tinycolor2"),o=t("../../registry"),l=t("../color"),s=t("../colorscale"),c=t("../../lib"),u=t("../../lib/svg_text_utils"),f=t("../../constants/xmlns_namespaces"),d=t("../../constants/alignment").LINE_SPACING,p=t("../../constants/interactions").DESELECTDIM,h=t("../../traces/scatter/subtypes"),g=t("../../traces/scatter/make_bubble_size_func"),v=t("../../components/fx/helpers").appendArrayPointValue,m=e.exports={};m.font=function(t,e,r,n){c.isPlainObject(e)&&(n=e.color,r=e.size,e=e.family),e&&t.style("font-family",e),r+1&&t.style("font-size",r+"px"),n&&t.call(l.fill,n)},m.setPosition=function(t,e,r){t.attr("x",e).attr("y",r)},m.setSize=function(t,e,r){t.attr("width",e).attr("height",r)},m.setRect=function(t,e,r,n,a){t.call(m.setPosition,e,r).call(m.setSize,n,a)},m.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),o=n.c2p(t.y);return!!(a(i)&&a(o)&&e.node())&&("text"===e.node().nodeName?e.attr("x",i).attr("y",o):e.attr("transform","translate("+i+","+o+")"),!0)},m.translatePoints=function(t,e,r){t.each(function(t){var a=n.select(this);m.translatePoint(t,a,e,r)})},m.hideOutsideRangePoint=function(t,e,r,n,a,i){e.attr("display",r.isPtWithinRange(t,a)&&n.isPtWithinRange(t,i)?null:"none")},m.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,a=e.yaxis;t.each(function(e){var i=e[0].trace,l=i.xcalendar,s=i.ycalendar,c=o.traceIs(i,"bar-like")?".bartext":".point,.textpoint";t.selectAll(c).each(function(t){m.hideOutsideRangePoint(t,n.select(this),r,a,l,s)})})}},m.crispRound=function(t,e,r){return e&&a(e)?t._context.staticPlot?e:e<1?1:Math.round(e):r||0},m.singleLineStyle=function(t,e,r,n,a){e.style("fill","none");var i=(((t||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,s=a||i.dash||"";l.stroke(e,n||i.color),m.dashLine(e,s,o)},m.lineGroupStyle=function(t,e,r,a){t.style("fill","none").each(function(t){var i=(((t||[])[0]||{}).trace||{}).line||{},o=e||i.width||0,s=a||i.dash||"";n.select(this).call(l.stroke,r||i.color).call(m.dashLine,s,o)})},m.dashLine=function(t,e,r){r=+r||0,e=m.dashStyle(e,r),t.style({"stroke-dasharray":e,"stroke-width":r+"px"})},m.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return"solid"===t?t="":"dot"===t?t=r+"px,"+r+"px":"dash"===t?t=3*r+"px,"+3*r+"px":"longdash"===t?t=5*r+"px,"+5*r+"px":"dashdot"===t?t=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===t&&(t=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),t},m.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&&t.call(l.fill,e)},m.fillGroupStyle=function(t){t.style("stroke-width",0).each(function(t){var e=n.select(this);t[0].trace&&e.call(l.fill,t[0].trace.fillcolor)})};var y=t("./symbol_defs");m.symbolNames=[],m.symbolFuncs=[],m.symbolNeedLines={},m.symbolNoDot={},m.symbolNoFill={},m.symbolList=[],Object.keys(y).forEach(function(t){var e=y[t],r=e.n;m.symbolList.push(r,t,r+100,t+"-open"),m.symbolNames[r]=t,m.symbolFuncs[r]=e.f,e.needLine&&(m.symbolNeedLines[r]=!0),e.noDot?m.symbolNoDot[r]=!0:m.symbolList.push(r+200,t+"-dot",r+300,t+"-open-dot"),e.noFill&&(m.symbolNoFill[r]=!0)});var x=m.symbolNames.length,b="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";function _(t,e){var r=t%100;return m.symbolFuncs[r](e)+(t>=200?b:"")}m.symbolNumber=function(t){if("string"==typeof t){var e=0;t.indexOf("-open")>0&&(e=100,t=t.replace("-open","")),t.indexOf("-dot")>0&&(e+=200,t=t.replace("-dot","")),(t=m.symbolNames.indexOf(t))>=0&&(t+=e)}return t%100>=x||t>=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},T=n.format("~.1f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:w},horizontalreversed:{node:"linearGradient",attrs:w,reversed:!0},vertical:{node:"linearGradient",attrs:k},verticalreversed:{node:"linearGradient",attrs:k,reversed:!0}};m.gradient=function(t,e,r,a,o,s){for(var u=o.length,f=M[a],d=new Array(u),p=0;p"+m(t);h._gradientUrlQueryParts[y]=1},m.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),e._gradientUrlQueryParts={}},m.pointStyle=function(t,e,r){if(t.size()){var a=m.makePointStyleFns(e);t.each(function(t){m.singlePointStyle(t,n.select(this),e,a,r)})}},m.singlePointStyle=function(t,e,r,n,a){var i=r.marker,o=i.line;if(e.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?i.opacity:t.mo),n.ms2mrc){var s;s="various"===t.ms||"various"===i.size?3:n.ms2mrc(t.ms),t.mrc=s,n.selectedSizeFn&&(s=t.mrc=n.selectedSizeFn(t));var u=m.symbolNumber(t.mx||i.symbol)||0;t.om=u%200>=100,e.attr("d",_(u,s))}var f,d,p,h=!1;if(t.so)p=o.outlierwidth,d=o.outliercolor,f=i.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?l.defaultLine:o.color,c.isArrayOrTypedArray(i.color)&&(f=l.defaultLine,h=!0),f="mc"in t?t.mcc=n.markerScale(t.mc):i.color||"rgba(0,0,0,0)",n.selectedColorFn&&(f=n.selectedColorFn(t))}if(t.om)e.call(l.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{e.style("stroke-width",(t.isBlank?0:p)+"px");var v=i.gradient,y=t.mgt;if(y?h=!0:y=v&&v.type,Array.isArray(y)&&(y=y[0],M[y]||(y=0)),y&&"none"!==y){var x=t.mgc;x?h=!0:x=v.color;var b=r.uid;h&&(b+="-"+t.i),m.gradient(e,a,b,y,[[0,x],[1,f]],"fill")}else l.fill(e,f);p&&l.stroke(e,d)}},m.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=m.tryColorscale(r,""),e.lineScale=m.tryColorscale(r,"line"),o.traceIs(t,"symbols")&&(e.ms2mrc=h.isBubble(t)?g(t):function(){return(r.size||6)/2}),t.selectedpoints&&c.extendFlat(e,m.makeSelectedPointStyleFns(t)),e},m.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},i=r.marker||{},l=n.marker||{},s=a.opacity,u=i.opacity,f=l.opacity,d=void 0!==u,h=void 0!==f;(c.isArrayOrTypedArray(s)||d||h)&&(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?d?u:e:h?f:p*e});var g=a.color,v=i.color,m=l.color;(v||m)&&(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?v||e:m||e});var y=a.size,x=i.size,b=l.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,"symbols")&&(_||w)&&(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},m.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.textfont||{},i=r.textfont||{},o=n.textfont||{},s=a.color,c=i.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?c||e:u||(c?e:l.addOpacity(e,p))},e},m.selectedPointStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=m.makeSelectedPointStyleFns(e),a=e.marker||{},i=[];r.selectedOpacityFn&&i.push(function(t,e){t.style("opacity",r.selectedOpacityFn(e))}),r.selectedColorFn&&i.push(function(t,e){l.fill(t,r.selectedColorFn(e))}),r.selectedSizeFn&&i.push(function(t,e){var n=e.mx||a.symbol||0,i=r.selectedSizeFn(e);t.attr("d",_(m.symbolNumber(n),i)),e.mrc2=i}),i.length&&t.each(function(t){for(var e=n.select(this),r=0;r0?r:0}m.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var i=m.makeSelectedTextStyleFns(e);a=i.selectedTextColorFn}var o=e.texttemplate,l=r._fullLayout;t.each(function(t){var i=n.select(this),s=o?c.extractOption(t,e,"txt","texttemplate"):c.extractOption(t,e,"tx","text");if(s||0===s){if(o){var f=e._module.formatLabels?e._module.formatLabels(t,e,l):{},d={};v(d,e,t.i);var p=e._meta||{};s=c.texttemplateString(s,f,l._d3locale,d,t,p)}var h=t.tp||e.textposition,g=S(t,e),y=a?a(t):t.tc||e.textfont.color;i.call(m.font,t.tf||e.textfont.family,g,y).text(s).call(u.convertToTspans,r).call(L,h,g,t.mrc)}else i.remove()})}},m.selectedTextStyle=function(t,e){if(t.size()&&e.selectedpoints){var r=m.makeSelectedTextStyleFns(e);t.each(function(t){var a=n.select(this),i=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=S(t,e);l.fill(a,i),L(a,o,s,t.mrc2||t.mrc)})}};var C=.5;function O(t,e,r,a){var i=t[0]-e[0],o=t[1]-e[1],l=r[0]-e[0],s=r[1]-e[1],c=Math.pow(i*i+o*o,C/2),u=Math.pow(l*l+s*s,C/2),f=(u*u*i-c*c*l)*a,d=(u*u*o-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[n.round(e[0]+(p&&f/p),2),n.round(e[1]+(p&&d/p),2)],[n.round(e[0]-(h&&f/h),2),n.round(e[1]-(h&&d/h),2)]]}m.smoothopen=function(t,e){if(t.length<3)return"M"+t.join("L");var r,n="M"+t[0],a=[];for(r=1;r=1e4&&(m.savedBBoxes={},z=0),r&&(m.savedBBoxes[r]=v),z++,c.extendFlat({},v)},m.setClipUrl=function(t,e,r){t.attr("clip-path",E(e,r))},m.getTranslate=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(t,e,r){return[e,r].join(" ")}).split(" ");return{x:+e[0]||0,y:+e[1]||0}},m.setTranslate=function(t,e,r){var n=t.attr?"attr":"getAttribute",a=t.attr?"attr":"setAttribute",i=t[n]("transform")||"";return e=e||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=" translate("+e+", "+r+")").trim(),t[a]("transform",i),i},m.getScale=function(t){var e=(t[t.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(t,e,r){return[e,r].join(" ")}).split(" ");return{x:+e[0]||1,y:+e[1]||1}},m.setScale=function(t,e,r){var n=t.attr?"attr":"getAttribute",a=t.attr?"attr":"setAttribute",i=t[n]("transform")||"";return e=e||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+=" scale("+e+", "+r+")").trim(),t[a]("transform",i),i};var I=/\s*sc.*/;m.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&&1===r?"":" scale("+e+","+r+")";t.each(function(){var t=(this.getAttribute("transform")||"").replace(I,"");t=(t+=n).trim(),this.setAttribute("transform",t)})}};var F=/translate\([^)]*\)\s*$/;m.setTextPointsScale=function(t,e,r){t&&t.each(function(){var t,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(F);t=1===e&&1===r?[]:["translate("+o+","+l+")","scale("+e+","+r+")","translate("+-o+","+-l+")"],s&&t.push(s),a.attr("transform",t.join(" "))}})}},{"../../components/fx/helpers":77,"../../constants/alignment":136,"../../constants/interactions":138,"../../constants/xmlns_namespaces":140,"../../lib":159,"../../lib/svg_text_utils":180,"../../registry":243,"../../traces/scatter/make_bubble_size_func":300,"../../traces/scatter/subtypes":307,"../color":42,"../colorscale":54,"./symbol_defs":64,d3:7,"fast-isnumeric":9,tinycolor2:25}],64:[function(t,e,r){"use strict";var n=t("d3");e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"}},square:{n:1,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"Z"}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return"M"+r+","+e+"H"+e+"V"+r+"H-"+e+"V"+e+"H-"+r+"V-"+e+"H-"+e+"V-"+r+"H"+e+"V-"+e+"H"+r+"Z"}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r="l"+e+","+e,a="l"+e+",-"+e,i="l-"+e+",-"+e,o="l-"+e+","+e;return"M0,"+e+r+a+i+a+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+e+","+n.round(t/2,2)+"H"+e+"L0,-"+n.round(t,2)+"Z"}},"triangle-down":{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+e+",-"+n.round(t/2,2)+"H"+e+"L0,"+n.round(t,2)+"Z"}},"triangle-left":{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M"+n.round(t/2,2)+",-"+e+"V"+e+"L-"+n.round(t,2)+",0Z"}},"triangle-right":{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return"M-"+n.round(t/2,2)+",-"+e+"V"+e+"L"+n.round(t,2)+",0Z"}},"triangle-ne":{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M-"+r+",-"+e+"H"+e+"V"+r+"Z"}},"triangle-se":{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M"+e+",-"+r+"V"+e+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M"+r+","+e+"H-"+e+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return"M-"+e+","+r+"V-"+e+"H"+r+"Z"}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),a=n.round(-t,2),i=n.round(-.309*t,2);return"M"+e+","+i+"L"+r+","+n.round(.809*t,2)+"H-"+r+"L-"+e+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),a=n.round(t*Math.sqrt(3)/2,2);return"M"+a+",-"+r+"V"+r+"L0,"+e+"L-"+a+","+r+"V-"+r+"L0,-"+e+"Z"}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),a=n.round(t*Math.sqrt(3)/2,2);return"M-"+r+","+a+"H"+r+"L"+e+",0L"+r+",-"+a+"H-"+r+"L-"+e+",0Z"}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return"M-"+r+",-"+e+"H"+r+"L"+e+",-"+r+"V"+r+"L"+r+","+e+"H-"+r+"L-"+e+","+r+"V-"+r+"Z"}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),a=n.round(.951*e,2),i=n.round(.363*e,2),o=n.round(.588*e,2),l=n.round(-e,2),s=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return"M"+r+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+n.round(.382*e,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),a=n.round(.76*t,2);return"M-"+a+",0l-"+r+",-"+e+"h"+a+"l"+r+",-"+e+"l"+r+","+e+"h"+a+"l-"+r+","+e+"l"+r+","+e+"h-"+a+"l-"+r+","+e+"l-"+r+",-"+e+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),a=n.round(1.6*t,2),i=n.round(4*t,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+e+","+r+o+e+","+r+o+"0,-"+a+o+"-"+e+","+r+"Z"}},"star-triangle-down":{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),a=n.round(1.6*t,2),i=n.round(4*t,2),o="A "+i+","+i+" 0 0 1 ";return"M"+e+",-"+r+o+"-"+e+",-"+r+o+"0,"+a+o+e+",-"+r+"Z"}},"star-square":{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+e+",-"+e+a+"-"+e+","+e+a+e+","+e+a+e+",-"+e+a+"-"+e+",-"+e+"Z"}},"star-diamond":{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+e+",0"+a+"0,"+e+a+e+",0"+a+"0,-"+e+a+"-"+e+",0Z"}},"diamond-tall":{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return"M0,"+r+"L"+e+",0L0,-"+r+"L-"+e+",0Z"}},"diamond-wide":{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return"M0,"+r+"L"+e+",0L0,-"+r+"L-"+e+",0Z"}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"H-"+e+"L"+e+",-"+e+"H-"+e+"Z"},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"V-"+e+"L-"+e+","+e+"V-"+e+"Z"},noDot:!0},"circle-cross":{n:27,f:function(t){var e=n.round(t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+e+",0A"+e+","+e+" 0 1,1 0,-"+e+"A"+e+","+e+" 0 0,1 "+e+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(t){var e=n.round(t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e+"M"+e+",-"+e+"L-"+e+","+e+"M"+e+","+e+"H-"+e+"V-"+e+"H"+e+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(t){var e=n.round(1.3*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"ZM0,-"+e+"V"+e+"M-"+e+",0H"+e},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return"M"+e+",0L0,"+e+"L-"+e+",0L0,-"+e+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(t){var e=n.round(1.4*t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e+"M"+e+",-"+e+"L-"+e+","+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return"M0,"+e+"V-"+e+"M"+e+",0H-"+e+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return"M"+e+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+e+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),a=n.round(.8*t,2);return"M-"+e+","+a+"L0,0M"+e+","+a+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),a=n.round(.8*t,2);return"M-"+e+",-"+a+"L0,0M"+e+",-"+a+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),a=n.round(.8*t,2);return"M"+a+","+e+"L0,0M"+a+",-"+e+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),a=n.round(.8*t,2);return"M-"+a+","+e+"L0,0M-"+a+",-"+e+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(t){var e=n.round(1.4*t,2);return"M"+e+",0H-"+e},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(t){var e=n.round(1.4*t,2);return"M0,"+e+"V-"+e},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(t){var e=n.round(t,2);return"M"+e+",-"+e+"L-"+e+","+e},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(t){var e=n.round(t,2);return"M"+e+","+e+"L-"+e+",-"+e},needLine:!0,noDot:!0,noFill:!0}}},{d3:7}],65:[function(t,e,r){"use strict";e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],66:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),a=t("../../registry"),i=t("../../plots/cartesian/axes"),o=t("../../lib"),l=t("./compute_error");function s(t,e,r,a){var s=e["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=l(s),f=0;f0;e.each(function(e){var f,d=e[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(t){return t.id});var g=o.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(e=[]);var v=n.select(this).selectAll("g.errorbar").data(e,f);if(v.exit().remove(),e.length){p.visible||v.selectAll("path.xerror").remove(),h.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var m=v.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(v,r.layerClipId,t),v.each(function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&&(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&&(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),a(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,s,c);if(!g||t.vis){var i,o=e.select("path.yerror");if(h.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var f=h.width;i="M"+(r.x-f)+","+r.yh+"h"+2*f+"m-"+f+",0V"+r.ys,r.noYS||(i+="m-"+f+",0h"+2*f),!o.size()?o=e.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var d=e.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var v=(p.copy_ystyle?h:p).width;i="M"+r.xh+","+(r.y-v)+"v"+2*v+"m0,-"+v+"H"+r.xs,r.noXS||(i+="m0,-"+v+"v"+2*v),!d.size()?d=e.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(d=d.transition().duration(l.duration).ease(l.easing)),d.attr("d",i)}else d.remove()}})}})}},{"../../traces/scatter/subtypes":307,"../drawing":63,d3:7,"fast-isnumeric":9}],71:[function(t,e,r){"use strict";var n=t("d3"),a=t("../color");e.exports=function(t){t.each(function(t){var e=t[0].trace,r=e.error_y||{},i=e.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)})}},{"../color":42,d3:7}],72:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),a=t("./layout_attributes").hoverlabel,i=t("../../lib/extend").extendFlat;e.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":154,"../../plots/font_attributes":229,"./layout_attributes":81}],73:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("../../registry");function i(t,e,r,a){a=a||n.identity,Array.isArray(t)&&(e[0][r]=a(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var l=0;l=0&&r.index_[0]._length||K<0||K>w[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=J+_[0]._offset,e.pointerY=K+w[0]._offset,z="xval"in e?g.flat(s,e.xval):g.p2c(_,J),R="yval"in e?g.flat(s,e.yval):g.p2c(w,K),!a(z[0])||!a(R[0]))return o.warn("Fx.hover failed",e,t),d.unhoverRaw(t,e)}var rt=1/0;for(I=0;IG&&(Y.splice(0,G),rt=Y[0].distance),m&&0!==X&&0===Y.length){U.distance=X,U.index=!1;var lt=N._module.hoverPoints(U,V,q,"closest",u._hoverlayer);if(lt&&(lt=lt.filter(function(t){return t.spikeDistance<=X})),lt&<.length){var st,ct=lt.filter(function(t){return t.xa.showspikes});if(ct.length){var ut=ct[0];a(ut.x0)&&a(ut.y0)&&(st=ht(ut),(!$.vLinePoint||$.vLinePoint.spikeDistance>st.spikeDistance)&&($.vLinePoint=st))}var ft=lt.filter(function(t){return t.ya.showspikes});if(ft.length){var dt=ft[0];a(dt.x0)&&a(dt.y0)&&(st=ht(dt),(!$.hLinePoint||$.hLinePoint.spikeDistance>st.spikeDistance)&&($.hLinePoint=st))}}}}function pt(t,e){for(var r,n=null,a=1/0,i=0;i1||Y.length>1)||"closest"===D&&Q&&Y.length>1,Ct=f.combine(u.plot_bgcolor||f.background,u.paper_bgcolor),Ot={hovermode:D,rotateLabels:St,bgColor:Ct,container:u._hoverlayer,outerContainer:u._paperdiv,commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance},Pt=M(Y,Ot,t);if(function(t,e,r){var n,a,i,o,l,s,c,u=0,f=1,d=t.size(),p=new Array(d),h=0;function g(t){var e=t[0],r=t[t.length-1];if(a=e.pmin-e.pos-e.dp+e.size,i=r.pos+r.dp+r.size-e.pmax,a>.01){for(l=t.length-1;l>=0;l--)t[l].dp+=a;n=!1}if(!(i<.01)){if(a<-.01){for(l=t.length-1;l>=0;l--)t[l].dp-=i;n=!1}if(n){var c=0;for(o=0;oe.pmax&&c++;for(o=t.length-1;o>=0&&!(c<=0);o--)(s=t[o]).pos>e.pmax-1&&(s.del=!0,c--);for(o=0;o=0;l--)t[l].dp-=i;for(o=t.length-1;o>=0&&!(c<=0);o--)(s=t[o]).pos+s.dp+s.size>e.pmax&&(s.del=!0,c--)}}}for(t.each(function(t){var n=t[e],a="x"===n._id.charAt(0),i=n.range;0===h&&i&&i[0]>i[1]!==a&&(f=-1),p[h++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(a?x:1)/2,pmin:0,pmax:a?r.width:r.height}]}),p.sort(function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)});!n&&u<=d;){for(u++,n=!0,o=0;o.01&&y.pmin===b.pmin&&y.pmax===b.pmax){for(l=m.length-1;l>=0;l--)m[l].dp+=a;for(v.push.apply(v,m),p.splice(o+1,1),c=0,l=v.length-1;l>=0;l--)c+=v[l].dp;for(i=c/v.length,l=v.length-1;l>=0;l--)v[l].dp-=i;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o>=0;o--){var _=p[o];for(l=_.length-1;l>=0;l--){var w=_[l],k=w.datum;k.offset=w.dp,k.del=w.del}}}(Pt,St?"xa":"ya",u),A(Pt,St),e.target&&e.target.tagName){var Dt=h.getComponentMethod("annotations","hasClickToShow")(t,Tt);c(n.select(e.target),Dt?"pointer":"")}if(!e.target||i||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=t._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(t,0,kt))return;kt&&t.emit("plotly_unhover",{event:e,points:kt});t.emit("plotly_hover",{event:e,points:t._hoverdata,xaxes:_,yaxes:w,xvals:z,yvals:R})}(t,e,r,i)})},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var a=t.map(function(t){return{color:t.color||f.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}}),i=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:e.bgColor||f.background,container:i,outerContainer:o},s=M(a,l,e.gd),c=0,u=0;return s.sort(function(t,e){return t.y0-e.y0}).each(function(t,r){var n=t.y0-t.by/2;t.offset=n-5([\s\S]*)<\/extra>/;function M(t,e,r){var a=r._fullLayout,i=e.hovermode,l=e.rotateLabels,c=e.bgColor,d=e.container,p=e.outerContainer,h=e.commonLabelOpts||{},g=e.fontFamily||v.HOVERFONT,y=e.fontSize||v.HOVERFONTSIZE,x=t[0],b=x.xa,_=x.ya,M="y"===i?"yLabel":"xLabel",A=x[M],L=(String(A)||"").split(" ")[0],S=p.node().getBoundingClientRect(),C=S.top,P=S.width,D=S.height,z=void 0!==A&&x.distance<=e.hoverdistance&&("x"===i||"y"===i);if(z){var R,E,I=!0;for(R=0;Ra.width-D?(T=a.width-D,l.attr("d","M"+(D-w)+",0L"+D+","+P+w+"v"+P+(2*k+O.height)+"H-"+D+"V"+P+w+"H"+(D-2*w)+"Z")):l.attr("d","M0,0L"+w+","+P+w+"H"+(k+O.width/2)+"v"+P+(2*k+O.height)+"H-"+(k+O.width/2)+"V"+P+w+"H-"+w+"Z")}else{var z,R,E;"right"===_.side?(z="start",R=1,E="",T=b._offset+b._length):(z="end",R=-1,E="-",T=b._offset),S=_._offset+(x.y0+x.y1)/2,c.attr("text-anchor",z),l.attr("d","M0,0L"+E+w+","+w+"V"+(k+O.height/2)+"h"+E+(2*k+O.width)+"V-"+(k+O.height/2)+"H"+E+w+"V-"+w+"Z");var I,F=O.height/2,N=C-O.top-F,j="clip"+a._uid+"commonlabel"+_._id;if(T"),void 0!==t.yLabel&&(p+="y: "+t.yLabel+"
"),"choropleth"!==t.trace.type&&"choroplethmapbox"!==t.trace.type&&(p+=(p?"z: ":"")+t.zLabel)):z&&t[i+"Label"]===A?p=t[("x"===i?"y":"x")+"Label"]||"":void 0===t.xLabel?void 0!==t.yLabel&&"scattercarpet"!==t.trace.type&&(p=t.yLabel):p=void 0===t.yLabel?t.xLabel:"("+t.xLabel+", "+t.yLabel+")",!t.text&&0!==t.text||Array.isArray(t.text)||(p+=(p?"
":"")+t.text),void 0!==t.extraText&&(p+=(p?"
":"")+t.extraText),""!==p||t.hovertemplate||(""===d&&e.remove(),p=d);var _=a._d3locale,M=t.hovertemplate||!1,L=t.hovertemplateLabels||t,S=t.eventData[0]||{};M&&(p=(p=o.hovertemplateString(M,L,_,S,t.trace._meta)).replace(T,function(e,r){return d=O(r,t.nameLength),""}));var R=e.select("text.nums").call(u.font,t.fontFamily||g,t.fontSize||y,t.fontColor||b).text(p).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,r),E=e.select("text.name"),I=0,F=0;if(d&&d!==p){E.call(u.font,t.fontFamily||g,t.fontSize||y,x).text(d).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,r);var N=E.node().getBoundingClientRect();I=N.width+2*k,F=N.height+2*k}else E.remove(),e.select("rect").remove();e.select("path").style({fill:v,stroke:b});var j,B,H=R.node().getBoundingClientRect(),V=t.xa._offset+(t.x0+t.x1)/2,q=t.ya._offset+(t.y0+t.y1)/2,U=Math.abs(t.x1-t.x0),G=Math.abs(t.y1-t.y0),Z=H.width+w+k+I;if(t.ty0=C-H.top,t.bx=H.width+2*k,t.by=Math.max(H.height+2*k,F),t.anchor="start",t.txwidth=H.width,t.tx2width=I,t.offset=0,l)t.pos=V,j=q+G/2+Z<=D,B=q-G/2-Z>=0,"top"!==t.idealAlign&&j||!B?j?(q+=G/2,t.anchor="start"):t.anchor="middle":(q-=G/2,t.anchor="end");else if(t.pos=q,j=V+U/2+Z<=P,B=V-U/2-Z>=0,"left"!==t.idealAlign&&j||!B)if(j)V+=U/2,t.anchor="start";else{t.anchor="middle";var X=Z/2,Y=V+X-P,W=V-X;Y>0&&(V-=Y),W<0&&(V+=-W)}else V-=U/2,t.anchor="end";R.attr("text-anchor",t.anchor),I&&E.attr("text-anchor",t.anchor),e.attr("transform","translate("+V+","+q+")"+(l?"rotate("+m+")":""))}),j}function A(t,e){t.each(function(t){var r=n.select(this);if(t.del)return r.remove();var a=r.select("text.nums"),i=t.anchor,o="end"===i?-1:1,l={start:1,end:-1,middle:0}[i],c=l*(w+k),f=c+l*(t.txwidth+k),d=0,p=t.offset;"middle"===i&&(c-=t.tx2width/2,f+=t.txwidth/2+k),e&&(p*=-_,d=t.offset*b),r.select("path").attr("d","middle"===i?"M-"+(t.bx/2+t.tx2width/2)+","+(p-t.by/2)+"h"+t.bx+"v"+t.by+"h-"+t.bx+"Z":"M0,0L"+(o*w+d)+","+(w+p)+"v"+(t.by/2-w)+"h"+o*t.bx+"v-"+t.by+"H"+(o*w+d)+"V"+(p-w)+"Z");var h=c+d,g=p+t.ty0-t.by/2+k,v=t.textAlign||"auto";"auto"!==v&&("left"===v&&"start"!==i?(a.attr("text-anchor","start"),h="middle"===i?-t.bx/2-t.tx2width/2+k:-t.bx-k):"right"===v&&"end"!==i&&(a.attr("text-anchor","end"),h="middle"===i?t.bx/2-t.tx2width/2-k:t.bx+k)),a.call(s.positionText,h,g),t.tx2width&&(r.select("text.name").call(s.positionText,f+l*k+d,p+t.ty0-t.by/2+k),r.select("rect").call(u.setRect,f+(l-1)*t.tx2width/2+d,p-t.by/2-1,t.tx2width,t.by+2))})}function L(t,e){var r=t.index,n=t.trace||{},i=t.cd[0],l=t.cd[r]||{};function s(t){return t||a(t)&&0===t}var c=Array.isArray(r)?function(t,e){var a=o.castOption(i,r,t);return s(a)?a:o.extractOption({},n,"",e)}:function(t,e){return o.extractOption(l,n,t,e)};function u(e,r,n){var a=c(r,n);s(a)&&(t[e]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),t.posref="y"===e||"closest"===e&&"h"===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&&(t.xLabel="xLabel"in t?t.xLabel:p.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&&(t.yLabel="yLabel"in t?t.yLabel:p.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&&void 0===t.zLabel&&(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||"log"===t.xa.type&&t.xerr<=0)){var f=p.tickText(t.xa,t.xa.c2l(t.xerr),"hover").text;void 0!==t.xerrneg?t.xLabel+=" +"+f+" / -"+p.tickText(t.xa,t.xa.c2l(t.xerrneg),"hover").text:t.xLabel+=" \xb1 "+f,"x"===e&&(t.distance+=1)}if(!(isNaN(t.yerr)||"log"===t.ya.type&&t.yerr<=0)){var d=p.tickText(t.ya,t.ya.c2l(t.yerr),"hover").text;void 0!==t.yerrneg?t.yLabel+=" +"+d+" / -"+p.tickText(t.ya,t.ya.c2l(t.yerrneg),"hover").text:t.yLabel+=" \xb1 "+d,"y"===e&&(t.distance+=1)}var h=t.hoverinfo||t.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(t.xLabel=void 0),-1===h.indexOf("y")&&(t.yLabel=void 0),-1===h.indexOf("z")&&(t.zLabel=void 0),-1===h.indexOf("text")&&(t.text=void 0),-1===h.indexOf("name")&&(t.name=void 0)),t}function S(t,e,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,c=r.event,d=!!e.hLinePoint,h=!!e.vLinePoint;if(o.selectAll(".spikeline").remove(),h||d){var g=f.combine(l.plot_bgcolor,l.paper_bgcolor);if(d){var v,m,y=e.hLinePoint;n=y&&y.xa,"cursor"===(a=y&&y.ya).spikesnap?(v=c.pointerX,m=c.pointerY):(v=n._offset+y.x,m=a._offset+y.y);var x,b,_=i.readability(y.color,g)<1.5?f.contrast(g):y.color,w=a.spikemode,k=a.spikethickness,T=a.spikecolor||_,M=p.getPxPosition(t,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=M,b=v),-1!==w.indexOf("across")){var A=a._counterDomainMin,L=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),L=Math.max(L,a.position)),x=s.l+A*s.w,b=s.l+L*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k,stroke:T,"stroke-dasharray":u.dashStyle(a.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:m,y2:m,"stroke-width":k+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:M+("right"!==a.side?k:-k),cy:m,r:k,fill:T}).classed("spikeline",!0)}if(h){var S,C,O=e.vLinePoint;n=O&&O.xa,a=O&&O.ya,"cursor"===n.spikesnap?(S=c.pointerX,C=c.pointerY):(S=n._offset+O.x,C=a._offset+O.y);var P,D,z=i.readability(O.color,g)<1.5?f.contrast(g):O.color,R=n.spikemode,E=n.spikethickness,I=n.spikecolor||z,F=p.getPxPosition(t,n);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(P=F,D=C),-1!==R.indexOf("across")){var N=n._counterDomainMin,j=n._counterDomainMax;"free"===n.anchor&&(N=Math.min(N,n.position),j=Math.max(j,n.position)),P=s.t+(1-j)*s.h,D=s.t+(1-N)*s.h}o.insert("line",":first-child").attr({x1:S,x2:S,y1:P,y2:D,"stroke-width":E,stroke:I,"stroke-dasharray":u.dashStyle(n.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:S,x2:S,y1:P,y2:D,"stroke-width":E+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:S,cy:F-("top"!==n.side?E:-E),r:E,fill:I}).classed("spikeline",!0)}}}function C(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function O(t,e){return s.plainText(t||"",{len:e,allowedTags:["br","sub","sup","b","i","em"]})}},{"../../lib":159,"../../lib/events":153,"../../lib/override_cursor":170,"../../lib/svg_text_utils":180,"../../plots/cartesian/axes":203,"../../registry":243,"../color":42,"../dragelement":60,"../drawing":63,"./constants":75,"./helpers":77,d3:7,"fast-isnumeric":9,tinycolor2:25}],79:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e,r,a){r("hoverlabel.bgcolor",(a=a||{}).bgcolor),r("hoverlabel.bordercolor",a.bordercolor),r("hoverlabel.namelength",a.namelength),n.coerceFont(r,"hoverlabel.font",a.font),r("hoverlabel.align",a.align)}},{"../../lib":159}],80:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../lib"),i=t("../dragelement"),o=t("./helpers"),l=t("./layout_attributes"),s=t("./hover");e.exports={moduleType:"component",name:"fx",constants:t("./constants"),schema:{layout:l},attributes:t("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:t("./layout_global_defaults"),supplyDefaults:t("./defaults"),supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return a.castOption(t,e,"hoverlabel."+r)},castHoverinfo:function(t,e,r){return a.castOption(t,r,"hoverinfo",function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)})},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(t){var e=a.isD3Selection(t)?t:n.select(t);e.selectAll("g.hovertext").remove(),e.selectAll(".spikeline").remove()},click:t("./click")}},{"../../lib":159,"../dragelement":60,"./attributes":72,"./calc":73,"./click":74,"./constants":75,"./defaults":76,"./helpers":77,"./hover":78,"./layout_attributes":81,"./layout_defaults":82,"./layout_global_defaults":83,d3:7}],81:[function(t,e,r){"use strict";var n=t("./constants"),a=t("../../plots/font_attributes")({editType:"none"});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1],editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:20,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":229,"./constants":75}],82:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("./layout_attributes");e.exports=function(t,e,r){function i(r,i){return n.coerce(t,e,a,r,i)}var o,l=i("clickmode");"select"===i("dragmode")&&i("selectdirection"),e._has("cartesian")?l.indexOf("select")>-1?o="closest":(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n1){d||p||h||"independent"===T("pattern")&&(d=!0),v._hasSubplotGrid=d;var x,b,_="top to bottom"===T("roworder"),w=d?.2:.1,k=d?.3:.1;g&&e._splomGridDflt&&(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),v._domains={x:u("x",T,w,x,y),y:u("y",T,k,b,m,_)}}else delete e.grid}function T(t,e){return n.coerce(r,v,s,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&&r._domains){var n,a,i,o,l,s,u,d=t.grid||{},p=e._subplots,h=r._hasSubplotGrid,g=r.rows,v=r.columns,m="independent"===r.pattern,y=r._axisMap={};if(h){var x=d.subplots||[];s=r.subplots=new Array(g);var b=1;for(n=0;n1);if(!1!==g||c.uirevision){var v=i.newContainer(e,"legend");if(_("uirevision",e.uirevision),!1!==g){_("bgcolor",e.paper_bgcolor),_("bordercolor"),_("borderwidth"),a.coerceFont(_,"font",e.font);var m,y,x,b=_("orientation");"h"===b?(m=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?(y=1.1,x="bottom"):(y=-.1,x="top")):(m=1.02,y=1,x="auto"),_("traceorder",d),s.isGrouped(e.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemclick"),_("itemdoubleclick"),_("x",m),_("xanchor"),_("y",y),_("yanchor",x),_("valign"),a.noneOrAll(c,v,["x","y"]),_("title.text")&&(_("title.side","h"===b?"left":"top"),a.coerceFont(_,"title.font",e.font))}}function _(t,e){return a.coerce(c,v,o,t,e)}}},{"../../lib":159,"../../plot_api/plot_template":193,"../../plots/layout_attributes":233,"../../registry":243,"./attributes":90,"./helpers":96}],93:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../lib"),i=t("../../plots/plots"),o=t("../../registry"),l=t("../../lib/events"),s=t("../dragelement"),c=t("../drawing"),u=t("../color"),f=t("../../lib/svg_text_utils"),d=t("./handle_click"),p=t("./constants"),h=t("../../constants/alignment"),g=h.LINE_SPACING,v=h.FROM_TL,m=h.FROM_BR,y=t("./get_legend_data"),x=t("./style"),b=t("./helpers");function _(t,e,r,n,a){var i=r.data()[0][0].trace,s={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(t,"plotly_legendclick",s))if(1===n)e._clickTimeout=setTimeout(function(){d(r,t,n)},t._context.doubleClickDelay);else if(2===n){e._clickTimeout&&clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==l.triggerHandler(t,"plotly_legenddoubleclick",s)&&d(r,t,n)}}function w(t,e){var r=t.data()[0][0],n=e._fullLayout.legend,i=r.trace,l=o.traceIs(i,"pie-like"),s=i.index,u=e._context.edits.legendText&&!l,d=n._maxNameLength,h=l?r.label:i.name;i._meta&&(h=a.templateString(h,i._meta));var g=a.ensureSingle(t,"text","legendtext");g.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,n.font).text(u?k(h,d):h),f.positionText(g,p.textGap,0),u?g.call(f.makeEditable,{gd:e,text:h}).call(M,t,e).on("edit",function(n){this.text(k(n,d)).call(M,t,e);var i=r.trace._fullInput||{},l={};if(o.hasTransform(i,"groupby")){var c=o.getTransformIndices(i,"groupby"),u=c[c.length-1],f=a.keyedContainer(i,"transforms["+u+"].styles","target","value.name");f.set(r.trace._group,n),l=f.constructUpdate()}else l.name=n;return o.call("_guiRestyle",e,l,s)}):M(g,t,e)}function k(t,e){var r=Math.max(4,e);if(t&&t.trim().length>=r/2)return t;for(var n=r-(t=t||"").length;n>0;n--)t+=" ";return t}function T(t,e){var r,i=e._context.doubleClickDelay,o=1,l=a.ensureSingle(t,"rect","legendtoggle",function(t){t.style("cursor","pointer").attr("pointer-events","all").call(u.fill,"rgba(0,0,0,0)")});l.on("mousedown",function(){(r=(new Date).getTime())-e._legendMouseDownTimei&&(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})}function M(t,e,r){f.convertToTspans(t,r,function(){!function(t,e){var r=t.data()[0][0];if(r&&!r.trace.showlegend)return void t.remove();var n,a,i=t.select("g[class*=math-group]"),o=i.node(),l=e._fullLayout.legend.borderwidth,s=e._fullLayout.legend,u=(r?s:s.title).font.size*g;if(o){var d=c.bBox(o);n=d.height,a=d.width,r?c.setTranslate(i,0,.25*n):c.setTranslate(i,l,.75*n+l)}else{var h=t.select(r?".legendtext":".legendtitletext"),v=f.lineCount(h),m=h.node();n=u*v,a=m?c.bBox(m).width:0;var y=u*((v-1)/2-.3);r?f.positionText(h,p.textGap,-y):f.positionText(h,p.titlePad+l,u+l)}r?(r.lineHeight=u,r.height=Math.max(n,16)+3,r.width=a):(s._titleWidth=a,s._titleHeight=n)}(e,r)})}function A(t){return a.isRightAnchor(t)?"right":a.isCenterAnchor(t)?"center":"left"}function L(t){return a.isBottomAnchor(t)?"bottom":a.isMiddleAnchor(t)?"middle":"top"}e.exports=function(t){var e=t._fullLayout,r="legend"+e._uid;if(e._infolayer&&t.calcdata){t._legendMouseDownTime||(t._legendMouseDownTime=0);var l=e.legend,f=e.showlegend&&y(t.calcdata,l),d=e.hiddenlabels||[];if(!e.showlegend||!f.length)return e._infolayer.selectAll(".legend").remove(),e._topdefs.select("#"+r).remove(),i.autoMargin(t,"legend");var h=a.ensureSingle(e._infolayer,"g","legend",function(t){t.attr("pointer-events","all")}),g=a.ensureSingleById(e._topdefs,"clipPath",r,function(t){t.append("rect")}),k=a.ensureSingle(h,"rect","bg",function(t){t.attr("shape-rendering","crispEdges")});k.call(u.stroke,l.bordercolor).call(u.fill,l.bgcolor).style("stroke-width",l.borderwidth+"px");var S=a.ensureSingle(h,"g","scrollbox"),C=l.title;if(l._titleWidth=0,l._titleHeight=0,C.text){var O=a.ensureSingle(S,"text","legendtitletext");O.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,C.font).text(C.text),M(O,S,t)}var P=a.ensureSingle(h,"rect","scrollbar",function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)}),D=S.selectAll("g.groups").data(f);D.enter().append("g").attr("class","groups"),D.exit().remove();var z=D.selectAll("g.traces").data(a.identity);z.enter().append("g").attr("class","traces"),z.exit().remove(),z.style("opacity",function(t){var e=t[0].trace;return o.traceIs(e,"pie-like")?-1!==d.indexOf(t[0].label)?.5:1:"legendonly"===e.visible?.5:1}).each(function(){n.select(this).call(w,t)}).call(x,t).each(function(){n.select(this).call(T,t)}),a.syncOrAsync([i.previousPromises,function(){return function(t,e,r){var a=t._fullLayout,i=a.legend,o=a._size,l=b.isVertical(i),s=b.isGrouped(i),u=i.borderwidth,f=2*u,d=p.textGap,h=p.itemGap,g=2*(u+h),v=L(i),m=i.y<0||0===i.y&&"top"===v,y=i.y>1||1===i.y&&"bottom"===v;i._maxHeight=Math.max(m||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&&(-1!==n.indexOf("left")&&(e=t._titleWidth),-1!==n.indexOf("top")&&(r=t._titleHeight));return[e,r]}(i);if(l)r.each(function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)}),x=d+i._width,i._width+=h+d+f,i._height+=g,s&&(e.each(function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),k=i.x<0||0===i.x&&"right"===w,T=i.x>1||1===i.x&&"left"===w,M=y||m,S=a.width/2;i._maxWidth=Math.max(k?M&&"left"===w?o.l+o.w:S:T?M&&"right"===w?o.r+o.w:S:o.w,2*d);var C=0,O=0;r.each(function(t){var e=t[0].width+d;C=Math.max(C,e),O+=e}),x=null;var P=0;if(s){var D=0,z=0,R=0;e.each(function(){var t=0,e=0;n.select(this).selectAll("g.traces").each(function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)}),D=Math.max(D,e);var r=t+h;r+u+z>i._maxWidth&&(P=Math.max(P,z),z=0,R+=D+i.tracegroupgap,D=e),c.setTranslate(this,z,R),z+=r}),i._width=Math.max(P,z)+u,i._height=R+D+g}else{var E=r.size(),I=O+f+(E-1)*hi._maxWidth&&(P=Math.max(P,B),N=0,j+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+N,_[1]+u+j+e/2+h),B=N+r+h,N+=n,F=Math.max(F,e)}),I?(i._width=N+f,i._height=F+g):(i._width=Math.max(P,B)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var H=t._context.edits,V=H.legendText||H.legendPosition;r.each(function(t){var e=n.select(this).select(".legendtoggle"),r=t[0].height,a=V?d:x||d+t[0].width;l||(a+=h/2),c.setRect(e,0,-r/2,a,r)})}(t,D,z)},function(){if(!function(t){var e=t._fullLayout.legend,r=A(e),n=L(e);return i.autoMargin(t,"legend",{x:e.x,y:e.y,l:e._width*v[r],r:e._width*m[r],b:e._effHeight*m[n],t:e._effHeight*v[n]})}(t)){var u,f,d,y,x=e._size,b=l.borderwidth,w=x.l+x.w*l.x-v[A(l)]*l._width,T=x.t+x.h*(1-l.y)-v[L(l)]*l._effHeight;if(e.margin.autoexpand){var M=w,C=T;w=a.constrain(w,0,e.width-l._width),T=a.constrain(T,0,e.height-l._effHeight),w!==M&&a.log("Constrain legend.x to make legend fit inside graph"),T!==C&&a.log("Constrain legend.y to make legend fit inside graph")}if(c.setTranslate(h,w,T),P.on(".drag",null),h.on("wheel",null),l._height<=l._maxHeight||t._context.staticPlot)k.attr({width:l._width-b,height:l._effHeight-b,x:b/2,y:b/2}),c.setTranslate(S,0,0),g.select("rect").attr({width:l._width-2*b,height:l._effHeight-2*b,x:b,y:b}),c.setClipUrl(S,r,t),c.setRect(P,0,0,0,0),delete l._scrollY;else{var O,D,z,R=Math.max(p.scrollBarMinHeight,l._effHeight*l._effHeight/l._height),E=l._effHeight-R-2*p.scrollBarMargin,I=l._height-l._effHeight,F=E/I,N=Math.min(l._scrollY||0,I);k.attr({width:l._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:l._effHeight-b,x:b/2,y:b/2}),g.select("rect").attr({width:l._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:l._effHeight-2*b,x:b,y:b+N}),c.setClipUrl(S,r,t),H(N,R,F),h.on("wheel",function(){H(N=a.constrain(l._scrollY+n.event.deltaY/E*I,0,I),R,F),0!==N&&N!==I&&n.event.preventDefault()});var j=n.behavior.drag().on("dragstart",function(){var t=n.event.sourceEvent;O="touchstart"===t.type?t.changedTouches[0].clientY:t.clientY,z=N}).on("drag",function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(D="touchmove"===t.type?t.changedTouches[0].clientY:t.clientY,H(N=function(t,e,r){var n=(r-e)/F+t;return a.constrain(n,0,I)}(z,O,D),R,F))});P.call(j);var B=n.behavior.drag().on("dragstart",function(){var t=n.event.sourceEvent;"touchstart"===t.type&&(O=t.changedTouches[0].clientY,z=N)}).on("drag",function(){var t=n.event.sourceEvent;"touchmove"===t.type&&(D=t.changedTouches[0].clientY,H(N=function(t,e,r){var n=(e-r)/F+t;return a.constrain(n,0,I)}(z,O,D),R,F))});S.call(B)}if(t._context.edits.legendPosition)h.classed("cursor-move",!0),s.init({element:h.node(),gd:t,prepFn:function(){var t=c.getTranslate(h);d=t.x,y=t.y},moveFn:function(t,e){var r=d+t,n=y+e;c.setTranslate(h,r,n),u=s.align(r,0,x.l,x.l+x.w,l.xanchor),f=s.align(n,0,x.t+x.h,x.t,l.yanchor)},doneFn:function(){void 0!==u&&void 0!==f&&o.call("_guiRelayout",t,{"legend.x":u,"legend.y":f})},clickFn:function(r,n){var a=e._infolayer.selectAll("g.traces").filter(function(){var t=this.getBoundingClientRect();return n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom});a.size()>0&&_(t,h,a,r,n)}})}function H(e,r,n){l._scrollY=t._fullLayout.legend._scrollY=e,c.setTranslate(S,0,-e),c.setRect(P,l._width,p.scrollBarMargin+e*n,p.scrollBarWidth,r),g.select("rect").attr("y",b+e)}}],t)}}},{"../../constants/alignment":136,"../../lib":159,"../../lib/events":153,"../../lib/svg_text_utils":180,"../../plots/plots":235,"../../registry":243,"../color":42,"../dragelement":60,"../drawing":63,"./constants":91,"./get_legend_data":94,"./handle_click":95,"./helpers":96,"./style":98,d3:7}],94:[function(t,e,r){"use strict";var n=t("../../registry"),a=t("./helpers");e.exports=function(t,e){var r,i,o={},l=[],s=!1,c={},u=0,f=0;function d(t,r){if(""!==t&&a.isGrouped(e))-1===l.indexOf(t)?(l.push(t),s=!0,o[t]=[[r]]):o[t].push([r]);else{var n="~~i"+u;l.push(n),o[n]=[[r]],u++}}for(r=0;r0))return 0;a=e.width}return y?n:Math.min(a,r)};function b(t,e,r){var i=t[0].trace,o=i.marker||{},s=o.line||{},c=r?i.visible&&i.type===r:a.traceIs(i,"bar"),u=n.select(e).select("g.legendpoints").selectAll("path.legend"+r).data(c?[t]:[]);u.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.each(function(t){var e=n.select(this),r=t[0],a=x(r.mlw,o.line,v,h);e.style("stroke-width",a+"px").call(l.fill,r.mc||o.color),a&&l.stroke(e,r.mlc||s.color)})}function _(t,e,r){var o=t[0],l=o.trace,s=r?l.visible&&l.type===r:a.traceIs(l,r),c=n.select(e).select("g.legendpoints").selectAll("path.legend"+r).data(s?[t]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),c.exit().remove(),c.size()){var d=(l.marker||{}).line,p=x(f(d.width,o.pts),d,v,h),g=i.minExtend(l,{marker:{line:{width:p}}});g.marker.line.color=d.color;var m=i.minExtend(o,{trace:g});u(c,m,g)}}t.each(function(t){var e=n.select(this),a=i.ensureSingle(e,"g","layers");a.style("opacity",t[0].trace.opacity);var o=r.valign,l=t[0].lineHeight,s=t[0].height;if("middle"!==o&&l&&s){var c={top:1,bottom:-1}[o]*(.5*(l-s+3));a.attr("transform","translate(0,"+c+")")}else a.attr("transform",null);a.selectAll("g.legendfill").data([t]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([t]).enter().append("g").classed("legendlines",!0);var u=a.selectAll("g.legendsymbols").data([t]);u.enter().append("g").classed("legendsymbols",!0),u.selectAll("g.legendpoints").data([t]).enter().append("g").classed("legendpoints",!0)}).each(function(t){var r,a=t[0].trace,c=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":c=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":c=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":c=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":c=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),u.exit().remove(),u.each(function(t,c){var u,f=n.select(this),d=s(a),p=d.colorscale,h=d.reversescale;if(p){if(!r){var g=p.length;u=0===c?p[h?g-1:0][1]:1===c?p[h?0:g-1][1]:p[Math.floor((g-1)/2)][1]}}else{var v=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(v)?v[c]||v[0]:v}f.attr("d",t[0]),u?f.call(l.fill,u):f.call(function(t){if(t.size()){var n="legendfill-"+a.uid;o.gradient(t,e,n,m(h,"radial"===r),p,"fill")}})})}).each(function(t){var e=t[0].trace,r=[];e.visible&&"waterfall"===e.type&&(r=t[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var a=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(r);a.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),a.exit().remove(),a.each(function(t){var r=n.select(this),a=e[t[0]].marker,i=x(void 0,a.line,v,h);r.attr("d",t[1]).style("stroke-width",i+"px").call(l.fill,a.color),i&&r.call(l.stroke,a.line.color)})}).each(function(t){b(t,this,"funnel")}).each(function(t){b(t,this)}).each(function(t){var r=t[0].trace,s=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[t]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),s.exit().remove(),s.each(function(){var t=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var a=x(void 0,r.line,v,h);t.style("stroke-width",a+"px").call(l.fill,r.fillcolor),a&&l.stroke(t,r.line.color)}else{var c=i.minExtend(r,{marker:{size:y?d:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(o.pointStyle,c,e)}})}).each(function(t){_(t,this,"funnelarea")}).each(function(t){_(t,this,"pie")}).each(function(t){var r,a,l=t[0],u=l.trace,f=u.visible&&u.fill&&"none"!==u.fill,d=c.hasLines(u),h=u.contours,v=!1,y=!1,b=s(u),_=b.colorscale,w=b.reversescale;if(h){var k=h.coloring;"lines"===k?v=!0:d="none"===k||"heatmap"===k||h.showlines,"constraint"===h.type?f="="!==h._operation:"fill"!==k&&"heatmap"!==k||(y=!0)}var T=c.hasMarkers(u)||c.hasText(u),M=f||y,A=d||v,L=T||!M?"M5,0":A?"M5,-2":"M5,-3",S=n.select(this),C=S.select(".legendfill").selectAll("path").data(f||y?[t]:[]);if(C.enter().append("path").classed("js-fill",!0),C.exit().remove(),C.attr("d",L+"h30v6h-30z").call(f?o.fillGroupStyle:function(t){if(t.size()){var r="legendfill-"+u.uid;o.gradient(t,e,r,m(w),_,"fill")}}),d||v){var O=x(void 0,u.line,g,p);a=i.minExtend(u,{line:{width:O}}),r=[i.minExtend(l,{trace:a})]}var P=S.select(".legendlines").selectAll("path").data(d||v?[r]:[]);P.enter().append("path").classed("js-line",!0),P.exit().remove(),P.attr("d",L+(v?"l30,0.0001":"h30")).call(d?o.lineGroupStyle:function(t){if(t.size()){var r="legendline-"+u.uid;o.lineGroupStyle(t),o.gradient(t,e,r,m(w),_,"stroke")}})}).each(function(t){var r,a,l=t[0],s=l.trace,u=c.hasMarkers(s),f=c.hasText(s),g=c.hasLines(s);function v(t,e,r,n){var a=i.nestedProperty(s,t).get(),o=i.isArrayOrTypedArray(a)&&e?e(a):a;if(y&&o&&void 0!==n&&(o=n),r){if(or[1])return r[1]}return o}function m(t){return t[0]}if(u||f||g){var x={},b={};if(u){x.mc=v("marker.color",m),x.mx=v("marker.symbol",m),x.mo=v("marker.opacity",i.mean,[.2,1]),x.mlc=v("marker.line.color",m),x.mlw=v("marker.line.width",i.mean,[0,5],h),b.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _=v("marker.size",i.mean,[2,16],d);x.ms=_,b.marker.size=_}g&&(b.line={width:v("line.width",m,[0,10],p)}),f&&(x.tx="Aa",x.tp=v("textposition",m),x.ts=10,x.tc=v("textfont.color",m),x.tf=v("textfont.family",m)),r=[i.minExtend(l,x)],(a=i.minExtend(s,b)).selectedpoints=null,a.texttemplate=null}var w=n.select(this).select("g.legendpoints"),k=w.selectAll("path.scatterpts").data(u?r:[]);k.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),k.exit().remove(),k.call(o.pointStyle,a,e),u&&(r[0].mrc=3);var T=w.selectAll("g.pointtext").data(f?r:[]);T.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),T.exit().remove(),T.selectAll("text").call(o.textPointStyle,a,e)}).each(function(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(e.visible&&"candlestick"===e.type?[t,t]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",function(t,e){return e?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform","translate(20,0)").style("stroke-miterlimit",1),r.exit().remove(),r.each(function(t,r){var a=n.select(this),i=e[r?"increasing":"decreasing"],o=x(void 0,i.line,v,h);a.style("stroke-width",o+"px").call(l.fill,i.fillcolor),o&&l.stroke(a,i.line.color)})}).each(function(t){var e=t[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(e.visible&&"ohlc"===e.type?[t,t]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",function(t,e){return e?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform","translate(20,0)").style("stroke-miterlimit",1),r.exit().remove(),r.each(function(t,r){var a=n.select(this),i=e[r?"increasing":"decreasing"],s=x(void 0,i.line,v,h);a.style("fill","none").call(o.dashLine,i.line.dash,s),s&&l.stroke(a,i.line.color)})})}},{"../../lib":159,"../../registry":243,"../../traces/pie/helpers":275,"../../traces/pie/style_one":281,"../../traces/scatter/subtypes":307,"../color":42,"../colorscale/helpers":53,"../drawing":63,d3:7}],99:[function(t,e,r){"use strict";var n=t("../../registry"),a=t("../../plots/plots"),i=t("../../plots/cartesian/axis_ids"),o=t("../../lib"),l=t("../../fonts/ploticon"),s=o._,c=e.exports={};function u(t,e){var r,a,o=e.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=t._fullLayout,u={},f=i.list(t,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var p,h="in"===s?.5:2,g=(1+h)/2,v=(1-h)/2;for(a=0;a1?(M=["toggleHover"],A=["resetViews"]):d?(T=["zoomInGeo","zoomOutGeo"],M=["hoverClosestGeo"],A=["resetGeo"]):f?(M=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(T=["zoomInMapbox","zoomOutMapbox"],M=["toggleHover"],A=["resetViewMapbox"]):g?M=["hoverClosestGl2d"]:p?M=["hoverClosestPie"]:x?(M=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):M=["toggleHover"];u&&(M=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(t){for(var e=0;e0)){var g=function(t,e,r){for(var n=r.filter(function(r){return e[r].anchor===t._id}),a=0,i=0;i0?d+c:c;return{ppad:c,ppadplus:u?h:g,ppadminus:u?g:h}}return{ppad:c}}function u(t,e,r,n,a){var l="category"===t.type||"multicategory"===t.type?t.r2c:t.d2c;if(void 0!==e)return[l(e),l(r)];if(n){var s,c,u,f,d=1/0,p=-1/0,h=n.match(i.segmentRE);for("date"===t.type&&(l=o.decodeDate(l)),s=0;sp&&(p=f)));return p>=d?[d,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&&t._fullData.length)for(var o=0;o10?t/2:10;return n.append("circle").attr({"data-line-point":"start-point",cx:E?q(r.xanchor)+r.x0:q(r.x0),cy:I?U(r.yanchor)-r.y0:U(r.y0),r:i}).style(a).classed("cursor-grab",!0),n.append("circle").attr({"data-line-point":"end-point",cx:E?q(r.xanchor)+r.x1:q(r.x1),cy:I?U(r.yanchor)-r.y1:U(r.y1),r:i}).style(a).classed("cursor-grab",!0),n}():e,Y={element:X.node(),gd:t,prepFn:function(n){E&&(_=q(r.xanchor));I&&(w=U(r.yanchor));"path"===r.type?P=r.path:(m=E?r.x0:q(r.x0),y=I?r.y0:U(r.y0),x=E?r.x1:q(r.x1),b=I?r.y1:U(r.y1));mb?(k=y,L="y0",T=b,S="y1"):(k=b,L="y1",T=y,S="y0");W(n),J(p,r),function(t,e,r){var n=e.xref,a=e.yref,o=i.getFromId(r,n),s=i.getFromId(r,a),c="";"paper"===n||o.autorange||(c+=n);"paper"===a||s.autorange||(c+=a);l.setClipUrl(t,c?"clip"+r._fullLayout._uid+c:null,r)}(e,r,t),Y.moveFn="move"===D?$:Q},doneFn:function(){u(e),K(p),h(e,t,r),n.call("_guiRelayout",t,j.getUpdateObj())},clickFn:function(){K(p)}};function W(t){if(F)D="path"===t.target.tagName?"move":"start-point"===t.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=Y.element.getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top,i=t.clientX-r.left,o=t.clientY-r.top,l=!N&&n>z&&a>R&&!t.shiftKey?c.getCursor(i/n,1-o/a):"move";u(e,l),D=l.split("-")[0]}}function $(n,a){if("path"===r.type){var i=function(t){return t},o=i,l=i;E?B("xanchor",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},H&&"date"===H.type&&(o=d.encodeDate(o))),I?B("yanchor",r.yanchor=Z(w+a)):(l=function(t){return Z(U(t)+a)},V&&"date"===V.type&&(l=d.encodeDate(l))),B("path",r.path=v(P,o,l))}else E?B("xanchor",r.xanchor=G(_+n)):(B("x0",r.x0=G(m+n)),B("x1",r.x1=G(x+n))),I?B("yanchor",r.yanchor=Z(w+a)):(B("y0",r.y0=Z(y+a)),B("y1",r.y1=Z(b+a)));e.attr("d",g(t,r)),J(p,r)}function Q(n,a){if(N){var i=function(t){return t},o=i,l=i;E?B("xanchor",r.xanchor=G(_+n)):(o=function(t){return G(q(t)+n)},H&&"date"===H.type&&(o=d.encodeDate(o))),I?B("yanchor",r.yanchor=Z(w+a)):(l=function(t){return Z(U(t)+a)},V&&"date"===V.type&&(l=d.encodeDate(l))),B("path",r.path=v(P,o,l))}else if(F){if("resize-over-start-point"===D){var s=m+n,c=I?y-a:y+a;B("x0",r.x0=E?s:G(s)),B("y0",r.y0=I?c:Z(c))}else if("resize-over-end-point"===D){var u=x+n,f=I?b-a:b+a;B("x1",r.x1=E?u:G(u)),B("y1",r.y1=I?f:Z(f))}}else{var h=~D.indexOf("n")?k+a:k,j=~D.indexOf("s")?T+a:T,X=~D.indexOf("w")?M+n:M,Y=~D.indexOf("e")?A+n:A;~D.indexOf("n")&&I&&(h=k-a),~D.indexOf("s")&&I&&(j=T-a),(!I&&j-h>R||I&&h-j>R)&&(B(L,r[L]=I?h:Z(h)),B(S,r[S]=I?j:Z(j))),Y-X>z&&(B(C,r[C]=E?X:G(X)),B(O,r[O]=E?Y:G(Y)))}e.attr("d",g(t,r)),J(p,r)}function J(t,e){(E||I)&&function(){var r="path"!==e.type,n=t.selectAll(".visual-cue").data([0]);n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var i=q(E?e.xanchor:a.midRange(r?[e.x0,e.x1]:d.extractPathCoords(e.path,f.paramIsX))),o=U(I?e.yanchor:a.midRange(r?[e.y0,e.y1]:d.extractPathCoords(e.path,f.paramIsY)));if(i=d.roundPositionForSharpStrokeRendering(i,1),o=d.roundPositionForSharpStrokeRendering(o,1),E&&I){var l="M"+(i-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",l)}else if(E){var s="M"+(i-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";n.attr("d",s)}else{var c="M"+(i-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";n.attr("d",c)}}()}function K(t){t.selectAll(".visual-cue").remove()}c.init(Y),X.node().onmousemove=W}(t,x,r,e,p)}}function h(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,"");l.setClipUrl(t,n?"clip"+e._fullLayout._uid+n:null,e)}function g(t,e){var r,n,o,l,s,c,u,p,h=e.type,g=i.getFromId(t,e.xref),v=i.getFromId(t,e.yref),m=t._fullLayout._size;if(g?(r=d.shapePositionToRange(g),n=function(t){return g._offset+g.r2p(r(t,!0))}):n=function(t){return m.l+m.w*t},v?(o=d.shapePositionToRange(v),l=function(t){return v._offset+v.r2p(o(t,!0))}):l=function(t){return m.t+m.h*(1-t)},"path"===h)return g&&"date"===g.type&&(n=d.decodeDate(n)),v&&"date"===v.type&&(l=d.decodeDate(l)),function(t,e,r){var n=t.path,i=t.xsizemode,o=t.ysizemode,l=t.xanchor,s=t.yanchor;return n.replace(f.segmentRE,function(t){var n=0,c=t.charAt(0),u=f.paramIsX[c],d=f.paramIsY[c],p=f.numParams[c],h=t.substr(1).replace(f.paramRE,function(t){return u[n]?t="pixel"===i?e(l)+Number(t):e(t):d[n]&&(t="pixel"===o?r(s)-Number(t):r(t)),++n>p&&(t="X"),t});return n>p&&(h=h.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+t)),c+h})}(e,n,l);if("pixel"===e.xsizemode){var y=n(e.xanchor);s=y+e.x0,c=y+e.x1}else s=n(e.x0),c=n(e.x1);if("pixel"===e.ysizemode){var x=l(e.yanchor);u=x-e.y0,p=x-e.y1}else u=l(e.y0),p=l(e.y1);if("line"===h)return"M"+s+","+u+"L"+c+","+p;if("rect"===h)return"M"+s+","+u+"H"+c+"V"+p+"H"+s+"Z";var b=(s+c)/2,_=(u+p)/2,w=Math.abs(b-s),k=Math.abs(_-u),T="A"+w+","+k,M=b+w+","+_;return"M"+M+T+" 0 1,1 "+(b+","+(_-k))+T+" 0 0,1 "+M+"Z"}function v(t,e,r){return t.replace(f.segmentRE,function(t){var n=0,a=t.charAt(0),i=f.paramIsX[a],o=f.paramIsY[a],l=f.numParams[a];return a+t.substr(1).replace(f.paramRE,function(t){return n>=l?t:(i[n]?t=e(t):o[n]&&(t=r(t)),n++,t)})})}e.exports={draw:function(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll("path").remove(),e._shapeLowerLayer.selectAll("path").remove(),e._plots){var n=e._plots[r].shapelayer;n&&n.selectAll("path").remove()}for(var a=0;a0&&(l=l.transition().duration(e.transition.duration).ease(e.transition.easing)),l.attr("transform","translate("+(o-.5*u.gripWidth)+","+e._dims.currentValueTotalHeight+")")}}function L(t,e){var r=t._dims;return r.inputAreaStart+u.stepInset+(r.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,e))}function S(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-u.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*u.stepInset-2*r.inputAreaStart)))}function C(t,e,r){var n=r._dims,a=l.ensureSingle(t,"rect",u.railTouchRectClass,function(n){n.call(T,e,t,r).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,u.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function O(t,e){var r=e._dims,n=r.inputAreaLength-2*u.railInset,a=l.ensureSingle(t,"rect",u.railRectClass);a.attr({width:n,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,e.bordercolor).call(i.fill,e.bgcolor).style("stroke-width",e.borderwidth+"px"),o.setTranslate(a,u.railInset,.5*(r.inputAreaWidth-u.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[u.name],n=[],a=0;a0?[0]:[]);function l(e){e._commandObserver&&(e._commandObserver.remove(),delete e._commandObserver),a.autoMargin(t,g(e))}if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),i.exit().each(function(){n.select(this).selectAll("g."+u.groupClassName).each(l)}).remove(),0!==r.length){var s=i.selectAll("g."+u.groupClassName).data(r,v);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c0||f<0){var v={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[x.side];e.attr("transform","translate("+v+")")}}}return R.call(E),D&&(L?R.on(".opacity",null):(T=0,M=!0,R.text(m).on("mouseover.opacity",function(){n.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){n.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)})),R.call(u.makeEditable,{gd:t}).on("edit",function(e){void 0!==y?o.call("_guiRestyle",t,v,e,y):o.call("_guiRelayout",t,v,e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(E)}).on("input",function(t){this.text(t||" ").call(u.positionText,b.x,b.y)})),R.classed("js-placeholder",M),w}}},{"../../constants/alignment":136,"../../constants/interactions":138,"../../lib":159,"../../lib/svg_text_utils":180,"../../plots/plots":235,"../../registry":243,"../color":42,"../drawing":63,d3:7,"fast-isnumeric":9}],130:[function(t,e,r){"use strict";var n=t("../../plots/font_attributes"),a=t("../color/attributes"),i=t("../../lib/extend").extendFlat,o=t("../../plot_api/edit_types").overrideAll,l=t("../../plots/pad_attributes"),s=t("../../plot_api/plot_template").templatedArray,c=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});e.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(l({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":154,"../../plot_api/edit_types":186,"../../plot_api/plot_template":193,"../../plots/font_attributes":229,"../../plots/pad_attributes":234,"../color/attributes":41}],131:[function(t,e,r){"use strict";e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25c4",right:"\u25ba",up:"\u25b2",down:"\u25bc"}}},{}],132:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("../../plots/array_container_defaults"),i=t("./attributes"),o=t("./constants").name,l=i.buttons;function s(t,e,r){function o(r,a){return n.coerce(t,e,i,r,a)}o("visible",a(t,e,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(t,e,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(t,e){function r(r,a){return n.coerce(t,e,l,r,a)}r("visible","skip"===t.method||Array.isArray(t.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(t,e){a(t,e,{name:o,handleItemDefaults:s})}},{"../../lib":159,"../../plots/array_container_defaults":199,"./attributes":130,"./constants":131}],133:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../plots/plots"),i=t("../color"),o=t("../drawing"),l=t("../../lib"),s=t("../../lib/svg_text_utils"),c=t("../../plot_api/plot_template").arrayEditor,u=t("../../constants/alignment").LINE_SPACING,f=t("./constants"),d=t("./scrollbox");function p(t){return t._index}function h(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,a,i,o,l){e.active=o,c(t.layout,f.name,e).applyUpdate("active",o),"buttons"===e.type?m(t,n,null,null,e):"dropdown"===e.type&&(a.attr(f.menuIndexAttrName,"-1"),v(t,n,a,i,e),l||m(t,n,a,i,e))}function v(t,e,r,n,a){var i=l.ensureSingle(e,"g",f.headerClassName,function(t){t.style("pointer-events","all")}),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},p={width:s.headerWidth,height:s.headerHeight};i.call(y,a,u,t).call(A,a,d,p),l.ensureSingle(e,"text",f.headerArrowClassName,function(t){t.classed("user-select-none",!0).attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])}).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",function(){r.call(L,String(h(r,a)?-1:a._index)),m(t,e,r,n,a)}),i.on("mouseover",function(){i.call(w)}),i.on("mouseout",function(){i.call(k,a)}),o.setTranslate(e,s.lx,s.ly)}function m(t,e,r,i,o){r||(r=e).attr("pointer-events","all");var s=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,v=0,m=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?v=m.headerHeight+f.gapButtonHeader:h=m.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-f.gapButtonHeader+f.gapButton-m.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-f.gapButtonHeader+f.gapButton-m.openWidth);var b={x:m.lx+h+o.pad.l,y:m.ly+v+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each(function(l,s){var c=n.select(this);c.call(y,o,l,t).call(A,o,b),c.on("click",function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(t,o,0,e,r,i,-1),a.executeAPICommand(t,l.method,l.args2)):(g(t,o,0,e,r,i,s),a.executeAPICommand(t,l.method,l.args))),t.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))}),c.on("mouseover",function(){c.call(w)}),c.on("mouseout",function(){c.call(k,o),u.call(_,o)})}),u.call(_,o),x?(T.w=Math.max(m.openWidth,m.headerWidth),T.h=b.y-T.t):(T.w=b.x-T.l,T.h=Math.max(m.openHeight,m.headerHeight)),T.direction=o.direction,i&&(u.size()?function(t,e,r,n,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,p=a.active;if(u)for(l=0,s=0;s0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)}).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,p);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,function(t){t.style("pointer-events","all")}),u=0;uw,M=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,L=h,S=v+m;S+A>c&&(S=c-A);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=C.attr({rx:l.barRadius,ry:l.barRadius,x:L,y:S,width:M,height:A}),this._hbarXMin=L+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=m>k,P=l.barWidth+2*l.barPad,D=l.barLength+2*l.barPad,z=h+g,R=v;z+P>s&&(z=s-P);var E=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);E.exit().on(".drag",null).remove(),E.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),O?(this.vbar=E.attr({rx:l.barRadius,ry:l.barRadius,x:z,y:R,width:P,height:D}),this._vbarYMin=R+D/2,this._vbarTranslateMax=k-D):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,F=u-.5,N=O?f+P+.5:f+.5,j=d-.5,B=T?p+A+.5:p+.5,H=o._topdefs.selectAll("#"+I).data(T||O?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",I).append("rect"),T||O?(this._clipRect=H.select("rect").attr({x:Math.floor(F),y:Math.floor(j),width:Math.ceil(N)-Math.floor(F),height:Math.ceil(B)-Math.floor(j)}),this.container.call(i.setClipUrl,I,this.gd),this.bg.attr({x:h,y:v,width:g,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||O){var V=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var q=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(q),O&&this.vbar.on(".drag",null).call(q)}this.setTranslate(e,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t-=n.event.dx),this.vbar&&(e-=n.event.dy),this.setTranslate(t,e)},l.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&&(t+=n.event.deltaY),this.vbar&&(e+=n.event.deltaY),this.setTranslate(t,e)},l.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,a=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=e+this._vbarYMin,l=i+this._vbarTranslateMax;e=(o.constrain(n.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(t,e)},l.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(i.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var a=t/r;this.hbar.call(i.setTranslate,t+a*this._hbarTranslateMax,e)}if(this.vbar){var l=e/n;this.vbar.call(i.setTranslate,t,e+l*this._vbarTranslateMax)}}},{"../../lib":159,"../color":42,"../drawing":63,d3:7}],136:[function(t,e,r){"use strict";e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],137:[function(t,e,r){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format",DATE_FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format"}},{}],138:[function(t,e,r){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],139:[function(t,e,r){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}},{}],140:[function(t,e,r){"use strict";r.xmlns="http://www.w3.org/2000/xmlns/",r.svg="http://www.w3.org/2000/svg",r.xlink="http://www.w3.org/1999/xlink",r.svgAttrs={xmlns:r.svg,"xmlns:xlink":r.xlink}},{}],141:[function(t,e,r){"use strict";r.version="1.52.2",t("es6-promise").polyfill(),t("../build/plotcss"),t("./fonts/mathjax_config")();for(var n=t("./registry"),a=r.register=n.register,i=t("./plot_api"),o=Object.keys(i),l=0;lplotly-logomark"}}},{}],144:[function(t,e,r){"use strict";r.isLeftAnchor=function(t){return"left"===t.xanchor||"auto"===t.xanchor&&t.x<=1/3},r.isCenterAnchor=function(t){return"center"===t.xanchor||"auto"===t.xanchor&&t.x>1/3&&t.x<2/3},r.isRightAnchor=function(t){return"right"===t.xanchor||"auto"===t.xanchor&&t.x>=2/3},r.isTopAnchor=function(t){return"top"===t.yanchor||"auto"===t.yanchor&&t.y>=2/3},r.isMiddleAnchor=function(t){return"middle"===t.yanchor||"auto"===t.yanchor&&t.y>1/3&&t.y<2/3},r.isBottomAnchor=function(t){return"bottom"===t.yanchor||"auto"===t.yanchor&&t.y<=1/3}},{}],145:[function(t,e,r){"use strict";var n=t("./mod"),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(t){return Math.abs(t[1]-t[0])>l-1e-14}function c(t,e){return i(e-t,l)}function u(t,e){if(s(e))return!0;var r,n;e[0](n=a(n,l))&&(n+=l);var i=a(t,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(t,e,r,n,a,i,c){a=a||0,i=i||0;var u,f,d,p,h,g=s([r,n]);function v(t,e){return[t*Math.cos(e)+a,i-t*Math.sin(e)]}g?(u=0,f=o,d=l):r=a&&t<=i);var a,i},pathArc:function(t,e,r,n,a){return f(null,t,e,r,n,a,0)},pathSector:function(t,e,r,n,a){return f(null,t,e,r,n,a,1)},pathAnnulus:function(t,e,r,n,a,i){return f(t,e,r,n,a,i,1)}}},{"./mod":166}],146:[function(t,e,r){"use strict";var n=Array.isArray,a="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},i="undefined"==typeof DataView?function(){}:DataView;function o(t){return a.isView(t)&&!(t instanceof i)}function l(t){return n(t)||o(t)}function s(t,e,r){if(l(t)){if(l(t[0])){for(var n=r,a=0;aa.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,a){t%1||!n(t)||void 0!==a.min&&ta.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if("string"!=typeof t){var a="number"==typeof t;!0!==n.strict&&a?e.set(String(t)):e.set(r)}else n.noBlank&&!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){a(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&&t.length&&t.every(function(t){return a(t).isValid()})?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){"auto"===t?e.set("auto"):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var a=n.regex||c(r);"string"==typeof t&&a.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||"string"==typeof t&&!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if("string"==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var a=t.split("+"),i=0;i=n&&t<=a?t:u}if("string"!=typeof t&&"number"!=typeof t)return u;t=String(t);var c=_(e),m=t.charAt(0);!c||"G"!==m&&"g"!==m||(t=t.substr(1),e="");var w=c&&"chinese"===e.substr(0,7),k=t.match(w?x:y);if(!k)return u;var T=k[1],M=k[3]||"1",A=Number(k[5]||1),L=Number(k[7]||0),S=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===T.length)return u;var O;T=Number(T);try{var P=v.getComponentMethod("calendars","getCal")(e);if(w){var D="i"===M.charAt(M.length-1);M=parseInt(M,10),O=P.newDate(T,P.toMonthIndex(T,M,D),A)}else O=P.newDate(T,Number(M),A)}catch(t){return u}return O?(O.toJD()-g)*f+L*d+S*p+C*h:u}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),M-=1;var z=new Date(Date.UTC(2e3,M,A,L,S));return z.setUTCFullYear(T),z.getUTCMonth()!==M?u:z.getUTCDate()!==A?u:z.getTime()+C*h},n=r.MIN_MS=r.dateTime2ms("-9999"),a=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var k=90*f,T=3*d,M=5*p;function A(t,e,r,n,a){if((e||r||n||a)&&(t+=" "+w(e,2)+":"+w(r,2),(n||a)&&(t+=":"+w(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;t+="."+w(a,i)}return t}r.ms2DateTime=function(t,e,r){if("number"!=typeof t||!(t>=n&&t<=a))return u;e||(e=0);var i,o,l,c,y,x,b=Math.floor(10*s(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var L=Math.floor(w/f)+g,S=Math.floor(s(t,f));try{i=v.getComponentMethod("calendars","getCal")(r).fromJD(L).formatDate("yyyy-mm-dd")}catch(t){i=m("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=e=n+f&&t<=a-f))return u;var e=Math.floor(10*s(t+.05,1)),r=new Date(Math.round(t-e/10));return A(i.time.format("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||"number"==typeof t&&isFinite(t)){if(_(n))return l.error("JS Dates and milliseconds are incompatible with world calendars",t),e;if(!(t=r.ms2DateTimeLocal(+t))&&void 0!==e)return e}else if(!r.isDateTime(t,n))return l.error("unrecognized date",t),e;return t};var L=/%\d?f/g;function S(t,e,r,n){t=t.replace(L,function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"});var a=new Date(Math.floor(e+.05));if(_(n))try{t=v.getComponentMethod("calendars","worldCalFmt")(t,e,n)}catch(t){return"Invalid"}return r(t)(a)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,a,i){if(a=_(a)&&a,!e)if("y"===r)e=i.year;else if("m"===r)e=i.month;else{if("d"!==r)return function(t,e){var r=s(t+.05,f),n=w(Math.floor(r/d),2)+":"+w(s(Math.floor(r/p),60),2);if("M"!==e){o(e)||(e=0);var a=(100+Math.min(s(t/h,60),C[e])).toFixed(e).substr(1);e>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(t,r)+"\n"+S(i.dayMonthYear,t,n,a);e=i.dayMonth+"\n"+i.year}return S(e,t,n,a)};var O=3*f;r.incrementMonth=function(t,e,r){r=_(r)&&r;var n=s(t,f);if(t=Math.round(t-n),r)try{var a=Math.round(t/f)+g,i=v.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return e%12?i.add(o,e,"m"):i.add(o,e/12,"y"),(o.toJD()-g)*f+n}catch(e){l.error("invalid ms "+t+" in calendar "+r)}var c=new Date(t+O);return c.setUTCMonth(c.getUTCMonth()+e)+n-O},r.findExactDates=function(t,e){for(var r,n,a=0,i=0,l=0,s=0,c=_(e)&&v.getComponentMethod("calendars","getCal")(e),u=0;u1||g<0||g>1?null:{x:t+s*g,y:e+f*g}}function s(t,e,r,n,a){var i=n*t+a*e;if(i<0)return n*n+a*a;if(i>r){var o=n-t,l=a-e;return o*o+l*l}var s=n*e-a*t;return s*s/r}r.segmentsIntersect=l,r.segmentDistance=function(t,e,r,n,a,i,o,c){if(l(t,e,r,n,a,i,o,c))return 0;var u=r-t,f=n-e,d=o-a,p=c-i,h=u*u+f*f,g=d*d+p*p,v=Math.min(s(u,f,h,a-t,i-e),s(u,f,h,o-t,c-e),s(d,p,g,t-a,e-i),s(d,p,g,r-a,n-i));return Math.sqrt(v)},r.getTextLocation=function(t,e,r,l){if(t===a&&l===i||(n={},a=t,i=l),n[r])return n[r];var s=t.getPointAtLength(o(r-l/2,e)),c=t.getPointAtLength(o(r+l/2,e)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=t.getPointAtLength(o(r,e)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return n[r]=d,d},r.clearLocationCache=function(){a=null},r.getVisibleSegment=function(t,e,r){var n,a,i=e.left,o=e.right,l=e.top,s=e.bottom,c=0,u=t.getTotalLength(),f=u;function d(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&&(a=r);var c=r.xo?r.x-o:0,f=r.ys?r.y-s:0;return Math.sqrt(c*c+f*f)}for(var p=d(c);p;){if((c+=p+r)>f)return;p=d(c)}for(p=d(f);p;){if(c>(f-=p+r))return;p=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},r.findPointOnPath=function(t,e,r,n){for(var a,i,o,l=(n=n||{}).pathLength||t.getTotalLength(),s=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]>t.getPointAtLength(l)[r]?-1:1,f=0,d=0,p=l;f0?p=a:d=a,f++}return i}},{"./mod":166}],158:[function(t,e,r){"use strict";e.exports=function(t){return t}},{}],159:[function(t,e,r){"use strict";var n=t("d3"),a=t("fast-isnumeric"),i=t("../constants/numerical"),o=i.FP_SAFE,l=i.BADNUM,s=e.exports={};s.nestedProperty=t("./nested_property"),s.keyedContainer=t("./keyed_container"),s.relativeAttr=t("./relative_attr"),s.isPlainObject=t("./is_plain_object"),s.toLogRange=t("./to_log_range"),s.relinkPrivateKeys=t("./relink_private");var c=t("./array");s.isTypedArray=c.isTypedArray,s.isArrayOrTypedArray=c.isArrayOrTypedArray,s.isArray1D=c.isArray1D,s.ensureArray=c.ensureArray,s.concat=c.concat,s.maxRowLength=c.maxRowLength,s.minRowLength=c.minRowLength;var u=t("./mod");s.mod=u.mod,s.modHalf=u.modHalf;var f=t("./coerce");s.valObjectMeta=f.valObjectMeta,s.coerce=f.coerce,s.coerce2=f.coerce2,s.coerceFont=f.coerceFont,s.coerceHoverinfo=f.coerceHoverinfo,s.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,s.validate=f.validate;var d=t("./dates");s.dateTime2ms=d.dateTime2ms,s.isDateTime=d.isDateTime,s.ms2DateTime=d.ms2DateTime,s.ms2DateTimeLocal=d.ms2DateTimeLocal,s.cleanDate=d.cleanDate,s.isJSDate=d.isJSDate,s.formatDate=d.formatDate,s.incrementMonth=d.incrementMonth,s.dateTick0=d.dateTick0,s.dfltRange=d.dfltRange,s.findExactDates=d.findExactDates,s.MIN_MS=d.MIN_MS,s.MAX_MS=d.MAX_MS;var p=t("./search");s.findBin=p.findBin,s.sorterAsc=p.sorterAsc,s.sorterDes=p.sorterDes,s.distinctVals=p.distinctVals,s.roundUp=p.roundUp,s.sort=p.sort,s.findIndexOfMin=p.findIndexOfMin;var h=t("./stats");s.aggNums=h.aggNums,s.len=h.len,s.mean=h.mean,s.median=h.median,s.midRange=h.midRange,s.variance=h.variance,s.stdev=h.stdev,s.interp=h.interp;var g=t("./matrix");s.init2dArray=g.init2dArray,s.transposeRagged=g.transposeRagged,s.dot=g.dot,s.translationMatrix=g.translationMatrix,s.rotationMatrix=g.rotationMatrix,s.rotationXYMatrix=g.rotationXYMatrix,s.apply2DTransform=g.apply2DTransform,s.apply2DTransform2=g.apply2DTransform2;var v=t("./angles");s.deg2rad=v.deg2rad,s.rad2deg=v.rad2deg,s.angleDelta=v.angleDelta,s.angleDist=v.angleDist,s.isFullCircle=v.isFullCircle,s.isAngleInsideSector=v.isAngleInsideSector,s.isPtInsideSector=v.isPtInsideSector,s.pathArc=v.pathArc,s.pathSector=v.pathSector,s.pathAnnulus=v.pathAnnulus;var m=t("./anchor_utils");s.isLeftAnchor=m.isLeftAnchor,s.isCenterAnchor=m.isCenterAnchor,s.isRightAnchor=m.isRightAnchor,s.isTopAnchor=m.isTopAnchor,s.isMiddleAnchor=m.isMiddleAnchor,s.isBottomAnchor=m.isBottomAnchor;var y=t("./geometry2d");s.segmentsIntersect=y.segmentsIntersect,s.segmentDistance=y.segmentDistance,s.getTextLocation=y.getTextLocation,s.clearLocationCache=y.clearLocationCache,s.getVisibleSegment=y.getVisibleSegment,s.findPointOnPath=y.findPointOnPath;var x=t("./extend");s.extendFlat=x.extendFlat,s.extendDeep=x.extendDeep,s.extendDeepAll=x.extendDeepAll,s.extendDeepNoArrays=x.extendDeepNoArrays;var b=t("./loggers");s.log=b.log,s.warn=b.warn,s.error=b.error;var _=t("./regex");s.counterRegex=_.counter;var w=t("./throttle");s.throttle=w.throttle,s.throttleDone=w.done,s.clearThrottle=w.clear;var k=t("./dom");function T(t){var e={};for(var r in t)for(var n=t[r],a=0;ao?l:a(t)?Number(t):l:l},s.isIndex=function(t,e){return!(void 0!==e&&t>=e)&&(a(t)&&t>=0&&t%1==0)},s.noop=t("./noop"),s.identity=t("./identity"),s.repeat=function(t,e){for(var r=new Array(e),n=0;nr?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},s.bBoxIntersect=function(t,e,r){return r=r||0,t.left<=e.right+r&&e.left<=t.right+r&&t.top<=e.bottom+r&&e.top<=t.bottom+r},s.simpleMap=function(t,e,r,n){for(var a=t.length,i=new Array(a),o=0;o=Math.pow(2,r)?a>10?(s.warn("randstr failed uniqueness"),c):t(e,r,n,(a||0)+1):c},s.OptionControl=function(t,e){t||(t={}),e||(e="opt");var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r["_"+e]=t,r},s.smooth=function(t,e){if((e=Math.round(e)||0)<2)return t;var r,n,a,i,o=t.length,l=2*o,s=2*e-1,c=new Array(s),u=new Array(o);for(r=0;r=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=t[a]*c[n];u[r]=i}return u},s.syncOrAsync=function(t,e,r){var n;function a(){return s.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&&n.then)return n.then(a).then(void 0,s.promiseError);return r&&r(e)},s.stripTrailingSlash=function(t){return"/"===t.substr(-1)?t.substr(0,t.length-1):t},s.noneOrAll=function(t,e,r){if(t){var n,a=!1,i=!0;for(n=0;n0?e:0})},s.fillArray=function(t,e,r,n){if(n=n||s.identity,s.isArrayOrTypedArray(t))for(var a=0;a1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},s.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var C=/^\w*$/;s.templateString=function(t,e){var r={};return t.replace(s.TEMPLATE_STRING_REGEX,function(t,n){var a;return C.test(n)?a=e[n]:(r[n]=r[n]||s.nestedProperty(e,n).get,a=r[n]()),s.isValidTextValue(a)?a:""})};var O={max:10,count:0,name:"hovertemplate"};s.hovertemplateString=function(){return z.apply(O,arguments)};var P={max:10,count:0,name:"texttemplate"};s.texttemplateString=function(){return z.apply(P,arguments)};var D=/^[:|\|]/;function z(t,e,r){var a=this,i=arguments;e||(e={});var o={};return t.replace(s.TEMPLATE_STRING_REGEX,function(t,l,c){var u,f,d,p;for(d=3;d=48&&o<=57,c=l>=48&&l<=57;if(s&&(n=10*n+o-48),c&&(a=10*a+l-48),!s||!c){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var R=2e9;s.seedPseudoRandom=function(){R=2e9},s.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)<429496729?s.pseudoRandom():R/4294967296},s.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},a=s.extractOption(t,e,"htx","hovertext");if(s.isValidTextValue(a))return n(a);var i=s.extractOption(t,e,"tx","text");return s.isValidTextValue(i)?n(i):void 0},s.isValidTextValue=function(t){return t||0===t},s.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+"%",n=0;n1&&(c=1):c=0,"translate("+(a-c*(r+o))+","+(i-c*(n+l))+")"+(c<1?"scale("+c+")":"")+(s?"rotate("+s+(e?"":" "+r+" "+n)+")":"")},s.ensureUniformFontSize=function(t,e){var r=s.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r}},{"../constants/numerical":139,"./anchor_utils":144,"./angles":145,"./array":146,"./clean_number":147,"./clear_responsive":149,"./coerce":150,"./dates":151,"./dom":152,"./extend":154,"./filter_unique":155,"./filter_visible":156,"./geometry2d":157,"./identity":158,"./is_plain_object":160,"./keyed_container":161,"./localize":162,"./loggers":163,"./make_trace_groups":164,"./matrix":165,"./mod":166,"./nested_property":167,"./noop":168,"./notifier":169,"./push_unique":172,"./regex":174,"./relative_attr":175,"./relink_private":176,"./search":177,"./stats":179,"./throttle":181,"./to_log_range":182,d3:7,"fast-isnumeric":9}],160:[function(t,e,r){"use strict";e.exports=function(t){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(t):"[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.prototype}},{}],161:[function(t,e,r){"use strict";var n=t("./nested_property"),a=/^\w*$/;e.exports=function(t,e,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};e&&e.length?(s=n(t,e),l=s.get()):l=t,e=e||"";var u={};if(l)for(o=0;o2)return c[e]=2|c[e],d.set(t,null);if(f){for(o=e;o1){var e=["LOG:"];for(t=0;t1){var r=[];for(t=0;t"),"long")}},i.warn=function(){var t;if(n.logging>0){var e=["WARN:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}},i.error=function(){var t;if(n.logging>0){var e=["ERROR:"];for(t=0;t0){var r=[];for(t=0;t"),"stick")}}},{"../plot_api/plot_config":191,"./notifier":169}],164:[function(t,e,r){"use strict";var n=t("d3");e.exports=function(t,e,r){var a=t.selectAll("g."+r.replace(/\s/g,".")).data(e,function(t){return t[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(t){t[0][i]=n.select(this)}),a}},{d3:7}],165:[function(t,e,r){"use strict";r.init2dArray=function(t,e){for(var r=new Array(t),n=0;ne/2?t-Math.round(t/e)*e:t}}},{}],167:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),a=t("./array").isArrayOrTypedArray;function i(t,e){return function(){var r,n,o,l,s,c=t;for(l=0;l/g),s=0;si||c===a||cl||e&&s(t))}:function(t,e){var s=t[0],c=t[1];if(s===a||si||c===a||cl)return!1;var u,f,d,p,h,g=r.length,v=r[0][0],m=r[0][1],y=0;for(u=1;uMath.max(f,v)||c>Math.max(d,m)))if(cu||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(t,e){var r=[t[0]],n=0,a=0;function o(o){t.push(o);var l=r.length,s=n;r.splice(a+1);for(var c=s+1;c1&&o(t.pop());return{addPt:o,raw:t,filtered:r}}},{"../constants/numerical":139,"./matrix":165}],172:[function(t,e,r){"use strict";e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;na.queueLength&&(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&&t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;re}function c(t,e){return t>=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var i,u,f=0,d=e.length,p=0,h=d>1?(e[d-1]-e[0])/(d-1):1;for(u=h>=0?r?o:l:r?c:s,t+=1e-9*h*(r?-1:1)*(h>=0?1:-1);f90&&a.log("Long binary search..."),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e=t.slice();e.sort(r.sorterAsc);for(var n=e.length-1,a=e[n]-e[0]||1,i=a/(n||1)/1e4,o=[e[0]],l=0;le[l]+i&&(a=Math.min(a,e[l+1]-e[l]),o.push(e[l+1]));return{vals:o,minDiff:a}},r.roundUp=function(t,e,r){for(var n,a=0,i=e.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;a0&&(n=1),r&&n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||i;for(var r,n=1/0,a=0;ai.length)&&(o=i.length),n(e)||(e=!1),a(i[0])){for(s=new Array(o),l=0;lt.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{"./array":146,"fast-isnumeric":9}],180:[function(t,e,r){"use strict";var n=t("d3"),a=t("../lib"),i=t("../constants/xmlns_namespaces"),o=t("../constants/alignment").LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var L=t.text(),C=!t.attr("data-notex")&&"undefined"!=typeof MathJax&&L.match(s),O=n.select(t.node().parentNode);if(!O.empty()){var P=t.attr("class")?t.attr("class").split(" ")[0]:"text";return P+="-math",O.selectAll("svg."+P).remove(),O.selectAll("g."+P+"-group").remove(),t.style("display",null).attr({"data-unformatted":L,"data-math":"N"}),C?(e&&e._promises||[]).push(new Promise(function(e){t.style("display","none");var r=parseInt(t.node().style.fontSize,10),i={fontSize:r};!function(t,e,r){var i,o,l,s;MathJax.Hub.Queue(function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})},function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")},function(){var r="math-output-"+a.randstr({},64);return s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":e.fontSize+"px"}).text(t.replace(c,"\\lt ").replace(u,"\\gt ")),MathJax.Hub.Typeset(s.node())},function(){var e=n.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",t),r();else{var o=s.select("svg").node().getBoundingClientRect();r(s.select(".MathJax_SVG"),e,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)},function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)})}(C[2],i,function(n,a,i){O.selectAll("svg."+P).remove(),O.selectAll("g."+P+"-group").remove();var o=n&&n.select("svg");if(!o||!o.node())return D(),void e();var s=O.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":L,"data-math":"Y"});s.node().appendChild(o.node()),a&&a.node()&&o.node().insertBefore(a.node().cloneNode(!0),o.node().firstChild),o.attr({class:P,height:i.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=t.node().style.fill||"black",u=o.select("g");u.attr({fill:c,stroke:c});var f=l(u,"width"),d=l(u,"height"),p=+t.attr("x")-f*{start:0,middle:.5,end:1}[t.attr("text-anchor")||"start"],h=-(r||l(t,"height"))/4;"y"===P[0]?(s.attr({transform:"rotate("+[-90,+t.attr("x"),+t.attr("y")]+") translate("+[-f/2,h-d/2]+")"}),o.attr({x:+t.attr("x"),y:+t.attr("y")})):"l"===P[0]?o.attr({x:t.attr("x"),y:h-d/2}):"a"===P[0]&&0!==P.indexOf("atitle")?o.attr({x:0,y:h}):o.attr({x:p,y:+t.attr("y")+h-d/2}),A&&A.call(t,s),e(s)})})):D(),t}function D(){O.empty()||(P=t.attr("class")+"-math",O.select("svg."+P).remove()),t.text("").style("white-space","pre"),function(t,e){e=e.replace(v," ");var r,l=!1,s=[],c=-1;function u(){c++;var e=document.createElementNS(i.svg,"tspan");n.select(e).attr({class:"line",dy:c*o+"em"}),t.appendChild(e),r=e;var a=s;if(s=[{node:e}],a.length>1)for(var l=1;l doesnt match end tag <"+t+">. Pretending it did match.",e),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag .",e)}x.test(e)?u():(r=t,s=[{node:t}]);for(var O=e.split(m),P=0;P|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},h="\u200b",g=["http:","https:","mailto:","",void 0,":"],v=r.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i;r.BR_TAG_ALL=//gi;var b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function T(t,e){if(!t)return null;var r=t.match(e),n=r&&(r[3]||r[4]);return n&&S(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&&-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:["br"],a="...".length,i=t.split(m),o=[],l="",s=0,c=0;ca?o.push(u.substr(0,h-a)+"..."):o.push(u.substr(0,h));break}l=""}}return o.join("")};var A={mu:"\u03bc",amp:"&",lt:"<",gt:">",nbsp:"\xa0",times:"\xd7",plusmn:"\xb1",deg:"\xb0"},L=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(t){return t.replace(L,function(t,e){return("#"===e.charAt(0)?function(t){if(t>1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t<=65535?r(t):r(55232+(t>>10),t%1024+56320)}("x"===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t})}function C(t,e,r){var n,a,i,o=r.horizontalAlign,l=r.verticalAlign||"top",s=t.node().getBoundingClientRect(),c=e.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-n.height}:"middle"===l?function(){return s.top+(s.height-n.height)/2}:function(){return s.top},i="right"===o?function(){return s.right-n.width}:"center"===o?function(){return s.left+(s.width-n.width)/2}:function(){return s.left},function(){return n=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:i()-c.left+"px","z-index":1e3}),this}}r.convertEntities=S,r.lineCount=function(t){return t.selectAll("tspan.line").size()||1},r.positionText=function(t,e,r){return t.each(function(){var t=n.select(this);function a(e,r){return void 0===r?null===(r=t.attr(e))&&(t.attr(e,0),r=0):t.attr(e,r),r}var i=a("x",e),o=a("y",r);"text"===this.nodeName&&t.selectAll("tspan.line").attr({x:i,y:o})})},r.makeEditable=function(t,e){var r=e.gd,a=e.delegate,i=n.dispatch("edit","input","cancel"),o=a||t;if(t.style({"pointer-events":a?"none":"all"}),1!==t.size())throw new Error("boo");function l(){!function(){var a=n.select(r).select(".svg-container"),o=a.append("div"),l=t.node().style,c=parseFloat(l.fontSize||12),u=e.text;void 0===u&&(u=t.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":l.fontFamily||"Arial","font-size":c,color:e.fill||l.fill||"black",opacity:1,"background-color":e.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(u).call(C(t,a,e)).on("blur",function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,a=n.select(this).attr("class");(e=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on("mouseup",null),i.edit.call(t,o)}).on("focus",function(){var t=this;r._editing=!0,n.select(document).on("mouseup",function(){if(n.event.target===t)return!1;document.activeElement===o.node()&&o.node().blur()})}).on("keyup",function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),i.cancel.call(t,this.textContent)):(i.input.call(t,this.textContent),n.select(this).call(C(t,a,e)))}).on("keydown",function(){13===n.event.which&&this.blur()}).call(s)}(),t.style({opacity:0});var a,l=o.attr("class");(a=l?"."+l.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(t.node().parentNode).select(a).style({opacity:0})}function s(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?l():o.on("click",l),n.rebind(t,i,"on")}},{"../constants/alignment":136,"../constants/xmlns_namespaces":140,"../lib":159,d3:7}],181:[function(t,e,r){"use strict";var n={};function a(t){t&&null!==t.timer&&(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var i=n[t],o=Date.now();if(!i){for(var l in n)n[l].tsi.ts+e?s():i.timer=setTimeout(function(){s(),i.timer=null},e)},r.done=function(t){var e=n[t];return e&&e.timer?new Promise(function(t){var r=e.onDone;e.onDone=function(){r&&r(),t(),e.onDone=null}}):Promise.resolve()},r.clear=function(t){if(t)a(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],182:[function(t,e,r){"use strict";var n=t("fast-isnumeric");e.exports=function(t,e){if(t>0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{"fast-isnumeric":9}],183:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],184:[function(t,e,r){"use strict";e.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],185:[function(t,e,r){"use strict";var n=t("../registry");e.exports=function(t){for(var e,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=t.split("[")[0],l=0;l0&&o.log("Clearing previous rejected promises from queue."),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(t),"rotate"===t.dragmode&&(t.dragmode="orbit"),c.clean(t),t.template&&t.template.layout&&r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=["x","y","z"];r.clearAxisTypes=function(t,e,r){for(var n=0;n1&&i.warn("Full array edits are incompatible with other edits",f);var y=r[""][""];if(c(y))e.set(null);else{if(!Array.isArray(y))return i.warn("Unrecognized full array edit value",f,y),!0;e.set(y)}return!g&&(d(v,m),p(t),!0)}var x,b,_,w,k,T,M,A,L=Object.keys(r).map(Number).sort(o),S=e.get(),C=S||[],O=u(m,f).get(),P=[],D=-1,z=C.length;for(x=0;xC.length-(M?0:1))i.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(T)?P.push(_):M?("add"===T&&(T={}),C.splice(_,0,T),O&&O.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,T),-1===D&&(D=_);else for(b=0;b=0;x--)C.splice(P[x],1),O&&O.splice(P[x],1);if(C.length?S||e.set(C):e.set(null),g)return!1;if(d(v,m),h!==a){var R;if(-1===D)R=L;else{for(z=Math.max(C.length,z),R=[],x=0;x=D);x++)R.push(_);for(x=D;x=t.data.length||a<-t.data.length)throw new Error(r+" must be valid indices for gd.data.");if(e.indexOf(a,n+1)>-1||a>=0&&e.indexOf(-t.data.length+a)>-1||a<0&&e.indexOf(t.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function E(t,e,r){if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if("undefined"==typeof e)throw new Error("currentIndices is a required argument.");if(Array.isArray(e)||(e=[e]),R(t,e,"currentIndices"),"undefined"==typeof r||Array.isArray(r)||(r=[r]),"undefined"!=typeof r&&R(t,r,"newIndices"),"undefined"!=typeof r&&e.length!==r.length)throw new Error("current and new indices must be of equal length.")}function I(t,e,r,n,i){!function(t,e,r,n){var a=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(e))throw new Error("update must be a key:value object");if("undefined"==typeof r)throw new Error("indices must be an integer or array of integers");for(var i in R(t,r,"indices"),e){if(!Array.isArray(e[i])||e[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in n)||!Array.isArray(n[i])||n[i].length!==e[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(t,e,r,n);for(var s=function(t,e,r,n){var i,s,c,u,f,d=o.isPlainObject(n),p=[];for(var h in Array.isArray(r)||(r=[r]),r=z(r,t.data.length-1),e)for(var g=0;g-1?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(e,r){t[r]=t[e],delete t[e]}}function U(t,e,r){if(t=o.getGraphDiv(t),k.clearPromiseQueue(t),t.framework&&t.framework.isPolar)return Promise.resolve(t);var n={};if("string"==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn("Relayout fail.",e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&&(t.changed=!0);var a=$(t,n),i=a.flags;i.calc&&(t.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(n).length&&(G(t,i,a)||d.supplyDefaults(t),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&Z(l,a.rangesAltered),i.ticks&&l.push(T.doTicksRelayout),i.modebar&&l.push(T.doModeBar),i.camera&&l.push(T.doCamera),i.colorbars&&l.push(T.doColorBars),l.push(C)),l.push(d.rehover,d.redrag),c.add(t,U,[t,a.undoit],U,[t,a.redoit]);var s=o.syncOrAsync(l,t);return s&&s.then||(s=Promise.resolve(t)),s.then(function(){return t.emit("plotly_relayout",a.eventData),t})}function G(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var a in e)if("axrange"!==a&&e[a])return!1;for(var i in r.rangesAltered){var o=h.id2name(i),l=t.layout[o],s=n[o];if(s.autorange=l.autorange,s.range=l.range.slice(),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=n[h.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function Z(t,e){var r=e?function(t){var r=[],n=!0;for(var a in e){var i=h.getFromId(t,a);if(r.push(a),i._matchGroup)for(var o in i._matchGroup)e[o]||r.push(o);i.automargin&&(n=!1)}return h.draw(t,r,{skipTitle:n})}:function(t){return h.draw(t,"redraw")};t.push(b,T.doAutoRangeAndConstraints,r,T.drawData,T.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Y=/^[xyz]axis[0-9]*\.autorange$/,W=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function $(t,e){var r,n,a,i=t.layout,s=t._fullLayout,c=s._guiEditing,d=B(s._preGUI,c),p=Object.keys(e),g=h.list(t),v=o.extendDeepAll({},e),m={};for(q(e),p=Object.keys(e),n=0;n0&&"string"!=typeof z.parts[E];)E--;var I=z.parts[E],F=z.parts[E-1]+"."+I,N=z.parts.slice(0,E).join("."),H=l(t.layout,N).get(),V=l(s,N).get(),U=z.get();if(void 0!==R){T[D]=R,L[D]="reverse"===I?R:j(U);var G=f.getLayoutValObject(s,z.parts);if(G&&G.impliedEdits&&null!==R)for(var Z in G.impliedEdits)S(o.relativeAttr(D,Z),G.impliedEdits[Z]);if(-1!==["width","height"].indexOf(D))if(R){S("autosize",null);var $="height"===D?"width":"height";S($,s[$])}else s[D]=t._initialAutoSize[D];else if("autosize"===D)S("width",R?null:s.width),S("height",R?null:s.height);else if(F.match(X))P(F),l(s,N+"._inputRange").set(null);else if(F.match(Y)){P(F),l(s,N+"._inputRange").set(null);var J=l(s,N).get();J._inputDomain&&(J._input.domain=J._inputDomain.slice())}else F.match(W)&&l(s,N+"._inputDomain").set(null);if("type"===I){var K=H,tt="linear"===V.type&&"log"===R,et="log"===V.type&&"linear"===R;if(tt||et){if(K&&K.range)if(V.autorange)tt&&(K.range=K.range[1]>K.range[0]?[1,2]:[2,1]);else{var rt=K.range[0],nt=K.range[1];tt?(rt<=0&&nt<=0&&S(N+".autorange",!0),rt<=0?rt=nt/1e6:nt<=0&&(nt=rt/1e6),S(N+".range[0]",Math.log(rt)/Math.LN10),S(N+".range[1]",Math.log(nt)/Math.LN10)):(S(N+".range[0]",Math.pow(10,rt)),S(N+".range[1]",Math.pow(10,nt)))}else S(N+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[z.parts[0]]&&"radialaxis"===z.parts[1]&&delete s[z.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(t,V,R,S),u.getComponentMethod("images","convertCoords")(t,V,R,S)}else S(N+".autorange",!0),S(N+".range",null);l(s,N+"._inputRange").set(null)}else if(I.match(A)){var at=l(s,D).get(),it=(R||{}).type;it&&"-"!==it||(it="linear"),u.getComponentMethod("annotations","convertCoords")(t,at,it,S),u.getComponentMethod("images","convertCoords")(t,at,it,S)}var ot=w.containerArrayMatch(D);if(ot){r=ot.array,n=ot.index;var lt=ot.property,st=G||{editType:"calc"};""!==n&&""===lt&&(w.isAddVal(R)?L[D]=null:w.isRemoveVal(R)?L[D]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",e)),M.update(_,st),m[r]||(m[r]={});var ct=m[r][n];ct||(ct=m[r][n]={}),ct[lt]=R,delete e[D]}else"reverse"===I?(H.range?H.range.reverse():(S(N+".autorange",!0),H.range=[1,0]),V.autorange?_.calc=!0:_.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===D&&("lasso"===R||"select"===R)&&"lasso"!==U&&"select"!==U?_.plot=!0:s._has("gl2d")?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(R))}}for(r in m){w.applyContainerArrayChanges(t,d(i,r),m[r],_,d)||(_.plot=!0)}var ut=s._axisConstraintGroups||[];for(C in O)for(n=0;n1;)if(n.pop(),void 0!==(r=l(e,n.join(".")+".uirevision").get()))return r;return e.uirevision}function at(t,e){for(var r=0;r=a.length?a[0]:a[t]:a}function s(t){return Array.isArray(i)?t>=i.length?i[0]:i[t]:i}function c(t,e){var r=0;return function(){if(t&&++r===e)return t()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise(function(i,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,d.transition(t,e.frame.data,e.frame.layout,k.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then(function(){e.onComplete&&e.onComplete()}),t.emit("plotly_animatingframe",{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt>n._timeToNext&&f()};e()}var h,g,v=0;function m(t){return Array.isArray(a)?v>=a.length?t.transitionOpts=a[v]:t.transitionOpts=a[0]:t.transitionOpts=a,v++,t}var y=[],x=null==e,b=Array.isArray(e);if(x||b||!o.isPlainObject(e)){if(x||-1!==["string","number"].indexOf(typeof e))for(h=0;h0&&TT)&&M.push(g);y=M}}y.length>0?function(e){if(0!==e.length){for(var a=0;a=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,v=(u[g]||h[g]||{}).name,m=e[n].name,y=u[v]||h[v];v&&m&&"number"==typeof m&&y&&Le.index?-1:t.index=0;n--){if("number"==typeof(a=p[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+t._transitionData._counter++];);if(u[a.name]){for(i=0;i=0;r--)n=e[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,u=d.modifyFrames,f=[t,l],p=[t,i];return c&&c.add(t,s,f,u,p),d.modifyFrames(t,i)},r.addTraces=function t(e,n,a){e=o.getGraphDiv(e);var i,l,s=[],u=r.deleteTraces,f=t,d=[e,s],p=[e,n];for(function(t,e,r){var n,a;if(!Array.isArray(t.data))throw new Error("gd.data must be an array.");if("undefined"==typeof e)throw new Error("traces must be defined.");for(Array.isArray(e)||(e=[e]),n=0;n=0&&r=0&&r=i.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!k(o))return!1;t=i[a][o]}else t=i[a]}else t=i}}return t}function k(t){return t===Math.round(t)&&t>=0}function T(){var t,e,r={};for(t in h(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var a=0;a=s.length)return!1;a=(r=(n.transformsRegistry[s[c].type]||{}).attributes)&&r[e[2]],l=3}else if("area"===t.type)a=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||i.type.dflt]||{})._module),!f)return!1;if(!(a=(r=f.attributes)&&r[o])){var d=f.basePlotModule;d&&d.attributes&&(a=d.attributes[o])}a||(a=i[o])}return w(a,e,l)},r.getLayoutValObject=function(t,e){return w(function(t,e){var r,a,i,l,s=t._basePlotModules;if(s){var c;for(r=0;r=a&&(r._input||{})._templateitemname;l&&(o=a);var s,c=e+"["+o+"]";function u(){s={},l&&(s[c]={},s[c][i]=l)}function f(t,e){l?n.nestedProperty(s[c],t).set(e):s[c+"."+t]=e}function d(){var t=s;return u(),t}return u(),{modifyBase:function(t,e){s[t]=e},modifyItem:f,getUpdateObj:d,applyUpdate:function(e,r){e&&f(e,r);var a=d();for(var i in a)n.nestedProperty(t,i).set(a[i])}}}},{"../lib":159,"../plots/attributes":200}],194:[function(t,e,r){"use strict";var n=t("d3"),a=t("../registry"),i=t("../plots/plots"),o=t("../lib"),l=t("../lib/clear_gl_canvases"),s=t("../components/color"),c=t("../components/drawing"),u=t("../components/titles"),f=t("../components/modebar"),d=t("../plots/cartesian/axes"),p=t("../constants/alignment"),h=t("../plots/cartesian/constraints"),g=h.enforce,v=h.clean,m=t("../plots/cartesian/autorange").doAutoRange,y="start",x="middle",b="end";function _(t,e,r){for(var n=0;n=t[1]||a[1]<=t[0])&&(i[0]e[0]))return!0}return!1}function w(t){var e,a,l,u,h,g,v=t._fullLayout,m=v._size,y=m.p,x=d.list(t,"",!0);if(v._paperdiv.style({width:t._context.responsive&&v.autosize&&!t._context._hasZeroWidth&&!t.layout.width?"100%":v.width+"px",height:t._context.responsive&&v.autosize&&!t._context._hasZeroHeight&&!t.layout.height?"100%":v.height+"px"}).selectAll(".main-svg").call(c.setSize,v.width,v.height),t._context.setBackground(t,v.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!v._has("cartesian"))return i.previousPromises(t);function b(t,e,r){var n=t._lw/2;return"x"===t._id.charAt(0)?e?"top"===r?e._offset-y-n:e._offset+e._length+y+n:m.t+m.h*(1-(t.position||0))+n%1:e?"right"===r?e._offset+e._length+y+n:e._offset-y-n:m.l+m.w*(t.position||0)+n%1}for(e=0;ek?u.push({code:"unused",traceType:y,templateCount:w,dataCount:k}):k>w&&u.push({code:"reused",traceType:y,templateCount:w,dataCount:k})}}else u.push({code:"data"});if(function t(e,r){for(var n in e)if("_"!==n.charAt(0)){var i=e[n],o=p(e,n,r);a(i)?(Array.isArray(e)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),t(i,o)):Array.isArray(i)&&h(i)&&t(i,o)}}({data:v,layout:d},""),u.length)return u.map(g)}},{"../lib":159,"../plots/attributes":200,"../plots/plots":235,"./plot_config":191,"./plot_schema":192,"./plot_template":193}],196:[function(t,e,r){"use strict";var n=t("fast-isnumeric"),a=t("./plot_api"),i=t("../lib"),o=t("../snapshot/helpers"),l=t("../snapshot/tosvg"),s=t("../snapshot/svgtoimg"),c={format:{valType:"enumerated",values:["png","jpeg","webp","svg"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};e.exports=function(t,e){var r,u,f,d;function p(t){return!(t in e)||i.validate(e[t],c[t])}if(e=e||{},i.isPlainObject(t)?(r=t.data||[],u=t.layout||{},f=t.config||{},d={}):(t=i.getGraphDiv(t),r=i.extendDeep([],t.data),u=i.extendDeep({},t.layout),f=t._context,d=t._fullLayout||{}),!p("width")&&null!==e.width||!p("height")&&null!==e.height)throw new Error("Height and width should be pixel values.");if(!p("format"))throw new Error("Image format is not jpeg, png, svg or webp.");var h={};function g(t,r){return i.coerce(e,h,c,t,r)}var v=g("format"),m=g("width"),y=g("height"),x=g("scale"),b=g("setBackground"),_=g("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var k=i.extendFlat({},u);m?k.width=m:null===e.width&&n(d.width)&&(k.width=d.width),y?k.height=y:null===e.height&&n(d.height)&&(k.height=d.height);var T=i.extendFlat({},f,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),M=o.getRedrawFunc(w);function A(){return new Promise(function(t){setTimeout(t,o.getDelay(w._fullLayout))})}function L(){return new Promise(function(t,e){var r=l(w,v,x),n=w._fullLayout.width,c=w._fullLayout.height;if(a.purge(w),document.body.removeChild(w),"svg"===v)return t(_?r:o.encodeSVG(r));var u=document.createElement("canvas");u.id=i.randstr(),s({format:v,width:n,height:c,scale:x,canvas:u,svg:r,promise:!0}).then(t).catch(e)})}return new Promise(function(t,e){a.plot(w,r,k,T).then(M).then(A).then(L).then(function(e){t(function(t){return _?t.replace(o.IMAGE_URL_PREFIX,""):t}(e))}).catch(function(t){e(t)})})}},{"../lib":159,"../snapshot/helpers":247,"../snapshot/svgtoimg":249,"../snapshot/tosvg":251,"./plot_api":190,"fast-isnumeric":9}],197:[function(t,e,r){"use strict";var n=t("../lib"),a=t("../plots/plots"),i=t("./plot_schema"),o=t("./plot_config").dfltConfig,l=n.isPlainObject,s=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,a,i,o){o=o||[];for(var f=Object.keys(t),d=0;dx.length&&a.push(p("unused",i,m.concat(x.length)));var M,A,L,S,C,O=x.length,P=Array.isArray(T);if(P&&(O=Math.min(O,T.length)),2===b.dimensions)for(A=0;Ax[A].length&&a.push(p("unused",i,m.concat(A,x[A].length)));var D=x[A].length;for(M=0;M<(P?Math.min(D,T[A].length):D);M++)L=P?T[A][M]:T,S=y[A][M],C=x[A][M],n.validate(S,L)?C!==S&&C!==+S&&a.push(p("dynamic",i,m.concat(A,M),S,C)):a.push(p("value",i,m.concat(A,M),S))}else a.push(p("array",i,m.concat(A),y[A]));else for(A=0;A1&&d.push(p("object","layout"))),a.supplyDefaults(h);for(var g=h._fullData,v=r.length,m=0;m0&&((b=M-o(v)-o(m))>A?_/b>L&&(y=v,x=m,L=_/b):_/M>L&&(y={val:v.val,pad:0},x={val:m.val,pad:0},L=_/M));if(d===p){var S=d-1,C=d+1;if(k)if(0===d)i=[0,1];else{var O=(d>0?f:u).reduce(function(t,e){return Math.max(t,o(e))},0),P=d/(1-Math.min(.5,O/M));i=d>0?[0,P]:[P,0]}else i=T?[Math.max(0,S),Math.max(1,C)]:[S,C]}else k?(y.val>=0&&(y={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):T&&(y.val-L*o(y)<0&&(y={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),L=(x.val-y.val)/(M-o(y)-o(x)),i=[y.val-L*o(y),x.val+L*o(x)];return h&&i.reverse(),a.simpleMap(i,e.l2r||Number)}function s(t){var e=t._length/20;return"domain"===t.constrain&&t._inputDomain&&(e*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(t){return t.pad+(t.extrapad?e:0)}}function c(t,e){var r,n,a,i=e._id,o=t._fullData,l=t._fullLayout,s=[],c=[];function d(t,e){for(r=0;r=r&&(c.extrapad||!o)){l=!1;break}a(e,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(t.splice(s,1),s--)}if(l){var u=i&&0===e;t.push({val:e,pad:u?0:r,extrapad:!u&&o})}}function p(t){return n(t)&&Math.abs(t)=e}e.exports={getAutoRange:l,makePadFn:s,doAutoRange:function(t,e){if(e.setScale(),e.autorange){e.range=l(t,e),e._r=e.range.slice(),e._rl=a.simpleMap(e._r,e.r2l);var r=e._input,n={};n[e._attr+".range"]=e.range,n[e._attr+".autorange"]=e.autorange,o.call("_storeDirectGUIEdit",t.layout,t._fullLayout._preGUI,n),r.range=e.range.slice(),r.autorange=e.autorange}var i=e._anchorAxis;if(i&&i.rangeslider){var s=i.rangeslider[e._name];s&&"auto"===s.rangemode&&(s.range=l(t,e)),i._input.rangeslider[e._name]=a.extendFlat({},s)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var a,o,l,s,c,d,h,g,v,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&&("linear"===t.type||"-"===t.type),w="log"===t.type,k=!1,T=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return k=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),L=M((t._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!k){if(g=1/0,v=-1/0,w)for(a=0;a0&&(g=o),o>v&&o-i&&(g=o),o>v&&o=D;a--)P(a);return{min:m,max:y,opts:r}},concatExtremes:c}},{"../../constants/numerical":139,"../../lib":159,"../../registry":243,"fast-isnumeric":9}],203:[function(t,e,r){"use strict";var n=t("d3"),a=t("fast-isnumeric"),i=t("../../plots/plots"),o=t("../../registry"),l=t("../../lib"),s=t("../../lib/svg_text_utils"),c=t("../../components/titles"),u=t("../../components/color"),f=t("../../components/drawing"),d=t("./layout_attributes"),p=t("./clean_ticks"),h=t("../../constants/numerical"),g=h.ONEAVGYEAR,v=h.ONEAVGMONTH,m=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=h.MINUS_SIGN,w=h.BADNUM,k=t("../../constants/alignment"),T=k.MID_SHIFT,M=k.CAP_SHIFT,A=k.LINE_SPACING,L=k.OPPOSITE_SIDE,S=e.exports={};S.setConvert=t("./set_convert");var C=t("./axis_autotype"),O=t("./axis_ids");S.id2name=O.id2name,S.name2id=O.name2id,S.cleanId=O.cleanId,S.list=O.list,S.listIds=O.listIds,S.getFromId=O.getFromId,S.getFromTrace=O.getFromTrace;var P=t("./autorange");S.getAutoRange=P.getAutoRange,S.findExtremes=P.findExtremes,S.coerceRef=function(t,e,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return a||(a=s[0]||i),i||(i=a),u[c]={valType:"enumerated",values:s.concat(i?[i]:[]),dflt:a},l.coerce(t,e,u,c)},S.coercePosition=function(t,e,r,n,a,i){var o,s;if("paper"===n||"pixel"===n)o=l.ensureNumber,s=r(a,i);else{var c=S.getFromId(e,n);s=r(a,i=c.fraction2r(i)),o=c.cleanPos}t[a]=o(s)},S.cleanPosition=function(t,e,r){return("paper"===r||"pixel"===r?l.ensureNumber:S.getFromId(e,r).cleanPos)(t)},S.redrawComponents=function(t,e){e=e||S.listIds(t);var r=t._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),c={},u=0;u2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1>2e-6)&&(t._minDtick=0)):t._minDtick=0},S.saveRangeInitial=function(t,e){for(var r=S.list(t,"",!0),n=!1,a=0;a.3*d||u(n)||u(i))){var p=r.dtick/2;t+=t+p.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?t=S.tickIncrement(t,"M6","reverse")+1.5*m:i.exactMonths>.8?t=S.tickIncrement(t,"M1","reverse")+15.5*m:t-=m/2;var s=S.tickIncrement(t,r);if(s<=n)return s}return t}(x,t,y,c,i)),v=x,0;v<=u;)v=S.tickIncrement(v,y,!1,i),0;return{start:e.c2r(x,0,i),end:e.c2r(v,0,i),size:y,_dataSpan:u-c}},S.prepTicks=function(t){var e=l.simpleMap(t.range,t.r2l);if("auto"===t.tickmode||!t.dtick){var r,n=t.nticks;n||("category"===t.type||"multicategory"===t.type?(r=t.tickfont?1.2*(t.tickfont.size||12):15,n=t._length/r):(r="y"===t._id.charAt(0)?40:80,n=l.constrain(t._length/r,4,9)+1),"radialaxis"===t._name&&(n*=2)),"array"===t.tickmode&&(n*=100),S.autoTicks(t,Math.abs(e[1]-e[0])/n),t._minDtick>0&&t.dtick<2*t._minDtick&&(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}t.tick0||(t.tick0="date"===t.type?"2000-01-01":0),"date"===t.type&&t.dtick<.1&&(t.dtick=.1),q(t)},S.calcTicks=function(t){S.prepTicks(t);var e=l.simpleMap(t.range,t.r2l);if("array"===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),a=l.simpleMap(t.range,t.r2l),i=1.0001*a[0]-1e-4*a[1],o=1.0001*a[1]-1e-4*a[0],s=Math.min(i,o),c=Math.max(i,o),u=0;Array.isArray(r)||(r=[]);var f="category"===t.type?t.d2l_noadd:t.d2l;"log"===t.type&&"L"!==String(t.dtick).charAt(0)&&(t.dtick="L"+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var d=0;ds&&p=n:f<=n)&&!(o.length>u||f===c);f=S.tickIncrement(f,t.dtick,i,t.calendar)){c=f;var d=!1;s&&f!==(0|f)&&(d=!0),o.push({minor:d,value:f})}ot(t)&&360===Math.abs(e[1]-e[0])&&o.pop(),t._tmax=(o[o.length-1]||{}).value,t._prevDateHead="",t._inCalcTicks=!0;for(var p=new Array(o.length),h=0;h10||"01-01"!==n.substr(5)?t._tickround="d":t._tickround=+e.substr(1)%12==0?"y":"m";else if(e>=m&&i<=10||e>=15*m)t._tickround="d";else if(e>=x&&i<=16||e>=y)t._tickround="M";else if(e>=b&&i<=19||e>=x)t._tickround="S";else{var o=t.l2r(r+e).replace(/^-/,"").length;t._tickround=Math.max(i,o)-20,t._tickround<0&&(t._tickround=4)}}else if(a(e)||"L"===e.charAt(0)){var l=t.range.map(t.r2d||Number);a(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(c)>3&&(Z(t.exponentformat)&&!X(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function U(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}S.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if("date"===t.type){t.tick0=l.dateTick0(t.calendar);var i=2*e;i>g?(e/=g,r=n(10),t.dtick="M"+12*V(e,r,E)):i>v?(e/=v,t.dtick="M"+V(e,1,I)):i>m?(t.dtick=V(e,m,N),t.tick0=l.dateTick0(t.calendar,!0)):i>y?t.dtick=V(e,y,I):i>x?t.dtick=V(e,x,F):i>b?t.dtick=V(e,b,F):(r=n(10),t.dtick=V(e,r,E))}else if("log"===t.type){t.tick0=0;var o=l.simpleMap(t.range,t.r2l);if(e>.7)t.dtick=Math.ceil(e);else if(Math.abs(o[1]-o[0])<1){var s=1.5*Math.abs((o[1]-o[0])/e);e=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/s,r=n(10),t.dtick="L"+V(e,r,E)}else t.dtick=e>.3?"D2":"D1"}else"category"===t.type||"multicategory"===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):ot(t)?(t.tick0=0,r=1,t.dtick=V(e,r,H)):(t.tick0=0,r=n(10),t.dtick=V(e,r,E));if(0===t.dtick&&(t.dtick=1),!a(t.dtick)&&"string"!=typeof t.dtick){var c=t.dtick;throw t.dtick=1,"ax.dtick error: "+String(c)}},S.tickIncrement=function(t,e,r,i){var o=r?-1:1;if(a(e))return t+o*e;var s=e.charAt(0),c=o*Number(e.substr(1));if("M"===s)return l.incrementMonth(t,c,i);if("L"===s)return Math.log(Math.pow(10,t)+c)/Math.LN10;if("D"===s){var u="D2"===e?B:j,f=t+.01*o,d=l.roundUp(l.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(e)},S.tickFirst=function(t){var e=t.r2l||Number,r=l.simpleMap(t.range,e),i=r[1]"+s,t._prevDateHead=s));e.text=c}(t,o,r,c):"log"===u?function(t,e,r,n,i){var o=t.dtick,s=e.x,c=t.tickformat,u="string"==typeof o&&o.charAt(0);"never"===i&&(i="");n&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)e.text=Y(Math.pow(10,s),t,i,n);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),p=t.exponentformat;"power"===p||Z(p)&&X(f)?(e.text=0===f?1:1===f?"10":"10"+(f>1?"":_)+d+"",e.fontSize*=1.25):("e"===p||"E"===p)&&d>2?e.text="1"+p+(f>0?"+":_)+d:(e.text=Y(Math.pow(10,s),t,"","fakehover"),"D1"===o&&"y"===t._id.charAt(0)&&(e.dy-=e.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);e.text=String(Math.round(Math.pow(10,l.mod(s,1)))),e.fontSize*=.75}if("D1"===t.dtick){var h=String(e.text).charAt(0);"0"!==h&&"1"!==h||("y"===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]>t.range[0]?1:-1)*e.fontSize*(s<0?.5:.25)))}}(t,o,0,c,g):"category"===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&&(r="");e.text=String(r)}(t,o):"multicategory"===u?function(t,e,r){var n=Math.round(e.x),a=t._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?e.text=o+" - "+i:(e.text=i,e.text2=o)}(t,o,r):ot(t)?function(t,e,r,n,a){if("radians"!==t.thetaunit||r)e.text=Y(e.x,t,a,n);else{var i=e.x/180;if(0===i)e.text="0";else{var o=function(t){function e(t,e){return Math.abs(t-e)<=1e-6}var r=function(t){var r=1;for(;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,a=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/a),Math.round(r/a)]}(i);if(o[1]>=100)e.text=Y(l.deg2rad(e.x),t,a,n);else{var s=e.x<0;1===o[1]?1===o[0]?e.text="\u03c0":e.text=o[0]+"\u03c0":e.text=["",o[0],"","\u2044","",o[1],"","\u03c0"].join(""),s&&(e.text=_+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,a){"never"===a?a="":"all"===t.showexponent&&Math.abs(e.x/t.dtick)<1e-6&&(a="hide");e.text=Y(e.x,t,a,n)}(t,o,0,c,g),n||(t.tickprefix&&!h(t.showtickprefix)&&(o.text=t.tickprefix+o.text),t.ticksuffix&&!h(t.showticksuffix)&&(o.text+=t.ticksuffix)),"boundaries"===t.tickson||t.showdividers){var v=function(e){var r=t.l2p(e);return r>=0&&r<=t._length?e:null};o.xbnd=[v(o.x-.5),v(o.x+t.dtick-.5)]}return o},S.hoverLabelText=function(t,e,r){if(r!==w&&r!==e)return S.hoverLabelText(t,e)+" - "+S.hoverLabelText(t,r);var n="log"===t.type&&e<=0,a=S.tickText(t,t.c2l(n?-e:e),"hover").text;return n?0===e?"0":_+a:a};var G=["f","p","n","\u03bc","m","","k","M","G","T"];function Z(t){return"SI"===t||"B"===t}function X(t){return t>14||t<-15}function Y(t,e,r,n){var i=t<0,o=e._tickround,s=r||e.exponentformat||"B",c=e._tickexponent,u=S.getTickFormat(e),f=e.separatethousands;if(n){var d={exponentformat:s,dtick:"none"===e.showexponent?e.dtick:a(t)&&Math.abs(t)||1,range:"none"===e.showexponent?e.range.map(e.r2d):[0,t||1]};q(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,e.hoverformat&&(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,_);var p,h=Math.pow(10,-o)/2;if("none"===s&&(c=0),(t=Math.abs(t))"+p+"":"B"===s&&9===c?t+="B":Z(s)&&(t+=G[c/3+5]));return i?_+t:t}function W(t,e){for(var r=[],n={},a=0;a1&&r=0,i=u(t,e[1])<=0;return(r||a)&&(n||i)}if(t.tickformatstops&&t.tickformatstops.length>0)switch(t.type){case"date":case"linear":for(e=0;e=o(a)))){r=n;break}break;case"log":for(e=0;e0?r.bottom-u:0,f)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===s?n[s]=e._depth:(n[s]=e._depth=Math.max(r.width>0?u-r.top:0,f),p.reverse()),r.width>0){var v=r.right-(e._offset+e._length);v>0&&(n.xr=1,n.r=v);var m=e._offset-r.left;m>0&&(n.xl=0,n.l=m)}}else if("l"===s?n[s]=e._depth=Math.max(r.height>0?u-r.left:0,f):(n[s]=e._depth=Math.max(r.height>0?r.right-u:0,f),p.reverse()),r.height>0){var y=r.bottom-(e._offset+e._length);y>0&&(n.yb=0,n.b=y);var x=e._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[g]="free"===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==d._dfltTitle[h]&&(n[s]+=Q(e)+(e.title.standoff||0)),e.mirror&&"free"!==e.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[c]=e.linewidth,e.mirror&&!0!==e.mirror&&(a[c]+=f),!0===e.mirror||"ticks"===e.mirror?a[g]=e._anchorAxis.domain[p[1]]:"all"!==e.mirror&&"allticks"!==e.mirror||(a[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}Y&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(t,e)),i.autoMargin(t,tt(e),n),i.autoMargin(t,et(e),a),i.autoMargin(t,rt(e),l)}),r.skipTitle||Y&&"bottom"===e.side||Z.push(function(){return function(t,e){var r,n=t._fullLayout,a=e._id,i=a.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty("standoff"))r=e._depth+e.title.standoff+Q(e);else{if("multicategory"===e.type)r=e._depth;else{r=10+1.5*o+(e.linewidth?e.linewidth-1:0)}r+="x"===i?"top"===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):"right"===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0)}var l,s,u,d,p=S.getPxPosition(t,e);"x"===i?(s=e._offset+e._length/2,u="top"===e.side?p-r:p+r):(u=e._offset+e._length/2,s="right"===e.side?p+r:p-r,l={rotate:"-90",offset:0});if("multicategory"!==e.type){var h=e._selections[e._id+"tick"];if(d={selection:h,side:e.side},h&&h.node()&&h.node().parentNode){var g=f.getTranslate(h.node().parentNode);d.offsetLeft=g.x,d.offsetTop=g.y}e.title.hasOwnProperty("standoff")&&(d.pad=0)}return c.draw(t,a+"title",{propContainer:e,propName:e._name+".title.text",placeholder:n._dfltTitle[i],avoid:d,transform:l,attributes:{x:s,y:u,"text-anchor":"middle"}})}(t,e)}),l.syncOrAsync(Z)}}function J(t){var r=p+(t||"tick");return w[r]||(w[r]=function(t,e){var r,n,a,i;t._selections[e].size()?(r=1/0,n=-1/0,a=1/0,i=-1/0,t._selections[e].each(function(){var t=K(this),e=f.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),a=Math.min(a,e.left),i=Math.max(i,e.right)})):(r=0,n=0,a=0,i=0);return{top:r,bottom:n,left:a,right:i,height:n-r,width:i-a}}(e,r)),w[r]}},S.getTickSigns=function(t){var e=t._id.charAt(0),r={x:"top",y:"right"}[e],n=t.side===r?1:-1,a=[-1,1,n,-n];return"inside"!==t.ticks==("x"===e)&&(a=a.map(function(t){return-t})),t.side&&a.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),a},S.makeTransFn=function(t){var e=t._id.charAt(0),r=t._offset;return"x"===e?function(e){return"translate("+(r+t.l2p(e.x))+",0)"}:function(e){return"translate(0,"+(r+t.l2p(e.x))+")"}},S.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var a=t._id.charAt(0),i=(t.linewidth||1)/2;return"x"===a?"M0,"+(e+i*r)+"v"+n*r:"M"+(e+i*r)+",0h"+n*r},S.makeLabelFns=function(t,e,r){var n=t._id.charAt(0),i="boundaries"!==t.tickson&&"outside"===t.ticks,o=0,s=0;if(i&&(o+=t.ticklen),r&&"outside"===t.ticks){var c=l.deg2rad(r);o=t.ticklen*Math.cos(c)+1,s=t.ticklen*Math.sin(c)}t.showticklabels&&(i||t.showline)&&(o+=.2*t.tickfont.size);var u,f,d,p,h={labelStandoff:o+=(t.linewidth||1)/2,labelShift:s};return"x"===n?(p="bottom"===t.side?1:-1,u=s*p,f=e+o*p,d="bottom"===t.side?1:-.2,h.xFn=function(t){return t.dx+u},h.yFn=function(t){return t.dy+f+t.fontSize*d},h.anchorFn=function(t,e){return a(e)&&0!==e&&180!==e?e*p<0?"end":"start":"middle"},h.heightFn=function(e,r,n){return r<-60||r>60?-.5*n:"top"===t.side?-n:0}):"y"===n&&(p="right"===t.side?1:-1,u=o,f=-s*p,d=90===Math.abs(t.tickangle)?.5:0,h.xFn=function(t){return t.dx+e+(u+t.fontSize*d)*p},h.yFn=function(t){return t.dy+f+t.fontSize*T},h.anchorFn=function(e,r){return a(r)&&90===Math.abs(r)?"middle":"right"===t.side?"start":"end"},h.heightFn=function(e,r,n){return(r*="left"===t.side?1:-1)<-30?-n:r<30?-.5*n:0}),h},S.drawTicks=function(t,e,r){r=r||{};var n=e._id+"tick",a=r.layer.selectAll("path."+n).data(e.ticks?r.vals:[],$);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(u.stroke,e.tickcolor).style("stroke-width",f.crispRound(t,e.tickwidth,1)+"px").attr("d",r.path),a.attr("transform",r.transFn)},S.drawGrid=function(t,e,r){r=r||{};var n=e._id+"grid",a=r.vals,i=r.counterAxis;if(!1===e.showgrid)a=[];else if(i&&S.shouldShowZeroLine(t,e,i))for(var o="array"===e.tickmode,l=0;l1)for(n=1;n2*o}(t,e)?"date":function(t){for(var e=Math.max(1,(t.length-1)/1e3),r=0,n=0,o={},l=0;l2*r}(t)?"category":function(t){if(!t)return!1;for(var e=0;en?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n0;o&&(a="array");var l,s=r("categoryorder",a);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=e.categoryorder="trace"),"trace"===s?e._initialCategories=[]:"array"===s?e._initialCategories=l.slice():(l=function(t,e){var r,n,a,i=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;ns*x)||k)for(r=0;rz&&IP&&(P=I);p/=(P-O)/(2*D),O=c.l2r(O),P=c.l2r(P),c.range=c._input.range=L=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function R(t,e,r,n,a){return t.append("path").attr("class","zoombox").style({fill:e>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+r+", "+n+")").attr("d",a+"Z")}function E(t,e,r){return t.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+e+", "+r+")").attr("d","M0,0Z")}function I(t,e,r,n,a,i){t.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),F(t,e,a,i)}function F(t,e,r,n){r||(t.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),e.transition().style("opacity",1).duration(200))}function N(t){n.select(t).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function j(t){L&&t.data&&t._context.showTips&&(l.notifier(l._(t,"Double-click to zoom back out"),"long"),L=!1)}function B(t){return"lasso"===t||"select"===t}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,A)/2);return"M"+(t.l-3.5)+","+(t.t-.5+e)+"h3v"+-e+"h"+e+"v-3h-"+(e+3)+"ZM"+(t.r+3.5)+","+(t.t-.5+e)+"h-3v"+-e+"h"+-e+"v-3h"+(e+3)+"ZM"+(t.r+3.5)+","+(t.b+.5-e)+"h-3v"+e+"h"+-e+"v3h"+(e+3)+"ZM"+(t.l-3.5)+","+(t.b+.5-e)+"h3v"+e+"h"+e+"v3h-"+(e+3)+"Z"}function V(t,e,r,n){for(var a,i,o,s,c=!1,u={},f={},d=0;d-1&&w(a,t,Y,W,e.id,Lt),i.indexOf("event")>-1&&f.click(t,a,e.id);else if(1===r&&pt){var l=L?G:F,c="s"===L||"w"===S?0:1,u=l._name+".range["+c+"]",d=function(t,e){var r,a=t.range[e],i=Math.abs(a-t.range[1-e]);return"date"===t.type?a:"log"===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,n.format("."+r+"g")(Math.pow(10,a))):(r=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,n.format("."+String(r)+"g")(a))}(l,c),p="left",h="middle";if(l.fixedrange)return;L?(h="n"===L?"top":"bottom","right"===l.side&&(p="right")):"e"===S&&(p="right"),t._context.showAxisRangeEntryBoxes&&n.select(vt).call(s.makeEditable,{gd:t,immediate:!0,background:t._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:p,verticalAlign:h}).on("edit",function(e){var r=l.d2r(e);void 0!==r&&o.call("_guiRelayout",t,u,r)})}}function Ot(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(J,e+mt)),a=Math.max(0,Math.min(K,r+yt)),i=Math.abs(n-mt),o=Math.abs(a-yt);function l(){kt="",xt.r=xt.l,xt.t=xt.b,Mt.attr("d","M0,0Z")}if(xt.l=Math.min(mt,n),xt.r=Math.max(mt,n),xt.t=Math.min(yt,a),xt.b=Math.max(yt,a),tt.isSubplotConstrained)i>A||o>A?(kt="xy",i/J>o/K?(o=i*K/J,yt>a?xt.t=yt-o:xt.b=yt+o):(i=o*J/K,mt>n?xt.l=mt-i:xt.r=mt+i),Mt.attr("d",H(xt))):l();else if(et.isSubplotConstrained)if(i>A||o>A){kt="xy";var s=Math.min(xt.l/J,(K-xt.b)/K),c=Math.max(xt.r/J,(K-xt.t)/K);xt.l=s*J,xt.r=c*J,xt.b=(1-s)*K,xt.t=(1-c)*K,Mt.attr("d",H(xt))}else l();else!nt||og[1]-1/4096&&(e.domain=l),a.noneOrAll(t.domain,e.domain,l)}return r("layer"),e}},{"../../lib":159,"fast-isnumeric":9}],219:[function(t,e,r){"use strict";var n=t("../../constants/alignment").FROM_BL;e.exports=function(t,e,r){void 0===r&&(r=n[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],i=a[0]+(a[1]-a[0])*r;t.range=t._input.range=[t.l2r(i+(a[0]-i)*e),t.l2r(i+(a[1]-i)*e)]}},{"../../constants/alignment":136}],220:[function(t,e,r){"use strict";var n=t("polybooljs"),a=t("../../registry"),i=t("../../components/color"),o=t("../../components/fx"),l=t("../../lib"),s=t("../../lib/polygon"),c=t("../../lib/throttle"),u=t("../../components/fx/helpers").makeEventData,f=t("./axis_ids").getFromId,d=t("../../lib/clear_gl_canvases"),p=t("../../plot_api/subroutines").redrawReglTraces,h=t("./constants"),g=h.MINSELECT,v=s.filter,m=s.tester;function y(t){return t._id}function x(t,e,r,n,a,i,o){var l,s,c,u,f,d,p,h,g,v=e._hoverdata,m=e._fullLayout.clickmode.indexOf("event")>-1,y=[];if(function(t){return t&&Array.isArray(t)&&!0!==t[0].hoverOnBox}(v)){k(t,e,i);var x=function(t,e){var r,n,a=t[0],i=-1,o=[];for(n=0;n0?function(t,e){var r,n,a,i=[];for(a=0;a0&&i.push(r);if(1===i.length&&i[0]===e.searchInfo&&(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(a=0;a1)return!1;if((a+=r.selectedpoints.length)>1)return!1}return 1===a}(l)&&(d=L(x))){for(o&&o.remove(),g=0;g0?"M"+a.join("M")+"Z":"M0,0Z",e.attr("d",n)}function L(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,a=n.length>0?n[0]:r;return!!e.selectedpoints&&e.selectedpoints.indexOf(a)>-1}function S(t,e,r){var n,i,o,l;for(n=0;n-1&&x(e,L,a.xaxes,a.yaxes,a.subplot,a,G),"event"===r&&L.emit("plotly_selected",void 0);o.click(L,e)}).catch(l.error)},a.doneFn=function(){X.remove(),c.done(Y).then(function(){c.clear(Y),a.gd.emit("plotly_selected",_),p&&a.selectionDefs&&(p.subtract=U,a.selectionDefs.push(p),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,d)),a.doneFnCompleted&&a.doneFnCompleted(W)}).catch(l.error)}},clearSelect:O,selectOnClick:x}},{"../../components/color":42,"../../components/fx":80,"../../components/fx/helpers":77,"../../lib":159,"../../lib/clear_gl_canvases":148,"../../lib/polygon":171,"../../lib/throttle":181,"../../plot_api/subroutines":194,"../../registry":243,"./axis_ids":206,"./constants":209,polybooljs:16}],221:[function(t,e,r){"use strict";var n=t("d3"),a=t("fast-isnumeric"),i=t("../../lib"),o=i.cleanNumber,l=i.ms2DateTime,s=i.dateTime2ms,c=i.ensureNumber,u=i.isArrayOrTypedArray,f=t("../../constants/numerical"),d=f.FP_SAFE,p=f.BADNUM,h=f.LOG_CLIP,g=t("./constants"),v=t("./axis_ids");function m(t){return Math.pow(10,t)}function y(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||"x",f=r.charAt(0);function x(e,r){if(e>0)return Math.log(e)/Math.LN10;if(e<=0&&r&&t.range&&2===t.range.length){var n=t.range[0],a=t.range[1];return.5*(n+a-2*h*Math.abs(n-a))}return p}function b(e,r,n){var o=s(e,n||t.calendar);if(o===p){if(!a(e))return p;e=+e;var l=Math.floor(10*i.mod(e+.05,1)),c=Math.round(e-l/10);o=s(new Date(c))+l/10}return o}function _(e,r,n){return l(e,r,n||t.calendar)}function w(e){return t._categories[Math.round(e)]}function k(e){if(y(e)){if(void 0===t._categoriesMap&&(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push("number"==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return p}function T(e){if(t._categoriesMap)return t._categoriesMap[e]}function M(t){var e=T(t);return void 0!==e?e:a(t)?+t:void 0}function A(e){return a(e)?n.round(t._b+t._m*e,2):p}function L(e){return(e-t._b)/t._m}t.c2l="log"===t.type?x:c,t.l2c="log"===t.type?m:c,t.l2p=A,t.p2l=L,t.c2p="log"===t.type?function(t,e){return A(x(t,e))}:A,t.p2c="log"===t.type?function(t){return m(L(t))}:L,-1!==["linear","-"].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=c,t.d2p=t.r2p=function(e){return t.l2p(o(e))},t.p2d=t.p2r=L,t.cleanPos=c):"log"===t.type?(t.d2r=t.d2l=function(t,e){return x(o(t),e)},t.r2d=t.r2c=function(t){return m(o(t))},t.d2c=t.r2l=o,t.c2d=t.l2r=c,t.c2r=x,t.l2d=m,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return m(L(t))},t.r2p=function(e){return t.l2p(o(e))},t.p2r=L,t.cleanPos=c):"date"===t.type?(t.d2r=t.r2d=i.identity,t.d2c=t.r2c=t.d2l=t.r2l=b,t.c2d=t.c2r=t.l2d=t.l2r=_,t.d2p=t.r2p=function(e,r,n){return t.l2p(b(e,0,n))},t.p2d=t.p2r=function(t,e,r){return _(L(t),e,r)},t.cleanPos=function(e){return i.cleanDate(e,p,t.calendar)}):"category"===t.type?(t.d2c=t.d2l=k,t.r2d=t.c2d=t.l2d=w,t.d2r=t.d2l_noadd=M,t.r2c=function(e){var r=M(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=c,t.r2l=M,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return w(L(t))},t.r2p=t.d2p,t.p2r=L,t.cleanPos=function(t){return"string"==typeof t&&""!==t?t:c(t)}):"multicategory"===t.type&&(t.r2d=t.c2d=t.l2d=w,t.d2r=t.d2l_noadd=M,t.r2c=function(e){var r=M(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=T,t.l2r=t.c2r=c,t.r2l=M,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return w(L(t))},t.r2p=t.d2p,t.p2r=L,t.cleanPos=function(t){return Array.isArray(t)||"string"==typeof t&&""!==t?t:c(t)},t.setupMultiCategory=function(n){var a,o,l=t._traceIndices,s=e._axisMatchGroups;if(s&&s.length&&0===t._categories.length)for(a=0;ad&&(l[n]=d),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else i.nestedProperty(t,e).set(o)},t.setScale=function(r){var n=e._size;if(t.overlaying){var a=v.getFromId({_fullLayout:e},t.overlaying);t.domain=a.domain}var i=r&&t._r?"_r":"range",o=t.calendar;t.cleanRange(i);var l=t.r2l(t[i][0],o),s=t.r2l(t[i][1],o);if("y"===f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(l-s),t._b=-t._m*s):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(s-l),t._b=-t._m*l),!isFinite(t._m)||!isFinite(t._b)||t._length<0)throw e._replotting=!1,new Error("Something went wrong with axis scaling")},t.makeCalcdata=function(e,r){var n,a,o,l,s=t.type,c="date"===s&&e[r+"calendar"];if(r in e){if(n=e[r],l=e._length||i.minRowLength(n),i.isTypedArray(n)&&("linear"===s||"log"===s)){if(l===n.length)return n;if(n.subarray)return n.subarray(0,l)}if("multicategory"===s)return function(t,e){for(var r=new Array(e),n=0;nr.duration?(function(){for(var r={},n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function v(e,r){var n=e.plotinfo,a=n.xaxis,s=n.yaxis,c=a._length,u=s._length,f=!!e.xr1,d=!!e.yr1,p=[];if(f){var h=i.simpleMap(e.xr0,a.r2l),g=i.simpleMap(e.xr1,a.r2l),v=h[1]-h[0],m=g[1]-g[0];p[0]=(h[0]*(1-r)+r*g[0]-h[0])/(h[1]-h[0])*c,p[2]=c*(1-r+r*m/v),a.range[0]=a.l2r(h[0]*(1-r)+r*g[0]),a.range[1]=a.l2r(h[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(d){var y=i.simpleMap(e.yr0,s.r2l),x=i.simpleMap(e.yr1,s.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),s.range[0]=a.l2r(y[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;l.drawOne(t,a,{skipTitle:!0}),l.drawOne(t,s,{skipTitle:!0}),l.redrawComponents(t,[a._id,s._id]);var w=f?c/p[2]:1,k=d?u/p[3]:1,T=f?p[0]:0,M=d?p[1]:0,A=f?p[0]/p[2]*c:0,L=d?p[1]/p[3]*u:0,S=a._offset-A,C=s._offset-L;n.clipRect.call(o.setTranslate,T,M).call(o.setScale,1/w,1/k),n.plot.call(o.setTranslate,S,C).call(o.setScale,w,k),o.setPointGroupScale(n.zoomScalePts,1/w,1/k),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/k)}l.redrawComponents(t)}},{"../../components/drawing":63,"../../lib":159,"../../registry":243,"./axes":203,d3:7}],226:[function(t,e,r){"use strict";var n=t("../../registry").traceIs,a=t("./axis_autotype");function i(t){return{v:"x",h:"y"}[t.orientation||"v"]}function o(t,e){var r=i(t),a=n(t,"box-violin"),o=n(t._fullInput||{},"candlestick");return a&&!o&&e===r&&void 0===t[r]&&void 0===t[r+"0"]}e.exports=function(t,e,r,l){"-"===r("type",(l.splomStash||{}).type)&&(!function(t,e){if("-"!==t.type)return;var r,l=t._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(t,e,r){for(var n=0;n0&&(a["_"+r+"axes"]||{})[e])return a;if((a[r+"axis"]||r)===e){if(o(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(e,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(t.type="linear");var u=s+"calendar",f=c[u],d={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0);if(o(c,s)){var p=i(c),h=[];for(r=0;r0?".":"")+i;a.isPlainObject(o)?s(o,e,l,n+1):e(l,i,o)}})}r.manageCommandObserver=function(t,e,n,o){var l={},s=!0;e&&e._commandObserver&&(l=e._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,l.lookupTable);if(e&&e._commandObserver){if(c)return l;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,l}if(c){i(t,c,l.cache),l.check=function(){if(s){var e=i(t,c,l.cache);return e.changed&&o&&void 0!==l.lookupTable[e.value]&&(l.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[e.value]})).then(l.enable,l.enable)),e.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f=e.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=e._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),u=r.select(".js-sourcelinks");t._context.showSources&&t._context.showSources(t),t._context.showLink&&function(t,e){e.text("");var r=e.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(t._context.linkText+" "+String.fromCharCode(187));if(t._context.sendData)r.on("click",function(){m.sendDataToCloud(t)});else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(t,o),l.text(o.text()&&u.text()?" - ":"")}},m.sendDataToCloud=function(t){t.emit("plotly_beforeexport");var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL,r=n.select(t).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:e+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=m.graphJson(t,!1,"keepdata"),a.node().submit(),r.remove(),t.emit("plotly_afterexport"),!1};var b=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],_=["year","month","dayMonth","dayMonthYear"];function w(t,e){var r=t._context.locale,n=!1,a={};function o(t){for(var r=!0,i=0;i1&&D.length>1){for(i.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o15&&D.length>15&&0===l.shapes.length&&0===l.images.length,l._hasCartesian=l._has("cartesian"),l._hasGeo=l._has("geo"),l._hasGL3D=l._has("gl3d"),l._hasGL2D=l._has("gl2d"),l._hasTernary=l._has("ternary"),l._hasPie=l._has("pie"),m.linkSubplots(f,l,u,a),m.cleanPlot(f,l,u,a),a._zoomlayer&&!t._dragging&&a._zoomlayer.selectAll(".select-outline").remove(),function(t,e){var r,n=[];e.meta&&(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var a=0;a0){var f=1-2*l;n=Math.round(f*n),i=Math.round(f*i)}}var d=m.layoutAttributes.width.min,p=m.layoutAttributes.height.min;n1,g=!e.height&&Math.abs(r.height-i)>1;(g||h)&&(h&&(r.width=n),g&&(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),m.sanitizeMargins(r)},m.supplyLayoutModuleDefaults=function(t,e,r,n){var a,o,l,c=i.componentsRegistry,u=e._basePlotModules,f=i.subplotsRegistry.cartesian;for(a in c)(l=c[a]).includeBasePlot&&l.includeBasePlot(t,e);for(var d in u.length||u.push(f),e._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[d].sort(s.subplotSort);for(o=0;o.5*n.width&&(s.log("Margin push",e,"is too big in x, dropping"),r.l=r.r=0),r.b+r.t>.5*n.height&&(s.log("Margin push",e,"is too big in y, dropping"),r.b=r.t=0);var c=void 0!==r.xl?r.xl:r.x,u=void 0!==r.xr?r.xr:r.x,f=void 0!==r.yt?r.yt:r.y,d=void 0!==r.yb?r.yb:r.y;a[e]={l:{val:c,size:r.l+o},r:{val:u,size:r.r+o},b:{val:d,size:r.b+o},t:{val:f,size:r.t+o}},i[e]=1}else delete a[e],delete i[e];if(!n._replotting)return m.doAutoMargin(t)}},m.doAutoMargin=function(t){var e=t._fullLayout;e._size||(e._size={}),A(e);var r=e._size,n=e.margin,o=s.extendFlat({},r),l=n.l,c=n.r,u=n.t,f=n.b,d=e.width,p=e.height,h=e._pushmargin,g=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in h)g[v]||delete h[v];for(var y in h.base={l:{val:0,size:l},r:{val:1,size:c},t:{val:1,size:u},b:{val:0,size:f}},h){var x=h[y].l||{},b=h[y].b||{},_=x.val,w=x.size,k=b.val,T=b.size;for(var M in h){if(a(w)&&h[M].r){var L=h[M].r.val,S=h[M].r.size;if(L>_){var C=(w*L+(S-d)*_)/(L-_),O=(S*(1-_)+(w-d)*(1-L))/(L-_);C>=0&&O>=0&&d-(C+O)>0&&C+O>l+c&&(l=C,c=O)}}if(a(T)&&h[M].t){var P=h[M].t.val,D=h[M].t.size;if(P>k){var z=(T*P+(D-p)*k)/(P-k),R=(D*(1-k)+(T-p)*(1-P))/(P-k);z>=0&&R>=0&&p-(R+z)>0&&z+R>f+u&&(f=z,u=R)}}}}}if(r.l=Math.round(l),r.r=Math.round(c),r.t=Math.round(u),r.b=Math.round(f),r.p=Math.round(n.pad),r.w=Math.round(d)-r.l-r.r,r.h=Math.round(p)-r.t-r.b,!e._replotting&&m.didMarginChange(o,r)){"_redrawFromAutoMarginCount"in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var E=3*(1+Object.keys(g).length);if(e._redrawFromAutoMarginCount0&&(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&t._transitionData._interruptCallbacks.push(function(){return i.call("redraw",t)}),t._transitionData._interruptCallbacks.push(function(){t.emit("plotly_transitioninterrupted",[])});var o=0,l=0;function s(){return o++,function(){var e;l++,n||l!==o||(e=a,t._transitionData&&(function(t){if(t)for(;t.length;)t.shift()}(t._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return i.call("redraw",t)}).then(function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit("plotly_transitioned",[])}).then(e)))}}r.runFn(s),setTimeout(s())})}],o=s.syncOrAsync(a,t);return o&&o.then||(o=Promise.resolve()),o.then(function(){return t})}m.didMarginChange=function(t,e){for(var r=0;r1)return!0}return!1},m.graphJson=function(t,e,r,n,a){(a&&e&&!t._fullData||a&&!e&&!t._fullLayout)&&m.supplyDefaults(t);var i=a?t._fullData:t.data,o=a?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t){if("function"==typeof t)return null;if(s.isPlainObject(t)){var e,n,a={};for(e in t)if("function"!=typeof t[e]&&-1===["_","["].indexOf(e.charAt(0))){if("keepdata"===r){if("src"===e.substr(e.length-3))continue}else if("keepstream"===r){if("string"==typeof(n=t[e+"src"])&&n.indexOf(":")>0&&!s.isPlainObject(t.stream))continue}else if("keepall"!==r&&"string"==typeof(n=t[e+"src"])&&n.indexOf(":")>0)continue;a[e]=c(t[e])}return a}return Array.isArray(t)?t.map(c):s.isTypedArray(t)?s.simpleMap(t,s.identity):s.isJSDate(t)?s.ms2DateTimeLocal(+t):t}var u={data:(i||[]).map(function(t){var r=c(t);return e&&delete r.fit,r})};return e||(u.layout=c(o)),t.framework&&t.framework.isPolar&&(u=t.framework.getConfig()),l&&(u.frames=c(l)),"object"===n?u:JSON.stringify(u)},m.modifyFrames=function(t,e){var r,n,a,i=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r=0;l--)if(o[l].enabled){r._indexToPoints=o[l]._indexToPoints;break}n&&n.calc&&(i=n.calc(t,r))}Array.isArray(i)&&i[0]||(i=[{x:u,y:u}]),i[0].t||(i[0].t={}),i[0].trace=r,h[e]=i}}for(O(c,d,p),a=0;a=0?d.angularAxis.domain:n.extent(k),S=Math.abs(k[1]-k[0]);M&&!T&&(S=0);var C=L.slice();A&&T&&(C[1]+=S);var O=d.angularAxis.ticksCount||4;O>8&&(O=O/(O/8)+O%8),d.angularAxis.ticksStep&&(O=(C[1]-C[0])/O);var P=d.angularAxis.ticksStep||(C[1]-C[0])/(O*(d.minorTicks+1));w&&(P=Math.max(Math.round(P),1)),C[2]||(C[2]=P);var D=n.range.apply(this,C);if(D=D.map(function(t,e){return parseFloat(t.toPrecision(12))}),l=n.scale.linear().domain(C.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=A?S:0,"undefined"==typeof(t=n.select(this).select("svg.chart-root"))||t.empty()){var z=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),R=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(R)}t.select(".guides-group").style({"pointer-events":"none"}),t.select(".angular.axis-group").style({"pointer-events":"none"}),t.select(".radial.axis-group").style({"pointer-events":"none"});var E,I=t.select(".chart-group"),F={fill:"none",stroke:d.tickColor},N={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(t,e){return" "+t+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){E=t.select(".legend-group").attr({transform:"translate("+[x,d.margin.top]+")"}).style({display:"block"});var j=p.map(function(t,e){var r=o.util.cloneJson(t);return r.symbol="DotPlot"===t.geometry?t.dotType||"circle":"LinePlot"!=t.geometry?"square":"line",r.visibleInLegend="undefined"==typeof t.visibleInLegend||t.visibleInLegend,r.color="LinePlot"===t.geometry?t.strokeColor:t.color,r});o.Legend().config({data:p.map(function(t,e){return t.name||"Element"+e}),legendConfig:a({},o.Legend.defaultConfig().legendConfig,{container:E,elements:j,reverseOrder:d.legend.reverseOrder})})();var B=E.node().getBBox();x=Math.min(d.width-B.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,x=Math.max(10,x),_=[d.margin.left+x,d.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),E.attr("transform","translate("+[_[0]+x,_[1]-x]+")")}else E=t.select(".legend-group").style({display:"none"});t.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),I.attr("transform","translate("+_+")").style({cursor:"crosshair"});var H=[(d.width-(d.margin.left+d.margin.right+2*x+(B?B.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),t.select(".outer-group").attr("transform","translate("+H+")"),d.title&&d.title.text){var V=t.select("g.title-group text").style(N).text(d.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var U=t.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var G=U.selectAll("circle.grid-circle").data(r.ticks(5));G.enter().append("circle").attr({class:"grid-circle"}).style(F),G.attr("r",r),G.exit().remove()}U.select("circle.outside-circle").attr({r:x}).style(F);var Z=t.select("circle.background-circle").attr({r:x}).style({fill:d.backgroundColor,stroke:d.stroke});function X(t,e){return l(t)%360+d.orientation}if(d.radialAxis.visible){var Y=n.svg.axis().scale(r).ticks(5).tickSize(5);U.call(Y).attr({transform:"rotate("+d.radialAxis.orientation+")"}),U.selectAll(".domain").style(F),U.selectAll("g>text").text(function(t,e){return this.textContent+d.radialAxis.ticksSuffix}).style(N).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,N["font-size"]]+")":"translate("+[0,N["font-size"]]+")"}}),U.selectAll("g>line").style({stroke:"black"})}var W=t.select(".angular.axis-group").selectAll("g.angular-tick").data(D),$=W.enter().append("g").classed("angular-tick",!0);W.attr({transform:function(t,e){return"rotate("+X(t)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),W.exit().remove(),$.append("line").classed("grid-line",!0).classed("major",function(t,e){return e%(d.minorTicks+1)==0}).classed("minor",function(t,e){return!(e%(d.minorTicks+1)==0)}).style(F),$.selectAll(".minor").style({stroke:d.minorTickColor}),W.select("line.grid-line").attr({x1:d.tickLength?x-d.tickLength:0,x2:x}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),$.append("text").classed("axis-text",!0).style(N);var Q=W.select("text.axis-text").attr({x:x+d.labelOffset,dy:i+"em",transform:function(t,e){var r=X(t),n=x+d.labelOffset,a=d.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-r+" "+n+" 0)":"radial"==a?r<270&&r>90?"rotate(180 "+n+" 0)":null:"rotate("+(r<=180&&r>0?-90:90)+" "+n+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(t,e){return e%(d.minorTicks+1)!=0?"":w?w[t]+d.angularAxis.ticksSuffix:t+d.angularAxis.ticksSuffix}).style(N);d.angularAxis.rewriteTicks&&Q.text(function(t,e){return e%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,e)});var J=n.max(I.selectAll(".angular-tick text")[0].map(function(t,e){return t.getCTM().e+t.getBBox().width}));E.attr({transform:"translate("+[x+J,d.margin.top]+")"});var K=t.select("g.geometry-group").selectAll("g").size()>0,tt=t.select("g.geometry-group").selectAll("g.geometry").data(p);if(tt.enter().append("g").attr({class:function(t,e){return"geometry geometry"+e}}),tt.exit().remove(),p[0]||K){var et=[];p.forEach(function(t,e){var n={};n.radialScale=r,n.angularScale=l,n.container=tt.filter(function(t,r){return r==e}),n.geometry=t.geometry,n.orientation=d.orientation,n.direction=d.direction,n.index=e,et.push({data:t,geometryConfig:n})});var rt=n.nest().key(function(t,e){return"undefined"!=typeof t.data.groupId||"unstacked"}).entries(et),nt=[];rt.forEach(function(t,e){"unstacked"===t.key?nt=nt.concat(t.values.map(function(t,e){return[t]})):nt.push(t.values)}),nt.forEach(function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map(function(t,e){return a(o[r].defaultConfig(),t)});o[r]().config(n)()})}var at,it,ot=t.select(".guides-group"),lt=t.select(".tooltips-group"),st=o.tooltipPanel().config({container:lt,fontSize:8})(),ct=o.tooltipPanel().config({container:lt,fontSize:8})(),ut=o.tooltipPanel().config({container:lt,hasTick:!0})();if(!T){var ft=ot.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});I.on("mousemove.angular-guide",function(t,e){var r=o.util.getMousePos(Z).angle;ft.attr({x2:-x,transform:"rotate("+r+")"}).style({opacity:.5});var n=(r+180+360-d.orientation)%360;at=l.invert(n);var a=o.util.convertToCartesian(x+12,r+180);st.text(o.util.round(at)).move([a[0]+_[0],a[1]+_[1]])}).on("mouseout.angular-guide",function(t,e){ot.select("line").style({opacity:0})})}var dt=ot.select("circle").style({stroke:"grey",fill:"none"});I.on("mousemove.radial-guide",function(t,e){var n=o.util.getMousePos(Z).radius;dt.attr({r:n}).style({opacity:.5}),it=r.invert(o.util.getMousePos(Z).radius);var a=o.util.convertToCartesian(n,d.radialAxis.orientation);ct.text(o.util.round(it)).move([a[0]+_[0],a[1]+_[1]])}).on("mouseout.radial-guide",function(t,e){dt.style({opacity:0}),ut.hide(),st.hide(),ct.hide()}),t.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(e,r){var a=n.select(this),i=this.style.fill,l="black",s=this.style.opacity||1;if(a.attr({"data-opacity":s}),i&&"none"!==i){a.attr({"data-fill":i}),l=n.hsl(i).darker().toString(),a.style({fill:l,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};T&&(c.t=w[e[0]]);var u="t: "+c.t+", r: "+c.r,f=this.getBoundingClientRect(),d=t.node().getBoundingClientRect(),p=[f.left+f.width/2-H[0]-d.left,f.top+f.height/2-H[1]-d.top];ut.config({color:l}).text(u),ut.move(p)}else i=this.style.stroke||"black",a.attr({"data-stroke":i}),l=n.hsl(i).darker().toString(),a.style({stroke:l,opacity:1})}).on("mousemove.tooltip",function(t,e){if(0!=n.event.which)return!1;n.select(this).attr("data-fill")&&ut.show()}).on("mouseout.tooltip",function(t,e){ut.hide();var r=n.select(this),a=r.attr("data-fill");a?r.style({fill:a,opacity:r.attr("data-opacity")}):r.style({stroke:r.attr("data-stroke"),opacity:r.attr("data-opacity")})})})}(c),this},d.config=function(t){if(!arguments.length)return s;var e=o.util.cloneJson(t);return e.data.forEach(function(t,e){s.data[e]||(s.data[e]={}),a(s.data[e],o.Axis.defaultConfig().data[0]),a(s.data[e],t)}),a(s.layout,o.Axis.defaultConfig().layout),a(s.layout,e.layout),this},d.getLiveConfig=function(){return u},d.getinputConfig=function(){return c},d.radialScale=function(t){return r},d.angularScale=function(t){return l},d.svg=function(){return t},n.rebind(d,f,"on"),d},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT="dataExtent",o.AREA="AreaChart",o.LINE="LinePlot",o.DOT="DotPlot",o.BAR="BarChart",o.util._override=function(t,e){for(var r in t)r in e&&(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map(function(e,r){var n=e*Math.PI/180;return[e,t(n)]})},o.util.dataFromEquation=function(t,e,r){var a=e||6,i=[],o=[];n.range(0,360+a,a).forEach(function(e,r){var n=e*Math.PI/180,a=t(n);i.push(e),o.push(a)});var l={t:i,r:o};return r&&(l.name=r),l},o.util.ensureArray=function(t,e){if("undefined"==typeof t)return null;var r=[].concat(t);return n.range(e).map(function(t,e){return r[e]||r[0]})},o.util.fillArrays=function(t,e,r){return e.forEach(function(e,n){t[e]=o.util.ensureArray(t[e],r)}),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){"string"==typeof e&&(e=e.split("."));var r=e.shift();return t[r]&&(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map(function(t,e){return n.sum(t)})},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- >=0&&t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],a=e[1],i={};return i.x=r,i.y=a,i.pos=e,i.angle=180*(Math.atan2(a,r)+Math.PI)/Math.PI,i.radius=Math.sqrt(r*r+a*a),i},o.util.duplicatesCount=function(t){for(var e,r={},n={},a=0,i=t.length;a0)){var s=n.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:u(l),transform:function(t,r){return"rotate("+(e.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(t,e){return h.fill(r,a,i)},"fill-opacity":0,stroke:function(t,e){return h.stroke(r,a,i)},"stroke-width":function(t,e){return h["stroke-width"](r,a,i)},"stroke-dasharray":function(t,e){return h["stroke-dasharray"](r,a,i)},opacity:function(t,e){return h.opacity(r,a,i)},display:function(t,e){return h.display(r,a,i)}})}};var f=e.angularScale.range(),d=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle(function(t){return-d/2}).endAngle(function(t){return d/2}).innerRadius(function(t){return e.radialScale(s+(t[2]||0))}).outerRadius(function(t){return e.radialScale(s+(t[2]||0))+e.radialScale(t[1])});c.arc=function(t,r,a){n.select(this).attr({class:"mark arc",d:p,transform:function(t,r){return"rotate("+(e.orientation+l(t[0])+90)+")"}})};var h={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},"stroke-width":function(e,r,n){return t[n].data.strokeSize+"px"},"stroke-dasharray":function(e,n,a){return r[t[a].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return"undefined"==typeof t[n].data.visible||t[n].data.visible?"block":"none"}},g=n.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var v=g.selectAll("path.mark").data(function(t,e){return t});v.enter().append("path").attr({class:"mark"}),v.style(h).each(c[e.geometryType]),v.exit().remove(),g.exit().remove()})}return i.config=function(e){return arguments.length?(e.forEach(function(e,r){t[r]||(t[r]={}),a(t[r],o.PolyChart.defaultConfig()),a(t[r],e)}),this):t},i.getColorScale=function(){},n.rebind(i,e,"on"),i},o.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch("hover");function r(){var e=t.legendConfig,i=t.data.map(function(t,r){return[].concat(t).map(function(t,n){var i=a({},e.elements[r]);return i.name=t,i.color=[].concat(e.elements[r].color)[n],i})}),o=n.merge(i);o=o.filter(function(t,r){return e.elements[r]&&(e.elements[r].visibleInLegend||"undefined"==typeof e.elements[r].visibleInLegend)}),e.reverseOrder&&(o=o.reverse());var l=e.container;("string"==typeof l||l.nodeName)&&(l=n.select(l));var s=o.map(function(t,e){return t.color}),c=e.fontSize,u=null==e.isContinuous?"number"==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,d=l.classed("legend-group",!0).selectAll("svg").data([0]),p=d.enter().append("svg").attr({width:300,height:f+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});p.append("g").classed("legend-axis",!0),p.append("g").classed("legend-marks",!0);var h=n.range(o.length),g=n.scale[u?"linear":"ordinal"]().domain(h).range(s),v=n.scale[u?"linear":"ordinal"]().domain(h)[u?"range":"rangePoints"]([0,f]);if(u){var m=d.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);m.enter().append("stop"),m.attr({offset:function(t,e){return e/(s.length-1)*100+"%"}}).style({"stop-color":function(t,e){return t}}),d.append("rect").classed("legend-mark",!0).attr({height:e.height,width:e.colorBandWidth,fill:"url(#grad1)"})}else{var y=d.select(".legend-marks").selectAll("path.legend-mark").data(o);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(t,e){return"translate("+[c/2,v(e)+c/2]+")"},d:function(t,e){var r,a,i,o=t.symbol;return i=3*(a=c),"line"===(r=o)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(i)():n.svg.symbol().type("square").size(i)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(v).orient("right"),b=d.select("g.legend-axis").attr({transform:"translate("+[u?e.colorBandWidth:c,c/2]+")"}).call(x);return b.selectAll(".domain").style({fill:"none",stroke:"none"}),b.selectAll("line").style({fill:"none",stroke:u?e.textColor:"none"}),b.selectAll("text").style({fill:e.textColor,"font-size":e.fontSize}).text(function(t,e){return o[e].name}),r}return r.config=function(e){return arguments.length?(a(t,e),this):t},n.rebind(r,e,"on"),r},o.Legend.defaultConfig=function(t,e){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+o.tooltipPanel.uid++,s=10,c=function(){var n=(t=i.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return r=n.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),e=n.append("text").attr({dx:i.padding+s,dy:.3*+i.fontSize}),c};return c.text=function(a){var o=n.hsl(i.color).l,l=o>=.5?"#aaa":"white",u=o>=.5?"black":"white",f=a||"";e.style({fill:u,"font-size":i.fontSize+"px"}).text(f);var d=i.padding,p=e.node().getBBox(),h={fill:i.color,stroke:l,"stroke-width":"2px"},g=p.width+2*d+s,v=p.height+2*d;return r.attr({d:"M"+[[s,-v/2],[s,-v/4],[i.hasTick?0:s,0],[s,v/4],[s,v/2],[g,v/2],[g,-v/2]].join("L")+"Z"}).style(h),t.attr({transform:"translate("+[s,-v/2+2*d]+")"}),t.style({display:"block"}),c},c.move=function(e){if(t)return t.attr({transform:"translate("+[e[0],e[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(t)return t.style({display:"none"}),c},c.show=function(){if(t)return t.style({display:"block"}),c},c.config=function(t){return a(i,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&&(r.data=t.data.map(function(t,r){var n=a({},t);return[[n,["marker","color"],["color"]],[n,["marker","opacity"],["opacity"]],[n,["marker","line","color"],["strokeColor"]],[n,["marker","line","dash"],["strokeDash"]],[n,["marker","line","width"],["strokeSize"]],[n,["marker","symbol"],["dotType"]],[n,["marker","size"],["dotSize"]],[n,["marker","barWidth"],["barWidth"]],[n,["line","interpolation"],["lineInterpolation"]],[n,["showlegend"],["visibleInLegend"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e||delete n.marker,e&&delete n.groupId,e?("LinePlot"===n.geometry?(n.type="scatter",!0===n.dotVisible?(delete n.dotVisible,n.mode="lines+markers"):n.mode="lines"):"DotPlot"===n.geometry?(n.type="scatter",n.mode="markers"):"AreaChart"===n.geometry?n.type="area":"BarChart"===n.geometry&&(n.type="bar"),delete n.geometry):("scatter"===n.type?"lines"===n.mode?n.geometry="LinePlot":"markers"===n.mode?n.geometry="DotPlot":"lines+markers"===n.mode&&(n.geometry="LinePlot",n.dotVisible=!0):"area"===n.type?n.geometry="AreaChart":"bar"===n.type&&(n.geometry="BarChart"),delete n.mode,delete n.type),n}),!e&&t.layout&&"stack"===t.layout.barmode)){var i=o.util.duplicates(r.data.map(function(t,e){return t.geometry}));r.data.forEach(function(t,e){var n=i.indexOf(t.geometry);-1!=n&&(r.data[e].groupId=n)})}if(t.layout){var l=a({},t.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(t,r){o.util.translator.apply(null,t.concat(e))}),e?("undefined"!=typeof l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&"undefined"!=typeof l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&"undefined"!=typeof l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&"undefined"!=typeof l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};n.entries(l.margin).forEach(function(t,e){u[c[s.indexOf(t.key)]]=t.value}),l.margin=u}e&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),r.layout=l}return r}};return t}},{"../../../constants/alignment":136,"../../../lib":159,d3:7}],240:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../../lib"),i=t("../../../components/color"),o=t("./micropolar"),l=t("./undo_manager"),s=a.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,a,i,u,f=new l;function d(r,l){return l&&(u=l),n.select(n.select(u).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),e=e?s(e,r):r,a||(a=o.Axis()),i=o.adapter.plotly().convert(e),a.config(i).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return d.isPolar=!0,d.svg=function(){return a.svg()},d.getConfig=function(){return e},d.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},d.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},d.setUndoPoint=function(){var t,n,a=this,i=o.util.cloneJson(e);t=i,n=r,f.add({undo:function(){n&&a(n)},redo:function(){a(t)}}),r=o.util.cloneJson(i)},d.undo=function(){f.undo()},d.redo=function(){f.redo()},d},c.fillLayout=function(t){var e=n.select(t).selectAll(".plot-container"),r=e.selectAll(".svg-container"),a=t.framework&&t.framework.svg&&t.framework.svg(),o={width:800,height:600,paper_bgcolor:i.background,_container:e,_paperdiv:r,_paper:a};t._fullLayout=s(o,t.layout)}},{"../../../components/color":42,"../../../lib":159,"./micropolar":239,"./undo_manager":241,d3:7}],241:[function(t,e,r){"use strict";e.exports=function(){var t,e=[],r=-1,n=!1;function a(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n?this:(e.splice(r+1,e.length-r),e.push(t),r=e.length-1,this)},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(a(n,"undo"),r-=1,t&&t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(a(n,"redo"),r+=1,t&&t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r0){for(var n=[],a=0;a-1&&(f[p[r]].title={text:""});for(r=0;r")?"":e.html(t).text()});return e.remove(),r}(k),k=(k=k.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},{"../components/color":42,"../components/drawing":63,"../constants/xmlns_namespaces":140,"../lib":159,d3:7}],252:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){for(var r=0;r0&&f.s>0||(c=!1)}o._extremes[t._id]=l.findExtremes(t,s,{tozero:!c,padded:!0})}}function m(t){for(var e=t.traces,r=0;rf+c||!n(u))}for(var p=0;p0&&_.s>0||(m=!1)}}g._extremes[t._id]=l.findExtremes(t,v,{tozero:!m,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,a=t._fullLayout,i=t._fullData,l=t.calcdata,s=[],c=[],f=0;fi))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return a(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&&(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e0?a+=i:e<0&&(a-=i)}return n.inbox(r-e,a-e,x+(a-e)/(a-r)-1)}"h"===g.orientation?(i=r,l=e,c="y",u="x",f=L,d=A):(i=e,l=r,c="x",u="y",d=L,f=A);var S=t[c+"a"],C=t[u+"a"];p=Math.abs(S.r2c(S.range[1])-S.r2c(S.range[0]));var O=n.getDistanceFunction(a,f,d,function(t){return(f(t)+d(t))/2});if(n.getClosest(h,O,t),!1!==t.index){m||(k=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},T=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var P=h[t.index],D=g.base?P.b+P.s:P.s;t[u+"0"]=t[u+"1"]=C.c2p(P[u],!0),t[u+"LabelVal"]=D;var z=v.extents[v.extents.round(P.p)];return t[c+"0"]=S.c2p(m?k(P):z[0],!0),t[c+"1"]=S.c2p(m?T(P):z[1],!0),t[c+"LabelVal"]=P.p,t.labelLabel=s(S,t[c+"LabelVal"]),t.valueLabel=s(C,t[u+"LabelVal"]),t.spikeDistance=(L(P)+function(t){return M(_(t),w(t))}(P))/2+b-x,t[c+"Spike"]=S.c2p(P.p,!0),o(P,g,t),t.hovertemplate=g.hovertemplate,t}}function u(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,a=l(t,e);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var i=c(t,e,r,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=u(l,s),a.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:c,getTraceColor:u}},{"../../components/color":42,"../../components/fx":80,"../../lib":159,"../../plots/cartesian/axes":203,"../../registry":243,"./helpers":259}],261:[function(t,e,r){"use strict";e.exports={attributes:t("./attributes"),layoutAttributes:t("./layout_attributes"),supplyDefaults:t("./defaults").supplyDefaults,crossTraceDefaults:t("./defaults").crossTraceDefaults,supplyLayoutDefaults:t("./layout_defaults"),calc:t("./calc"),crossTraceCalc:t("./cross_trace_calc").crossTraceCalc,colorbar:t("../scatter/marker_colorbar"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot").plot,style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover").hoverPoints,eventData:t("./event_data"),selectPoints:t("./select"),moduleType:"trace",name:"bar",basePlotModule:t("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":214,"../scatter/marker_colorbar":301,"./arrays_to_calcdata":252,"./attributes":253,"./calc":254,"./cross_trace_calc":256,"./defaults":257,"./event_data":258,"./hover":260,"./layout_attributes":262,"./layout_defaults":263,"./plot":264,"./select":265,"./style":267}],262:[function(t,e,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],263:[function(t,e,r){"use strict";var n=t("../../registry"),a=t("../../plots/cartesian/axes"),i=t("../../lib"),o=t("./layout_attributes");e.exports=function(t,e,r){function l(r,n){return i.coerce(t,e,o,r,n)}for(var s=!1,c=!1,u=!1,f={},d=l("barmode"),p=0;p0}function L(t){return"auto"===t?0:t}function S(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:t.width*a+t.height*n,y:t.width*n+t.height*a}}function C(t,e,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,p=1-d,h=a.width,g=a.height,v=Math.abs(e-t),m=Math.abs(n-r),y=v>2*_&&m>2*_?_:0;v-=2*y,m-=2*y;var x=L(s);"auto"!==s||h<=v&&g<=m||!(h>v||g>m)||(h>m||g>v)&&h.01?X:function(t,e){return Math.abs(t-e)>=2?X(t):t>e?Math.ceil(t):Math.floor(t)};q&&(I=Y(I,F),F=Y(F,I)),U&&(N=Y(N,j),j=Y(j,N))}var W=M(i.ensureSingle(k,"path"),P,v,m);if(W.style("vector-effect","non-scaling-stroke").attr("d","M"+I+","+N+"V"+j+"H"+F+"V"+N+"Z").call(s.setClipUrl,e.layerClipId,t),!P.uniformtext.mode&&A(v)){var $=s.makePointStyleFns(f);s.singlePointStyle(c,W,f,$,t)}!function(t,e,r,n,a,l,c,f,p,v,m){var w,k=e.xaxis,A=e.yaxis,O=t._fullLayout;function P(e,r,n){var a=i.ensureSingle(e,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(o.convertToTspans,t);return a}var D=n[0].trace,z="h"===D.orientation,R=function(t,e,r,n,a){var o,l=e[0].trace;return o=l.texttemplate?function(t,e,r,n,a){var o=e[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,f,d,p="waterfall"===o.type,h="funnel"===o.type;function g(t){return u(d,+t,!0).text}"h"===o.orientation?(s="y",c=a,f="x",d=n):(s="x",c=n,f="y",d=a);var v,m=e[r],y={};y.label=m.p,y.labelLabel=y[s+"Label"]=(v=m.p,u(c,v,!0).text);var x=i.castOption(o,m.i,"text");(0===x||x)&&(y.text=x),y.value=m.s,y.valueLabel=y[f+"Label"]=g(m.s);var _={};b(_,o,m.i),p&&(y.delta=+m.rawS||m.s,y.deltaLabel=g(y.delta),y.final=m.v,y.finalLabel=g(y.final),y.initial=y.final-y.delta,y.initialLabel=g(y.initial)),h&&(y.value=m.s,y.valueLabel=g(y.value),y.percentInitial=m.begR,y.percentInitialLabel=i.formatPercent(m.begR),y.percentPrevious=m.difR,y.percentPreviousLabel=i.formatPercent(m.difR),y.percentTotal=m.sumR,y.percenTotalLabel=i.formatPercent(m.sumR));var w=i.castOption(o,m.i,"customdata");return w&&(y.customdata=w),i.texttemplateString(l,y,t._d3locale,_,y,o._meta||{})}(t,e,r,n,a):l.textinfo?function(t,e,r,n){var a=t[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(t){var e=o?r:n;return u(e,+t,!0).text}var f,d,p=a.textinfo,h=t[e],g=p.split("+"),v=[],m=function(t){return-1!==g.indexOf(t)};if(m("label")&&v.push((d=t[e].p,u(o?n:r,d,!0).text)),m("text")&&(0===(f=i.castOption(a,h.i,"text"))||f)&&v.push(f),l){var y=+h.rawS||h.s,x=h.v,b=x-y;m("initial")&&v.push(c(b)),m("delta")&&v.push(c(y)),m("final")&&v.push(c(x))}if(s){m("value")&&v.push(c(h.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var w=_>1;m("percent initial")&&(f=i.formatPercent(h.begR),w&&(f+=" of initial"),v.push(f)),m("percent previous")&&(f=i.formatPercent(h.difR),w&&(f+=" of previous"),v.push(f)),m("percent total")&&(f=i.formatPercent(h.sumR),w&&(f+=" of total"),v.push(f))}return v.join("
")}(e,r,n,a):g.getValue(l.text,r),g.coerceString(y,o)}(O,n,a,k,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(D,a);var E="stack"===v.mode||"relative"===v.mode,I=n[a],F=!E||I._outmost;if(R&&"none"!==w&&(!I.isBlank&&l!==c&&f!==p||"auto"!==w&&"inside"!==w)){var N=O.font,j=h.getBarColor(n[a],D),B=h.getInsideTextFont(D,a,N,j),H=h.getOutsideTextFont(D,a,N),V=r.datum();z?"log"===k.type&&V.s0<=0&&(l=k.range[0]0&&Z>0,Q=G<=Y&&Z<=W,J=G<=W&&Z<=Y,K=z?Y>=G*(W/Z):W>=Z*(Y/G);$&&(Q||J||K)?w="inside":(w="outside",q.remove(),q=null)}else w="inside";if(!q){X=i.ensureUniformFontSize(t,"outside"===w?H:B);var tt=(q=P(r,R,X)).attr("transform");if(q.attr("transform",""),U=s.bBox(q.node()),G=U.width,Z=U.height,q.attr("transform",tt),G<=0||Z<=0)return void q.remove()}var et,rt,nt=D.textangle;"outside"===w?(rt="both"===D.constraintext||"outside"===D.constraintext,et=function(t,e,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(e-t),p=Math.abs(n-r);o=l?p>2*_?_:0:d>2*_?_:0;var h=1;s&&(h=l?Math.min(1,p/f):Math.min(1,d/u));var g=L(c),v=S(a,g),m=(l?v.x:v.y)/2,y=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(t+e)/2,w=(r+n)/2,k=0,M=0,A=l?T(e,t):T(r,n);return l?(b=e-A*o,k=A*m):(w=n+A*o,M=-A*m),{textX:y,textY:x,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:h,rotate:g}}(l,c,f,p,U,{isHorizontal:z,constrained:rt,angle:nt})):(rt="both"===D.constraintext||"inside"===D.constraintext,et=C(l,c,f,p,U,{isHorizontal:z,constrained:rt,angle:nt,anchor:D.insidetextanchor})),et.fontSize=X.size,d(D.type,et,O),I.transform=et,M(q,O,v,m).attr("transform",i.getTextTransform(et))}else r.select("text").remove()}(t,e,k,r,p,I,F,N,j,v,m),e.layerClipId&&s.hideOutsideRangePoint(c,k.select("text"),w,O,f.xcalendar,f.ycalendar)});var j=!1===f.cliponaxis;s.setClipUrl(c,j?null:e.layerClipId,t)});c.getComponentMethod("errorbars","plot")(t,D,e,v)},toMoveInsideBar:C}},{"../../components/color":42,"../../components/drawing":63,"../../components/fx/helpers":77,"../../lib":159,"../../lib/svg_text_utils":180,"../../plots/cartesian/axes":203,"../../registry":243,"./attributes":253,"./constants":255,"./helpers":259,"./style":267,"./uniform_text":269,d3:7,"fast-isnumeric":9}],265:[function(t,e,r){"use strict";function n(t,e,r,n,a){var i=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),l=r.c2p(n?t.p0:t.s0,!0),s=r.c2p(n?t.p1:t.s1,!0);return a?[(i+o)/2,(l+s)/2]:n?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(t,e){var r,a=t.cd,i=t.xaxis,o=t.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===e)for(r=0;r1||0===a.bargap&&0===a.bargroupgap&&!t[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")}),e.selectAll("g.points").each(function(e){h(n.select(this),e[0].trace,t)}),l.getComponentMethod("errorbars","style")(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var a=e[0].trace;a.selectedpoints?function(t,e,r){i.selectedPointStyle(t.selectAll("path"),e),function(t,e,r){t.each(function(t){var a,l=n.select(this);if(t.selected){a=o.ensureUniformFontSize(r,v(l,t,e,r));var s=e.selected.textfont&&e.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,e)})}(t.selectAll("text"),e,r)}(r,a,t):(h(r,a,t),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:s}},{"../../components/color":42,"../../components/drawing":63,"../../lib":159,"../../registry":243,"./attributes":253,"./helpers":259,"./uniform_text":269,d3:7}],268:[function(t,e,r){"use strict";var n=t("../../components/color"),a=t("../../components/colorscale/helpers").hasColorscale,i=t("../../components/colorscale/defaults");e.exports=function(t,e,r,o,l){r("marker.color",o),a(t,"marker")&&i(t,e,l,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),a(t,"marker.line")&&i(t,e,l,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),r("selected.marker.color"),r("unselected.marker.color")}},{"../../components/color":42,"../../components/colorscale/defaults":52,"../../components/colorscale/helpers":53}],269:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../lib");function i(t){return"_"+t+"Text_minsize"}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=i(t),a=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}e.exports={handleLabelsAndValues:s,supplyDefaults:function(t,e,r,n){function c(r,n){return a.coerce(t,e,i,r,n)}var u=s(c("labels"),c("values")),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&&e._hasValues&&(c("label0"),c("dlabel")),f){e._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var d,p=c("text"),h=c("texttemplate");if(h||(d=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||d&&"none"!==d){var g=c("textposition");l(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(e,n,c);var v=c("hole");if(c("title.text")){var m=c("title.position",v?"middle center":"top center");v||"middle center"!==m||(e.title.position="top center"),a.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else e.visible=!1}}},{"../../lib":159,"../../plots/domain":228,"../bar/defaults":257,"./attributes":270,"fast-isnumeric":9}],274:[function(t,e,r){"use strict";var n=t("../../components/fx/helpers").appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&&(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),"funnelarea"===e.type&&(delete r.v,delete r.i),r}},{"../../components/fx/helpers":77}],275:[function(t,e,r){"use strict";var n=t("../../lib");r.formatPiePercent=function(t,e){var r=(100*t).toPrecision(3);return-1!==r.lastIndexOf(".")&&(r=r.replace(/[.]?0+$/,"")),n.numSeparate(r,e)+"%"},r.formatPieValue=function(t,e){var r=t.toPrecision(10);return-1!==r.lastIndexOf(".")&&(r=r.replace(/[.]?0+$/,"")),n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r"),name:u.hovertemplate||-1!==f.indexOf("name")?u.name:void 0,idealAlign:t.pxmid[0]<0?"left":"right",color:p.castOption(b.bgcolor,t.pts)||t.color,borderColor:p.castOption(b.bordercolor,t.pts),fontFamily:p.castOption(_.family,t.pts),fontSize:p.castOption(_.size,t.pts),fontColor:p.castOption(_.color,t.pts),nameLength:p.castOption(b.namelength,t.pts),textAlign:p.castOption(b.align,t.pts),hovertemplate:p.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[h(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit("plotly_hover",{points:[h(t,u)],event:n.event})}}),t.on("mouseout",function(t){var r=e._fullLayout,a=e._fullData[o.index],l=n.select(this).datum();o._hasHoverEvent&&(t.originalEvent=n.event,e.emit("plotly_unhover",{points:[h(l,a)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)}),t.on("click",function(t){var r=e._fullLayout,a=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[h(t,a)],i.click(e,n.event))})}function m(t,e,r){var n=p.castOption(t.insidetextfont.color,e.pts);!n&&t._input.textfont&&(n=p.castOption(t._input.textfont.color,e.pts));var a=p.castOption(t.insidetextfont.family,e.pts)||p.castOption(t.textfont.family,e.pts)||r.family,i=p.castOption(t.insidetextfont.size,e.pts)||p.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:a,size:i}}function y(t,e){for(var r,n,a=0;ae&&e>n||r=-4;m-=2)y(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)y(Math.PI*(m+1),"tan")}if(f||p){for(m=4;m>=-4;m-=2)y(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)y(Math.PI*(m+.5),"rad")}}if(g||h||f){if((n={scale:s*c*2/a,rCenter:1-s,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,n.scale>=1)return n;v.push(n)}(h||p)&&((n=b(t,c,l,i,o)).textPosAngle=(e.startangle+e.stopangle)/2,v.push(n)),(h||d)&&((n=_(t,c,l,i,o)).textPosAngle=(e.startangle+e.stopangle)/2,v.push(n));for(var x=0,w=0,k=0;k=1)break}return v[x]}function b(t,e,r,n,a){var i=t.width/t.height,o=T(i,n,e,r);return{scale:2*o/t.height,rCenter:w(i,o/e),rotate:k(a)}}function _(t,e,r,n,a){var i=t.height/t.width,o=T(i,n,e,r);return{scale:2*o/t.width,rCenter:w(i,o/e),rotate:k(a+Math.PI/2)}}function w(t,e){return Math.cos(e)-t*e}function k(t){return(180/Math.PI*t+720)%180-90}function T(t,e,r,n){var a=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(a*a+.5)+a),n/(Math.sqrt(t*t+n/2)+t))}function M(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function A(t,e){var r=e.pxmid[0],n=e.pxmid[1],a=t.width/2,i=t.height/2;return r<0&&(a*=-1),n<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,a,i=t.trace,o={x:t.cx,y:t.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,a=C(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*t.r,l.ty-=t.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*t.r);var s,c,u=(s=t.r,c=t.trace.aspectratio,s/(void 0===c?1:c)),f=e.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+a)*u,l.tx+=t.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+a)*u,l.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=S(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:l.tx,ty:l.ty}}function S(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function C(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;er&&(r=t.pull[e]);return r}function O(t,e){for(var r=[],n=0;n1?(c=r.r,u=c/a.aspectratio):(u=r.r,c=u*a.aspectratio),c*=(1+a.baseratio)/2,s=c*u}o=Math.min(o,s/r.vTotal)}for(n=0;n")}if(i){var x=s.castOption(a,e.i,"texttemplate");if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:p.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:p.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:s.castOption(a,t.i,"customdata")}}(e),_=p.getFirstFilled(a.text,e.pts);(g(_)||""===_)&&(b.text=_),e.text=s.texttemplateString(x,b,t._fullLayout._d3locale,b,a._meta||{})}else e.text=""}}function z(t,e){var r=t.rotate,n=t.scale;n>1&&(n=1);var a=r*Math.PI/180,i=Math.cos(a),o=Math.sin(a),l=(e.left+e.right)/2,s=(e.top+e.bottom)/2;t.textX=l*i-s*o,t.textY=l*o+s*i,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,i=r._size;d("pie",r),y(e,t),O(e,i);var u=s.makeTraceGroups(r._pielayer,e,"trace").each(function(e){var u=n.select(this),d=e[0],h=d.trace;!function(t){var e,r,n,a=t[0],i=a.r,o=a.trace,l=o.rotation*Math.PI/180,s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(e=0;ea.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=M(r,a))}(e),u.attr("stroke-linejoin","round"),u.each(function(){var g=n.select(this).selectAll("g.slice").data(e);g.enter().append("g").classed("slice",!0),g.exit().remove();var y=[[[],[]],[[],[]]],b=!1;g.each(function(a,i){if(a.hidden)n.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=h.index,y[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=d.cx,u=d.cy,g=n.select(this),_=g.selectAll("path.surface").data([a]);if(_.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(v,t,e),h.pull){var w=+p.castOption(h.pull,a.pts)||0;w>0&&(o+=w*a.pxmid[0],u+=w*a.pxmid[1])}a.cxFinal=o,a.cyFinal=u;var k=h.hole;if(a.v===d.vTotal){var T="M"+(o+a.px0[0])+","+(u+a.px0[1])+O(a.px0,a.pxmid,!0,1)+O(a.pxmid,a.px0,!0,1)+"Z";k?_.attr("d","M"+(o+k*a.px0[0])+","+(u+k*a.px0[1])+O(a.px0,a.pxmid,!1,k)+O(a.pxmid,a.px0,!1,k)+"Z"+T):_.attr("d",T)}else{var M=O(a.px0,a.px1,!0,1);if(k){var L=1-k;_.attr("d","M"+(o+k*a.px1[0])+","+(u+k*a.px1[1])+O(a.px1,a.px0,!1,k)+"l"+L*a.px0[0]+","+L*a.px0[1]+M+"Z")}else _.attr("d","M"+o+","+u+"l"+a.px0[0]+","+a.px0[1]+M+"Z")}D(t,a,d);var S=p.castOption(h.textposition,a.pts),C=g.selectAll("g.slicetext").data(a.text&&"none"!==S?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each(function(){var g=s.ensureSingle(n.select(this),"text","",function(t){t.attr("data-notex",1)}),v=s.ensureUniformFontSize(t,"outside"===S?function(t,e,r){var n=p.castOption(t.outsidetextfont.color,e.pts)||p.castOption(t.textfont.color,e.pts)||r.color,a=p.castOption(t.outsidetextfont.family,e.pts)||p.castOption(t.textfont.family,e.pts)||r.family,i=p.castOption(t.outsidetextfont.size,e.pts)||p.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:a,size:i}}(h,a,r.font):m(h,a,r.font));g.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,v).call(c.convertToTspans,t);var y,_=l.bBox(g.node());if("outside"===S)y=A(_,a);else if(y=x(_,a,d),"auto"===S&&y.scale<1){var w=s.ensureUniformFontSize(t,h.outsidetextfont);g.call(l.font,w),y=A(_=l.bBox(g.node()),a)}var k=y.textPosAngle,T=void 0===k?a.pxmid:P(d.r,k);if(y.targetX=o+T[0]*y.rCenter+(y.x||0),y.targetY=u+T[1]*y.rCenter+(y.y||0),z(y,_),y.outside){var M=y.targetY;a.yLabelMin=M-_.height/2,a.yLabelMid=M,a.yLabelMax=M+_.height/2,a.labelExtraX=0,a.labelExtraY=0,b=!0}y.fontSize=v.size,f(h.type,y,r),e[i].transform=y,g.attr("transform",s.getTextTransform(y))})}function O(t,e,r,n){var i=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return"a"+n*d.r+","+n*d.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}});var _=n.select(this).selectAll("g.titletext").data(h.title.text?[0]:[]);if(_.enter().append("g").classed("titletext",!0),_.exit().remove(),_.each(function(){var e,r=s.ensureSingle(n.select(this),"text","",function(t){t.attr("data-notex",1)}),a=h.title.text;h._meta&&(a=s.templateString(a,h._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,h.title.font).call(c.convertToTspans,t),e="middle center"===h.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,i),r.attr("transform","translate("+e.x+","+e.y+")"+(e.scale<1?"scale("+e.scale+")":"")+"translate("+e.tx+","+e.ty+")")}),b&&function(t,e){var r,n,a,i,o,l,s,c,u,f,d,h,g;function v(t,e){return t.pxmid[1]-e.pxmid[1]}function m(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var a,c,u,d,h,g,v=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),m=n?t.yLabelMin:t.yLabelMax,y=n?t.yLabelMax:t.yLabelMin,x=t.cyFinal+o(t.px0[1],t.px1[1]),b=v-m;if(b*s>0&&(t.labelExtraY=b),Array.isArray(e.pull))for(c=0;c=(p.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*s>0?(d=u.cyFinal+o(u.px0[1],u.px1[1]),(b=d-m-t.labelExtraY)*s>0&&(t.labelExtraY+=b)):(y+t.labelExtraY-x)*s>0&&(a=3*l*Math.abs(c-f.indexOf(t)),h=u.cxFinal+i(u.px0[0],u.px1[0]),(g=h+a-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*l>0&&(t.labelExtraX+=g)))}for(n=0;n<2;n++)for(a=n?v:m,o=n?Math.max:Math.min,s=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=t[n][r]).sort(a),u=t[1-n][r],f=u.concat(c),h=[],d=0;dMath.abs(d)?c+="l"+d*t.pxmid[0]/t.pxmid[1]+","+d+"H"+(i+t.labelExtraX+u):c+="l"+t.labelExtraX+","+f+"v"+(d-f)+"h"+u}else c+="V"+(t.yLabelMid+t.labelExtraY)+"h"+u;s.ensureSingle(r,"path","textline").call(o.stroke,e.outsidetextfont.color).attr({"stroke-width":Math.min(2,e.outsidetextfont.size/8),d:c,fill:"none"})}else r.select("path.textline").remove()})}(g,h),b&&h.automargin){var w=l.bBox(u.node()),k=h.domain,T=i.w*(k.x[1]-k.x[0]),M=i.h*(k.y[1]-k.y[0]),S=(.5*T-d.r)/i.w,C=(.5*M-d.r)/i.h;a.autoMargin(t,"pie."+h.uid+".automargin",{xl:k.x[0]-S,xr:k.x[1]+S,yb:k.y[0]-C,yt:k.y[1]+C,l:Math.max(d.cx-d.r-w.left,0),r:Math.max(w.right-(d.cx+d.r),0),b:Math.max(w.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-w.top,0),pad:5})}})});setTimeout(function(){u.selectAll("tspan").each(function(){var t=n.select(this);t.attr("dy")&&t.attr("dy",t.attr("dy"))})},0)},formatSliceLabel:D,transformInsideText:x,determineInsideTextFont:m,positionTitleOutside:L,prerenderTitles:y,layoutAreas:O,attachFxHandlers:v,computeTransform:z}},{"../../components/color":42,"../../components/drawing":63,"../../components/fx":80,"../../lib":159,"../../lib/svg_text_utils":180,"../../plots/plots":235,"../bar/uniform_text":269,"./event_data":274,"./helpers":275,d3:7}],280:[function(t,e,r){"use strict";var n=t("d3"),a=t("./style_one"),i=t("../bar/uniform_text").resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(".trace");i(t,e,"pie"),e.each(function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll("path.surface").each(function(t){n.select(this).call(a,t,e)})})}},{"../bar/uniform_text":269,"./style_one":281,d3:7}],281:[function(t,e,r){"use strict";var n=t("../../components/color"),a=t("./helpers").castOption;e.exports=function(t,e,r){var i=r.marker.line,o=a(i.color,e.pts)||n.defaultLine,l=a(i.width,e.pts)||0;t.style("stroke-width",l).call(n.fill,e.color).call(n.stroke,o)}},{"../../components/color":42,"./helpers":275}],282:[function(t,e,r){"use strict";var n=t("../../lib");e.exports=function(t,e){for(var r=0;rl&&M[v].gap;)v--;for(y=M[v].s,h=M.length-1;h>v;h--)M[h].s=y;for(;lA[u]&&u=0;a--){var i=t[a];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},{}],290:[function(t,e,r){"use strict";var n=t("../../lib"),a=t("../../registry"),i=t("./attributes"),o=t("./constants"),l=t("./subtypes"),s=t("./xy_defaults"),c=t("./stack_defaults"),u=t("./marker_defaults"),f=t("./line_defaults"),d=t("./line_shape_defaults"),p=t("./text_defaults"),h=t("./fillcolor_defaults");e.exports=function(t,e,r,g){function v(r,a){return n.coerce(t,e,i,r,a)}var m=s(t,e,g,v);if(m||(e.visible=!1),e.visible){var y=c(t,e,g,v),x=!y&&mG!=(F=D[O][1])>=G&&(R=D[O-1][0],E=D[O][0],F-I&&(z=R+(E-R)*(G-I)/(F-I),H=Math.min(H,z),V=Math.max(V,z)));H=Math.max(H,0),V=Math.min(V,d._length);var Z=l.defaultLine;return l.opacity(f.fillcolor)?Z=f.fillcolor:l.opacity((f.line||{}).color)&&(Z=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:H,x1:V,y0:G,y1:G,color:Z,hovertemplate:!1}),delete t.index,f.text&&!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{"../../components/color":42,"../../components/fx":80,"../../lib":159,"../../registry":243,"./get_trace_color":293}],295:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t("./attributes"),supplyDefaults:t("./defaults"),crossTraceDefaults:t("./cross_trace_defaults"),calc:t("./calc").calc,crossTraceCalc:t("./cross_trace_calc"),arraysToCalcdata:t("./arrays_to_calcdata"),plot:t("./plot"),colorbar:t("./marker_colorbar"),formatLabels:t("./format_labels"),style:t("./style").style,styleOnSelect:t("./style").styleOnSelect,hoverPoints:t("./hover"),selectPoints:t("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:t("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":214,"./arrays_to_calcdata":282,"./attributes":283,"./calc":284,"./cross_trace_calc":288,"./cross_trace_defaults":289,"./defaults":290,"./format_labels":292,"./hover":294,"./marker_colorbar":301,"./plot":303,"./select":304,"./style":306,"./subtypes":307}],296:[function(t,e,r){"use strict";var n=t("../../lib").isArrayOrTypedArray,a=t("../../components/colorscale/helpers").hasColorscale,i=t("../../components/colorscale/defaults");e.exports=function(t,e,r,o,l,s){var c=(t.marker||{}).color;(l("line.color",r),a(t,"line"))?i(t,e,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(c)&&c||r);l("line.width"),(s||{}).noDash||l("line.dash")}},{"../../components/colorscale/defaults":52,"../../components/colorscale/helpers":53,"../../lib":159}],297:[function(t,e,r){"use strict";var n=t("../../constants/numerical"),a=n.BADNUM,i=n.LOG_CLIP,o=i+.5,l=i-.5,s=t("../../lib"),c=s.segmentsIntersect,u=s.constrain,f=t("./constants");e.exports=function(t,e){var r,n,i,d,p,h,g,v,m,y,x,b,_,w,k,T,M,A,L=e.xaxis,S=e.yaxis,C="log"===L.type,O="log"===S.type,P=L._length,D=S._length,z=e.connectGaps,R=e.baseTolerance,E=e.shape,I="linear"===E,F=e.fill&&"none"!==e.fill,N=[],j=f.minTolerance,B=t.length,H=new Array(B),V=0;function q(r){var n=t[r];if(!n)return!1;var i=e.linearized?L.l2p(n.x):L.c2p(n.x),s=e.linearized?S.l2p(n.y):S.c2p(n.y);if(i===a){if(C&&(i=L.c2p(n.x,!0)),i===a)return!1;O&&s===a&&(i*=Math.abs(L._m*D*(L._m>0?o:l)/(S._m*P*(S._m>0?o:l)))),i*=1e3}if(s===a){if(O&&(s=S.c2p(n.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function U(t,e,r,n){var a=r-t,i=n-e,o=.5-t,l=.5-e,s=a*a+i*i,c=a*o+i*l;if(c>0&&crt||t[1]at)return[u(t[0],et,rt),u(t[1],nt,at)]}function lt(t,e){return t[0]===e[0]&&(t[0]===et||t[0]===rt)||(t[1]===e[1]&&(t[1]===nt||t[1]===at)||void 0)}function st(t,e,r){return function(n,a){var i=ot(n),o=ot(a),l=[];if(i&&o&<(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((n[t]+a[t])/2,e,r)-((i||n)[t]+(o||a)[t]);c&&((i&&o?c>0==i[t]>o[t]?i:o:i||o)[t]+=c);return l}}function ct(t){var e=t[0],r=t[1],n=e===H[V-1][0],a=r===H[V-1][1];if(!n||!a)if(V>1){var i=e===H[V-2][0],o=r===H[V-2][1];n&&(e===et||e===rt)&&i?o?V--:H[V-1]=t:a&&(r===nt||r===at)&&o?i?V--:H[V-1]=t:H[V++]=t}else H[V++]=t}function ut(t){H[V-1][0]!==t[0]&&H[V-1][1]!==t[1]&&ct([W,$]),ct(t),Q=null,W=$=0}function ft(t){if(M=t[0]/P,A=t[1]/D,X=t[0]rt?rt:0,Y=t[1]at?at:0,X||Y){if(V)if(Q){var e=K(Q,t);e.length>1&&(ut(e[0]),H[V++]=e[1])}else J=K(H[V-1],t)[0],H[V++]=J;else H[V++]=[X||t[0],Y||t[1]];var r=H[V-1];X&&Y&&(r[0]!==X||r[1]!==Y)?(Q&&(W!==X&&$!==Y?ct(W&&$?(n=Q,i=(a=t)[0]-n[0],o=(a[1]-n[1])/i,(n[1]*a[0]-a[1]*n[0])/i>0?[o>0?et:rt,at]:[o>0?rt:et,nt]):[W||X,$||Y]):W&&$&&ct([W,$])),ct([X,Y])):W-X&&$-Y&&ct([X||W,Y||$]),Q=t,W=X,$=Y}else Q&&ut(K(Q,t)[0]),H[V++]=t;var n,a,i,o}for("linear"===E||"spline"===E?K=function(t,e){for(var r=[],n=0,a=0;a<4;a++){var i=it[a],o=c(t[0],t[1],e[0],e[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&Z(o,t)G(h,dt))break;i=h,(_=m[0]*v[0]+m[1]*v[1])>x?(x=_,d=h,g=!1):_=t.length||!h)break;ft(h),n=h}}else ft(d)}Q&&ct([W||Q[0],$||Q[1]]),N.push(H.slice(0,V))}return N}},{"../../constants/numerical":139,"../../lib":159,"./constants":287}],298:[function(t,e,r){"use strict";e.exports=function(t,e,r){"spline"===r("line.shape")&&r("line.smoothing")}},{}],299:[function(t,e,r){"use strict";var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var a,i,o,l,s,c={},u=!1,f=-1,d=0,p=-1;for(i=0;i=0?s=p:(s=p=d,d++),s0?Math.max(e,a):0}}},{"fast-isnumeric":9}],301:[function(t,e,r){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},{}],302:[function(t,e,r){"use strict";var n=t("../../components/color"),a=t("../../components/colorscale/helpers").hasColorscale,i=t("../../components/colorscale/defaults"),o=t("./subtypes");e.exports=function(t,e,r,l,s,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",r),a(t,"marker")&&i(t,e,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&e.marker.color!==f?f:u?n.background:n.defaultLine),a(t,"marker.line")&&i(t,e,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},{"../../components/color":42,"../../components/colorscale/defaults":52,"../../components/colorscale/helpers":53,"./subtypes":307}],303:[function(t,e,r){"use strict";var n=t("d3"),a=t("../../registry"),i=t("../../lib"),o=i.ensureSingle,l=i.identity,s=t("../../components/drawing"),c=t("./subtypes"),u=t("./line_points"),f=t("./link_traces"),d=t("../../lib/polygon").tester;function p(t,e,r,f,p,h,g){var v;!function(t,e,r,a,o){var l=r.xaxis,s=r.yaxis,u=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(!c.hasMarkers(d))return;var p=d.marker.maxdisplayed;if(0===p)return;var h=a.filter(function(t){return t.x>=u[0]&&t.x<=u[1]&&t.y>=f[0]&&t.y<=f[1]}),g=Math.ceil(h.length/p),v=0;o.forEach(function(t,r){var n=t[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function y(t){return m?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,k=n.select(h),T=o(k,"g","errorbars"),M=o(k,"g","lines"),A=o(k,"g","points"),L=o(k,"g","text");if(a.getComponentMethod("errorbars","plot")(t,T,r,g),!0===_.visible){var S,C;y(k).style("opacity",_.opacity);var O=_.fill.charAt(_.fill.length-1);"x"!==O&&"y"!==O&&(O=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=k;var P,D,z="",R=[],E=_._prevtrace;E&&(z=E._prevRevpath||"",C=E._nextFill,R=E._polygons);var I,F,N,j,B,H,V,q="",U="",G=[],Z=i.noop;if(S=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(I=s.steps(w.shape),F=s.steps(w.shape.split("").reverse().join(""))):I=F="spline"===w.shape?function(t){var e=t[t.length-1];return t.length>1&&t[0][0]===e[0]&&t[0][1]===e[1]?s.smoothclosed(t.slice(1),w.smoothing):s.smoothopen(t,w.smoothing)}:function(t){return"M"+t.join("L")},N=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),v=0;v1){var r=n.select(this);if(r.datum(f),t)y(r.style("opacity",0).attr("d",P).call(s.lineGroupStyle)).style("opacity",1);else{var a=y(r);a.attr("d",P),s.singleLineStyle(f,a)}}}}}var X=M.selectAll(".js-line").data(G);y(X.exit()).style("opacity",0).remove(),X.each(Z(!1)),X.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(Z(!0)),s.setClipUrl(X,r.layerClipId,t),G.length?(S?(S.datum(f),j&&H&&(O?("y"===O?j[1]=H[1]=b.c2p(0,!0):"x"===O&&(j[0]=H[0]=x.c2p(0,!0)),y(S).attr("d","M"+H+"L"+j+"L"+q.substr(1)).call(s.singleFillStyle)):y(S).attr("d",q+"Z").call(s.singleFillStyle))):C&&("tonext"===_.fill.substr(0,6)&&q&&z?("tonext"===_.fill?y(C).attr("d",q+"Z"+z+"Z").call(s.singleFillStyle):y(C).attr("d",q+"L"+z.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(R)):(W(C),_._polygons=null)),_._prevRevpath=U,_._prevPolygons=V):(S?W(S):C&&W(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),L.datum(f),function(e,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),p=tt(u),h=et,g=et;if(f||d){var v=l,_=u.stackgroup,w=_&&"infer zero"===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?v=w?Q:$:_&&!w&&(v=J),f&&(h=v),d&&(g=v)}var k,T=(o=e.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);m&&T.call(s.pointStyle,u,t).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),f&&(k=s.makePointStyleFns(u)),o.each(function(e){var a=n.select(this),i=y(a);s.translatePoint(e,i,x,b)?(s.singlePointStyle(e,i,u,k,t),r.layerClipId&&s.hideOutsideRangePoint(e,i,x,b,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==e.data&&void 0!==e.data)):i.remove()}),m?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(g,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each(function(t){var e=n.select(this),a=y(e.select("text"));s.translatePoint(t,a,x,b)?r.layerClipId&&s.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()}),o.selectAll("text").call(s.textPointStyle,u,t).each(function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll("tspan.line").each(function(){y(n.select(this)).attr({x:e,y:r})})}),o.exit().remove()}(A,L,f);var Y=!1===_.cliponaxis?null:r.layerClipId;s.setClipUrl(A,Y,t),s.setClipUrl(L,Y,t)}function W(t){y(t).attr("d","M0,0Z")}function $(t){return t.filter(function(t){return!t.gap&&t.vis})}function Q(t){return t.filter(function(t){return t.vis})}function J(t){return t.filter(function(t){return!t.gap})}function K(t){return t.id}function tt(t){if(t.ids)return K}function et(){return!1}}e.exports=function(t,e,r,a,i,c){var u,d,h=!i,g=!!i&&i.duration>0,v=f(t,e,r);((u=a.selectAll("g.trace").data(v,function(t){return t[0].trace.uid})).enter().append("g").attr("class",function(t){return"trace scatter trace"+t[0].trace.uid}).style("stroke-miterlimit",2),u.order(),function(t,e,r){e.each(function(e){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,t);var i=e[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each(function(t){i[t]=null}).remove(),u.order().each(function(t){i[t]=o(n.select(this),"path","js-fill")})})}(t,u,e),g)?(c&&(d=c()),n.transition().duration(i.duration).ease(i.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).each(function(){a.selectAll("g.trace").each(function(r,n){p(t,n,e,r,v,this,i)})})):u.each(function(r,n){p(t,n,e,r,v,this,i)});h&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},{"../../components/drawing":63,"../../lib":159,"../../lib/polygon":171,"../../registry":243,"./line_points":297,"./link_traces":299,"./subtypes":307,d3:7}],304:[function(t,e,r){"use strict";var n=t("./subtypes");e.exports=function(t,e){var r,a,i,o,l=t.cd,s=t.xaxis,c=t.yaxis,u=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===e)for(r=0;r { +"use strict";var Plotly=(()=>{var fI=Object.defineProperty,cI=Object.defineProperties;var vI=Object.getOwnPropertyDescriptors;var pb=Object.getOwnPropertySymbols;var hI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable;var mb=(e,r,t)=>r in e?fI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,no=(e,r)=>{for(var t in r||(r={}))hI.call(r,t)&&mb(e,t,r[t]);if(pb)for(var t of pb(r))dI.call(r,t)&&mb(e,t,r[t]);return e},mv=(e,r)=>cI(e,vI(r));var J=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var yv=J(yb=>{"use strict";yb.version="3.4.0"});var bb=J((gb,gv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof gv!="undefined"&&gv.exports&&(gv.exports=t[r])})("Promise",typeof window!="undefined"?window:gb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,M){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:M!==!1})}}catch(_){r=function(T,b,M){return T[b]=M,T}}a=function(){var w,T,b;function M(C,k){this.fn=C,this.self=k,this.next=void 0}return{add:function(k,q){b=new M(k,q),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var k=w;for(w=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,w){a.add(_,w),t||(t=i(a.drain))}function o(_){var w,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(w=_.then),typeof w=="function"?w:!1}function s(){for(var _=0;_0&&l(s,T))}catch(b){v.call(new d(T),b)}}}function v(_){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=_,w.state=2,w.chain.length>0&&l(s,w))}function h(_,w,T,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,A=new Array(x);x--;)A[x]=p[x];return A}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,A){s.call(this,p,x,A+"")},u.setProperty=function(p,x,A){f.call(this,p,x+"",A)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,A=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xL&&(S=L)}else{for(;++x=L){S=L;break}for(;++xL&&(S=L)}return S},e.max=function(c,p){var x=-1,A=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xS&&(S=L)}else{for(;++x=L){S=L;break}for(;++xS&&(S=L)}return S},e.extent=function(c,p){var x=-1,A=c.length,S,L,R;if(arguments.length===1){for(;++x=L){S=R=L;break}for(;++xL&&(S=L),R=L){S=R=L;break}for(;++xL&&(S=L),R1)return R/(N-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,A,S){for(arguments.length<3&&(A=0),arguments.length<4&&(S=p.length);A>>1;c(p[L],x)<0?A=L+1:S=L}return A},right:function(p,x,A,S){for(arguments.length<3&&(A=0),arguments.length<4&&(S=p.length);A>>1;c(p[L],x)>0?S=L:A=L+1}return A}}}var y=m(v);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(A=arguments.length)<3&&(x=c.length,A<2&&(p=0));for(var A=x-p,S,L;A;)L=Math.random()*A--|0,S=c[A+p],c[A+p]=c[L+p],c[L+p]=S;return c},e.permute=function(c,p){for(var x=p.length,A=new Array(x);x--;)A[x]=c[p[x]];return A},e.pairs=function(c){for(var p=0,x=c.length-1,A,S=c[0],L=new Array(x<0?0:x);p=0;)for(R=c[p],x=R.length;--x>=0;)L[--S]=R[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var A=[],S=w(_(x)),L=-1,R;if(c*=S,p*=S,x*=S,x<0)for(;(R=c+x*++L)>p;)A.push(R/S);else for(;(R=c+x*++L)=p.length)return S?S.call(c,N):A?N.sort(A):N;for(var X=-1,j=N.length,ee=p[G++],he,we,te,se=new b,ue;++X=p.length)return E;var G=[],X=x[N++];return E.forEach(function(j,ee){G.push({key:j,values:R(ee,N)})}),X?G.sort(function(j,ee){return X(j.key,ee.key)}):G}return c.map=function(E,N){return L(N,E,0)},c.entries=function(E){return R(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return A=E,c},c.rollup=function(E){return S=E,c},c},e.set=function(c){var p=new I;if(c)for(var x=0,A=c.length;x=0&&(A=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(A):this[c].on(A,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(A,null);return this}};function K(c){var p=[],x=new b;function A(){for(var S=p,L=-1,R=S.length,E;++L=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),le.hasOwnProperty(x)?{space:le[x],local:c}:c}},Ae.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(ve(p,c[p]));return this}return this.each(ve(c,p))};function ve(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function A(){this.removeAttributeNS(c.space,c.local)}function S(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function R(){var N=p.apply(this,arguments);N==null?this.removeAttribute(c):this.setAttribute(c,N)}function E(){var N=p.apply(this,arguments);N==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,N)}return p==null?c.local?A:x:typeof p=="function"?c.local?E:R:c.local?L:S}function me(c){return c.trim().replace(/\s+/g," ")}Ae.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),A=(c=Re(c)).length,S=-1;if(p=x.classList){for(;++S=0;)(L=x[A])&&(S&&S!==L.nextSibling&&S.parentNode.insertBefore(L,S),S=L);return this},Ae.sort=function(c){c=xe.apply(this,arguments);for(var p=-1,x=this.length;++p=p&&(p=S+1);!(N=R[p])&&++p0&&(c=c.slice(0,S));var R=He.get(c);R&&(c=R,L=Ve);function E(){var X=this[A];X&&(this.removeEventListener(c,X,X.$),delete this[A])}function N(){var X=L(p,t(arguments));E.call(this),this.addEventListener(c,this[A]=X,X.$=x),X._=p}function G(){var X=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),j;for(var ee in this)if(j=ee.match(X)){var he=this[ee];this.removeEventListener(j[1],he,he.$),delete this[ee]}}return S?p?N:E:p?H:G}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(c){"on"+c in a&&He.remove(c)});function Je(c,p){return function(x){var A=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=A}}}function Ve(c,p){var x=Je(c,p);return function(A){var S=this,L=A.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,A)}}var Xe,lr=0;function tr(c){var p=".dragsuppress-"+ ++lr,x="click"+p,A=e.select(i(c)).on("touchmove"+p,ne).on("dragstart"+p,ne).on("selectstart"+p,ne);if(Xe==null&&(Xe="onselectstart"in c?!1:V(c.style,"userSelect")),Xe){var S=n(c).style,L=S[Xe];S[Xe]="none"}return function(R){if(A.on(p,null),Xe&&(S[Xe]=L),R){var E=function(){A.on(x,null)};A.on(x,function(){ne(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Ne(c,pe())};var Qe=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var A=x.createSVGPoint();if(Qe<0){var S=i(c);if(S.scrollX||S.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();Qe=!(L.f||L.e),x.remove()}}return Qe?(A.x=p.pageX,A.y=p.pageY):(A.x=p.clientX,A.y=p.clientY),A=A.matrixTransform(c.getScreenCTM().inverse()),[A.x,A.y]}var R=c.getBoundingClientRect();return[p.clientX-R.left-c.clientLeft,p.clientY-R.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=pe().changedTouches),p){for(var A=0,S=p.length,L;A0?1:c<0?-1:0}function it(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function _t(c){return c>1?0:c<-1?Ee:Math.acos(c)}function yt(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function Dt(c){return((c=Math.exp(c))-1/c)/2}function Kt(c){return((c=Math.exp(c))+1/c)/2}function qa(c){return((c=Math.exp(2*c))-1)/(c+1)}function sa(c){return(c=Math.sin(c/2))*c}var ua=Math.SQRT2,vr=2,lt=4;e.interpolateZoom=function(c,p){var x=c[0],A=c[1],S=c[2],L=p[0],R=p[1],E=p[2],N=L-x,G=R-A,X=N*N+G*G,j,ee;if(X0&&(er=er.transition().duration(R)),er.call(Me.event)}function dr(){se&&se.domain(te.range().map(function(er){return(er-c.x)/c.k}).map(te.invert)),_e&&_e.domain(ue.range().map(function(er){return(er-c.y)/c.k}).map(ue.invert))}function pr(er){E++||er({type:"zoomstart"})}function Cr(er){dr(),er({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function mr(er){--E||(er({type:"zoomend"}),x=null)}function Tr(){var er=this,Lr=we.of(er,arguments),qr=0,Kr=e.select(i(er)).on(G,da).on(X,Ea),Tt=ce(e.mouse(er)),Vt=tr(er);vv.call(er),pr(Lr);function da(){qr=1,ur(e.mouse(er),Tt),Cr(Lr)}function Ea(){Kr.on(G,null).on(X,null),Vt(qr),mr(Lr)}}function Jr(){var er=this,Lr=we.of(er,arguments),qr={},Kr=0,Tt,Vt=".zoom-"+e.event.changedTouches[0].identifier,da="touchmove"+Vt,Ea="touchend"+Vt,Ba=[],Pa=e.select(er),Ga=tr(er);Wa(),pr(Lr),Pa.on(N,null).on(ee,Wa);function Ta(){var Vn=e.touches(er);return Tt=c.k,Vn.forEach(function(pa){pa.identifier in qr&&(qr[pa.identifier]=ce(pa))}),Vn}function Wa(){var Vn=e.event.target;e.select(Vn).on(da,to).on(Ea,uI),Ba.push(Vn);for(var pa=e.event.changedTouches,bn=0,pi=pa.length;bn1){var ao=xn[0],ul=xn[1],pv=ao[0]-ul[0],db=ao[1]-ul[1];Kr=pv*pv+db*db}}function to(){var Vn=e.touches(er),pa,bn,pi,xn;vv.call(er);for(var ys=0,ao=Vn.length;ys1?1:p,x=x<0?0:x>1?1:x,S=x<=.5?x*(1+p):x+p-x*p,A=2*x-S;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?A+(S-A)*E/60:E<180?S:E<240?A+(S-A)*(240-E)/60:A}function R(E){return Math.round(L(E)*255)}return new Da(R(c+120),R(c),R(c-120))}e.hcl=Qt;function Qt(c,p,x){return this instanceof Qt?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof Qt?new Qt(c.h,c.c,c.l):c instanceof Ct?Gc(c.l,c.a,c.b):Gc((c=or((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Qt(c,p,x)}var hi=Qt.prototype=new bt;hi.brighter=function(c){return new Qt(this.h,this.c,Math.min(100,this.l+wt*(arguments.length?c:1)))},hi.darker=function(c){return new Qt(this.h,this.c,Math.max(0,this.l-wt*(arguments.length?c:1)))},hi.rgb=function(){return yn(this.h,this.c,this.l).rgb()};function yn(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Ct(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Ct;function Ct(c,p,x){return this instanceof Ct?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Ct?new Ct(c.l,c.a,c.b):c instanceof Qt?yn(c.h,c.c,c.l):or((c=Da(c)).r,c.g,c.b):new Ct(c,p,x)}var wt=18,ca=.95047,Kl=1,Ql=1.08883,ol=Ct.prototype=new bt;ol.brighter=function(c){return new Ct(Math.min(100,this.l+wt*(arguments.length?c:1)),this.a,this.b)},ol.darker=function(c){return new Ct(Math.max(0,this.l-wt*(arguments.length?c:1)),this.a,this.b)},ol.rgb=function(){return Vc(this.l,this.a,this.b)};function Vc(c,p,x){var A=(c+16)/116,S=A+p/500,L=A-x/200;return S=Ru(S)*ca,A=Ru(A)*Kl,L=Ru(L)*Ql,new Da(Nu(3.2404542*S-1.5371385*A-.4985314*L),Nu(-.969266*S+1.8760108*A+.041556*L),Nu(.0556434*S-.2040259*A+1.0572252*L))}function Gc(c,p,x){return c>0?new Qt(Math.atan2(x,p)*Br,Math.sqrt(p*p+x*x),c):new Qt(NaN,NaN,c)}function Ru(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function zu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Nu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Da;function Da(c,p,x){return this instanceof Da?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof Da?new Da(c.r,c.g,c.b):Gr(""+c,Da,mn):new Da(c,p,x)}function Wc(c){return new Da(c>>16,c>>8&255,c&255)}function us(c){return Wc(c)+""}var fs=Da.prototype=new bt;fs.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,A=this.b,S=30;return!p&&!x&&!A?new Da(S,S,S):(p&&p>4,A=A>>4|A,S=N&240,S=S>>4|S,L=N&15,L=L<<4|L):c.length===7&&(A=(N&16711680)>>16,S=(N&65280)>>8,L=N&255)),p(A,S,L))}function jr(c,p,x){var A=Math.min(c/=255,p/=255,x/=255),S=Math.max(c,p,x),L=S-A,R,E,N=(S+A)/2;return L?(E=N<.5?L/(S+A):L/(2-S-A),c==S?R=(p-x)/L+(p0&&N<1?0:R),new Qr(R,E,N)}function or(c,p,x){c=va(c),p=va(p),x=va(x);var A=zu((.4124564*c+.3575761*p+.1804375*x)/ca),S=zu((.2126729*c+.7151522*p+.072175*x)/Kl),L=zu((.0193339*c+.119192*p+.9503041*x)/Ql);return Ct(116*S-16,500*(A-S),200*(S-L))}function va(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ot(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var ha=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ha.forEach(function(c,p){ha.set(c,Wc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Yn(W);function Yn(c){return function(p,x,A){return arguments.length===2&&typeof x=="function"&&(A=x,x=null),$l(p,x,c,A)}}function $l(c,p,x,A){var S={},L=e.dispatch("beforesend","progress","load","error"),R={},E=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=G:E.onreadystatechange=function(){E.readyState>3&&G()};function G(){var X=E.status,j;if(!X&&cN(E)||X>=200&&X<300||X===304){try{j=x.call(S,E)}catch(ee){L.error.call(S,ee);return}L.load.call(S,j)}else L.error.call(S,E)}return E.onprogress=function(X){var j=e.event;e.event=X;try{L.progress.call(S,E)}finally{e.event=j}},S.header=function(X,j){return X=(X+"").toLowerCase(),arguments.length<2?R[X]:(j==null?delete R[X]:R[X]=j+"",S)},S.mimeType=function(X){return arguments.length?(p=X==null?null:X+"",S):p},S.responseType=function(X){return arguments.length?(N=X,S):N},S.response=function(X){return x=X,S},["get","post"].forEach(function(X){S[X]=function(){return S.send.apply(S,[X].concat(t(arguments)))}}),S.send=function(X,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),E.open(X,c,!0),p!=null&&!("accept"in R)&&(R.accept=p+",*/*"),E.setRequestHeader)for(var he in R)E.setRequestHeader(he,R[he]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),N!=null&&(E.responseType=N),ee!=null&&S.on("error",ee).on("load",function(we){ee(null,we)}),L.beforesend.call(S,E),E.send(j==null?null:j),S},S.abort=function(){return E.abort(),S},e.rebind(S,L,"on"),A==null?S:S.get(fN(A))}function fN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function cN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` +]`),A=c.charCodeAt(0);function S(G,X,j){arguments.length<3&&(j=X,X=null);var ee=$l(G,p,X==null?L:R(X),j);return ee.row=function(he){return arguments.length?ee.response((X=he)==null?L:R(he)):X},ee}function L(G){return S.parse(G.responseText)}function R(G){return function(X){return S.parse(X.responseText,G)}}S.parse=function(G,X){var j;return S.parseRows(G,function(ee,he){if(j)return j(ee,he-1);var we=function(te){for(var se={},ue=ee.length,_e=0;_e=we)return ee;if(_e)return _e=!1,j;var Ue=te;if(G.charCodeAt(Ue)===34){for(var nr=Ue;nr++24?(isFinite(p)&&(clearTimeout(Kc),Kc=setTimeout(x1,p)),Jc=0):(Jc=1,e5(x1))}e.timer.flush=function(){r5(),t5()};function r5(){for(var c=Date.now(),p=Xc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function t5(){for(var c,p=Xc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[G[j[E]][2]]);for(E=+he;E1&&it(c[x[A-2]],c[x[A-1]],c[S])<=0;)--A;x[A++]=S}return x.slice(0,A)}function vN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,$c),c};var $c=e.geom.polygon.prototype=[];$c.area=function(){for(var c=-1,p=this.length,x,A=this[p-1],S=0;++coe)E=E.L;else if(R=p-mN(E,x),R>oe){if(!E.R){A=E;break}E=E.R}else{L>-oe?(A=E.P,S=E):R>-oe?(A=E,S=E.N):A=S=E;break}var N=o5(c);if(hs.insert(A,N),!(!A&&!S)){if(A===S){ps(A),S=o5(A.site),hs.insert(N,S),N.edge=S.edge=Hu(A.site,N.site),ds(A),ds(S);return}if(!S){N.edge=Hu(A.site,N.site);return}ps(A),ps(S);var G=A.site,X=G.x,j=G.y,ee=c.x-X,he=c.y-j,we=S.site,te=we.x-X,se=we.y-j,ue=2*(ee*se-he*te),_e=ee*ee+he*he,Me=te*te+se*se,ce={x:(se*_e-he*Me)/ue+X,y:(ee*Me-te*_e)/ue+j};jc(S.edge,G,we,ce),N.edge=Hu(G,c,null,ce),S.edge=Hu(c,we,null,ce),ds(A),ds(S)}}function s5(c,p){var x=c.site,A=x.x,S=x.y,L=S-p;if(!L)return A;var R=c.P;if(!R)return-1/0;x=R.site;var E=x.x,N=x.y,G=N-p;if(!G)return E;var X=E-A,j=1/L-1/G,ee=X/G;return j?(-ee+Math.sqrt(ee*ee-2*j*(X*X/(-2*G)-N+G/2+S-L/2)))/j+A:(A+E)/2}function mN(c,p){var x=c.N;if(x)return s5(x,p);var A=c.site;return A.y===p?A.x:1/0}function u5(c){this.site=c,this.edges=[]}u5.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(f5),c.length};function yN(c){for(var p=c[0][0],x=c[1][0],A=c[0][1],S=c[1][1],L,R,E,N,G=jl,X=G.length,j,ee,he,we,te,se;X--;)if(j=G[X],!(!j||!j.prepare()))for(he=j.edges,we=he.length,ee=0;eeoe||_(N-R)>oe)&&(he.splice(ee,0,new ev(wN(j.site,se,_(E-p)oe?{x:p,y:_(L-p)oe?{x:_(R-S)oe?{x,y:_(L-x)oe?{x:_(R-A)=-qe)){var ee=N*N+G*G,he=X*X+se*se,we=(se*ee-G*he)/j,te=(N*he-X*ee)/j,se=te+E,ue=l5.pop()||new gN;ue.arc=c,ue.site=S,ue.x=we+R,ue.y=se+Math.sqrt(we*we+te*te),ue.cy=se,c.circle=ue;for(var _e=null,Me=Iu._;Me;)if(ue.y0)){if(te/=he,he<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=x-E,!(!he&&te<0)){if(te/=he,he<0){if(te>ee)return;te>j&&(j=te)}else if(he>0){if(te0)){if(te/=we,we<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=A-N,!(!we&&te<0)){if(te/=we,we<0){if(te>ee)return;te>j&&(j=te)}else if(we>0){if(te0&&(S.a={x:E+j*he,y:N+j*we}),ee<1&&(S.b={x:E+ee*he,y:N+ee*we}),S}}}}}}function xN(c){for(var p=vs,x=bN(c[0][0],c[0][1],c[1][0],c[1][1]),A=p.length,S;A--;)S=p[A],(!_N(S,c)||!x(S)||_(S.a.x-S.b.x)=L)return;if(X>ee){if(!A)A={x:we,y:R};else if(A.y>=E)return;x={x:we,y:E}}else{if(!A)A={x:we,y:E};else if(A.y1)if(X>ee){if(!A)A={x:(R-ue)/se,y:R};else if(A.y>=E)return;x={x:(E-ue)/se,y:E}}else{if(!A)A={x:(E-ue)/se,y:E};else if(A.y=L)return;x={x:L,y:se*L+ue}}else{if(!A)A={x:L,y:se*L+ue};else if(A.x=X&&ue.x<=ee&&ue.y>=j&&ue.y<=he?[[X,he],[ee,he],[ee,j],[X,j]]:[];_e.point=N[te]}),G}function E(N){return N.map(function(G,X){return{x:Math.round(A(G,X)/oe)*oe,y:Math.round(S(G,X)/oe)*oe,i:X}})}return R.links=function(N){return k1(E(N)).edges.filter(function(G){return G.l&&G.r}).map(function(G){return{source:N[G.l.i],target:N[G.r.i]}})},R.triangles=function(N){var G=[];return k1(E(N)).cells.forEach(function(X,j){for(var ee=X.site,he=X.edges.sort(f5),we=-1,te=he.length,se,ue,_e=he[te-1].edge,Me=_e.l===ee?_e.r:_e.l;++weMe&&(Me=X.x),X.y>ce&&(ce=X.y),he.push(X.x),we.push(X.y);else for(te=0;teMe&&(Me=Ue),nr>ce&&(ce=nr),he.push(Ue),we.push(nr)}var ur=Me-ue,ir=ce-_e;ur>ir?ce=_e+ur:Me=ue+ir;function dr(mr,Tr,Jr,Et,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Et)))if(mr.leaf){var Kr=mr.x,Tt=mr.y;if(Kr!=null)if(_(Kr-Jr)+_(Tt-Et)<.01)pr(mr,Tr,Jr,Et,rt,er,Lr,qr);else{var Vt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Vt,Kr,Tt,rt,er,Lr,qr),pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}else mr.x=Jr,mr.y=Et,mr.point=Tr}else pr(mr,Tr,Jr,Et,rt,er,Lr,qr)}function pr(mr,Tr,Jr,Et,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,Tt=(er+qr)*.5,Vt=Jr>=Kr,da=Et>=Tt,Ea=da<<1|Vt;mr.leaf=!1,mr=mr.nodes[Ea]||(mr.nodes[Ea]=h5()),Vt?rt=Kr:Lr=Kr,da?er=Tt:qr=Tt,dr(mr,Tr,Jr,Et,rt,er,Lr,qr)}var Cr=h5();if(Cr.add=function(mr){dr(Cr,mr,+j(mr,++te),+ee(mr,te),ue,_e,Me,ce)},Cr.visit=function(mr){Yu(mr,Cr,ue,_e,Me,ce)},Cr.find=function(mr){return SN(Cr,mr[0],mr[1],ue,_e,Me,ce)},te=-1,p==null){for(;++teL||ee>R||he=Ue,ir=x>=nr,dr=ir<<1|ur,pr=dr+4;drx&&(L=p.slice(x,L),E[R]?E[R]+=L:E[++R]=L),(A=A[0])===(S=S[0])?E[R]?E[R]+=S:E[++R]=S:(E[++R]=null,N.push({i:R,x:Oi(A,S)})),x=L1.lastIndex;return x=0&&!(A=e.interpolators[x](c,p)););return A}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?S1:p5:p instanceof bt?S1:Array.isArray(p)?av:x==="object"&&isNaN(p)?d5:Oi)(c,p)}],e.interpolateArray=av;function av(c,p){var x=[],A=[],S=c.length,L=p.length,R=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,A=p>=0?c.slice(p+1):"in";return x=CN.get(x)||m5,A=LN.get(A)||W,qN(A(x.apply(null,r.call(arguments,1))))};function qN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function y5(c){return function(p){return 1-c(1-p)}}function g5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function DN(c){return c*c}function EN(c){return c*c*c}function PN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function RN(c){return function(p){return Math.pow(p,c)}}function zN(c){return 1-Math.cos(c*sr)}function NN(c){return Math.pow(2,10*(c-1))}function FN(c){return 1-Math.sqrt(1-c*c)}function IN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/ar*Math.asin(1/c):(c=1,x=p/4),function(A){return 1+c*Math.pow(2,-10*A)*Math.sin((A-x)*ar/p)}}function HN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function ON(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=BN;function BN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,A=c.c,S=c.l,L=p.h-x,R=p.c-A,E=p.l-S;return isNaN(R)&&(R=0,A=isNaN(A)?p.c:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return yn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateHsl=YN;function YN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,A=c.s,S=c.l,L=p.h-x,R=p.s-A,E=p.l-S;return isNaN(R)&&(R=0,A=isNaN(A)?p.s:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return mn(x+L*N,A+R*N,S+E*N)+""}}e.interpolateLab=UN;function UN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,A=c.a,S=c.b,L=p.l-x,R=p.a-A,E=p.b-S;return function(N){return Vc(x+L*N,A+R*N,S+E*N)+""}}e.interpolateRound=b5;function b5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var A=p.transform.baseVal.consolidate()}return new x5(A?A.matrix:GN)})(c)};function x5(c){var p=[c.a,c.b],x=[c.c,c.d],A=w5(p),S=_5(p,x),L=w5(VN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),A.push({i:x.push(ms(x)+"rotate(",null,")")-2,x:Oi(c,p)})):p&&x.push(ms(x)+"rotate("+p+")")}function ZN(c,p,x,A){c!==p?A.push({i:x.push(ms(x)+"skewX(",null,")")-2,x:Oi(c,p)}):p&&x.push(ms(x)+"skewX("+p+")")}function JN(c,p,x,A){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(ms(x)+"scale(",null,",",null,")");A.push({i:S-4,x:Oi(c[0],p[0])},{i:S-2,x:Oi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(ms(x)+"scale("+p+")")}function T5(c,p){var x=[],A=[];return c=e.transform(c),p=e.transform(p),WN(c.translate,p.translate,x,A),XN(c.rotate,p.rotate,x,A),ZN(c.skew,p.skew,x,A),JN(c.scale,p.scale,x,A),c=p=null,function(S){for(var L=-1,R=A.length,E;++L0?L=ce:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ce>0&&(p.start({type:"start",alpha:L=ce}),x=Qc(c.tick)),c):L},c.start=function(){var ce,Ue=he.length,nr=we.length,ur=A[0],ir=A[1],dr,pr;for(ce=0;ce=0;)L.push(X=G[N]),X.parent=E,X.depth=E.depth+1;x&&(E.value=0),E.children=G}else x&&(E.value=+x.call(A,E,E.depth)||0),delete E.children;return di(S,function(j){var ee,he;c&&(ee=j.children)&&ee.sort(c),x&&(he=j.parent)&&(he.value+=j.value)}),R}return A.sort=function(S){return arguments.length?(c=S,A):c},A.children=function(S){return arguments.length?(p=S,A):p},A.value=function(S){return arguments.length?(x=S,A):x},A.revalue=function(S){return x&&(Vu(S,function(L){L.children&&(L.value=0)}),di(S,function(L){var R;L.children||(L.value=+x.call(A,L,L.depth)||0),(R=L.parent)&&(R.value+=L.value)})),S},A};function Uu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=fF,c}function Vu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(S=c.children)&&(A=S.length))for(var A,S;--A>=0;)x.push(S[A])}function di(c,p){for(var x=[c],A=[];(c=x.pop())!=null;)if(A.push(c),(R=c.children)&&(L=R.length))for(var S=-1,L,R;++SS&&(S=E),A.push(E)}for(R=0;RA&&(x=p,A=S);return x}function yF(c){return c.reduce(gF,0)}function gF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=xF,A=bF;function S(L,ee){for(var E=[],N=L.map(p,this),G=x.call(this,N,ee),X=A.call(this,G,N,ee),j,ee=-1,he=N.length,we=X.length-1,te=c?1:1/he,se;++ee0)for(ee=-1;++ee=G[0]&&se<=G[1]&&(j=E[e.bisect(X,se,1,we)-1],j.y+=te,j.push(L[ee]));return E}return S.value=function(L){return arguments.length?(p=L,S):p},S.range=function(L){return arguments.length?(x=Rr(L),S):x},S.bins=function(L){return arguments.length?(A=typeof L=="number"?function(R){return S5(R,L)}:Rr(L),S):A},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function bF(c,p){return S5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function S5(c,p){for(var x=-1,A=+c[0],S=(c[1]-A)/p,L=[];++x<=p;)L[x]=S*x+A;return L}function xF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(_F),p=0,x=[1,1],A;function S(L,R){var E=c.call(this,L,R),N=E[0],G=x[0],X=x[1],j=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(N.x=N.y=0,di(N,function(he){he.r=+j(he.value)}),di(N,q5),p){var ee=p*(A?1:Math.max(2*N.r/G,2*N.r/X))/2;di(N,function(he){he.r+=ee}),di(N,q5),di(N,function(he){he.r-=ee})}return D5(N,G/2,X/2,A?1:1/Math.max(2*N.r/G,2*N.r/X)),E}return S.size=function(L){return arguments.length?(x=L,S):x},S.radius=function(L){return arguments.length?(A=L==null||typeof L=="function"?L:+L,S):A},S.padding=function(L){return arguments.length?(p=+L,S):p},Uu(S,c)};function _F(c,p){return c.value-p.value}function E1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function C5(c,p){c._pack_next=p,p._pack_prev=c}function L5(c,p){var x=p.x-c.x,A=p.y-c.y,S=c.r+p.r;return .999*S*S>x*x+A*A}function q5(c){if(!(p=c.children)||!(ee=p.length))return;var p,x=1/0,A=-1/0,S=1/0,L=-1/0,R,E,N,G,X,j,ee;function he(ce){x=Math.min(ce.x-ce.r,x),A=Math.max(ce.x+ce.r,A),S=Math.min(ce.y-ce.r,S),L=Math.max(ce.y+ce.r,L)}if(p.forEach(wF),R=p[0],R.x=-R.r,R.y=0,he(R),ee>1&&(E=p[1],E.x=E.r,E.y=0,he(E),ee>2))for(N=p[2],E5(R,E,N),he(N),E1(R,N),R._pack_prev=N,E1(N,E),E=R._pack_next,G=3;Gse.x&&(se=Ue),Ue.depth>ue.depth&&(ue=Ue)});var _e=p(te,se)/2-te.x,Me=x[0]/(se.x+p(se,te)/2+_e),ce=x[1]/(ue.depth||1);Vu(he,function(Ue){Ue.x=(Ue.x+_e)*Me,Ue.y=Ue.depth*ce})}return ee}function L(X){for(var j={A:null,children:[X]},ee=[j],he;(he=ee.pop())!=null;)for(var we=he.children,te,se=0,ue=we.length;se0&&(MF(kF(te,X,ee),X,Ue),ue+=Ue,_e+=Ue),Me+=te.m,ue+=he.m,ce+=se.m,_e+=we.m;te&&!R1(we)&&(we.t=te,we.m+=Me-_e),he&&!P1(se)&&(se.t=he,se.m+=ue-ce,ee=X)}return ee}function G(X){X.x*=x[0],X.y=X.depth*x[1]}return S.separation=function(X){return arguments.length?(p=X,S):p},S.size=function(X){return arguments.length?(A=(x=X)==null?G:null,S):A?null:x},S.nodeSize=function(X){return arguments.length?(A=(x=X)==null?null:G,S):A?x:null},Uu(S,c)};function P5(c,p){return c.parent==p.parent?1:2}function P1(c){var p=c.children;return p.length?p[0]:c.t}function R1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function MF(c,p,x){var A=x/(p.i-c.i);p.c-=A,p.s+=x,c.c+=A,p.z+=x,p.m+=x}function AF(c){for(var p=0,x=0,A=c.children,S=A.length,L;--S>=0;)L=A[S],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function kF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=P5,x=[1,1],A=!1;function S(L,R){var E=c.call(this,L,R),N=E[0],G,X=0;di(N,function(te){var se=te.children;se&&se.length?(te.x=CF(se),te.y=SF(se)):(te.x=G?X+=p(te,G):0,te.y=0,G=te)});var j=R5(N),ee=z5(N),he=j.x-p(j,ee)/2,we=ee.x+p(ee,j)/2;return di(N,A?function(te){te.x=(te.x-N.x)*x[0],te.y=(N.y-te.y)*x[1]}:function(te){te.x=(te.x-he)/(we-he)*x[0],te.y=(1-(N.y?te.y/N.y:1))*x[1]}),E}return S.separation=function(L){return arguments.length?(p=L,S):p},S.size=function(L){return arguments.length?(A=(x=L)==null,S):A?null:x},S.nodeSize=function(L){return arguments.length?(A=(x=L)!=null,S):A?x:null},Uu(S,c)};function SF(c){return 1+e.max(c,function(p){return p.y})}function CF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function R5(c){var p=c.children;return p&&p.length?R5(p[0]):c}function z5(c){var p=c.children,x;return p&&(x=p.length)?z5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],A=null,S=z1,L=!1,R,E="squarify",N=.5*(1+Math.sqrt(5));function G(te,se){for(var ue=-1,_e=te.length,Me,ce;++ue<_e;)ce=(Me=te[ue]).value*(se<0?0:se),Me.area=isNaN(ce)||ce<=0?0:ce}function X(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=[],Me=se.slice(),ce,Ue=1/0,nr,ur=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),ir;for(G(Me,ue.dx*ue.dy/te.value),_e.area=0;(ir=Me.length)>0;)_e.push(ce=Me[ir-1]),_e.area+=ce.area,E!=="squarify"||(nr=ee(_e,ur))<=Ue?(Me.pop(),Ue=nr):(_e.area-=_e.pop().area,he(_e,ur,ue,!1),ur=Math.min(ue.dx,ue.dy),_e.length=_e.area=0,Ue=1/0);_e.length&&(he(_e,ur,ue,!0),_e.length=_e.area=0),se.forEach(X)}}function j(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=se.slice(),Me,ce=[];for(G(_e,ue.dx*ue.dy/te.value),ce.area=0;Me=_e.pop();)ce.push(Me),ce.area+=Me.area,Me.z!=null&&(he(ce,Me.z?ue.dx:ue.dy,ue,!_e.length),ce.length=ce.area=0);se.forEach(j)}}function ee(te,se){for(var ue=te.area,_e,Me=0,ce=1/0,Ue=-1,nr=te.length;++UeMe&&(Me=_e));return ue*=ue,se*=se,ue?Math.max(se*Me*N/ue,ue/(se*ce*N)):1/0}function he(te,se,ue,_e){var Me=-1,ce=te.length,Ue=ue.x,nr=ue.y,ur=se?p(te.area/se):0,ir;if(se==ue.dx){for((_e||ur>ue.dy)&&(ur=ue.dy);++Meue.dx)&&(ur=ue.dx);++Me1);return c+p*A*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?DF:LF,G=A?QN:KN;return S=N(c,p,G,x),L=N(p,c,G,eo),E}function E(N){return S(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),R()):c},E.range=function(N){return arguments.length?(p=N,R()):p},E.rangeRound=function(N){return E.range(N).interpolate(b5)},E.clamp=function(N){return arguments.length?(A=N,R()):A},E.interpolate=function(N){return arguments.length?(x=N,R()):x},E.ticks=function(N){return I1(c,N)},E.tickFormat=function(N,G){return d3_scale_linearTickFormat(c,N,G)},E.nice=function(N){return O5(c,N),R()},E.copy=function(){return I5(c,p,x,A)},R()}function H5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function O5(c,p){return N1(c,F5(F1(c,p)[2])),N1(c,F5(F1(c,p)[2])),c}function F1(c,p){p==null&&(p=10);var x=nv(c),A=x[1]-x[0],S=Math.pow(10,Math.floor(Math.log(A/p)/Math.LN10)),L=p/A*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),x[0]=Math.ceil(x[0]/S)*S,x[1]=Math.floor(x[1]/S)*S+S*.5,x[2]=S,x}function I1(c,p){return e.range.apply(e,F1(c,p))}var EF={s:1,g:1,p:1,r:1,e:1};function B5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function kie(c,p){var x=B5(p[2]);return c in EF?Math.abs(x-B5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return Y5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Y5(c,p,x,A){function S(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function R(E){return c(S(E))}return R.invert=function(E){return L(c.invert(E))},R.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((A=E.map(Number)).map(S)),R):A},R.base=function(E){return arguments.length?(p=+E,c.domain(A.map(S)),R):p},R.nice=function(){var E=N1(A.map(S),x?Math:PF);return c.domain(E),A=E.map(L),R},R.ticks=function(){var E=nv(A),N=[],G=E[0],X=E[1],j=Math.floor(S(G)),ee=Math.ceil(S(X)),he=p%1?2:p;if(isFinite(ee-j)){if(x){for(;j0;we--)N.push(L(j)*we);for(j=0;N[j]X;ee--);N=N.slice(j,ee)}return N},R.copy=function(){return Y5(c.copy(),p,x,A)},H5(R,c)}var PF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return U5(e.scale.linear(),1,[0,1])};function U5(c,p,x){var A=lv(p),S=lv(1/p);function L(R){return c(A(R))}return L.invert=function(R){return S(c.invert(R))},L.domain=function(R){return arguments.length?(c.domain((x=R.map(Number)).map(A)),L):x},L.ticks=function(R){return I1(x,R)},L.tickFormat=function(R,E){return d3_scale_linearTickFormat(x,R,E)},L.nice=function(R){return L.domain(O5(x,R))},L.exponent=function(R){return arguments.length?(A=lv(p=R),S=lv(1/p),c.domain(x.map(A)),L):p},L.copy=function(){return U5(c.copy(),p,x)},H5(L,c)}function lv(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return V5([],{t:"range",a:[[]]})};function V5(c,p){var x,A,S;function L(E){return A[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%A.length]}function R(E,N){return e.range(c.length).map(function(G){return E+N*G})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,G=E.length,X;++N0?x[L-1]:c[0],Lee?0:1;if(X=cr)return N(X,we)+(G?N(G,1-we):"")+"Z";var te,se,ue,_e,Me=0,ce=0,Ue,nr,ur,ir,dr,pr,Cr,mr,Tr=[];if((_e=(+R.apply(this,arguments)||0)/2)&&(ue=A===ov?Math.sqrt(G*G+X*X):+A.apply(this,arguments),we||(ce*=-1),X&&(ce=yt(ue/X*Math.sin(_e))),G&&(Me=yt(ue/G*Math.sin(_e)))),X){Ue=X*Math.cos(j+ce),nr=X*Math.sin(j+ce),ur=X*Math.cos(ee-ce),ir=X*Math.sin(ee-ce);var Jr=Math.abs(ee-j-2*ce)<=Ee?0:1;if(ce&&sv(Ue,nr,ur,ir)===we^Jr){var Et=(j+ee)/2;Ue=X*Math.cos(Et),nr=X*Math.sin(Et),ur=ir=null}}else Ue=nr=0;if(G){dr=G*Math.cos(ee-Me),pr=G*Math.sin(ee-Me),Cr=G*Math.cos(j+Me),mr=G*Math.sin(j+Me);var rt=Math.abs(j-ee+2*Me)<=Ee?0:1;if(Me&&sv(dr,pr,Cr,mr)===1-we^rt){var er=(j+ee)/2;dr=G*Math.cos(er),pr=G*Math.sin(er),Cr=mr=null}}else dr=pr=0;if(he>oe&&(te=Math.min(Math.abs(X-G)/2,+x.apply(this,arguments)))>.001){se=G0?0:1}function uv(c,p,x,A,S){var L=c[0]-p[0],R=c[1]-p[1],E=(S?A:-A)/Math.sqrt(L*L+R*R),N=E*R,G=-E*L,X=c[0]+N,j=c[1]+G,ee=p[0]+N,he=p[1]+G,we=(X+ee)/2,te=(j+he)/2,se=ee-X,ue=he-j,_e=se*se+ue*ue,Me=x-A,ce=X*he-ee*j,Ue=(ue<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*_e-ce*ce)),nr=(ce*ue-se*Ue)/_e,ur=(-ce*se-ue*Ue)/_e,ir=(ce*ue+se*Ue)/_e,dr=(-ce*se+ue*Ue)/_e,pr=nr-we,Cr=ur-te,mr=ir-we,Tr=dr-te;return pr*pr+Cr*Cr>mr*mr+Tr*Tr&&(nr=ir,ur=dr),[[nr-N,ur-G],[nr*x/Me,ur*x/Me]]}function Q5(){return!0}function $5(c){var p=cs,x=Fu,A=Q5,S=Un,L=S.key,R=.7;function E(N){var G=[],X=[],j=-1,ee=N.length,he,we=Rr(p),te=Rr(x);function se(){G.push("M",S(c(X),R))}for(;++j1?c.join("L"):c+"Z"}function j5(c){return c.join("L")+"Z"}function YF(c){for(var p=0,x=c.length,A=c[0],S=[A[0],",",A[1]];++p1&&S.push("H",A[0]),S.join("")}function O1(c){for(var p=0,x=c.length,A=c[0],S=[A[0],",",A[1]];++p1){E=p[1],L=c[N],N++,A+="C"+(S[0]+R[0])+","+(S[1]+R[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var G=2;G9&&(L=x*3/Math.sqrt(L),R[E]=L*A,R[E+1]=L*S));for(E=-1;++E<=N;)L=(c[Math.min(N,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+R[E]*R[E])),p.push([L||0,R[E]*L||0]);return p}function QF(c){return c.length<3?Un(c):c[0]+fv(c,KF(c))}e.svg.line.radial=function(){var c=$5(ab);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ab(c){for(var p,x=-1,A=c.length,S,L;++xEe)+",1 "+j}function G(X,j,ee,he){return"Q 0,0 "+he}return L.radius=function(X){return arguments.length?(x=Rr(X),L):x},L.source=function(X){return arguments.length?(c=Rr(X),L):c},L.target=function(X){return arguments.length?(p=Rr(X),L):p},L.startAngle=function(X){return arguments.length?(A=Rr(X),L):A},L.endAngle=function(X){return arguments.length?(S=Rr(X),L):S},L};function $F(c){return c.radius}e.svg.diagonal=function(){var c=ib,p=lb,x=ob;function A(S,L){var R=c.call(this,S,L),E=p.call(this,S,L),N=(R.y+E.y)/2,G=[R,{x:R.x,y:N},{x:E.x,y:N},E];return G=G.map(x),"M"+G[0]+"C"+G[1]+" "+G[2]+" "+G[3]}return A.source=function(S){return arguments.length?(c=Rr(S),A):c},A.target=function(S){return arguments.length?(p=Rr(S),A):p},A.projection=function(S){return arguments.length?(x=S,A):x},A};function ob(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=ob,x=c.projection;return c.projection=function(A){return arguments.length?x(jF(p=A)):p},c};function jF(c){return function(){var p=c.apply(this,arguments),x=p[0],A=p[1]-sr;return[x*Math.cos(A),x*Math.sin(A)]}}e.svg.symbol=function(){var c=rI,p=eI;function x(A,S){return(ub.get(c.call(this,A,S))||sb)(p.call(this,A,S))}return x.type=function(A){return arguments.length?(c=Rr(A),x):c},x.size=function(A){return arguments.length?(p=Rr(A),x):p},x};function eI(){return 64}function rI(){return"circle"}function sb(c){var p=Math.sqrt(c/Ee);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var ub=e.map({circle:sb,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*fb)),x=p*fb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/cv),x=p*cv/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/cv),x=p*cv/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=ub.keys();var cv=Math.sqrt(3),fb=Math.tan(30*Mr);Ae.transition=function(c){for(var p=ro||++vb,x=W1(c),A=[],S,L,R=hv||{time:Date.now(),ease:PN,delay:0,duration:250},E=-1,N=this.length;++E0;)j[--_e].call(c,ue);if(se>=1)return R.event&&R.event.end.call(c,c.__data__,p),--L.count?delete L[A]:delete c[x],1}R||(E=S.time,N=Qc(ee,0,E),R=L[A]={tween:new b,time:E,timer:N,delay:S.delay,duration:S.duration,ease:S.ease,index:p},S=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=hb,x=6,A=6,S=3,L=[10],R=null,E;function N(G){G.each(function(){var X=e.select(this),j=this.__chart__||c,ee=this.__chart__=c.copy(),he=R==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():R,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):W:E,te=X.selectAll(".tick").data(he,ee),se=te.enter().insert("g",".domain").attr("class","tick").style("opacity",oe),ue=e.transition(te.exit()).style("opacity",oe).remove(),_e=e.transition(te.order()).style("opacity",1),Me=Math.max(x,0)+S,ce,Ue=iv(ee),nr=X.selectAll(".domain").data([0]),ur=(nr.enter().append("path").attr("class","domain"),e.transition(nr));se.append("line"),se.append("text");var ir=se.select("line"),dr=_e.select("line"),pr=te.select("text").text(we),Cr=se.select("text"),mr=_e.select("text"),Tr=p==="top"||p==="left"?-1:1,Jr,Et,rt,er;if(p==="bottom"||p==="top"?(ce=nI,Jr="x",rt="y",Et="x2",er="y2",pr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ue[0]+","+Tr*A+"V0H"+Ue[1]+"V"+Tr*A)):(ce=iI,Jr="y",rt="x",Et="y2",er="x2",pr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),ur.attr("d","M"+Tr*A+","+Ue[0]+"H0V"+Ue[1]+"H"+Tr*A)),ir.attr(er,Tr*x),Cr.attr(rt,Tr*Me),dr.attr(Et,0).attr(er,Tr*x),mr.attr(Jr,0).attr(rt,Tr*Me),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;j=ee=function(Kr){return Lr(Kr)+qr}}else j.rangeBand?j=ee:ue.call(ce,ee,j);se.call(ce,j,ee),_e.call(ce,ee,ee)})}return N.scale=function(G){return arguments.length?(c=G,N):c},N.orient=function(G){return arguments.length?(p=G in aI?G+"":hb,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(G){return arguments.length?(R=G,N):R},N.tickFormat=function(G){return arguments.length?(E=G,N):E},N.tickSize=function(G){var X=arguments.length;return X?(x=+G,A=+arguments[X-1],N):x},N.innerTickSize=function(G){return arguments.length?(x=+G,N):x},N.outerTickSize=function(G){return arguments.length?(A=+G,N):A},N.tickPadding=function(G){return arguments.length?(S=+G,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var hb="bottom",aI={top:1,right:1,bottom:1,left:1};function nI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate("+(isFinite(S)?S:x(A))+",0)"})}function iI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate(0,"+(isFinite(S)?S:x(A))+")"})}e.svg.brush=function(){var c=ye(X,"brushstart","brush","brushend"),p=null,x=null,A=[0,0],S=[0,0],L,R,E=!0,N=!0,G=X1[0];function X(te){te.each(function(){var se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ue=se.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=se.selectAll(".resize").data(G,W);_e.exit().remove(),_e.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return lI[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",X.empty()?"none":null);var Me=e.transition(se),ce=e.transition(ue),Ue;p&&(Ue=iv(p),ce.attr("x",Ue[0]).attr("width",Ue[1]-Ue[0]),ee(Me)),x&&(Ue=iv(x),ce.attr("y",Ue[0]).attr("height",Ue[1]-Ue[0]),he(Me)),j(Me)})}X.event=function(te){te.each(function(){var se=c.of(this,arguments),ue={x:A,y:S,i:L,j:R},_e=this.__chart__||ue;this.__chart__=ue,ro?e.select(this).transition().each("start.brush",function(){L=_e.i,R=_e.j,A=_e.x,S=_e.y,se({type:"brushstart"})}).tween("brush:brush",function(){var Me=av(A,ue.x),ce=av(S,ue.y);return L=R=null,function(Ue){A=ue.x=Me(Ue),S=ue.y=ce(Ue),se({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ue.i,R=ue.j,se({type:"brush",mode:"resize"}),se({type:"brushend"})}):(se({type:"brushstart"}),se({type:"brush",mode:"resize"}),se({type:"brushend"}))})};function j(te){te.selectAll(".resize").attr("transform",function(se){return"translate("+A[+/e$/.test(se)]+","+S[+/^s/.test(se)]+")"})}function ee(te){te.select(".extent").attr("x",A[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",A[1]-A[0])}function he(te){te.select(".extent").attr("y",S[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function we(){var te=this,se=e.select(e.event.target),ue=c.of(te,arguments),_e=e.select(te),Me=se.datum(),ce=!/^(n|s)$/.test(Me)&&p,Ue=!/^(e|w)$/.test(Me)&&x,nr=se.classed("extent"),ur=tr(te),ir,dr=e.mouse(te),pr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Et);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),_e.interrupt().selectAll("*").interrupt(),nr)dr[0]=A[0]-dr[0],dr[1]=S[0]-dr[1];else if(Me){var mr=+/w$/.test(Me),Tr=+/^n/.test(Me);pr=[A[1-mr]-dr[0],S[1-Tr]-dr[1]],dr[0]=A[mr],dr[1]=S[Tr]}else e.event.altKey&&(ir=dr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",se.style("cursor")),ue({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(nr||(ir=null,dr[0]-=A[1],dr[1]-=S[1],nr=2),ne())}function Et(){e.event.keyCode==32&&nr==2&&(dr[0]+=A[1],dr[1]+=S[1],nr=0,ne())}function rt(){var qr=e.mouse(te),Kr=!1;pr&&(qr[0]+=pr[0],qr[1]+=pr[1]),nr||(e.event.altKey?(ir||(ir=[(A[0]+A[1])/2,(S[0]+S[1])/2]),dr[0]=A[+(qr[0]{(function(e,r){typeof xv=="object"&&typeof xb!="undefined"?r(xv):(e=e||self,r(e.d3=e.d3||{}))})(xv,function(e){"use strict";var r=new Date,t=new Date;function a(ie,xe,Ke,hr){function ze(Te){return ie(Te=arguments.length===0?new Date:new Date(+Te)),Te}return ze.floor=function(Te){return ie(Te=new Date(+Te)),Te},ze.ceil=function(Te){return ie(Te=new Date(Te-1)),xe(Te,1),ie(Te),Te},ze.round=function(Te){var ke=ze(Te),He=ze.ceil(Te);return Te-ke0))return Je;do Je.push(Ve=new Date(+Te)),xe(Te,He),ie(Te);while(Ve=ke)for(;ie(ke),!Te(ke);)ke.setTime(ke-1)},function(ke,He){if(ke>=ke)if(He<0)for(;++He<=0;)for(;xe(ke,-1),!Te(ke););else for(;--He>=0;)for(;xe(ke,1),!Te(ke););})},Ke&&(ze.count=function(Te,ke){return r.setTime(+Te),t.setTime(+ke),ie(r),ie(t),Math.floor(Ke(r,t))},ze.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?ze.filter(hr?function(ke){return hr(ke)%Te===0}:function(ke){return ze.count(0,ke)%Te===0}):ze}),ze}var n=a(function(){},function(ie,xe){ie.setTime(+ie+xe)},function(ie,xe){return xe-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(xe){xe.setTime(Math.floor(xe/ie)*ie)},function(xe,Ke){xe.setTime(+xe+Ke*ie)},function(xe,Ke){return(Ke-xe)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,xe){ie.setTime(+ie+xe*l)},function(ie,xe){return(xe-ie)/l},function(ie){return ie.getUTCSeconds()}),h=v.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getMinutes()}),m=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getHours()}),g=y.range,_=a(function(ie){ie.setHours(0,0,0,0)},function(ie,xe){ie.setDate(ie.getDate()+xe)},function(ie,xe){return(xe-ie-(xe.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),w=_.range;function T(ie){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-ie)%7),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setDate(xe.getDate()+Ke*7)},function(xe,Ke){return(Ke-xe-(Ke.getTimezoneOffset()-xe.getTimezoneOffset())*o)/f})}var b=T(0),M=T(1),C=T(2),k=T(3),q=T(4),D=T(5),P=T(6),z=b.range,F=M.range,O=C.range,I=k.range,W=q.range,Z=D.range,V=P.range,Y=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setMonth(ie.getMonth()+xe)},function(ie,xe){return xe.getMonth()-ie.getMonth()+(xe.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),H=Y.range,Q=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setFullYear(ie.getFullYear()+xe)},function(ie,xe){return xe.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Q.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/ie)*ie),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setFullYear(xe.getFullYear()+Ke*ie)})};var K=Q.range,ne=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getUTCMinutes()}),pe=ne.range,ye=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getUTCHours()}),Se=ye.range,re=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCDate(ie.getUTCDate()+xe)},function(ie,xe){return(xe-ie)/u},function(ie){return ie.getUTCDate()-1}),Ce=re.range;function de(ie){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-ie)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCDate(xe.getUTCDate()+Ke*7)},function(xe,Ke){return(Ke-xe)/f})}var be=de(0),ge=de(1),Ae=de(2),B=de(3),$=de(4),U=de(5),le=de(6),ve=be.range,me=ge.range,De=Ae.range,Re=B.range,Le=$.range,Fe=U.range,Oe=le.range,We=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCMonth(ie.getUTCMonth()+xe)},function(ie,xe){return xe.getUTCMonth()-ie.getUTCMonth()+(xe.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),Pe=We.range,Be=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCFullYear(ie.getUTCFullYear()+xe)},function(ie,xe){return xe.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});Be.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/ie)*ie),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCFullYear(xe.getUTCFullYear()+Ke*ie)})};var Ge=Be.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=Z,e.timeHour=y,e.timeHours=g,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=F,e.timeMonth=Y,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=V,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=W,e.timeTuesday=C,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=K,e.utcDay=re,e.utcDays=Ce,e.utcFriday=U,e.utcFridays=Fe,e.utcHour=ye,e.utcHours=Se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ne,e.utcMinutes=pe,e.utcMonday=ge,e.utcMondays=me,e.utcMonth=We,e.utcMonths=Pe,e.utcSaturday=le,e.utcSaturdays=Oe,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=ve,e.utcThursday=$,e.utcThursdays=Le,e.utcTuesday=Ae,e.utcTuesdays=De,e.utcWednesday=B,e.utcWednesdays=Re,e.utcWeek=be,e.utcWeeks=ve,e.utcYear=Be,e.utcYears=Ge,Object.defineProperty(e,"__esModule",{value:!0})})});var gs=J((_v,_b)=>{(function(e,r){typeof _v=="object"&&typeof _b!="undefined"?r(_v,Z1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(_v,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return oe.setFullYear(ae.y),oe}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return oe.setUTCFullYear(ae.y),oe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,oe,qe){return{y:ae,m:oe,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var oe=ae.dateTime,qe=ae.date,Ee=ae.time,ar=ae.periods,cr=ae.days,sr=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,$r=h(ar),it=d(ar),_t=h(cr),yt=d(cr),Dt=h(sr),Kt=d(sr),qa=h(Mr),sa=d(Mr),ua=h(Br),vr=d(Br),lt={a:Kl,A:Ql,b:ol,B:Vc,c:null,d:Y,e:Y,f:pe,H,I:Q,j:K,L:ne,m:ye,M:Se,p:Gc,q:Ru,Q:ke,s:He,S:re,u:Ce,U:de,V:be,w:ge,W:Ae,x:null,X:null,y:B,Y:$,Z:U,"%":Te},Zr={a:zu,A:Nu,b:Da,B:Wc,c:null,d:le,e:le,f:Le,H:ve,I:me,j:De,L:Re,m:Fe,M:Oe,p:us,q:fs,Q:ke,s:He,S:We,u:Pe,U:Be,V:Ge,w:ie,W:xe,x:null,X:null,y:Ke,Y:hr,Z:ze,"%":Te},ft={a:mn,A:Qt,b:hi,B:yn,c:Ct,d:q,e:q,f:I,H:P,I:P,j:D,L:O,m:k,M:z,p:fa,q:C,Q:Z,s:V,S:F,u:y,U:g,V:_,w:m,W:w,x:wt,X:ca,y:b,Y:T,Z:M,"%":W};lt.x=St(qe,lt),lt.X=St(Ee,lt),lt.c=St(oe,lt),Zr.x=St(qe,Zr),Zr.X=St(Ee,Zr),Zr.c=St(oe,Zr);function St(yr,Gr){return function(jr){var or=[],va=-1,ot=0,ha=yr.length,Rr,Yn,$l;for(jr instanceof Date||(jr=new Date(+jr));++va53)return null;"w"in or||(or.w=1),"Z"in or?(ot=a(n(or.y,0,1)),ha=ot.getUTCDay(),ot=ha>4||ha===0?r.utcMonday.ceil(ot):r.utcMonday(ot),ot=r.utcDay.offset(ot,(or.V-1)*7),or.y=ot.getUTCFullYear(),or.m=ot.getUTCMonth(),or.d=ot.getUTCDate()+(or.w+6)%7):(ot=t(n(or.y,0,1)),ha=ot.getDay(),ot=ha>4||ha===0?r.timeMonday.ceil(ot):r.timeMonday(ot),ot=r.timeDay.offset(ot,(or.V-1)*7),or.y=ot.getFullYear(),or.m=ot.getMonth(),or.d=ot.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),ha="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(ha+5)%7:or.w+or.U*7-(ha+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function Qr(yr,Gr,jr,or){for(var va=0,ot=Gr.length,ha=jr.length,Rr,Yn;va=ha)return-1;if(Rr=Gr.charCodeAt(va++),Rr===37){if(Rr=Gr.charAt(va++),Yn=ft[Rr in l?Gr.charAt(va++):Rr],!Yn||(or=Yn(yr,jr,or))<0)return-1}else if(Rr!=jr.charCodeAt(or++))return-1}return or}function fa(yr,Gr,jr){var or=$r.exec(Gr.slice(jr));return or?(yr.p=it[or[0].toLowerCase()],jr+or[0].length):-1}function mn(yr,Gr,jr){var or=Dt.exec(Gr.slice(jr));return or?(yr.w=Kt[or[0].toLowerCase()],jr+or[0].length):-1}function Qt(yr,Gr,jr){var or=_t.exec(Gr.slice(jr));return or?(yr.w=yt[or[0].toLowerCase()],jr+or[0].length):-1}function hi(yr,Gr,jr){var or=ua.exec(Gr.slice(jr));return or?(yr.m=vr[or[0].toLowerCase()],jr+or[0].length):-1}function yn(yr,Gr,jr){var or=qa.exec(Gr.slice(jr));return or?(yr.m=sa[or[0].toLowerCase()],jr+or[0].length):-1}function Ct(yr,Gr,jr){return Qr(yr,oe,Gr,jr)}function wt(yr,Gr,jr){return Qr(yr,qe,Gr,jr)}function ca(yr,Gr,jr){return Qr(yr,Ee,Gr,jr)}function Kl(yr){return sr[yr.getDay()]}function Ql(yr){return cr[yr.getDay()]}function ol(yr){return Br[yr.getMonth()]}function Vc(yr){return Mr[yr.getMonth()]}function Gc(yr){return ar[+(yr.getHours()>=12)]}function Ru(yr){return 1+~~(yr.getMonth()/3)}function zu(yr){return sr[yr.getUTCDay()]}function Nu(yr){return cr[yr.getUTCDay()]}function Da(yr){return Br[yr.getUTCMonth()]}function Wc(yr){return Mr[yr.getUTCMonth()]}function us(yr){return ar[+(yr.getUTCHours()>=12)]}function fs(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Gr=St(yr+="",lt);return Gr.toString=function(){return yr},Gr},parse:function(yr){var Gr=bt(yr+="",!1);return Gr.toString=function(){return yr},Gr},utcFormat:function(yr){var Gr=St(yr+="",Zr);return Gr.toString=function(){return yr},Gr},utcParse:function(yr){var Gr=bt(yr+="",!0);return Gr.toString=function(){return yr},Gr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,oe,qe){var Ee=ae<0?"-":"",ar=(Ee?-ae:ae)+"",cr=ar.length;return Ee+(cr68?1900:2e3),qe+Ee[0].length):-1}function M(ae,oe,qe){var Ee=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Ee?(ae.Z=Ee[1]?0:-(Ee[2]+(Ee[3]||"00")),qe+Ee[0].length):-1}function C(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+1));return Ee?(ae.q=Ee[0]*3-3,qe+Ee[0].length):-1}function k(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.m=Ee[0]-1,qe+Ee[0].length):-1}function q(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.d=+Ee[0],qe+Ee[0].length):-1}function D(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.m=0,ae.d=+Ee[0],qe+Ee[0].length):-1}function P(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.H=+Ee[0],qe+Ee[0].length):-1}function z(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.M=+Ee[0],qe+Ee[0].length):-1}function F(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+2));return Ee?(ae.S=+Ee[0],qe+Ee[0].length):-1}function O(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+3));return Ee?(ae.L=+Ee[0],qe+Ee[0].length):-1}function I(ae,oe,qe){var Ee=o.exec(oe.slice(qe,qe+6));return Ee?(ae.L=Math.floor(Ee[0]/1e3),qe+Ee[0].length):-1}function W(ae,oe,qe){var Ee=s.exec(oe.slice(qe,qe+1));return Ee?qe+Ee[0].length:-1}function Z(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.Q=+Ee[0],qe+Ee[0].length):-1}function V(ae,oe,qe){var Ee=o.exec(oe.slice(qe));return Ee?(ae.s=+Ee[0],qe+Ee[0].length):-1}function Y(ae,oe){return f(ae.getDate(),oe,2)}function H(ae,oe){return f(ae.getHours(),oe,2)}function Q(ae,oe){return f(ae.getHours()%12||12,oe,2)}function K(ae,oe){return f(1+r.timeDay.count(r.timeYear(ae),ae),oe,3)}function ne(ae,oe){return f(ae.getMilliseconds(),oe,3)}function pe(ae,oe){return ne(ae,oe)+"000"}function ye(ae,oe){return f(ae.getMonth()+1,oe,2)}function Se(ae,oe){return f(ae.getMinutes(),oe,2)}function re(ae,oe){return f(ae.getSeconds(),oe,2)}function Ce(ae){var oe=ae.getDay();return oe===0?7:oe}function de(ae,oe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),oe,2)}function be(ae,oe){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),oe,2)}function ge(ae){return ae.getDay()}function Ae(ae,oe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),oe,2)}function B(ae,oe){return f(ae.getFullYear()%100,oe,2)}function $(ae,oe){return f(ae.getFullYear()%1e4,oe,4)}function U(ae){var oe=ae.getTimezoneOffset();return(oe>0?"-":(oe*=-1,"+"))+f(oe/60|0,"0",2)+f(oe%60,"0",2)}function le(ae,oe){return f(ae.getUTCDate(),oe,2)}function ve(ae,oe){return f(ae.getUTCHours(),oe,2)}function me(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function De(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Re(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Le(ae,oe){return Re(ae,oe)+"000"}function Fe(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Oe(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function We(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function Pe(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Be(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function Ge(ae,oe){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),oe,2)}function ie(ae){return ae.getUTCDay()}function xe(ae,oe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),oe,2)}function Ke(ae,oe){return f(ae.getUTCFullYear()%100,oe,2)}function hr(ae,oe){return f(ae.getUTCFullYear()%1e4,oe,4)}function ze(){return"+0000"}function Te(){return"%"}function ke(ae){return+ae}function He(ae){return Math.floor(+ae/1e3)}var Je;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ae){return Je=i(ae),e.timeFormat=Je.format,e.timeParse=Je.parse,e.utcFormat=Je.utcFormat,e.utcParse=Je.utcParse,Je}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ae){return ae.toISOString()}var tr=Date.prototype.toISOString?lr:e.utcFormat(Xe);function Qe(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?Qe:e.utcParse(Xe);e.isoFormat=tr,e.isoParse=Ne,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var J1=J((wv,wb)=>{(function(e,r){typeof wv=="object"&&typeof wb!="undefined"?r(wv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(wv,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,P=k.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,P){for(var z=D.length,F=[],O=0,I=k[0],W=0;z>0&&I>0&&(W+I+1>P&&(I=Math.max(1,P-W)),F.push(D.substring(z-=I,z+I)),!((W+=I+1)>P));)I=k[O=(O+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,P=-1,z;D0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,O=P.length;return F===O?P:F>O?P+new Array(F-O+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+P:P.length>z+1?P.slice(0,z+1)+"."+P.slice(z+1):P+new Array(z-P.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var y=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(y.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",I=k.minus===void 0?"-":k.minus+"",W=k.nan===void 0?"NaN":k.nan+"";function Z(Y){Y=o(Y);var H=Y.fill,Q=Y.align,K=Y.sign,ne=Y.symbol,pe=Y.zero,ye=Y.width,Se=Y.comma,re=Y.precision,Ce=Y.trim,de=Y.type;de==="n"?(Se=!0,de="g"):d[de]||(re===void 0&&(re=12),Ce=!0,de="g"),(pe||H==="0"&&Q==="=")&&(pe=!0,H="0",Q="=");var be=ne==="$"?D:ne==="#"&&/[boxX]/.test(de)?"0"+de.toLowerCase():"",ge=ne==="$"?P:/[%p]/.test(de)?O:"",Ae=d[de],B=/[defgprs%]/.test(de);re=re===void 0?6:/[gprs]/.test(de)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function $(U){var le=be,ve=ge,me,De,Re;if(de==="c")ve=Ae(U)+ve,U="";else{U=+U;var Le=U<0||1/U<0;if(U=isNaN(U)?W:Ae(Math.abs(U),re),Ce&&(U=u(U)),Le&&+U==0&&K!=="+"&&(Le=!1),le=(Le?K==="("?K:I:K==="-"||K==="("?"":K)+le,ve=(de==="s"?g[8+f/3]:"")+ve+(Le&&K==="("?")":""),B){for(me=-1,De=U.length;++meRe||Re>57){ve=(Re===46?z+U.slice(me+1):U.slice(me))+ve,U=U.slice(0,me);break}}}Se&&!pe&&(U=q(U,1/0));var Fe=le.length+U.length+ve.length,Oe=Fe>1)+le+U+ve+Oe.slice(Fe);break;default:U=Oe+le+U+ve;break}return F(U)}return $.toString=function(){return Y+""},$}function V(Y,H){var Q=Z((Y=o(Y),Y.type="f",Y)),K=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ne=Math.pow(10,-K),pe=g[8+K/3];return function(ye){return Q(ne*ye)+pe}}return{format:Z,formatPrefix:V}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(k){return Math.max(0,-a(Math.abs(k)))}function M(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function C(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var Mb=J((qie,Tb)=>{"use strict";Tb.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Hr=J((Die,Ab)=>{"use strict";var pI=Mb();Ab.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&pI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=J((Eie,kb)=>{"use strict";kb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var K1=J((Tv,Sb)=>{(function(e,r){typeof Tv=="object"&&typeof Sb!="undefined"?r(Tv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Tv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),g=new Uint8Array(y);for(u=0;u>4,g[f++]=(h&15)<<4|d>>2,g[f++]=(d&3)<<6|m&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var fl=J((Pie,Cb)=>{"use strict";Cb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var an=J(Gn=>{"use strict";var mI=K1().decode,yI=fl(),Q1=Array.isArray,gI=ArrayBuffer,bI=DataView;function Lb(e){return gI.isView(e)&&!(e instanceof bI)}Gn.isTypedArray=Lb;function Mv(e){return Q1(e)||Lb(e)}Gn.isArrayOrTypedArray=Mv;function xI(e){return!Mv(e[0])}Gn.isArray1D=xI;Gn.ensureArray=function(e,r){return Q1(e)||(e=[]),e.length=r,e};var ia={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function $1(e){return e.constructor===ArrayBuffer}Gn.isArrayBuffer=$1;Gn.decodeTypedArraySpec=function(e){var r=[],t=_I(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;$1(l)||(l=mI(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var Db=Hr(),ep=an().isArrayOrTypedArray;zb.exports=function(r,t){if(Db(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var bs=Av(),kI=/^\w*$/,SI=0,Nb=1,kv=2,Fb=3,io=4;Ib.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=bs(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|kv,v.set(h,null);if(f){for(i=d;i{"use strict";var CI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,LI=/^[^\.\[\]]+$/;Ob.exports=function(e,r){for(;r;){var t=e.match(CI);if(t)e=t[1];else if(e.match(LI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Sv=J((Iie,Yb)=>{"use strict";var qI=Hr();Yb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return qI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Gb=J((Hie,Vb)=>{"use strict";var Ub=an().isArrayOrTypedArray,Wu=fl();Vb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Ub(n)&&Ub(i)&&Wu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function DI(e,r){var t=e%r;return t<0?t+r:t}function EI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Wb.exports={mod:DI,modHalf:EI}});var _n=J((Bie,Cv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(B,$){if(B=B||"",$=$||{},B instanceof s)return B;if(!(this instanceof s))return new s(B,$);var U=u(B);this._originalInput=B,this._r=U.r,this._g=U.g,this._b=U.b,this._a=U.a,this._roundA=n(100*this._a)/100,this._format=$.format||U.format,this._gradientType=$.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=U.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),$,U,le,ve,me,De;return $=B.r/255,U=B.g/255,le=B.b/255,$<=.03928?ve=$/12.92:ve=e.pow(($+.055)/1.055,2.4),U<=.03928?me=U/12.92:me=e.pow((U+.055)/1.055,2.4),le<=.03928?De=le/12.92:De=e.pow((le+.055)/1.055,2.4),.2126*ve+.7152*me+.0722*De},setAlpha:function(B){return this._a=Y(B),this._roundA=n(100*this._a)/100,this},toHsv:function(){var B=d(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=d(this._r,this._g,this._b),$=n(B.h*360),U=n(B.s*100),le=n(B.v*100);return this._a==1?"hsv("+$+", "+U+"%, "+le+"%)":"hsva("+$+", "+U+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=v(this._r,this._g,this._b),$=n(B.h*360),U=n(B.s*100),le=n(B.l*100);return this._a==1?"hsl("+$+", "+U+"%, "+le+"%)":"hsla("+$+", "+U+"%, "+le+"%, "+this._roundA+")"},toHex:function(B){return y(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return g(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(H(this._r,255)*100)+"%",g:n(H(this._g,255)*100)+"%",b:n(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%)":"rgba("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var $="#"+_(this._r,this._g,this._b,this._a),U=$,le=this._gradientType?"GradientType = 1, ":"";if(B){var ve=s(B);U="#"+_(ve._r,ve._g,ve._b,ve._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+$+",endColorstr="+U+")"},toString:function(B){var $=!!B;B=B||this._format;var U=!1,le=this._a<1&&this._a>=0,ve=!$&&le&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return ve?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(U=this.toRgbString()),B==="prgb"&&(U=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(U=this.toHexString()),B==="hex3"&&(U=this.toHexString(!0)),B==="hex4"&&(U=this.toHex8String(!0)),B==="hex8"&&(U=this.toHex8String()),B==="name"&&(U=this.toName()),B==="hsl"&&(U=this.toHslString()),B==="hsv"&&(U=this.toHsvString()),U||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,$){var U=B.apply(null,[this].concat([].slice.call($)));return this._r=U._r,this._g=U._g,this._b=U._b,this.setAlpha(U._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(B,$){return B.apply(null,[this].concat([].slice.call($)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(B,$){if(typeof B=="object"){var U={};for(var le in B)B.hasOwnProperty(le)&&(le==="a"?U[le]=B[le]:U[le]=Se(B[le]));B=U}return s(B,$)};function u(B){var $={r:0,g:0,b:0},U=1,le=null,ve=null,me=null,De=!1,Re=!1;return typeof B=="string"&&(B=ge(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?($=f(B.r,B.g,B.b),De=!0,Re=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(le=Se(B.s),ve=Se(B.v),$=m(B.h,le,ve),De=!0,Re="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(le=Se(B.s),me=Se(B.l),$=h(B.h,le,me),De=!0,Re="hsl"),B.hasOwnProperty("a")&&(U=B.a)),U=Y(U),{ok:De,format:B.format||Re,r:i(255,l($.r,0)),g:i(255,l($.g,0)),b:i(255,l($.b,0)),a:U}}function f(B,$,U){return{r:H(B,255)*255,g:H($,255)*255,b:H(U,255)*255}}function v(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=(le+ve)/2;if(le==ve)me=De=0;else{var Le=le-ve;switch(De=Re>.5?Le/(2-le-ve):Le/(le+ve),le){case B:me=($-U)/Le+($1&&(We-=1),We<1/6?Fe+(Oe-Fe)*6*We:We<1/2?Oe:We<2/3?Fe+(Oe-Fe)*(2/3-We)*6:Fe}if($===0)le=ve=me=U;else{var Re=U<.5?U*(1+$):U+$-U*$,Le=2*U-Re;le=De(Le,Re,B+1/3),ve=De(Le,Re,B),me=De(Le,Re,B-1/3)}return{r:le*255,g:ve*255,b:me*255}}function d(B,$,U){B=H(B,255),$=H($,255),U=H(U,255);var le=l(B,$,U),ve=i(B,$,U),me,De,Re=le,Le=le-ve;if(De=le===0?0:Le/le,le==ve)me=0;else{switch(le){case B:me=($-U)/Le+($>1)+720)%360;--$;)le.h=(le.h+ve)%360,me.push(s(le));return me}function I(B,$){$=$||6;for(var U=s(B).toHsv(),le=U.h,ve=U.s,me=U.v,De=[],Re=1/$;$--;)De.push(s({h:le,s:ve,v:me})),me=(me+Re)%1;return De}s.mix=function(B,$,U){U=U===0?0:U||50;var le=s(B).toRgb(),ve=s($).toRgb(),me=U/100,De={r:(ve.r-le.r)*me+le.r,g:(ve.g-le.g)*me+le.g,b:(ve.b-le.b)*me+le.b,a:(ve.a-le.a)*me+le.a};return s(De)},s.readability=function(B,$){var U=s(B),le=s($);return(e.max(U.getLuminance(),le.getLuminance())+.05)/(e.min(U.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(B,$,U){var le=s.readability(B,$),ve,me;switch(me=!1,ve=Ae(U),ve.level+ve.size){case"AAsmall":case"AAAlarge":me=le>=4.5;break;case"AAlarge":me=le>=3;break;case"AAAsmall":me=le>=7;break}return me},s.mostReadable=function(B,$,U){var le=null,ve=0,me,De,Re,Le;U=U||{},De=U.includeFallbackColors,Re=U.level,Le=U.size;for(var Fe=0;Fe<$.length;Fe++)me=s.readability(B,$[Fe]),me>ve&&(ve=me,le=s($[Fe]));return s.isReadable(B,le,{level:Re,size:Le})||!De?le:(U.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],U))};var W=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=s.hexNames=V(W);function V(B){var $={};for(var U in B)B.hasOwnProperty(U)&&($[B[U]]=U);return $}function Y(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function H(B,$){ne(B)&&(B="100%");var U=pe(B);return B=i($,l(0,parseFloat(B))),U&&(B=parseInt(B*$,10)/100),e.abs(B-$)<1e-6?1:B%$/parseFloat($)}function Q(B){return i(1,l(0,B))}function K(B){return parseInt(B,16)}function ne(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function pe(B){return typeof B=="string"&&B.indexOf("%")!=-1}function ye(B){return B.length==1?"0"+B:""+B}function Se(B){return B<=1&&(B=B*100+"%"),B}function re(B){return e.round(parseFloat(B)*255).toString(16)}function Ce(B){return K(B)/255}var de=function(){var B="[-\\+]?\\d+%?",$="[-\\+]?\\d*\\.\\d+%?",U="(?:"+$+")|(?:"+B+")",le="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",ve="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?";return{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ve),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(B){return!!de.CSS_UNIT.exec(B)}function ge(B){B=B.replace(r,"").replace(t,"").toLowerCase();var $=!1;if(W[B])B=W[B],$=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var U;return(U=de.rgb.exec(B))?{r:U[1],g:U[2],b:U[3]}:(U=de.rgba.exec(B))?{r:U[1],g:U[2],b:U[3],a:U[4]}:(U=de.hsl.exec(B))?{h:U[1],s:U[2],l:U[3]}:(U=de.hsla.exec(B))?{h:U[1],s:U[2],l:U[3],a:U[4]}:(U=de.hsv.exec(B))?{h:U[1],s:U[2],v:U[3]}:(U=de.hsva.exec(B))?{h:U[1],s:U[2],v:U[3],a:U[4]}:(U=de.hex8.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),a:Ce(U[4]),format:$?"name":"hex8"}:(U=de.hex6.exec(B))?{r:K(U[1]),g:K(U[2]),b:K(U[3]),format:$?"name":"hex"}:(U=de.hex4.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),a:Ce(U[4]+""+U[4]),format:$?"name":"hex8"}:(U=de.hex3.exec(B))?{r:K(U[1]+""+U[1]),g:K(U[2]+""+U[2]),b:K(U[3]+""+U[3]),format:$?"name":"hex"}:!1}function Ae(B){var $,U;return B=B||{level:"AA",size:"small"},$=(B.level||"AA").toUpperCase(),U=(B.size||"small").toLowerCase(),$!=="AA"&&$!=="AAA"&&($="AA"),U!=="small"&&U!=="large"&&(U="small"),{level:$,size:U}}typeof Cv!="undefined"&&Cv.exports?Cv.exports=s:window.tinycolor=s})(Math)});var Wt=J(Ju=>{"use strict";var Xb=fl(),Xu=Array.isArray;function PI(e,r){var t,a;for(t=0;t{"use strict";Zb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Ku=J((Vie,Jb)=>{"use strict";Jb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _s=J((Gie,$b)=>{"use strict";var Kb=Ku(),Qb=ma(),rp=Qb({editType:"none"});rp.family.dflt=Kb.HOVERFONT;rp.size.dflt=Kb.HOVERFONTSIZE;$b.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:rp,grouptitlefont:Qb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Lv=J((Wie,jb)=>{"use strict";var RI=ma(),Qu=_s().hoverlabel,$u=Wt().extendFlat;jb.exports={hoverlabel:{bgcolor:$u({},Qu.bgcolor,{arrayOk:!0}),bordercolor:$u({},Qu.bordercolor,{arrayOk:!0}),font:RI({arrayOk:!0,editType:"none"}),align:$u({},Qu.align,{arrayOk:!0}),namelength:$u({},Qu.namelength,{arrayOk:!0}),showarrow:$u({},Qu.showarrow),editType:"none"}}});var Wn=J((Xie,ex)=>{"use strict";var zI=ma(),NI=Lv();ex.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:zI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:NI.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var lo=J((Zie,ax)=>{"use strict";var FI=_n(),qv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},rx=qv.RdBu;function II(e,r){if(r||(r=rx),!e)return r;function t(){try{e=qv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),tx(e)?e:r}function tx(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";oo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];oo.defaultLine="#444";oo.lightLine="#eee";oo.background="#fff";oo.borderLine="#BEC8D9";oo.lightFraction=100*10/11});var Er=J((Kie,nx)=>{"use strict";var Xa=_n(),OI=Hr(),BI=an().isTypedArray,$t=nx.exports={},Dv=mi();$t.defaults=Dv.defaults;var YI=$t.defaultLine=Dv.defaultLine;$t.lightLine=Dv.lightLine;var ap=$t.background=Dv.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Xa(e))};$t.opacity=function(e){return e?Xa(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Xa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Xa(e).toRgb();if(t.a===1)return Xa(e).toRgbString();var a=Xa(r||ap).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Xa(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Xa(e).toRgb(),n=Xa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Xa(i).toRgbString()};$t.contrast=function(e,r,t){var a=Xa(e);a.getAlpha()!==1&&(a=Xa($t.combine(e,ap)));var n=a.isDark()?r?a.lighten(r):ap:t?a.darken(t):YI;return n.toString()};$t.stroke=function(e,r){var t=Xa(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Xa(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var Ev=J((Qie,ix)=>{"use strict";ix.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var ws=J(lx=>{"use strict";lx.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var fx=J(Za=>{"use strict";var np=Hr(),ox=_n(),sx=Wt().extendFlat,UI=Wn(),VI=lo(),GI=Er(),WI=Ev().DESELECTDIM,Ts=Av(),ux=ws().counter,XI=xs().modHalf,Xn=an().isArrayOrTypedArray,cl=an().isTypedArraySpec,vl=an().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Xn(e)?e:cl(e)?vl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){cl(e)&&(e=vl(e)),!np(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}cl(e)&&(e=vl(e)),e%1||!np(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){cl(e)&&(e=vl(e)),ox(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return ox(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(VI.get(e,t))}},angle:{coerceFunction:function(e,r,t){cl(e)&&(e=vl(e)),e==="auto"?r.set("auto"):np(e)?r.set(XI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||ux(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Xn(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!ux(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var cx={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},vx={};function hx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),hx(a,r[t]))}}hx(cx,vx);dx.exports={configAttributes:cx,dfltConfig:vx}});var lp=J((rle,px)=>{"use strict";var ip=Ir(),ZI=Hr(),ju=[];px.exports=function(e,r){if(ju.indexOf(e)!==-1)return;ju.push(e);var t=1e3;ZI(r)?t=r:r==="long"&&(t=3e3);var a=ip.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(ju);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=ju.indexOf(o);s!==-1&&ju.splice(s,1),ip.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=ip.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var Ms=so().dfltConfig,op=lp(),sp=mx.exports={};sp.log=function(){var e;if(Ms.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};sp.warn=function(){var e;if(Ms.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};sp.error=function(){var e;if(Ms.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Rv=J((ale,yx)=>{"use strict";yx.exports=function(){}});var up=J((nle,gx)=>{"use strict";gx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{bx.exports=JI;function JI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wx=J((lle,_x)=>{_x.exports=KI;function KI(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var Mx=J((ole,Tx)=>{Tx.exports=QI;function QI(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var fp=J((sle,Ax)=>{Ax.exports=$I;function $I(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Sx=J((ule,kx)=>{kx.exports=jI;function jI(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var Lx=J((fle,Cx)=>{Cx.exports=eH;function eH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,M=a*s-n*o,C=a*u-i*o,k=n*u-i*s,q=f*y-v*m,D=f*g-h*m,P=f*_-d*m,z=v*g-h*y,F=v*_-d*y,O=h*_-d*g,I=w*O-T*F+b*z+M*P-C*D+k*q;return I?(I=1/I,e[0]=(o*O-s*F+u*z)*I,e[1]=(n*F-a*O-i*z)*I,e[2]=(y*k-g*C+_*M)*I,e[3]=(h*C-v*k-d*M)*I,e[4]=(s*P-l*O-u*D)*I,e[5]=(t*O-n*P+i*D)*I,e[6]=(g*b-m*k-_*T)*I,e[7]=(f*k-h*b+d*T)*I,e[8]=(l*F-o*P+u*q)*I,e[9]=(a*P-t*F-i*q)*I,e[10]=(m*C-y*b+_*w)*I,e[11]=(v*b-f*C-d*w)*I,e[12]=(o*D-l*z-s*q)*I,e[13]=(t*z-a*D+n*q)*I,e[14]=(y*T-m*M-g*w)*I,e[15]=(f*M-v*T+h*w)*I,e):null}});var Dx=J((cle,qx)=>{qx.exports=rH;function rH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15];return e[0]=o*(h*_-d*g)-v*(s*_-u*g)+y*(s*d-u*h),e[1]=-(a*(h*_-d*g)-v*(n*_-i*g)+y*(n*d-i*h)),e[2]=a*(s*_-u*g)-o*(n*_-i*g)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*g)-f*(s*_-u*g)+m*(s*d-u*h)),e[5]=t*(h*_-d*g)-f*(n*_-i*g)+m*(n*d-i*h),e[6]=-(t*(s*_-u*g)-l*(n*_-i*g)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*y)-f*(o*_-u*y)+m*(o*d-u*v),e[9]=-(t*(v*_-d*y)-f*(a*_-i*y)+m*(a*d-i*v)),e[10]=t*(o*_-u*y)-l*(a*_-i*y)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*g-h*y)-f*(o*g-s*y)+m*(o*h-s*v)),e[13]=t*(v*g-h*y)-f*(a*g-n*y)+m*(a*h-n*v),e[14]=-(t*(o*g-s*y)-l*(a*g-n*y)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var Px=J((vle,Ex)=>{Ex.exports=tH;function tH(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,M=t*s-n*l,C=a*s-n*o,k=u*m-f*d,q=u*y-v*d,D=u*g-h*d,P=f*y-v*m,z=f*g-h*m,F=v*g-h*y;return _*F-w*z+T*P+b*D-M*q+C*k}});var zx=J((hle,Rx)=>{Rx.exports=aH;function aH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],y=r[12],g=r[13],_=r[14],w=r[15],T=t[0],b=t[1],M=t[2],C=t[3];return e[0]=T*a+b*o+M*v+C*y,e[1]=T*n+b*s+M*h+C*g,e[2]=T*i+b*u+M*d+C*_,e[3]=T*l+b*f+M*m+C*w,T=t[4],b=t[5],M=t[6],C=t[7],e[4]=T*a+b*o+M*v+C*y,e[5]=T*n+b*s+M*h+C*g,e[6]=T*i+b*u+M*d+C*_,e[7]=T*l+b*f+M*m+C*w,T=t[8],b=t[9],M=t[10],C=t[11],e[8]=T*a+b*o+M*v+C*y,e[9]=T*n+b*s+M*h+C*g,e[10]=T*i+b*u+M*d+C*_,e[11]=T*l+b*f+M*m+C*w,T=t[12],b=t[13],M=t[14],C=t[15],e[12]=T*a+b*o+M*v+C*y,e[13]=T*n+b*s+M*h+C*g,e[14]=T*i+b*u+M*d+C*_,e[15]=T*l+b*f+M*m+C*w,e}});var Fx=J((dle,Nx)=>{Nx.exports=nH;function nH(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,y,g,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],y=r[9],g=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=y,e[10]=g,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+y*i+r[13],e[14]=s*a+h*n+g*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Hx=J((ple,Ix)=>{Ix.exports=iH;function iH(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Bx=J((mle,Ox)=>{Ox.exports=lH;function lH(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,y,g,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],y=r[4],g=r[5],_=r[6],w=r[7],T=r[8],b=r[9],M=r[10],C=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,z=i*i*f+u,F=l*i*f+n*s,O=n*l*f+i*s,I=i*l*f-n*s,W=l*l*f+u,e[0]=v*k+y*q+T*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+M*D,e[3]=m*k+w*q+C*D,e[4]=v*P+y*z+T*F,e[5]=h*P+g*z+b*F,e[6]=d*P+_*z+M*F,e[7]=m*P+w*z+C*F,e[8]=v*O+y*I+T*W,e[9]=h*O+g*I+b*W,e[10]=d*O+_*I+M*W,e[11]=m*O+w*I+C*W,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ux=J((yle,Yx)=>{Yx.exports=oH;function oH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Gx=J((gle,Vx)=>{Vx.exports=sH;function sH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var Xx=J((ble,Wx)=>{Wx.exports=uH;function uH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Jx=J((xle,Zx)=>{Zx.exports=fH;function fH(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Qx=J((_le,Kx)=>{Kx.exports=cH;function cH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,y=i*u,g=l*o,_=l*s,w=l*u;return e[0]=1-(d+y),e[1]=v+w,e[2]=h-_,e[3]=0,e[4]=v-w,e[5]=1-(f+y),e[6]=m+g,e[7]=0,e[8]=h+_,e[9]=m-g,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var jx=J((wle,$x)=>{$x.exports=vH;function vH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var r_=J((Tle,e_)=>{e_.exports=hH;function hH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var a_=J((Mle,t_)=>{t_.exports=dH;function dH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var i_=J((Ale,n_)=>{n_.exports=pH;function pH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var o_=J((kle,l_)=>{l_.exports=mH;function mH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u_=J((Sle,s_)=>{s_.exports=yH;function yH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,y=i*l,g=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-g,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+y,e[7]=0,e[8]=h+g,e[9]=d-y,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var c_=J((Cle,f_)=>{f_.exports=gH;function gH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var h_=J((Lle,v_)=>{v_.exports=bH;function bH(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var p_=J((qle,d_)=>{d_.exports=xH;function xH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var y_=J((Dle,m_)=>{m_.exports=_H;function _H(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var b_=J((Ele,g_)=>{var wH=fp();g_.exports=TH;function TH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],y=r[1],g=r[2],_=a[0],w=a[1],T=a[2],b=t[0],M=t[1],C=t[2];return Math.abs(m-b)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(g-C)<1e-6?wH(e):(f=m-b,v=y-M,h=g-C,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=w*h-T*v,i=T*f-_*h,l=_*v-w*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*y+l*g),e[13]=-(o*m+s*y+u*g),e[14]=-(f*m+v*y+h*g),e[15]=1,e)}});var __=J((Ple,x_)=>{x_.exports=MH;function MH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var cp=J((Rle,w_)=>{w_.exports={create:xx(),clone:wx(),copy:Mx(),identity:fp(),transpose:Sx(),invert:Lx(),adjoint:Dx(),determinant:Px(),multiply:zx(),translate:Fx(),scale:Hx(),rotate:Bx(),rotateX:Ux(),rotateY:Gx(),rotateZ:Xx(),fromRotation:Jx(),fromRotationTranslation:Qx(),fromScaling:jx(),fromTranslation:r_(),fromXRotation:a_(),fromYRotation:i_(),fromZRotation:o_(),fromQuat:u_(),frustum:c_(),perspective:h_(),perspectiveFromFieldOfView:p_(),ortho:y_(),lookAt:b_(),str:__()}});var zv=J(Pt=>{"use strict";var AH=cp();Pt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var kH=Ir(),T_=uo(),SH=zv(),CH=cp();function LH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function qH(e){var r=kH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function M_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function DH(e,r){A_("global",e,r)}function A_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):T_.warn("addStyleRule failed"):T_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function EH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&M_(t)}function PH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function RH(e){var r=S_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=k_(a);if(n){var i=SH.convertCssMatrix(n);t=CH.multiply(t,t,i)}}),t}function k_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function S_(e){for(var r=[];zH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function zH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function NH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}C_.exports={getGraphDiv:LH,isPlotDiv:qH,removeElement:M_,addStyleRule:DH,addRelatedStyleRule:A_,deleteRelatedStyleRule:EH,setStyleOnHover:PH,getFullTransformMatrix:RH,getElementTransformMatrix:k_,getElementAndAncestors:S_,equalDomRects:NH}});var rf=J((Fle,L_)=>{"use strict";L_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var yi=J((Ile,N_)=>{"use strict";var D_=Wt().extendFlat,FH=fl(),E_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},P_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},IH=E_.flags.slice().concat(["fullReplot"]),HH=P_.flags.slice().concat("layoutReplot");N_.exports={traces:E_,layout:P_,traceFlags:function(){return q_(IH)},layoutFlags:function(){return q_(HH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";vp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};vp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var hp=J((Ole,F_)=>{"use strict";F_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var fo=J(As=>{"use strict";var{DATE_FORMAT_LINK:OH,FORMAT_LINK:BH}=hp(),YH=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function UH({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,BH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,OH,"for details on the date formatting syntax.",YH].join(" ")}As.templateFormatStringDescription=UH;As.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>no({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});As.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});As.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Iv=J((Ule,U_)=>{"use strict";function hl(e,r){return r?r.d2l(e):e}function I_(e,r){return r?r.l2d(e):e}function VH(e){return e.x0}function GH(e){return e.x1}function WH(e){return e.y0}function XH(e){return e.y1}function H_(e){return e.x0shift||0}function O_(e){return e.x1shift||0}function B_(e){return e.y0shift||0}function Y_(e){return e.y1shift||0}function Nv(e,r){return hl(e.x1,r)+O_(e)-hl(e.x0,r)-H_(e)}function Fv(e,r,t){return hl(e.y1,t)+Y_(e)-hl(e.y0,t)-B_(e)}function ZH(e,r){return Math.abs(Nv(e,r))}function JH(e,r,t){return Math.abs(Fv(e,r,t))}function KH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Nv(e,r),2)+Math.pow(Fv(e,r,t),2))}function QH(e,r){return I_((hl(e.x1,r)+O_(e)+hl(e.x0,r)+H_(e))/2,r)}function $H(e,r,t){return I_((hl(e.y1,t)+Y_(e)+hl(e.y0,t)+B_(e))/2,t)}function jH(e,r,t){return e.type!=="line"?void 0:Fv(e,r,t)/Nv(e,r)}var eO=["x0","x1","y0","y1","dy","height","ycenter"],rO=["x0","x1","y0","y1","dx","width","xcenter"];U_.exports={x0:VH,x1:GH,y0:WH,y1:XH,slope:jH,dx:Nv,dy:Fv,width:ZH,height:JH,length:KH,xcenter:QH,ycenter:$H,simpleXVariables:eO,simpleYVariables:rO}});var W_=J((Vle,G_)=>{"use strict";var tO=yi().overrideAll,co=Wn(),V_=ma(),aO=gi().dash,dl=Wt().extendFlat,{shapeTexttemplateAttrs:nO,templatefallbackAttrs:iO}=fo(),lO=Iv();G_.exports=tO({newshape:{visible:dl({},co.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:dl({},co.legend,{}),legendgroup:dl({},co.legendgroup,{}),legendgrouptitle:{text:dl({},co.legendgrouptitle.text,{}),font:V_({})},legendrank:dl({},co.legendrank,{}),legendwidth:dl({},co.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:dl({},aO,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:dl({},co.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:nO({newshape:!0},{keys:Object.keys(lO)}),texttemplatefallback:iO({editType:"arraydraw"}),font:V_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Z_=J((Gle,X_)=>{"use strict";var oO=gi().dash,sO=Wt().extendFlat;X_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:sO({},oO,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Hv=J((Wle,J_)=>{"use strict";J_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var ks=J((Xle,j_)=>{"use strict";var dp=ma(),uO=rf(),Ov=mi(),K_=W_(),Q_=Z_(),fO=Hv(),$_=Wt().extendFlat,Bv=dp({editType:"calc"});Bv.family.dflt='"Open Sans", verdana, arial, sans-serif';Bv.size.dflt=12;Bv.color.dflt=Ov.defaultLine;j_.exports={font:Bv,title:{text:{valType:"string",editType:"layoutstyle"},font:dp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:dp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:$_(fO({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Ov.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Ov.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Ov.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:K_.newshape,activeshape:K_.activeshape,newselection:Q_.newselection,activeselection:Q_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:$_({},uO.transition,{editType:"none"})}});var e4=J(()=>{(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var e=document.createElement("style");e.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=J(zr=>{"use strict";var Ss=uo(),r4=Rv(),t4=up(),cO=fl(),vO=ef().addStyleRule,a4=Wt(),hO=Wn(),dO=ks(),pO=a4.extendFlat,pp=a4.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(r){if(zr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var _O=gs().timeFormat,d4=Hr(),mp=uo(),ml=xs().mod,qs=Gt(),wn=qs.BADNUM,Ja=qs.ONEDAY,tf=qs.ONEHOUR,pl=qs.ONEMIN,Ls=qs.ONESEC,af=qs.EPOCHJD,Bi=br(),s4=gs().utcFormat,wO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,TO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,u4=new Date().getFullYear()-70;function Yi(e){return e&&Bi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Rt.dateTick0=function(e,r){var t=MO(e,!!r);if(r<2)return t;var a=Rt.dateTime2ms(t,e);return a+=Ja*(r-1),Rt.ms2DateTime(a,0,e)};function MO(e,r){return Yi(e)?r?Bi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Bi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Rt.dfltRange=function(e){return Yi(e)?Bi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Rt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Uv,Vv;Rt.dateTime2ms=function(e,r){if(Rt.isJSDate(e)){var t=e.getTimezoneOffset()*pl,a=(e.getUTCMinutes()-e.getMinutes())*pl+(e.getUTCSeconds()-e.getSeconds())*Ls+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*pl;t=t-n/2+ml(a-t+n/2,n)}return e=Number(e)-t,e>=Uv&&e<=Vv?e:wn}if(typeof e!="string"&&typeof e!="number")return wn;e=String(e);var i=Yi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?TO:wO);if(!s)return wn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return wn;u=Number(u);var y;try{var g=Bi.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=g.newDate(u,g.toMonthIndex(u,f,_),v)}else y=g.newDate(u,Number(f),v)}catch(T){return wn}return y?(y.toJD()-af)*Ja+h*tf+d*pl+m*Ls:wn}u.length===2?u=(Number(u)+2e3-u4)%100+u4:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?wn:w.getTime()+m*Ls};Uv=Rt.MIN_MS=Rt.dateTime2ms("-9999");Vv=Rt.MAX_MS=Rt.dateTime2ms("9999-12-31 23:59:59.9999");Rt.isDateTime=function(e,r){return Rt.dateTime2ms(e,r)!==wn};function Cs(e,r){return String(e+Math.pow(10,r)).slice(1)}var Yv=90*Ja,f4=3*tf,c4=5*pl;Rt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Uv&&e<=Vv))return wn;r||(r=0);var a=Math.floor(ml(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Yi(t)){var v=Math.floor(n/Ja)+af,h=Math.floor(ml(e,Ja));try{i=Bi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=s4("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Uv+Ja&&e<=Vv-Ja))return wn;var r=Math.floor(ml(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=_O("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return p4(a,n,i,l,o)};function p4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Cs(r,2)+":"+Cs(t,2),(a||n)&&(e+=":"+Cs(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Cs(n,i)}return e}Rt.cleanDate=function(e,r,t){if(e===wn)return r;if(Rt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Yi(t))return mp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Rt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Rt.isDateTime(e,t))return mp.error("unrecognized date",e),r;return e};var AO=/%\d?f/g,kO=/%h/g,SO={1:"1",2:"1",3:"2",4:"2"};function v4(e,r,t,a){e=e.replace(AO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(kO,function(){return SO[t("%q")(n)]}),Yi(a))try{e=Bi.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var CO=[59,59.9,59.99,59.999,59.9999];function LO(e,r){var t=ml(e+.05,Ja),a=Cs(Math.floor(t/tf),2)+":"+Cs(ml(Math.floor(t/pl),60),2);if(r!=="M"){d4(r)||(r=0);var n=Math.min(ml(e/Ls,60),CO[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Rt.formatDate=function(e,r,t,a,n,i){if(n=Yi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return LO(e,t)+` +`+v4(i.dayMonthYear,e,a,n);return v4(r,e,a,n)};var h4=3*Ja;Rt.incrementMonth=function(e,r,t){t=Yi(t)&&t;var a=ml(e,Ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ja)+af,i=Bi.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-af)*Ja+a}catch(s){mp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+h4);return o.setUTCMonth(o.getUTCMonth()+r)+a-h4};Rt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Yi(r)&&Bi.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";y4.exports=function(r){return r}});var bp=J(Ui=>{"use strict";var qO=Hr(),DO=uo(),EO=yp(),PO=Gt().BADNUM,gp=1e-9;Ui.findBin=function(e,r,t){if(qO(r.start))return t?Math.ceil((e-r.start)/r.size-gp)-1:Math.floor((e-r.start)/r.size+gp);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?RO:zO:s=t?FO:NO,e+=l*gp*(t?-1:1)*(l>=0?1:-1);a90&&DO.log("Long binary search..."),a-1};function RO(e,r){return er}function FO(e,r){return e>=r}Ui.sorterAsc=function(e,r){return e-r};Ui.sorterDes=function(e,r){return r-e};Ui.distinctVals=function(e){var r=e.slice();r.sort(Ui.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===PO;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Ui.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ui.findIndexOfMin=function(e,r){r=r||EO;for(var t=1/0,a,n=0;n{"use strict";g4.exports=function(r){return Object.keys(r).sort()}});var b4=J(zt=>{"use strict";var nf=Hr(),IO=an().isArrayOrTypedArray;zt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),nf(r)||(r=!1),IO(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var M4=J((toe,T4)=>{"use strict";var x4=xs(),_p=x4.mod,HO=x4.modHalf,lf=Math.PI,yl=2*lf;function OO(e){return e/180*lf}function BO(e){return e/lf*180}function wp(e){return Math.abs(e[1]-e[0])>yl-1e-14}function _4(e,r){return HO(r-e,yl)}function YO(e,r){return Math.abs(_4(e,r))}function w4(e,r){if(wp(r))return!0;var t,a;r[0]a&&(a+=yl);var n=_p(e,yl),i=n+yl;return n>=t&&n<=a||i>=t&&i<=a}function UO(e,r,t,a){if(!w4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Tp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=wp([t,a]),s,u,f,v,h;o?(s=0,u=lf,f=yl):t{"use strict";vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var C4=J(ho=>{"use strict";var Mp=xs().mod;ho.segmentsIntersect=S4;function S4(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,h=i-r,d=o-i,m=s*d-f*v;if(m===0)return null;var y=(u*d-f*h)/m,g=(u*v-s*h)/m;return g<0||g>1||y<0||y>1?null:{x:e+s*y,y:r+v*y}}ho.segmentDistance=function(r,t,a,n,i,l,o,s){if(S4(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,h=s-l,d=u*u+f*f,m=v*v+h*h,y=Math.min(Gv(u,f,d,i-r,l-t),Gv(u,f,d,o-r,s-t),Gv(v,h,m,r-i,t-l),Gv(v,h,m,a-i,n-l));return Math.sqrt(y)};function Gv(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Wv,Ap,k4;ho.getTextLocation=function(r,t,a,n){if((r!==Ap||n!==k4)&&(Wv={},Ap=r,k4=n),Wv[a])return Wv[a];var i=r.getPointAtLength(Mp(a-n/2,t)),l=r.getPointAtLength(Mp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Mp(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return Wv[a]=v,v};ho.clearLocationCache=function(){Ap=null};ho.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(y){var g=r.getPointAtLength(y);y===0?v=g:y===u&&(h=g);var _=g.xi?g.x-i:0,w=g.yo?g.y-o:0;return Math.sqrt(_*_+w*w)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};ho.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Xv=J(of=>{"use strict";var Vi={};of.throttle=function(r,t,a){var n=Vi[r],i=Date.now();if(!n){for(var l in Vi)Vi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};of.done=function(e){var r=Vi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};of.clear=function(e){if(e)L4(Vi[e]),delete Vi[e];else for(var r in Vi)of.clear(r)};function L4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var D4=J((loe,q4)=>{"use strict";q4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var E4=J((ooe,Zv)=>{"use strict";Zv.exports=kp;Zv.exports.isMobile=kp;Zv.exports.default=kp;var XO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ZO=/CrOS/,JO=/android|ipad|playbook|silk/i;function kp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=XO.test(r)&&!ZO.test(r)||!!e.tablet&&JO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var R4=J((soe,P4)=>{"use strict";var KO=Hr(),QO=E4();P4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=$O(),typeof t!="string")return!0;var a=QO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(KO(u)&&(u=+u),u>=13)return!0}}}return a};function $O(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var N4=J((uoe,z4)=>{"use strict";var jO=Ir();z4.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=jO.select(this)}),n}});var I4=J((foe,F4)=>{"use strict";var eB=br();F4.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=eB.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var O4=J((coe,H4)=>{"use strict";H4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";B4.exports=function(r){for(var t=aB(r)?tB:rB,a=[],n=0;n{"use strict";U4.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var W4=J((doe,G4)=>{"use strict";var nB=Hr(),iB=Gt().BADNUM,lB=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G4.exports=function(r){return typeof r=="string"&&(r=r.replace(lB,"")),nB(r)?Number(r):iB}});var Ie=J((poe,i6)=>{"use strict";var sf=Ir(),oB=gs().utcFormat,sB=J1().format,$4=Hr(),j4=Gt(),e6=j4.FP_SAFE,uB=-e6,X4=j4.BADNUM,fe=i6.exports={};fe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Z4={};fe.warnBadFormat=function(e){var r=String(e);Z4[r]||(Z4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=sB(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=Av();fe.keyedContainer=Hb();fe.relativeAttr=Bb();fe.isPlainObject=fl();fe.toLogRange=Sv();fe.relinkPrivateKeys=Gb();var gl=an();fe.isArrayBuffer=gl.isArrayBuffer;fe.isTypedArray=gl.isTypedArray;fe.isArrayOrTypedArray=gl.isArrayOrTypedArray;fe.isArray1D=gl.isArray1D;fe.ensureArray=gl.ensureArray;fe.concat=gl.concat;fe.maxRowLength=gl.maxRowLength;fe.minRowLength=gl.minRowLength;var r6=xs();fe.mod=r6.mod;fe.modHalf=r6.modHalf;var bl=fx();fe.valObjectMeta=bl.valObjectMeta;fe.coerce=bl.coerce;fe.coerce2=bl.coerce2;fe.coerceFont=bl.coerceFont;fe.coercePattern=bl.coercePattern;fe.coerceHoverinfo=bl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=bl.coerceSelectionMarkerOpacity;fe.validate=bl.validate;var nn=m4();fe.dateTime2ms=nn.dateTime2ms;fe.isDateTime=nn.isDateTime;fe.ms2DateTime=nn.ms2DateTime;fe.ms2DateTimeLocal=nn.ms2DateTimeLocal;fe.cleanDate=nn.cleanDate;fe.isJSDate=nn.isJSDate;fe.formatDate=nn.formatDate;fe.incrementMonth=nn.incrementMonth;fe.dateTick0=nn.dateTick0;fe.dfltRange=nn.dfltRange;fe.findExactDates=nn.findExactDates;fe.MIN_MS=nn.MIN_MS;fe.MAX_MS=nn.MAX_MS;var po=bp();fe.findBin=po.findBin;fe.sorterAsc=po.sorterAsc;fe.sorterDes=po.sorterDes;fe.distinctVals=po.distinctVals;fe.roundUp=po.roundUp;fe.sort=po.sort;fe.findIndexOfMin=po.findIndexOfMin;fe.sortObjectKeys=xp();var Gi=b4();fe.aggNums=Gi.aggNums;fe.len=Gi.len;fe.mean=Gi.mean;fe.geometricMean=Gi.geometricMean;fe.median=Gi.median;fe.midRange=Gi.midRange;fe.variance=Gi.variance;fe.stdev=Gi.stdev;fe.interp=Gi.interp;var Zn=zv();fe.init2dArray=Zn.init2dArray;fe.transposeRagged=Zn.transposeRagged;fe.dot=Zn.dot;fe.translationMatrix=Zn.translationMatrix;fe.rotationMatrix=Zn.rotationMatrix;fe.rotationXYMatrix=Zn.rotationXYMatrix;fe.apply3DTransform=Zn.apply3DTransform;fe.apply2DTransform=Zn.apply2DTransform;fe.apply2DTransform2=Zn.apply2DTransform2;fe.convertCssMatrix=Zn.convertCssMatrix;fe.inverseTransformMatrix=Zn.inverseTransformMatrix;var bi=M4();fe.deg2rad=bi.deg2rad;fe.rad2deg=bi.rad2deg;fe.angleDelta=bi.angleDelta;fe.angleDist=bi.angleDist;fe.isFullCircle=bi.isFullCircle;fe.isAngleInsideSector=bi.isAngleInsideSector;fe.isPtInsideSector=bi.isPtInsideSector;fe.pathArc=bi.pathArc;fe.pathSector=bi.pathSector;fe.pathAnnulus=bi.pathAnnulus;var Es=A4();fe.isLeftAnchor=Es.isLeftAnchor;fe.isCenterAnchor=Es.isCenterAnchor;fe.isRightAnchor=Es.isRightAnchor;fe.isTopAnchor=Es.isTopAnchor;fe.isMiddleAnchor=Es.isMiddleAnchor;fe.isBottomAnchor=Es.isBottomAnchor;var Ps=C4();fe.segmentsIntersect=Ps.segmentsIntersect;fe.segmentDistance=Ps.segmentDistance;fe.getTextLocation=Ps.getTextLocation;fe.clearLocationCache=Ps.clearLocationCache;fe.getVisibleSegment=Ps.getVisibleSegment;fe.findPointOnPath=Ps.findPointOnPath;var Qv=Wt();fe.extendFlat=Qv.extendFlat;fe.extendDeep=Qv.extendDeep;fe.extendDeepAll=Qv.extendDeepAll;fe.extendDeepNoArrays=Qv.extendDeepNoArrays;var Sp=uo();fe.log=Sp.log;fe.warn=Sp.warn;fe.error=Sp.error;var fB=ws();fe.counterRegex=fB.counter;var Cp=Xv();fe.throttle=Cp.throttle;fe.throttleDone=Cp.done;fe.clearThrottle=Cp.clear;var Jn=ef();fe.getGraphDiv=Jn.getGraphDiv;fe.isPlotDiv=Jn.isPlotDiv;fe.removeElement=Jn.removeElement;fe.addStyleRule=Jn.addStyleRule;fe.addRelatedStyleRule=Jn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Jn.deleteRelatedStyleRule;fe.setStyleOnHover=Jn.setStyleOnHover;fe.getFullTransformMatrix=Jn.getFullTransformMatrix;fe.getElementTransformMatrix=Jn.getElementTransformMatrix;fe.getElementAndAncestors=Jn.getElementAndAncestors;fe.equalDomRects=Jn.equalDomRects;fe.clearResponsive=D4();fe.preserveDrawingBuffer=R4();fe.makeTraceGroups=N4();fe._=I4();fe.notifier=lp();fe.filterUnique=O4();fe.filterVisible=Y4();fe.pushUnique=up();fe.increment=V4();fe.cleanNumber=W4();fe.ensureNumber=function(r){return $4(r)?(r=Number(r),r>e6||r=r?!1:$4(e)&&e>=0&&e%1===0};fe.noop=Rv();fe.identity=yp();fe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};fe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};fe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(fe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};fe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};fe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};fe.syncOrAsync=function(e,r,t){var a,n;function i(){return fe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};fe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};fe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};fe.fillArray=function(e,r,t,a){if(a=a||fe.identity,fe.isArrayOrTypedArray(e))for(var n=0;nhB.test(window.navigator.userAgent);var dB=/Firefox\/(\d+)\.\d+/;fe.getFirefoxVersion=function(){var e=dB.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};fe.isD3Selection=function(e){return e instanceof sf.selection};fe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};fe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};fe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var n6=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return n6.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var yB={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=e=>Lp(mv(no({},e),{opts:yB}));var gB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=e=>Lp(mv(no({},e),{opts:gB}));var bB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xB(e){var r=e.match(bB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var _B={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=e=>Lp(mv(no({},e),{opts:_B}));var J4=/^[:|\|]/;function Lp({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(fe.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),v=["_xother_","_yother_"].includes(o),h=["xother_","yother_"].includes(o),d=u||f||h||v;(f||v)&&(o=o.substring(1)),(h||v)&&(o=o.substring(0,o.length-1));let m=null,y=null;if(n.parseMultDiv){var g=xB(o);o=g.key,m=g.op,y=g.number}let _;if(d){if(a[o]===void 0)return"";_=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){_=M[o];break}if(n6.test(o)||(_=fe.nestedProperty(M,o).get(!0)),_!==void 0)break}if(_===void 0){let{count:M,max:C,name:k}=n,q=t===!1?l:t;return M=Kv&&l<=K4,u=o>=Kv&&o<=K4;if(s&&(a=10*a+l-Kv),u&&(n=10*n+o-Kv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Ds=2e9;fe.seedPseudoRandom=function(){Ds=2e9};fe.pseudoRandom=function(){var e=Ds;return Ds=(69069*Ds+1)%4294967296,Math.abs(Ds-e)<429496729?fe.pseudoRandom():Ds/4294967296};fe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=fe.extractOption(e,r,"htx","hovertext");if(fe.isValidTextValue(n))return a(n);var i=fe.extractOption(e,r,"tx","text");if(fe.isValidTextValue(i))return a(i)};fe.isValidTextValue=function(e){return e||e===0};fe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,fe.strTranslate(n-u*(t+l),i-u*(a+o))+fe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};fe.setTransormAndDisplay=function(e,r){e.attr("transform",fe.getTextTransform(r)),e.style("display",r.scale?null:"none")};fe.ensureUniformFontSize=function(e,r){var t=fe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};fe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};fe.bigFont=function(e){return Math.round(1.2*e)};var Q4=fe.getFirefoxVersion(),wB=Q4!==null&&Q4<86;fe.getPositionFromD3Event=function(){return wB?[sf.event.layerX,sf.event.layerY]:[sf.event.offsetX,sf.event.offsetY]}});var s6=J(()=>{"use strict";var TB=Ie(),l6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(qp in l6)o6=qp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),TB.addStyleRule(o6,l6[qp]);var o6,qp});var Dp=J((boe,u6)=>{u6.exports=!0});var Pp=J((xoe,f6)=>{"use strict";var MB=Dp(),Ep;typeof window.matchMedia=="function"?Ep=!window.matchMedia("(hover: none)").matches:Ep=MB;f6.exports=Ep});var e0=J((_oe,Rp)=>{"use strict";var Rs=typeof Reflect=="object"?Reflect:null,c6=Rs&&typeof Rs.apply=="function"?Rs.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},$v;Rs&&typeof Rs.ownKeys=="function"?$v=Rs.ownKeys:Object.getOwnPropertySymbols?$v=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:$v=function(r){return Object.getOwnPropertyNames(r)};function AB(e){console&&console.warn&&console.warn(e)}var h6=Number.isNaN||function(r){return r!==r};function vt(){vt.init.call(this)}Rp.exports=vt;Rp.exports.once=LB;vt.EventEmitter=vt;vt.prototype._events=void 0;vt.prototype._eventsCount=0;vt.prototype._maxListeners=void 0;var v6=10;function jv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(vt,"defaultMaxListeners",{enumerable:!0,get:function(){return v6},set:function(e){if(typeof e!="number"||e<0||h6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");v6=e}});vt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||h6(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function d6(e){return e._maxListeners===void 0?vt.defaultMaxListeners:e._maxListeners}vt.prototype.getMaxListeners=function(){return d6(this)};vt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")c6(s,this,t);else for(var u=s.length,f=b6(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,AB(o)}return e}vt.prototype.addListener=function(r,t){return p6(this,r,t,!1)};vt.prototype.on=vt.prototype.addListener;vt.prototype.prependListener=function(r,t){return p6(this,r,t,!0)};function kB(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=kB.bind(a);return n.listener=t,a.wrapFn=n,n}vt.prototype.once=function(r,t){return jv(t),this.on(r,m6(this,r,t)),this};vt.prototype.prependOnceListener=function(r,t){return jv(t),this.prependListener(r,m6(this,r,t)),this};vt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(jv(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():SB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};vt.prototype.off=vt.prototype.removeListener;vt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function y6(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?CB(n):b6(n,n.length)}vt.prototype.listeners=function(r){return y6(this,r,!0)};vt.prototype.rawListeners=function(r){return y6(this,r,!1)};vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):g6.call(e,r)};vt.prototype.listenerCount=g6;function g6(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}vt.prototype.eventNames=function(){return this._eventsCount>0?$v(this._events):[]};function b6(e,r){for(var t=new Array(r),a=0;a{"use strict";var zp=e0().EventEmitter,DB={init:function(e){if(e._ev instanceof zp)return e;var r=new zp,t=new zp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var w6=Ie(),EB=so().dfltConfig;function PB(e,r){for(var t=[],a,n=0;nEB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Wi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Wi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Wi.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";A6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Fs=J(Xt=>{"use strict";var Tn=br(),ff=Ie(),t0=Wn(),Fp=ks(),RB=Np(),zB=rf(),NB=so().configAttributes,k6=yi(),Kn=ff.extendDeepAll,zs=ff.isPlainObject,FB=ff.isArrayOrTypedArray,a0=ff.nestedProperty,IB=ff.valObjectMeta,Ip="_isSubplotObj",n0="_isLinkedToArray",HB="_arrayAttrRegexps",C6="_deprecated",Hp=[Ip,n0,HB,C6];Xt.IS_SUBPLOT_OBJ=Ip;Xt.IS_LINKED_TO_ARRAY=n0;Xt.DEPRECATED=C6;Xt.UNDERSCORE_ATTRS=Hp;Xt.get=function(){var e={};return Tn.allTypes.forEach(function(r){e[r]=BB(r)}),{defs:{valObjects:IB,metaKeys:Hp.concat(["description","role","editType","impliedEdits"]),editType:{traces:k6.traces,layout:k6.layout},impliedEdits:{}},traces:e,layout:YB(),frames:UB(),animation:Ns(zB),config:Ns(NB)}};Xt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Hp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Xt.isValObject(l)&&zs(l)&&i!=="impliedEdits"&&Xt.crawl(l,r,n+1,o)}})};Xt.isValObject=function(e){return e&&e.valType!==void 0};Xt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)FB(v)&&r.push(i+h);else if(a[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!r0(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function r0(e){return e===Math.round(e)&&e>=0}function BB(e){var r,t;r=Tn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Kn({},t0),i=Kn({},r.attributes);Xt.crawl(i,function(s,u,f,v,h){a0(n,h).set(void 0),s===void 0&&a0(i,h).set(void 0)}),Kn(a,n),Tn.traceIs(e,"noOpacity")&&delete a.opacity,Tn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Tn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Kn(a,i),t.attributes&&Kn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ns(a)};if(r.layoutAttributes){var o={};Kn(o,r.layoutAttributes),l.layoutAttributes=Ns(o)}return r.animatable||Xt.crawl(l,function(s){Xt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function YB(){var e={},r,t;Kn(e,Fp);for(r in Tn.subplotsRegistry)if(t=Tn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Is=Ie(),ZB=Wn(),xl="templateitemname",Op={name:{valType:"string",editType:"none"}};Op[xl]={valType:"string",editType:"calc"};mo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Op.name,r[xl]=Op[xl],r};mo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Is.coerce(i,{},ZB,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};mo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Is.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};mo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[D6(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[xl]=u[xl];if(!q6(v))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][xl]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?Is.nestedProperty(o[l],d).set(m):o[l+"."+d]=m}function v(){var d=o;return s(),d}function h(d,m){d&&f(d,m);var y=v();for(var g in y)Is.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var jt=J((Soe,E6)=>{"use strict";var cf=ws().counter;E6.exports={idRegex:{x:cf("x","( domain)?"),y:cf("y","( domain)?")},attrRegex:cf("[xy]axis"),xAxisMatch:cf("xaxis"),yAxisMatch:cf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Zt=J(Ka=>{"use strict";var JB=br(),Bp=jt();Ka.id2name=function(r){if(!(typeof r!="string"||!r.match(Bp.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ka.name2id=function(r){if(r.match(Bp.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ka.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Bp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Ka.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ka.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ka.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function P6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function KB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function QB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}R6.exports={clearOutlineControllers:KB,clearOutline:QB}});var i0=J((qoe,z6)=>{"use strict";z6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Yp=J(o0=>{"use strict";var l0=br(),Doe=jt().SUBPLOT_PATTERN;o0.getSubplotCalcData=function(e,r,t){var a=l0.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var $B=br(),Hs=Ie();yo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=yo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){N6(e,l,n.cache),n.check=function(){if(i){var f=N6(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Hs.isPlainObject(i)?Up(i,r,l,a+1):r(l,n,i)}})}});var Ht=J((Roe,j6)=>{"use strict";var W6=Ir(),eY=gs().timeFormatLocale,rY=J1().formatLocale,vf=Hr(),tY=K1(),Wr=br(),X6=Fs(),aY=ct(),fr=Ie(),Z6=Er(),O6=Gt().BADNUM,Qa=Zt(),nY=_l().clearOutline,iY=i0(),Vp=rf(),lY=Np(),oY=Yp().getModuleCalcData,B6=fr.relinkPrivateKeys,go=fr._,$e=j6.exports={};fr.extendFlat($e,Wr);$e.attributes=Wn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ma();$e.layoutAttributes=ks();var u0=H6();$e.executeAPICommand=u0.executeAPICommand;$e.computeAPICommandBindings=u0.computeAPICommandBindings;$e.manageCommandObserver=u0.manageCommandObserver;$e.hasSimpleAPICommandBindings=u0.hasSimpleAPICommandBindings;$e.redrawText=function(e){return e=fr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r($e.previousPromises(e)))},300)})};$e.resize=function(e){e=fr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||fr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||fr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};$e.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};$e.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Z6.defaultLine,"pointer-events":"all"}).each(function(){var u=W6.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&sY(e,i),l.text(i.text()&&o.text()?" - ":"")}};function sY(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){$e.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}$e.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=W6.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=$e.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var uY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],fY=["year","month","dayMonth","dayMonthYear"];$e.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||$e.createTransitionData(e),n._dfltTitle={plot:go(e,"Click to enter Plot title"),subtitle:go(e,"Click to enter Plot subtitle"),x:go(e,"Click to enter X axis title"),y:go(e,"Click to enter Y axis title"),colorbar:go(e,"Click to enter Colorscale title"),annotation:go(e,"new text")},n._traceWord=go(e,"trace");var h=Y6(e,uY);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;$e.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),$e.sanitizeMargins(n)}else{$e.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,w=y&&(g||_);w?$e.plotAutoSize(e,i,n):y&&$e.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=hY(h,n.separators),n._extraFormat=Y6(e,fY),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=vY(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=cY(l,s),$e.supplyDataDefaults(s,o,i,n);var C=Object.keys(b.x),k=Object.keys(b.y);if(C.length>1&&k.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,$e.linkSubplots(o,n,l,a),$e.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),I=F,W=O;I&&!W?a._bgLayer.remove():W&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&nY({_fullLayout:a}),dY(o,n),B6(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Z=n._tracePreGUI,V={},Y;for(Y in Z)V[Y]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=$e.layoutAttributes.width.min,h=$e.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),$e.sanitizeMargins(a)};$e.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(fr.subplotSort);for(o=0;o1&&(t.l/=g,t.r/=g)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+y},r:{val:T,size:t.r+y},b:{val:M,size:t.b+y},t:{val:b,size:t.t+y}},m[r]=1}if(!a._replotting)return $e.doAutoMargin(e)}};function mY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}$e.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),J6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=fr.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var g in h)d[g]||delete h[g];var _=e._fullLayout._reservedMargin;for(var w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var M in l){var C=0;for(var k in h)k!=="base"&&vf(h[k][M].size)&&(C=h[k][M].size>C?h[k][M].size:C);var q=Math.max(0,i[M]-C);l[M]=Math.max(0,l[M]-q)}for(var D in h){var P=h[D].l||{},z=h[D].b||{},F=P.val,O=P.size,I=z.val,W=z.size,Z=t-l.r-l.l,V=a-l.t-l.b;for(var Y in h){if(vf(O)&&h[Y].r){var H=h[Y].r.val,Q=h[Y].r.size;if(H>F){var K=(O*H+(Q-Z)*F)/(H-F),ne=(Q*(1-F)+(O-Z)*(1-H))/(H-F);K+ne>s+u&&(s=K,u=ne)}}if(vf(W)&&h[Y].t){var pe=h[Y].t.val,ye=h[Y].t.size;if(pe>I){var Se=(W*pe+(ye-V)*I)/(pe-I),re=(ye*(1-I)+(W-V)*(1-pe))/(pe-I);Se+re>v+f&&(v=Se,f=re)}}}}}var Ce=fr.constrain(t-i.l-i.r,K6,m),de=fr.constrain(a-i.t-i.b,Q6,y),be=Math.max(0,t-Ce),ge=Math.max(0,a-de);if(be){var Ae=(s+u)/be;Ae>1&&(s/=Ae,u/=Ae)}if(ge){var B=(v+f)/ge;B>1&&(v/=B,f/=B)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&($e.didMarginChange(o,n)||mY(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var $=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<$)return Wr.call("_doPlot",e);r._size=o,fr.warn("Too many auto-margin redraws.")}yY(e)};function yY(e){var r=Qa.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};$e.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&$e.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(fr.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.slice(-3)==="src")return}else if(t==="keepstream"){if(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0&&!fr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[T+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var g=Array.isArray(h),_=fr.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(w)?tY.encode(w):w},d)}return g?h.map(function(T){return u(T,d)}):_?fr.simpleMap(h,fr.identity):fr.isJSDate(h)?fr.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};$e.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[$e.previousPromises,s,t.prepareFn,$e.rehover,$e.reselect,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Qa.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:O6,y:O6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(V6(t,a,n),o=0;o{"use strict";bo.xmlns="http://www.w3.org/2000/xmlns/";bo.svg="http://www.w3.org/2000/svg";bo.xlink="http://www.w3.org/1999/xlink";bo.svgAttrs={xmlns:bo.svg,"xmlns:xlink":bo.xlink}});var Ma=J((Noe,e7)=>{"use strict";e7.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ya=J(Mn=>{"use strict";var Ot=Ir(),Xi=Ie(),xY=Xi.strTranslate,Gp=xo(),_Y=Ma().LINE_SPACING,wY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(wY),i=Ot.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=zY(e.node(),a);s&&e.style("pointer-events","all"),Mn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};kY(n[2],f,function(v,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var g=d.width,_=d.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",T=m.select("g");T.attr({fill:w,stroke:w});var b=T.node().getBoundingClientRect(),M=b.width,C=b.height;(M>g||C>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),M=b.width,C=b.height);var k=+e.attr("x"),q=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,P=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,k,q]+")"+xY(-M/2,P-C/2)});else if(l[0]==="l")q=P-C/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)k=0,q=P;else{var z=e.attr("text-anchor");k=k-M*(z==="middle"?.5:z==="end"?1:0),q=q+P-C/2}m.attr({x:k,y:q}),t&&t.call(e,y),s(y)})})):o(),e};var TY=/(<|<|<)/g,MY=/(>|>|>)/g;function AY(e){return e.replace(TY,"\\lt ").replace(MY,"\\gt ")}var r7=[["$","$"],["\\(","\\)"]];function kY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Xi.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Xi.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:r7},displayAlign:"left"})},u=function(){i=Xi.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=r7},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var w="math-output-"+Xi.randstr({},64);o=Ot.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(AY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Xi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),M;a===2?M=Ot.select("body").select("#MathJax_SVG_glyphs"):M=w.select("defs"),t(w,M,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},g=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,g):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),_()}))}var i7={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},SY={sub:"0.3em",sup:"-0.6em"},CY={sub:"-0.21em",sup:"0.42em"},t7="\u200B",a7=["http:","https:","mailto:","",void 0,":"],l7=Mn.NEWLINES=/(\r\n?|\n)/g,Xp=/(<[^<>]*>)/,Zp=/<(\/?)([^ >]*)(\s+(.*))?>/i,LY=//i;Mn.BR_TAG_ALL=//gi;var o7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,s7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,u7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _o(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&f0(a)}var DY=/(^|;)\s*color:/;Mn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Xp),o=[],s="",u=0,f=0;fi?o.push(v.slice(0,Math.max(0,y-i))+n):o.push(v.slice(0,y));break}s=""}}return o.join("")};var EY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},PY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f0(e){return e.replace(PY,function(r,t){var a;return t.charAt(0)==="#"?a=RY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=EY[t],a||r})}Mn.convertEntities=f0;function RY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function zY(e,r){r=r.replace(l7," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Gp.svg,"tspan");Ot.select(C).attr({class:"line",dy:i*_Y+"em"}),e.appendChild(C),n=C;var k=a;if(a=[{node:C}],k.length>1)for(var q=1;q.",r);return}var k=a.pop();C!==k.type&&Xi.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=LY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Xp),h=0;h{"use strict";var NY=Ir(),v0=_n(),df=Hr(),c0=Ie(),c7=Er(),FY=lo().isValid;function IY(e,r,t){var a=r?c0.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(c0.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function y7(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var b7=hp(),OY=b7.FORMAT_LINK,BY=b7.DATE_FORMAT_LINK;function YY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Jp:x7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Jp(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+OY+"."].join(" ")}function x7(e,r){return Jp(e,r)+[" And for dates see: "+BY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}_7.exports={axisHoverFormat:YY,descriptionOnlyNumbers:Jp,descriptionWithDates:x7}});var Qn=J((Boe,I7)=>{"use strict";var w7=ma(),Os=mi(),F7=gi().dash,Qp=Wt().extendFlat,T7=ct().templatedArray,Ooe=fo().templateFormatStringDescription,M7=h0().descriptionWithDates,UY=Gt().ONEDAY,xi=jt(),VY=xi.HOUR_PATTERN,GY=xi.WEEKDAY_PATTERN,Kp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},WY=Qp({},Kp,{values:Kp.values.slice().concat(["sync"])});function A7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var k7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},C7={valType:"data_array",editType:"ticks"},L7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function q7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function D7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var E7={valType:"color",dflt:Os.defaultLine,editType:"ticks"},P7={valType:"color",dflt:Os.lightLine,editType:"ticks"};function R7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var z7=Qp({},F7,{editType:"ticks"}),N7={valType:"boolean",editType:"ticks"};I7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Os.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:w7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[xi.idRegex.x.toString(),xi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"calc"},rangebreaks:T7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[GY,VY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:UY},editType:"calc"}),tickmode:WY,nticks:A7(),tick0:k7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:C7,ticktext:{valType:"data_array",editType:"ticks"},ticks:L7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:q7(),tickwidth:D7(),tickcolor:E7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Qp({},F7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:w7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:M7("tick label")},tickformatstops:T7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:M7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Os.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:N7,gridcolor:P7,gridwidth:R7(),griddash:z7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Os.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Os.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xi.idRegex.x.toString(),xi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Kp,nticks:A7("minor"),tick0:k7,dtick:S7,tickvals:C7,ticks:L7,ticklen:q7("minor"),tickwidth:D7("minor"),tickcolor:E7,gridcolor:P7,gridwidth:R7("minor"),griddash:z7,showgrid:N7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var d0=J((Yoe,B7)=>{"use strict";var ht=Qn(),H7=ma(),O7=Wt().extendFlat,XY=yi().overrideAll;B7.exports=XY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:ht.linecolor,outlinewidth:ht.linewidth,bordercolor:ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ht.minor.tickmode,nticks:ht.nticks,tick0:ht.tick0,dtick:ht.dtick,tickvals:ht.tickvals,ticktext:ht.ticktext,ticks:O7({},ht.ticks,{dflt:""}),ticklabeloverflow:O7({},ht.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:ht.ticklen,tickwidth:ht.tickwidth,tickcolor:ht.tickcolor,ticklabelstep:ht.ticklabelstep,showticklabels:ht.showticklabels,labelalias:ht.labelalias,tickfont:H7({}),tickangle:ht.tickangle,tickformat:ht.tickformat,tickformatstops:ht.tickformatstops,tickprefix:ht.tickprefix,showtickprefix:ht.showtickprefix,ticksuffix:ht.ticksuffix,showticksuffix:ht.showticksuffix,separatethousands:ht.separatethousands,exponentformat:ht.exponentformat,minexponent:ht.minexponent,showexponent:ht.showexponent,title:{text:{valType:"string"},font:H7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var pf=J((Voe,U7)=>{"use strict";var ZY=d0(),JY=ws().counter,KY=xp(),Y7=lo().scales,Uoe=KY(Y7);function p0(e){return"`"+e+"`"}U7.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?Y7[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+p0(u+f));var h=n?" Has an effect only if "+v+" is set to a numerical array.":"",d=a+"auto",m=a+"min",y=a+"max",g=a+"mid",_=p0(u+d),w=p0(u+m),T=p0(u+y),b=w+" and "+T,M={};M[m]=M[y]=void 0;var C={};C[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=ZY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:JY("coloraxis"),dflt:null,editType:"calc"}),k}});var jp=J((Goe,V7)=>{"use strict";var QY=Wt().extendFlat,$Y=pf(),$p=lo().scales;V7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:$p.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:$p.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:$p.RdBu,editType:"calc"}},coloraxis:QY({_isSubplotObj:!0,editType:"calc"},$Y("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var em=J((Woe,G7)=>{"use strict";var jY=Ie();G7.exports=function(r){return jY.isPlainObject(r.colorbar)}});var am=J(tm=>{"use strict";var rm=Hr(),W7=Ie(),X7=Gt(),eU=X7.ONEDAY,rU=X7.ONEWEEK;tm.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?eU:1;if(!e)return i;if(rm(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=rm(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};tm.tick0=function(e,r,t,a){if(r==="date")return W7.cleanDate(e,W7.dateTick0(t,a%rU===0?1:0));if(!(a==="D1"||a==="D2"))return rm(e)?Number(e):0}});var nm=J((Zoe,J7)=>{"use strict";var Z7=am(),tU=Ie().isArrayOrTypedArray,aU=an().isTypedArraySpec,nU=an().decodeTypedArraySpec;J7.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(w){var T=o[w];return aU(T)&&(T=nU(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=tU(d)?"array":h?"linear":"auto",y=a(u+"tickmode",m);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var g=s.dtick=Z7.dtick(h,n);s.tick0=Z7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var lm=J((Joe,Q7)=>{"use strict";var im=Ie(),K7=Qn();Q7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?K7.minor:K7,u=i?"minor.":"",f=im.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=im.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=im.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||v||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var om=J((Koe,$7)=>{"use strict";$7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var $n=J((Qoe,j7)=>{"use strict";var m0=Ie(),iU=ct();j7.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=m0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=iU.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var sm=Ie(),lU=Er().contrast,e9=Qn(),oU=om(),sU=$n();r9.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");sm.isPlainObject(l)||delete t.labelalias;var o=oU(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?lU(i.bgColor):f&&f!==e9.color.dflt?f:u.color;if(sm.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");sU(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uU}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function uU(e,r){function t(n,i){return sm.coerce(e,r,e9.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var fm=J((joe,t9)=>{"use strict";var fU=om();t9.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=fU(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var cm=J((ese,a9)=>{"use strict";var wl=Ie(),cU=ct(),vU=nm(),hU=lm(),dU=um(),pU=fm(),mU=d0();a9.exports=function(r,t,a){var n=cU.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return wl.coerce(i,n,mU,z,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(v?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:v?u:s);var m=l("yref"),y=l("xref"),g=m==="paper",_=y==="paper",w,T,b,M="left";v?(b="middle",M=_?"left":"right",w=_?1.02:1,T=.5):(b=g?"bottom":"top",M="center",w=.5,T=g?1.02:1),wl.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:w}},"x"),wl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:T}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),wl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=wl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":"hide past div"),vU(i,n,l,"linear");var k=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};C.indexOf("inside")!==-1&&(q.bgColor="black"),pU(i,n,l,"linear",q),dU(i,n,l,"linear",q),hU(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=wl.extendFlat({},k,{family:D.family,size:wl.bigFont(D.size)});wl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var Bs=J((rse,l9)=>{"use strict";var n9=Hr(),hm=Ie(),yU=em(),gU=cm(),i9=lo().isValid,bU=br().traceIs;function vm(e,r){var t=r.slice(0,r.length-1);return r?hm.nestedProperty(e,t).get()||{}:e}l9.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=vm(r,l),f=vm(t,l),v=vm(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(l+"coloraxis");if(m){var y=bU(t,"contour")&&hm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,hm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],w=u[o+"max"],T=n9(_)&&n9(w)&&_{"use strict";var o9=Ie(),xU=ct(),s9=jp(),_U=Bs();u9.exports=function(r,t){function a(v,h){return o9.coerce(r,t,s9,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return o9.coerce(i,l,s9.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=xU.newContainer(t,s,"coloraxis"),l._name=s,_U(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wU=Ie(),TU=An().hasColorscale,MU=An().extractOpts;c9.exports=function(r,t){function a(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function n(f,v){var h=v.container?wU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=MU(h),m=d.auto;(m||d.min===void 0)&&a(h,v.min),(m||d.max===void 0)&&a(h,v.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var h9=Hr(),dm=Ie(),AU=An().extractOpts;d9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?dm.nestedProperty(t,l).get():t,s=AU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return dm.aggNums(Math.min,null,i)},m=function(){return dm.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&h9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&h9(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var pm=J((ise,p9)=>{"use strict";var g0=lo(),Ys=An();p9.exports={moduleType:"component",name:"colorscale",attributes:pf(),layoutAttributes:jp(),supplyLayoutDefaults:f9(),handleDefaults:Bs(),crossTraceDefaults:v9(),calc:y0(),scales:g0.scales,defaultScale:g0.defaultScale,getScale:g0.get,isValidScale:g0.isValid,hasColorscale:Ys.hasColorscale,extractOpts:Ys.extractOpts,extractScale:Ys.extractScale,flipScale:Ys.flipScale,makeColorScaleFunc:Ys.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ys.makeColorScaleFuncFromTrace}});var ln=J((lse,y9)=>{"use strict";var m9=Ie(),kU=an().isTypedArraySpec;y9.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return m9.isPlainObject(r)&&(m9.isArrayOrTypedArray(r.size)||kU(r.size))}}});var b9=J((ose,g9)=>{"use strict";var SU=Hr();g9.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return SU(s)&&s>0?Math.max(s,i):0}}});var _i=J(Aa=>{"use strict";var b0=Ie();Aa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Aa.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{w9.exports=EU;var mm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},DU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function EU(e){var r=[];return e.replace(DU,function(t,a,n){var i=a.toLowerCase();for(n=RU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==mm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var zU=ym(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",T9=Math.sqrt(2),Tl=Math.sqrt(3),gm=Math.PI,bm=Math.cos,xm=Math.sin;C9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.4,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.8/T9,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/Tl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*Tl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.924,2),n=Ze(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*Tl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.1,2),n=Ze(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.7,2),n=Ze(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/T9,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2),n=Ze(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e/2,2),n=Ze(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=gm/2.5,n=2*e*bm(a),i=2*e*xm(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=gm/4,n=2*e*bm(a),i=2*e*xm(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var M9,A9,k9,S9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(k9===e&&S9===r&&M9===t)return A9;k9=e,S9=r,M9=t;function a(g,_){var w=bm(g),T=xm(g),b=_[0],M=_[1]+(r||0);return[b*w-M*T,b*T+M*w]}for(var n=e/180*gm,i=0,l=0,o=zU(t),s="",u=0;u{"use strict";var ea=Ir(),tt=Ie(),NU=tt.numberFormat,Ao=Hr(),km=_n(),_0=br(),ga=Er(),FU=pm(),yf=tt.strTranslate,w0=ya(),IU=xo(),HU=Ma(),OU=HU.LINE_SPACING,H9=Ev().DESELECTDIM,BU=ln(),YU=b9(),UU=_i().appendArrayPointValue,je=J9.exports={};je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ga.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",_m(GU(f))),s&&e.style("text-shadow",s==="auto"?w0.makeTextShadow(ga.contrast(i)):_m(s)),u&&e.style("text-decoration-line",_m(WU(u)))};function _m(e){return e==="none"?void 0:e}var VU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function GU(e){return VU[e]}function WU(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Ao(n)&&Ao(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",yf(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=ea.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=_0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,ea.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!Ao(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ga.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ea.select(this).call(ga.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function O9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;je.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var g,_;m==="horizontal"?(g={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(g={x:0,y:i.start},_={x:0,y:i.stop}),g.x=r._xA.c2p(g.x===void 0?r._extremes.x.min[0].val:g.x,!0),g.y=r._yA.c2p(g.y===void 0?r._extremes.y.min[0].val:g.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(U9,t,y,"linear",i.colorscale,"fill",g,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(je.gradient,t,y,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ga.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=ea.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};O9(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ea.select(this);a[0].trace&&O9(n,a[0].trace,r,t)})};var q9=L9();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(q9).forEach(function(e){var r=q9[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var XU=je.symbolNames.length,ZU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(Ao(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=XU||e>=400?0:Math.floor(Math.max(e,0))};function B9(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?ZU:"")}var D9=NU("~f"),Y9={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};je.gradient=function(e,r,t,a,n,i){var l=Y9[a];return U9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function U9(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Lm(e,t),v=Cm(e,t);r.attr("d",B9(u,s,f,v))}var h=!1,d,m,y;if(e.so)y=o.outlierwidth,m=o.outliercolor,d=l.outliercolor;else{var g=(o||{}).width;y=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):tt.isArrayOrTypedArray(o.color)?m=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let _=e.mld||(o||{}).dash;if(_&&je.dashLine(r,_,y),e.om)r.call(ga.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var w=l.gradient,T=e.mgt;T?h=!0:T=w&&w.type,tt.isArrayOrTypedArray(T)&&(T=T[0],Y9[T]||(T=0));var b=l.pattern,M=je.getPatternAttr,C=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(T&&T!=="none"){var k=e.mgc;k?h=!0:k=w.color;var q=t.uid;h&&(q+="-"+e.i),je.gradient(r,n,q,T,[[0,k],[1,d]],"fill")}else if(C){var D=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,D=!0);var z=M(P,e.i,i&&i.color||null),F=M(b.bgcolor,e.i,null),O=b.fgopacity,I=M(b.size,e.i,8),W=M(b.solidity,e.i,.3);D=D||e.mcc||tt.isArrayOrTypedArray(b.shape)||tt.isArrayOrTypedArray(b.path)||tt.isArrayOrTypedArray(b.bgcolor)||tt.isArrayOrTypedArray(b.fgcolor)||tt.isArrayOrTypedArray(b.size)||tt.isArrayOrTypedArray(b.solidity);var Z=t.uid;D&&(Z+="-"+e.i),je.pattern(r,"point",n,Z,C,I,W,e.mcc,b.fillmode,F,z,O)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);y&&ga.stroke(r,m)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),_0.traceIs(e,"symbols")&&(r.ms2mrc=BU.isBubble(e)?YU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(tt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:v?u:H9*M});var h=n.color,d=i.color,m=l.color;(d||m)&&(r.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?d||M:m||M});var y=n.size,g=i.size,_=l.size,w=g!==void 0,T=_!==void 0;return _0.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?w?g/2:M:T?_/2:M}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:ga.addOpacity(v,H9))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ga.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",B9(je.symbolNumber(o),s,Lm(l,r),Cm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ea.select(this),o=0;o0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ea.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};UU(h,r,o.i),u=tt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,m=G9(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:y}).text(u).call(w0.convertToTspans,t).call(V9,d,m,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=ea.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=G9(a,r);ga.fill(n,i);var s=_0.traceIs(r,"bar-like");V9(n,l,o,a.mrc2||a.mrc,s)})}};var E9=.5;je.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=v&&M>=u||M>=v&&M<=u)&&(e=[b,M])}return e}je.applyBackoff=Z9;je.makeTester=function(){var e=tt.ensureSingleById(ea.select("body"),"svg","js-plotly-tester",function(t){t.attr(IU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var Tm=0,QU=1e4;je.bBox=function(e,r,t){t||(t=P9(e));var a;if(t){if(a=je.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=P9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return tt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ea.select(u).attr("transform",null).call(w0.positionText,0,0);var v=u.getBoundingClientRect(),h=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return Tm>=QU&&(je.savedBBoxes={},Tm=0),t&&(je.savedBBoxes[t]=d),Tm++,tt.extendFlat({},d)};function P9(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",Sm(r,t))};function Sm(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=yf(r,t),l=l.trim(),e[i]("transform",l),l};je.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var $U=/\s*sc.*/;je.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace($U,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var jU=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ea.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(jU);r===1&&t===1?a=[]:a=[yf(l,o),"scale("+r+","+t+")",yf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Cm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}je.getMarkerStandoff=Cm;var mf=Math.atan2,wo=Math.cos,Vs=Math.sin;function R9(e,r){var t=r[0],a=r[1];return[t*wo(e)-a*Vs(e),t*Vs(e)+a*wo(e)]}var z9,N9,F9,I9,Mm,Am;function Lm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||tt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=mf(h[1]-n,h[0]-a),m=mf(v[1]-n,v[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var g=u/180*Math.PI,_=f/180*Math.PI,w=z9/180*Math.PI,T=N9/180*Math.PI,b=w-g,M=wo(T)*Vs(b),C=Vs(T)*wo(_)-wo(T)*Vs(_)*wo(b);y=-mf(M,C)-Math.PI,z9=u,N9=f}var k=R9(d,[wo(y),0]),q=R9(m,[Vs(y),0]);t=mf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(Am===r.uid&&e.i===Mm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Am===r.uid&&e.i===Mm+1&&Ao(a)&&Ao(n)){var D=a-F9,P=n-I9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=mf(P,D)/Math.PI*180+90}else t=null}return F9=a,I9=n,Mm=e.i,Am=r.uid,t}je.getMarkerAngle=Lm});var gf=J((vse,j9)=>{"use strict";var Gs=Ir(),eV=Hr(),rV=Ht(),qm=br(),ko=Ie(),K9=ko.strTranslate,T0=at(),M0=Er(),Ws=ya(),Q9=Ev(),tV=Ma().OPPOSITE_SIDE,$9=/ [XY][0-9]* /,Dm=1.6,Em=1.6;function aV(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),y=!1,g=d&&d.font?d.font:{},_=g.family,w=g.size,T=g.color,b=g.weight,M=g.style,C=g.variant,k=g.textcase,q=g.lineposition,D=g.shadow,P=t.subtitlePropName,z=!!P,F=t.subtitlePlaceholder,O=(n.title||{}).subtitle||{text:"",font:{}},I=(O.text||"").trim(),W=!1,Z=1,V=O.font,Y=V.family,H=V.size,Q=V.color,K=V.weight,ne=V.style,pe=V.variant,ye=V.textcase,Se=V.lineposition,re=V.shadow,Ce;i==="title.text"?Ce="titleText":i.indexOf("axis")!==-1?Ce="axisTitleText":i.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var de=e._context.edits[Ce];function be(Oe,We){return Oe===void 0||We===void 0?!1:Oe.replace($9," % ")===We.replace($9," % ")}m===""?h=0:be(m,l)&&(de||(m=""),h=.2,y=!0),z&&(I===""?Z=0:be(I,F)&&(de||(I=""),Z=.2,W=!0)),t._meta?m=ko.templateString(m,t._meta):a._meta&&(m=ko.templateString(m,a._meta));var ge=m||I||de,Ae;v||(v=ko.ensureSingle(a._infolayer,"g","g-"+r),Ae=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(ge?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var $=null,U=r+"-subtitle",le=I||de;if(z&&($=v.selectAll("text."+U).data(le?[0]:[]),$.enter().append("text"),$.text(I).attr("class",U),$.exit().remove()),!ge)return v;function ve(Oe,We){ko.syncOrAsync([me,De],{title:Oe,subtitle:We})}function me(Oe){var We=Oe.title,Pe=Oe.subtitle,Be;!f&&Ae&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||Ae)&&(Be+=K9(0,(f.offset||0)-(Ae||0)))):Be=null,We.attr("transform",Be);function Ge(Te){if(Te){var ke=Gs.select(Te.node().parentNode).select("."+U);if(!ke.empty()){var He=Te.node().getBBox();if(He.height){var Je=He.y+He.height+Dm*H;ke.attr("y",Je)}}}}if(We.style("opacity",h*M0.opacity(T)).call(T0.font,{color:M0.rgb(T),size:Gs.round(w,2),family:_,weight:b,style:M,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Ws.convertToTspans,e,Ge),Pe&&!Pe.empty()){var ie=v.select("."+r+"-math-group"),xe=We.node().getBBox(),Ke=ie.node()?ie.node().getBBox():void 0,hr=Ke?Ke.y+Ke.height+Dm*H:xe.y+xe.height+Em*H,ze=ko.extendFlat({},u,{y:hr});Pe.attr("transform",Be),Pe.style("opacity",Z*M0.opacity(Q)).call(T0.font,{color:M0.rgb(Q),size:Gs.round(H,2),family:Y,weight:K,style:ne,variant:pe,textcase:ye,shadow:re,lineposition:Se}).attr(ze).call(Ws.convertToTspans,e)}return rV.previousPromises(e)}function De(Oe){var We=Oe.title,Pe=Gs.select(We.node().parentNode);if(s&&s.selection&&s.side&&m){Pe.attr("transform",null);var Be=tV[s.side],Ge=s.side==="left"||s.side==="top"?-1:1,ie=eV(s.pad)?s.pad:2,xe=T0.bBox(Pe.node()),Ke={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var ze in hr)for(var Te in hr[ze]){var ke=hr[ze][Te];Ke[Te]=Math.max(Ke[Te],ke)}var He={left:Ke.l,top:Ke.t,right:a.width-Ke.r,bottom:a.height-Ke.b},Je=s.maxShift||Ge*(He[s.side]-xe[s.side]),Ve=0;if(Je<0)Ve=Je;else{var Xe=s.offsetLeft||0,lr=s.offsetTop||0;xe.left-=Xe,xe.right-=Xe,xe.top-=lr,xe.bottom-=lr,s.selection.each(function(){var Qe=T0.bBox(this);ko.bBoxIntersect(xe,Qe,ie)&&(Ve=Math.max(Ve,Ge*(Qe[s.side]-xe[Be])+ie))}),Ve=Math.min(Je,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Je<0){var tr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Pe.attr("transform",K9(tr[0],tr[1]))}}}B.call(ve,$);function Re(Oe,We){Oe.text(We).on("mouseover.opacity",function(){Gs.select(this).transition().duration(Q9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Gs.select(this).transition().duration(Q9.HIDE_PLACEHOLDER).style("opacity",0)})}if(de&&(m?B.on(".opacity",null):(Re(B,l),y=!0),B.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){o!==void 0?qm.call("_guiRestyle",e,i,Oe,o):qm.call("_guiRelayout",e,i,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,u.x,u.y)}),z)){if(z&&!m){var Le=B.node().getBBox(),Fe=Le.y+Le.height+Em*H;$.attr("y",Fe)}I?$.on(".opacity",null):(Re($,F),W=!0),$.call(Ws.makeEditable,{gd:e}).on("edit",function(Oe){qm.call("_guiRelayout",e,"title.subtitle.text",Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ve)}).on("input",function(Oe){this.text(Oe||" ").call(Ws.positionText,$.attr("x"),$.attr("y"))})}return B.classed("js-placeholder",y),$&&!$.empty()&&$.classed("js-placeholder",W),v}j9.exports={draw:aV,SUBTITLE_PADDING_EM:Em,SUBTITLE_PADDING_MATHJAX_EM:Dm}});var E0=J((hse,n8)=>{"use strict";var nV=Ir(),iV=gs().utcFormat,nt=Ie(),lV=nt.numberFormat,wi=Hr(),Ml=nt.cleanNumber,oV=nt.ms2DateTime,e8=nt.dateTime2ms,Ti=nt.ensureNumber,r8=nt.isArrayOrTypedArray,Al=Gt(),A0=Al.FP_SAFE,jn=Al.BADNUM,sV=Al.LOG_CLIP,uV=Al.ONEWEEK,k0=Al.ONEDAY,S0=Al.ONEHOUR,t8=Al.ONEMIN,a8=Al.ONESEC,C0=Zt(),D0=jt(),L0=D0.HOUR_PATTERN,q0=D0.WEEKDAY_PATTERN;function bf(e){return Math.pow(10,e)}function Pm(e){return e!=null}n8.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var C=r.range[0],k=r.range[1];return .5*(C+k-2*sV*Math.abs(C-k))}else return jn}function l(b,M,C,k){if((k||{}).msUTC&&wi(b))return+b;var q=e8(b,C||r.calendar);if(q===jn)if(wi(b)){b=+b;var D=Math.floor(nt.mod(b+.05,1)*10),P=Math.round(b-D/10);q=e8(new Date(P))+D/10}else return jn;return q}function o(b,M,C){return oV(b,M,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Pm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return jn}function f(b,M){for(var C=new Array(M),k=0;kr.range[1]&&(C=!C);for(var k=C?-1:1,q=k*b,D=0,P=0;PF)D=P+1;else{D=q<(z+F)/2?P:P+1;break}}var O=r._B[D]||0;return isFinite(O)?m(b,r._m2,O):0},_=function(b){var M=r._rangebreaks.length;if(!M)return y(b,r._m,r._b);for(var C=0,k=0;kr._rangebreaks[k].pmax&&(C=k+1);return y(b,r._m2,r._B[C])}}r.c2l=r.type==="log"?i:Ti,r.l2c=r.type==="log"?bf:Ti,r.l2p=g,r.p2l=_,r.c2p=r.type==="log"?function(b,M){return g(i(b,M))}:g,r.p2c=r.type==="log"?function(b){return bf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Ml,r.c2d=r.c2r=r.l2d=r.l2r=Ti,r.d2p=r.r2p=function(b){return r.l2p(Ml(b))},r.p2d=r.p2r=_,r.cleanPos=Ti):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Ml(b),M)},r.r2d=r.r2c=function(b){return bf(Ml(b))},r.d2c=r.r2l=Ml,r.c2d=r.l2r=Ti,r.c2r=i,r.l2d=bf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return bf(_(b))},r.r2p=function(b){return r.l2p(Ml(b))},r.p2r=_,r.cleanPos=Ti):r.type==="date"?(r.d2r=r.r2d=nt.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,C){return r.l2p(l(b,0,C))},r.p2d=r.p2r=function(b,M,C){return o(_(b),M,C)},r.cleanPos=function(b){return nt.cleanDate(b,jn,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ti,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Ti(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Ti,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Ti(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,C,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var P=t[C0.id2name(D)];M=M.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CP[1]&&(k[D?0:1]=C),k[0]===k[1]){var z=r.l2r(M),F=r.l2r(C);if(M!==void 0){var O=z+1;C!==void 0&&(O=Math.min(O,F)),k[D?1:0]=O}if(C!==void 0){var I=F+1;M!==void 0&&(I=Math.max(I,z)),k[D?0:1]=I}}}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var C=nt.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=nt.dfltRange(r.calendar):n==="y"?q=D0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=M.dfltRange||D0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){nt.nestedProperty(r,b).set(q);return}var D=C[0]===null,P=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=nt.cleanDate(C[0],jn,r.calendar),C[1]=nt.cleanDate(C[1],jn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!nt.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=nt.constrain(r.r2l(C[0]),nt.MIN_MS+1e3,nt.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!wi(C[k]))if(!(D||P)&&wi(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-A0?C[k]=-A0:C[k]>A0&&(C[k]=A0),C[0]===C[1]){var F=Math.max(1,Math.abs(C[0]*1e-6));C[0]-=F,C[1]+=F}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var C=C0.getFromId({_fullLayout:t},r.overlaying);r.domain=C.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),P=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,O;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(F=0;FP&&(I=!I),I&&r._rangebreaks.reverse();var W=I?-1:1;for(r._m2=W*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(z?P:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=re.min&&(nere.max&&(re.max=pe),ye=!1)}ye&&P.push({min:ne,max:pe})}};for(C=0;C{"use strict";var i8=Hr(),Rm=Ie(),fV=Gt().BADNUM,P0=Rm.isArrayOrTypedArray,cV=Rm.isDateTime,vV=Rm.cleanNumber,l8=Math.round;s8.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(P0(n)&&!n.length)return"-";if(!i&&yV(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function o8(e){return Math.max(1,(e-1)/1e3)}function mV(e,r){for(var t=e.length,a=o8(t),n=0,i=0,l={},o=0;on*2}function yV(e){return P0(e[0])&&P0(e[1])}});var xf=J((pse,m8)=>{"use strict";var gV=Ir(),v8=Hr(),kl=Ie(),R0=Gt().FP_SAFE,bV=br(),xV=at(),h8=Zt(),_V=h8.getFromId,wV=h8.isLinked;m8.exports={applyAutorangeOptions:p8,getAutoRange:Nm,makePadFn:Fm,doAutoRange:MV,findExtremes:AV,concatExtremes:Om};function Nm(e,r){var t,a,n=[],i=e._fullLayout,l=Fm(i,r,0),o=Fm(i,r,1),s=Om(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return kl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(P=T-l(C)-o(k),P>b?z/P>M&&(q=C,D=k,M=z/P):z/T>M&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},M=z/T));function F(V,Y){return Math.max(V,o(Y))}if(v===h){var O=v-1,I=v+1;if(_)if(v===0)n=[0,1];else{var W=(v>0?f:u).reduce(F,0),Z=v/(1-Math.min(.5,W/T));n=v>0?[0,Z]:[Z,0]}else w?n=[Math.max(0,O),Math.max(1,I)]:n=[O,I]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):w&&(q.val-M*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-q.val-u8(r,C.val,k.val))/(T-l(q)-o(D)),n=[q.val-M*l(q),D.val+M*o(D)];return n=p8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),kl.simpleMap(n,r.l2r||Number)}function u8(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),C=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,T=-1/0,s)for(v=0;v0&&(w=h),h>T&&h-R0&&(w=h),h>T&&h=z;v--)P(v);return{min:a,max:n,opts:t}}function Im(e,r,t,a){d8(e,r,t,a,kV)}function Hm(e,r,t,a){d8(e,r,t,a,SV)}function d8(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function c8(e){return v8(e)&&Math.abs(e)=r}function CV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z0(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function LV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z0(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=CV(t,r),a=LV(a,r),[t,a]}});var dt=J((yse,H8)=>{"use strict";var kn=Ir(),Bt=Hr(),Xs=Ht(),wf=br(),gr=Ie(),Zs=gr.strTranslate,So=ya(),qV=gf(),Tf=Er(),on=at(),DV=Qn(),y8=am(),mse=jt(),ba=Gt(),EV=ba.ONEMAXYEAR,I0=ba.ONEAVGYEAR,H0=ba.ONEMINYEAR,PV=ba.ONEMAXQUARTER,Vm=ba.ONEAVGQUARTER,O0=ba.ONEMINQUARTER,RV=ba.ONEMAXMONTH,Js=ba.ONEAVGMONTH,B0=ba.ONEMINMONTH,sn=ba.ONEWEEK,Ra=ba.ONEDAY,Sl=Ra/2,Ai=ba.ONEHOUR,Mf=ba.ONEMIN,Y0=ba.ONESEC,zV=ba.ONEMILLI,NV=ba.ONEMICROSEC,Co=ba.MINUS_SIGN,V0=ba.BADNUM,Gm={K:"zeroline"},Wm={K:"gridline",L:"path"},Xm={K:"minor-gridline",L:"path"},C8={K:"tick",L:"path"},g8={K:"tick",L:"text"},b8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},G0=Ma(),_f=G0.MID_SHIFT,Lo=G0.CAP_SHIFT,Af=G0.LINE_SPACING,FV=G0.OPPOSITE_SIDE,U0=3,Ye=H8.exports={};Ye.setConvert=E0();var IV=zm(),ki=Zt(),HV=ki.idSort,OV=ki.isLinked;Ye.id2name=ki.id2name;Ye.name2id=ki.name2id;Ye.cleanId=ki.cleanId;Ye.list=ki.list;Ye.listIds=ki.listIds;Ye.getFromId=ki.getFromId;Ye.getFromTrace=ki.getFromTrace;var L8=xf();Ye.getAutoRange=L8.getAutoRange;Ye.findExtremes=L8.findExtremes;var BV=1e-4;function Qm(e){var r=(e[1]-e[0])*BV;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Ye.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>l?(gr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=Sl;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Bt(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=Bt(r.dtick),s=Bt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Bm(u,f)?u===2*sn&&f===2*Ra&&(e.dtick=sn):u===2*sn&&f===3*Ra?e.dtick=sn:u===sn&&!(r._input.minor||{}).nticks?e.dtick=Ra:w8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bm(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Bm(u,f)||(e.dtick=w8(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function w8(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=H0?u>=H0&&u<=EV?v=u:v=I0:t===Vm&&f>=O0?u>=O0&&u<=PV?v=u:v=Vm:f>=B0?u>=B0&&u<=RV?v=u:v=Js:t===sn&&f>=sn?v=sn:f>=Ra?v=Ra:t===Sl&&f>=Sl?v=Sl:t===Ai&&f>=Ai&&(v=Ai);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,y=0,g=0;gsn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(T?0:1);b--){var M=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(g=[],m=T8(r,!M)):(_=[],y=T8(r,!M));continue}if(C.tickmode==="sync"){g=[],m=XV(r);continue}var k=Qm(u),q=k[0],D=k[1],P=Bt(C.dtick),z=a==="log"&&!(P||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:I<=D;I=Ye.tickIncrement(I,V,f,n)){if(b&&W++,C.rangebreaks&&!f){if(I=h)break}if(g.length>d||I===O)break;O=I;var Y={value:I};b?(z&&I!==(I|0)&&(Y.simpleLabel=!0),i>1&&W%i&&(Y.skipLabel=!0),g.push(Y)):(Y.minor=!0,_.push(Y))}}if(!_||_.length<2)s=!1;else{var H=(_[1].value-_[0].value)*(o?-1:1);gG(H,r.tickformat)||(s=!1)}if(!s)w=g;else{var Q=g.concat(_);l&&g.length&&(Q=Q.slice(1)),Q=Q.sort(function(Fe,Oe){return Fe.value-Oe.value}).filter(function(Fe,Oe,We){return Oe===0||Fe.value!==We[Oe-1].value});var K=Q.map(function(Fe,Oe){return Fe.minor===void 0&&!Fe.skipLabel?Oe:null}).filter(function(Fe){return Fe!==null});K.forEach(function(Fe){s.map(function(Oe){var We=Fe+Oe;We>=0&&We-1;ge--){if(g[ge].drop){g.splice(ge,1);continue}g[ge].value=Um(g[ge].value,r);var U=r.c2p(g[ge].value);(Ae?$>U-B:$h||Peh&&(We.periodX=h),Pen&&hI0)r/=I0,a=n(10),e.dtick="M"+12*Mi(r,a,N0);else if(i>Js)r/=Js,e.dtick="M"+Mi(r,1,M8);else if(i>Ra){if(e.dtick=Mi(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:ZV),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Ai?e.dtick=Mi(r,Ai,M8):i>Mf?e.dtick=Mi(r,Mf,A8):i>Y0?e.dtick=Mi(r,Y0,A8):(a=n(10),e.dtick=Mi(r,a,N0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Mi(r,a,N0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ry(e)?(e.tick0=0,a=1,e.dtick=Mi(r,a,JV)):(e.tick0=0,a=n(10),e.dtick=Mi(r,a,N0));if(e.dtick===0&&(e.dtick=1),!Bt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function P8(e){var r=e.dtick;if(e._tickexponent=0,!Bt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Ra&&n<=10||r>=Ra*15)e._tickround="d";else if(r>=Mf&&n<=16||r>=Ai)e._tickround="M";else if(r>=Y0&&n<=19||r>=Mf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Bt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Bt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Ks(e.exponentformat)&&e.exponentformat!=="SI extended"&&!$m(s)||Ks(e.exponentformat)&&e.exponentformat==="SI extended"&&!jm(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Bt(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?E8:D8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(kn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?g:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=Sf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function QV(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=kf(Math.pow(10,l),e,n,a);else if(Bt(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Ks(m)&&m!=="SI extended"&&$m(h)||Ks(m)&&m==="SI extended"&&jm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Co)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Co)+d:(r.text=kf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function $V(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jV(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function eG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=kf(r.x,e,n,a)}function rG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=tG(i);if(l[1]>=100)r.text=kf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=Co+r.text)}}}else r.text=kf(r.x,e,n,a)}function tG(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var z8=["f","p","n","\u03BC","m","","k","M","G","T"],aG=["q","r","y","z","a",...z8,"P","E","Z","Y","R","Q"],Ks=e=>["SI","SI extended","B"].includes(e);function $m(e){return e>14||e<-15}function jm(e){return e>32||e<-30}function nG(e,r){return Ks(r)?!!(r==="SI extended"&&jm(e)||r!=="SI extended"&&$m(e)):!1}function kf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Bt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};P8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Co);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":Ks(l)&&(e+=l==="SI extended"?aG[o/3+10]:z8[o/3+5])}return n?Co+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Js}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Km(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),Km(r,m,a,!0),Km(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=yG(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?Pe.bottom-Oe:0,We))));var xe=0,Ke=0;if(r._shiftPusher&&(xe=Math.max(We,Pe.height>0?Le==="l"?Oe-Pe.left:Pe.right-Oe:0),r.title.text!==s._dfltTitle[f]&&(Ke=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Ke+=S8(r))),r._fullDepth=Math.max(xe,Ke)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],ze=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Le==="b"?Be[Le]=r._depth:(Be[Le]=r._depth=Math.max(Pe.width>0?Oe-Pe.top:0,We),hr.reverse()),Pe.width>0){var Te=Pe.right-(r._offset+r._length);Te>0&&(Be.xr=1,Be.r=Te);var ke=r._offset-Pe.left;ke>0&&(Be.xl=0,Be.l=ke)}}else if(Le==="l"?(r._depth=Math.max(Pe.height>0?Oe-Pe.left:0,We),Be[Le]=r._depth-ze):(r._depth=Math.max(Pe.height>0?Pe.right-Oe:0,We),Be[Le]=r._depth+ze,hr.reverse()),Pe.height>0){var He=Pe.bottom-(r._offset+r._length);He>0&&(Be.yb=0,Be.b=He);var Je=r._offset-Pe.top;Je>0&&(Be.yt=1,Be.t=Je)}Be[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Le]+=S8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ge={x:0,y:0,r:0,l:0,t:0,b:0},Ge[Fe]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ge[Fe]+=We),r.mirror===!0||r.mirror==="ticks"?Ge[v]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ge[v]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Re&&(ie=wf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(k8(Be,r.automargin),k8(Ge,r.automargin)),Xs.autoMargin(e,ey(r),Be),Xs.autoMargin(e,F8(r),Ge),Xs.autoMargin(e,I8(r),ie)}),gr.syncOrAsync(me)}};function k8(e,r){if(e){var t=Object.keys(b8).reduce(function(a,n){return r.indexOf(n)!==-1&&b8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function iG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Zs(n+e._offset+e.l2p(Zm(h))+t,i+a)}:function(h){return Zs(i+a,n+e._offset+e.l2p(Zm(h))+t)}};function Zm(e){return e.periodX!==void 0?e.periodX:e.x}function uG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=U0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*Lo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=U0),s&&f==="top"&&(h-=d*(1-Lo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(O){return a.indexOf(O)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,y=h?e.ticklen:0;if(v?y*=-1:f&&(y=0),h&&(d+=y,t)){var g=gr.deg2rad(t);d=y*Math.cos(g)+1,m=y*Math.sin(g)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},w,T,b,M,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,P;if(q==="x")P=!v&&k==="bottom"||v&&k==="top",M=P?1:-1,v&&(M*=-1),w=m*M,T=r+d*M,b=P?1:-.2,Math.abs(D)===90&&(v?b+=_f:D===-90&&k==="bottom"?b=Lo:D===90&&k==="top"?b=_f:b=.5,C=_f/2*(D/90)),_.xFn=function(O){return O.dx+w+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*b},_.anchorFn=function(O,I){if(f){if(o)return"end";if(s)return"start"}return!Bt(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},_.heightFn=function(O,I,W){return I<-60||I>60?-.5*W:e.side==="top"!==v?-W:0};else if(q==="y"){if(P=!v&&k==="left"||v&&k==="right",M=P?1:-1,v&&(M*=-1),w=d,T=m*M,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=Lo:b=.5),v){var z=Bt(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*Lo*M,b=0}}_.xFn=function(O){return O.dx+r-(w+O.fontSize*b)*M+C*O.fontSize},_.yFn=function(O){return O.dy+T+O.fontSize*_f},_.anchorFn=function(O,I){return Bt(I)&&Math.abs(I)===90?"middle":P?"end":"start"},_.heightFn=function(O,I,W){return e.side==="right"&&(I*=-1),I<-30?-W:I<30?-.5*W:0}}return _};function W0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,W0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Tf.stroke(kn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return on.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),X0(r,[C8]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var y=m?h:d;if(y){var g=y.selectAll("path."+a).data(m?l:i,W0);g.exit().remove(),g.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),g.attr("transform",t.transFn).attr("d",t.path).each(function(_){return Tf.stroke(kn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return on.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&g.attr("d",t.path)}}X0(r,[Wm,Xm])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return HV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Tf.stroke,r.zerolinecolor||Tf.defaultLine).style("stroke-width",on.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),X0(r,[Gm])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(H){return H.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],W0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(H){var Q=kn.select(this),K=e._promises.length;Q.call(So.positionText,s.xFn(H),s.yFn(H)).call(on.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(So.convertToTspans,e),e._promises[K]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),X0(r,[g8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(H){kn.select(this).select("text").call(So.positionText,s.xFn(H),s.yFn(H))});function d(H,Q){H.each(function(K){var ne=kn.select(this),pe=ne.select(".text-math-group"),ye=s.anchorFn(K,Q),Se=t.transFn.call(ne.node(),K)+(Bt(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(K)+","+(s.yFn(K)-K.fontSize/2)+")":""),re=So.lineCount(ne),Ce=Af*K.fontSize,de=s.heightFn(K,Bt(Q)?+Q:0,(re-1)*Ce);if(de&&(Se+=Zs(0,de)),pe.empty()){var be=ne.select("text");be.attr({transform:Se,"text-anchor":ye}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=on.bBox(pe.node()).width,Ae=ge*{end:-.5,start:.5}[ye];pe.attr("transform",Se+Zs(Ae,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Q=H.indexOf("hide")!==-1,K=r._id.charAt(0)==="x",ne=0,pe=K?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var ye=gr.simpleMap(r.range,r.r2l);ne=r.l2p(ye[0])+r._offset,pe=r.l2p(ye[1])+r._offset}var Se=Math.min(ne,pe),re=Math.max(ne,pe),Ce=r.side,de=1/0,be=-1/0;v.each(function($){var U=kn.select(this),le=U.select(".text-math-group");if(le.empty()){var ve=on.bBox(U.node()),me=0;K?(ve.right>re||ve.leftre||ve.top+(r.tickangle?0:$.fontSize/4)r["_visibleLabelMin_"+ye._id]?U.style("display","none"):re.K==="tick"&&!Se&&U.node().style.display!=="none"&&U.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var y=null;function g(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var H=0,Q=[],K,ne=1;v.each(function(Be){H=Math.max(H,Be.fontSize);var Ge=r.l2p(Be.x),ie=Jm(this),xe=on.bBox(ie.node());ne=Math.max(ne,So.lineCount(ie)),Q.push({top:0,bottom:10,height:10,left:Ge-xe.width/2,right:Ge+xe.width/2+2,width:xe.width+2})});var pe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ye=o.length,Se=Math.abs((o[ye-1].x-o[0].x)*r._m)/(ye-1),re=pe?Se/2:Se,Ce=pe?r.ticklen:H*1.25*ne,de=Math.sqrt(Math.pow(re,2)+Math.pow(Ce,2)),be=re/de,ge=r.autotickangles.map(function(Be){return Be*Math.PI/180}),Ae=ge.find(function(Be){return Math.abs(Math.cos(Be))<=be});Ae===void 0&&(Ae=ge.reduce(function(Be,Ge){return Math.abs(Math.cos(Be))Z*W&&(F=W,D[q]=P[q]=O[q])}var V=Math.abs(F-z);V-M>0?(V-=M,M*=1+M/V):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=T.p2r(T.r2p(P[k])+C*M),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var Y=gr.syncOrAsync(_);return Y&&Y.then&&e._promises.push(Y),Y};function fG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,W0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Tf.stroke,r.dividercolor).style("stroke-width",on.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function S8(e){var r=e.title.font.size,t=(e.title.text.match(So.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Lo+t*Af):t?r*(t+1)*Af:r}function cG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(So.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*Lo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(_f+o*Af));else{var s=Sf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(m={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var g=on.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,qV.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===V0)&&(N8(r,0)||!vG(e,r,t,a)||hG(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return N8(e,t.x)})};function N8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=NV:/%L/.test(r)?e>=zV:/%[SX]/.test(r)?e>=Y0:/%M/.test(r)?e>=Mf:/%[HI]/.test(r)?e>=Ai:/%p/.test(r)?e>=Sl:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=sn:/%[Bbm]/.test(r)?e>=B0:/%[q]/.test(r)?e>=O0:/%[Yy]/.test(r)?e>=H0:!0}});var B8=J((gse,O8)=>{"use strict";O8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var ty=J((bse,Y8)=>{"use strict";var bG=B8();Y8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(bG(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var V8=J((xse,U8)=>{var xG={left:0,top:0};U8.exports=_G;function _G(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=wG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function wG(e){return e===window||e===document||e===document.body?xG:e.getBoundingClientRect()}});var ay=J((_se,G8)=>{"use strict";var TG=Dp();function MG(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}G8.exports=TG&&MG()});var X8=J((wse,W8)=>{"use strict";W8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var K8=J((Tse,J8)=>{"use strict";var Z8=Ie(),AG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];J8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=Z8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=Z8.constrain(Math.floor(t*3),0,2),AG[t][r]}});var $8=J((Mse,Q8)=>{"use strict";var kG=uf(),SG=Xv(),CG=ef().getGraphDiv,LG=Ku(),ny=Q8.exports={};ny.wrapped=function(e,r,t){e=CG(e),e._fullLayout&&SG.clear(e._fullLayout._uid+LG.HOVERID),ny.raw(e,r,t)};ny.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&kG.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var ei=J((Ase,tw)=>{"use strict";var qG=V8(),iy=Pp(),DG=ay(),EG=Ie().removeElement,PG=jt(),qo=tw.exports={};qo.align=X8();qo.getCursor=K8();var ew=$8();qo.unhover=ew.wrapped;qo.unhoverRaw=ew.raw;qo.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,DG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(T,b,M){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(M=>{var C=v[M];!b[M]&&typeof C!="function"&&(b[M]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function rw(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}qo.coverSlip=rw;function j8(e){return qG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cl=J((kse,aw)=>{"use strict";aw.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var lw=J((Sse,iw)=>{"use strict";var ly=Cl(),Cf="data-savedcursor",nw="!!";iw.exports=function(r,t){var a=r.attr(Cf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var oy=ma(),RG=mi();ow.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:RG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:oy({editType:"legend"}),grouptitlefont:oy({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:oy({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var qf=J(Lf=>{"use strict";Lf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Lf.isVertical=function(r){return r.orientation!=="h"};Lf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Lf.getId=function(r){return r._id||"legend"}});var fy=J((qse,sw)=>{"use strict";var Z0=br(),un=Ie(),zG=ct(),NG=Wn(),FG=sy(),IG=ks(),uy=qf();function HG(e,r,t,a,n){var i=r[e]||{},l=zG.newContainer(t,e);function o(H,Q){return un.coerce(i,l,FG,H,Q)}var s=un.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,v=function(H,Q){var K=f._input,ne=f;return un.coerce(K,ne,NG,H,Q)},h=t.font||{},d=un.coerceFont(o,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,y=!1,g="normal",_=(t.shapes||[]).filter(function(H){return H.showlegend});function w(H){return Z0.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(w).forEach(function(H){H.visible&&m++;for(var Q=0;QH.legend.length)for(var ne=H.legend.length;ne(e==="legend"?1:0));if(C===!1&&(t[e]=void 0),!(C===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),C!==!1)){o("borderwidth");var k=o("orientation"),q=o("yref"),D=o("xref"),P=k==="h",z=q==="paper",F=D==="paper",O,I,W,Z="left";P?(O=0,Z0.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,W="bottom"):(I=1,W="top"):z?(I=-.1,W="top"):(I=0,W="bottom")):(I=1,W="auto",F?O=1.02:(O=1,Z="right")),un.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:O}},"x"),un.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:I}},"y"),o("traceorder",g),uy.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",Z),o("yanchor",W),o("maxheight"),o("valign"),un.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",P?"left":"top");var Y=un.extendFlat({},s,{size:un.bigFont(s.size)});un.coerceFont(o,"title.font",Y);let H=n>1;o("titleclick",H?"toggle":!1),o("titledoubleclick",H?"toggleothers":!1)}}}sw.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Ll=br(),cy=Ie(),OG=cy.pushUnique,BG=qf(),uw=!0;vy.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&uw&&t.data&&t._context.showTips&&(cy.notifier(cy._(t,"Double-click on legend to isolate one trace"),"long"),uw=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData,v=(i.shapes||[]).filter(function(Re){return Re.showlegend}),h=f.concat(v),d=l.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,y,g,_,w,T,b,M={},C=[],k=[],q=[];function D(Re,Le){var Fe=C.indexOf(Re),Oe=M.visible;return Oe||(Oe=M.visible=[]),C.indexOf(Re)===-1&&(C.push(Re),Fe=C.length-1),Oe[Fe]=Le,Fe}var P=(i.shapes||[]).map(function(Re){return Re._input}),z=!1;function F(Re,Le){P[Re].visible=Le,z=!0}function O(Re,Le){if(!(l.groupTitle&&!s)){var Fe=Re._fullInput||Re,Oe=Fe._isShape,We=Fe.index;We===void 0&&(We=Fe._index);var Pe=Fe.visible===!1?!1:Le;Oe?F(We,Pe):D(We,Pe)}}var I=d.legend,W=d._fullInput,Z=W&&W._isShape;if(!Z&&Ll.traceIs(d,"pie-like")){var V=l.label,Y=u.indexOf(V);if(n==="toggle")Y===-1?u.push(V):u.splice(Y,1);else if(n==="toggleothers"){var H=Y!==-1,Q=[];for(y=0;y{"use strict";fw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hw=J((Pse,vw)=>{"use strict";var cw=br(),py=qf();vw.exports=function(r,t,a){var n=t._inHover,i=py.isGrouped(t),l=py.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(H,Q,K){if(t.visible!==!1&&!(a&&H!==t._id))if(Q===""||!py.isGrouped(t)){var ne="~~i"+v;s.push(ne),o[ne]=[K],v++}else s.indexOf(Q)===-1?(s.push(Q),u=!0,o[Q]=[K]):o[Q].push(K)}for(d=0;dF&&(z=F)}D[d][0]._groupMinRank=z,D[d][0]._preGroupSort=d}var O=function(H,Q){return H[0]._groupMinRank-Q[0]._groupMinRank||H[0]._preGroupSort-Q[0]._preGroupSort},I=function(H,Q){return H.trace.legendrank-Q.trace.legendrank||H._preSort-Q._preSort};for(D.forEach(function(H,Q){H[0]._preGroupSort=Q}),D.sort(O),d=0;d{"use strict";var J0=Ie();function dw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Do.formatPiePercent=function(r,t){var a=dw((r*100).toPrecision(3));return J0.numSeparate(a,t)+"%"};Do.formatPieValue=function(r,t){var a=dw(r.toPrecision(10));return J0.numSeparate(a,t)};Do.getFirstFilled=function(r,t){if(J0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var YG=at(),UG=Er();pw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?YG.pointStyle(r,a,n,t):UG.fill(r,t.color)}});var Q0=J((Nse,bw)=>{"use strict";var yw=Er(),gw=K0().castOption,VG=mw();bw.exports=function(r,t,a,n){var i=a.marker.line,l=gw(i.color,t.pts)||yw.defaultLine,o=gw(i.width,t.pts)||0;r.call(VG,t,a,n).style("stroke-width",o).call(yw.stroke,l)}});var by=J((Fse,Aw)=>{"use strict";var za=Ir(),my=br(),ka=Ie(),xw=ka.strTranslate,fn=at(),Sn=Er(),yy=An().extractOpts,$0=ln(),GG=Q0(),WG=K0().castOption,XG=dy(),_w=12,ww=5,Eo=2,ZG=10,Qs=5;Aw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+XG.itemGap*2)/2,s=xw(o,0),u=function(k,q,D,P){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?P:Math.min(z,D)};r.each(function(k){var q=za.select(this),D=ka.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var P=a.indentation,z=a.valign,F=k[0].lineHeight,O=k[0].height;if(z==="middle"&&P===0||!F||!O)D.attr("transform",null);else{var I={top:1,bottom:-1}[z],W=I*(.5*(F-O+3))||0,Z=a.indentation;D.attr("transform",xw(Z,W))}var V=D.selectAll("g.legendfill").data([k]);V.enter().append("g").classed("legendfill",!0);var Y=D.selectAll("g.legendlines").data([k]);Y.enter().append("g").classed("legendlines",!0);var H=D.selectAll("g.legendsymbols").data([k]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(g).each(b).each(T).each(f).each(v).each(_).each(w);function f(k){var q=Tw(k),D=q.showFill,P=q.showLine,z=q.showGradientLine,F=q.showGradientFill,O=q.anyFill,I=q.anyLine,W=k[0],Z=W.trace,V,Y,H=yy(Z),Q=H.colorscale,K=H.reversescale,ne=function(be){if(be.size())if(D)fn.fillGroupStyle(be,t,!0);else{var ge="legendfill-"+Z.uid;fn.gradient(be,t,ge,gy(K),Q,"fill")}},pe=function(be){if(be.size()){var ge="legendline-"+Z.uid;fn.lineGroupStyle(be),fn.gradient(be,t,ge,gy(K),Q,"stroke")}},ye=$0.hasMarkers(Z)||!O?"M5,0":I?"M5,-2":"M5,-3",Se=za.select(this),re=Se.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",ye+"h"+l+"v6h-"+l+"z").call(ne),P||z){var Ce=u(void 0,Z.line,ZG,ww);Y=ka.minExtend(Z,{line:{width:Ce}}),V=[ka.minExtend(W,{trace:Y})]}var de=Se.select(".legendlines").selectAll("path").data(P||z?[V]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",ye+(z?"l"+l+",0.0001":"h"+l)).call(P?fn.lineGroupStyle:pe)}function v(k){var q=Tw(k),D=q.anyFill,P=q.anyLine,z=q.showLine,F=q.showMarker,O=k[0],I=O.trace,W=!F&&!P&&!D&&$0.hasText(I),Z,V;function Y(re,Ce,de,be){var ge=ka.nestedProperty(I,re).get(),Ae=ka.isArrayOrTypedArray(ge)&&Ce?Ce(ge):ge;if(i&&Ae&&be!==void 0&&(Ae=be),de){if(Aede[1])return de[1]}return Ae}function H(re){return O._distinct&&O.index&&re[O.index]?re[O.index]:re[0]}if(F||W||z){var Q={},K={};if(F){Q.mc=Y("marker.color",H),Q.mx=Y("marker.symbol",H),Q.mo=Y("marker.opacity",ka.mean,[.2,1]),Q.mlc=Y("marker.line.color",H),Q.mlw=Y("marker.line.width",ka.mean,[0,5],Eo),Q.mld=I._isShape?"solid":Y("marker.line.dash",H),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=Y("marker.size",ka.mean,[2,16],_w);Q.ms=ne,K.marker.size=ne}z&&(K.line={width:Y("line.width",H,[0,10],ww)}),W&&(Q.tx="Aa",Q.tp=Y("textposition",H),Q.ts=10,Q.tc=Y("textfont.color",H),Q.tf=Y("textfont.family",H),Q.tw=Y("textfont.weight",H),Q.ty=Y("textfont.style",H),Q.tv=Y("textfont.variant",H),Q.tC=Y("textfont.textcase",H),Q.tE=Y("textfont.lineposition",H),Q.tS=Y("textfont.shadow",H)),Z=[ka.minExtend(O,Q)],V=ka.minExtend(I,K),V.selectedpoints=null,V.texttemplate=null}var pe=za.select(this).select("g.legendpoints"),ye=pe.selectAll("path.scatterpts").data(F?Z:[]);ye.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ye.exit().remove(),ye.call(fn.pointStyle,V,t),F&&(Z[0].mrc=3);var Se=pe.selectAll("g.pointtext").data(W?Z:[]);Se.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Se.exit().remove(),Se.selectAll("text").call(fn.textPointStyle,V,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,y(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=za.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O){var I=za.select(this),W=q[O[0]].marker,Z=u(void 0,W.line,Qs,Eo);I.attr("d",O[1]).style("stroke-width",Z+"px").call(Sn.fill,W.color),Z&&I.call(Sn.stroke,W.line.color)})}function d(k){y(k,this)}function m(k){y(k,this,"funnel")}function y(k,q,D){var P=k[0].trace,z=P.marker||{},F=z.line||{},O=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=D?P.visible&&P.type===D:my.traceIs(P,"bar"),W=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(I?[k]:[]);W.enter().append("path").classed("legend"+D,!0).attr("d",O).attr("transform",s),W.exit().remove(),W.each(function(Z){var V=za.select(this),Y=Z[0],H=u(Y.mlw,z.line,Qs,Eo);V.style("stroke-width",H+"px");var Q=Y.mcc;if(!a._inHover&&"mc"in Y){var K=yy(z),ne=K.mid;ne===void 0&&(ne=(K.max+K.min)/2),Q=fn.tryColorscale(z,"")(ne)}var pe=Q||Y.mc||z.color,ye=z.pattern,Se=fn.getPatternAttr,re=ye&&(Se(ye.shape,0,"")||Se(ye.path,0,""));if(re){var Ce=Se(ye.bgcolor,0,null),de=Se(ye.fgcolor,0,null),be=ye.fgopacity,ge=Mw(ye.size,8,10),Ae=Mw(ye.solidity,.5,1),B="legend-"+P.uid;V.call(fn.pattern,"legend",t,B,re,ge,Ae,Q,ye.fillmode,Ce,de,be)}else V.call(Sn.fill,pe);H&&Sn.stroke(V,Y.mlc||F.color)})}function g(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&my.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var P=za.select(this);if((q.boxpoints==="all"||q.points==="all")&&Sn.opacity(q.fillcolor)===0&&Sn.opacity((q.line||{}).color)===0){var z=ka.minExtend(q,{marker:{size:i?_w:ka.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(fn.pointStyle,z,t)}else{var F=u(void 0,q.line,Qs,Eo);P.style("stroke-width",F+"px").call(Sn.fill,q.fillcolor),F&&Sn.stroke(P,q.line.color)}})}function _(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(P,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=za.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,Qs,Eo);F.style("stroke-width",I+"px").call(Sn.fill,O.fillcolor),I&&Sn.stroke(F,O.line.color)})}function w(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(P,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=za.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,Qs,Eo);F.style("fill","none").call(fn.dashLine,O.line.dash,I),I&&Sn.stroke(F,O.line.color)})}function T(k){M(k,this,"pie")}function b(k){M(k,this,"funnelarea")}function M(k,q,D){var P=k[0],z=P.trace,F=D?z.visible&&z.type===D:my.traceIs(z,D),O=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(O.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),O.exit().remove(),O.size()){var I=z.marker||{},W=u(WG(I.line.width,P.pts),I.line,Qs,Eo),Z="pieLike",V=ka.minExtend(z,{marker:{line:{width:W}}},Z),Y=ka.minExtend(P,{trace:V},Z);GG(O,Y,V,t)}}function C(k){var q=k[0].trace,D,P=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=za.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,O){var I=za.select(this),W=yy(q),Z=W.colorscale,V=W.reversescale,Y=function(ne){if(ne.size()){var pe="legendfill-"+q.uid;fn.gradient(ne,t,pe,gy(V,D==="radial"),Z,"fill")}},H;if(Z){if(!D){var K=Z.length;H=O===0?Z[V?K-1:0][1]:O===1?Z[V?0:K-1][1]:Z[Math.floor((K-1)/2)][1]}}else{var Q=q.vertexcolor||q.facecolor||q.color;H=ka.isArrayOrTypedArray(Q)?Q[O]||Q[0]:Q}I.attr("d",F[0]),H?I.call(Sn.fill,H):I.call(Y)})}};function gy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Tw(e){var r=e[0].trace,t=r.contours,a=$0.hasLines(r),n=$0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function Mw(e,r,t){return e&&ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var Ty=J((Ise,Rw)=>{"use strict";var Ya=Ir(),Nt=Ie(),_y=Ht(),Po=br(),rh=uf(),xy=ei(),Ft=at(),Df=Er(),Ro=ya(),kw=hy().handleItemClick,Sw=hy().handleTitleClick,Yt=dy(),wy=Ma(),Ew=wy.LINE_SPACING,js=wy.FROM_TL,Cw=wy.FROM_BR,Lw=hw(),JG=by(),eu=qf(),$s=1,KG=/^legend[0-9]*$/;Rw.exports=function(r,t){if(t)qw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ya.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(KG)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),_y.autoMargin(e,n);var y=Nt.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Nt.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Nt.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(Df.stroke,t.bordercolor).call(Df.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Nt.ensureSingle(y,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Nt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ft.font,T.font).text(T.text),eh(b,w,e,t,$s),!o&&(t.titleclick||t.titledoubleclick)&&eW(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Nt.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Yt.scrollBarEnterAttrs).call(Df.fill,Yt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Nt.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){let D=q[0],P=D.trace;if(D.groupTitle){let z=P.legendgroup,F=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(F).some(function(I){return I.legendgroup===z&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return Po.traceIs(P,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Ya.select(this).call($G,e,t)}).call(JG,e,t).each(function(q){o||q[0].groupTitle&&t.groupclick==="toggleitem"||Ya.select(this).call(jG,e,n)}),Nt.syncOrAsync([_y.previousPromises,function(){return aW(e,C,k,t,w)},function(){var q=a._size,D=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(T.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),ve=e._fullData.concat(le).some(function(me){let De=me.legend||"legend";var Re=Array.isArray(De)?De.includes(n):De===n;return Re&&me.visible===!0});b.style("opacity",ve?1:.5)}if(!o){var F,O;P?F=q.l+q.w*t.x-js[th(t)]*t._width:F=a.width*t.x-js[th(t)]*t._width,z?O=q.t+q.h*(1-t.y)-js[ah(t)]*t._effHeight:O=a.height*(1-t.y)-js[ah(t)]*t._effHeight;var I=nW(e,n,F,O);if(I)return;if(a.margin.autoexpand){var W=F,Z=O;F=P?Nt.constrain(F,0,a.width-t._width):W,O=z?Nt.constrain(O,0,a.height-t._effHeight):Z,F!==W&&Nt.log("Constrain "+n+".x to make legend fit inside graph"),O!==Z&&Nt.log("Constrain "+n+".y to make legend fit inside graph")}Ft.setTranslate(y,F,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var V=t._effHeight;o&&(V=t._height),_.attr({width:t._width-D,height:V-D,x:D/2,y:D/2}),Ft.setTranslate(w,0,0),g.select("rect").attr({width:t._width-2*D,height:V-2*D,x:D,y:D}),Ft.setClipUrl(w,i,e),Ft.setRect(M,0,0,0,0),delete t._scrollY}else{var Y=Math.max(Yt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-Y-2*Yt.scrollBarMargin,Q=t._height-t._effHeight,K=H/Q,ne=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Yt.scrollBarWidth+Yt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ne}),Ft.setClipUrl(w,i,e),ge(ne,Y,K),y.on("wheel",function(){ne=Nt.constrain(t._scrollY+Ya.event.deltaY/Q*H,0,Q),ge(ne,Y,K),ne!==0&&ne!==Q&&Ya.event.preventDefault()});var pe,ye,Se,re=function(le,ve,me){var De=(me-ve)/K+le;return Nt.constrain(De,0,Q)},Ce=function(le,ve,me){var De=(ve-me)/K+le;return Nt.constrain(De,0,Q)},de=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"?pe=le.changedTouches[0].clientY:pe=le.clientY,Se=ne}).on("drag",function(){var le=Ya.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ye=le.changedTouches[0].clientY:ye=le.clientY,ne=re(Se,pe,ye),ge(ne,Y,K))});M.call(de);var be=Ya.behavior.drag().on("dragstart",function(){var le=Ya.event.sourceEvent;le.type==="touchstart"&&(pe=le.changedTouches[0].clientY,Se=ne)}).on("drag",function(){var le=Ya.event.sourceEvent;le.type==="touchmove"&&(ye=le.changedTouches[0].clientY,ne=Ce(Se,pe,ye),ge(ne,Y,K))});w.call(be)}function ge(le,ve,me){t._scrollY=e._fullLayout[n]._scrollY=le,Ft.setTranslate(w,0,-le),Ft.setRect(M,t._width,Yt.scrollBarMargin+le*me,Yt.scrollBarWidth,ve),g.select("rect").attr("y",D+le)}if(e._context.edits.legendPosition){var Ae,B,$,U;y.classed("cursor-move",!0),xy.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==M.node()){var ve=Ft.getTranslate(y);$=ve.x,U=ve.y}},moveFn:function(le,ve){if($!==void 0&&U!==void 0){var me=$+le,De=U+ve;Ft.setTranslate(y,me,De),Ae=xy.align(me,t._width,q.l,q.l+q.w,t.xanchor),B=xy.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(Ae!==void 0&&B!==void 0){var le={};le[n+".x"]=Ae,le[n+".y"]=B,Po.call("_guiRelayout",e,le)}},clickFn:function(le,ve){var me=l.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return ve.clientX>=De.left&&ve.clientX<=De.right&&ve.clientY>=De.top&&ve.clientY<=De.bottom});me.size()>0&&Pw(e,t,me,le,ve)}})}}],e)}}function j0(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function Pw(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),Po.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=rh.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&kw(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=rh.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&kw(t,e,r,s)}}function $G(e,r,t){var a=eu.getId(t),n=e.data()[0][0],i=n.trace,l=Po.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Nt.templateString(u,i._meta))));var v=Nt.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ft.font,f).text(o?Dw(u,s):u);var h=t.indentation+t.itemwidth+Yt.itemGap*2;Ro.positionText(v,h,0),o?v.call(Ro.makeEditable,{gd:r,text:u}).call(eh,e,r,t).on("edit",function(d){this.text(Dw(d,s)).call(eh,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Po.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Po.call("_guiRestyle",r,y,i.index)}):eh(v,e,r,t)}function Dw(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function jG(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Nt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Df.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Pw(r,o,e,i,Ya.event)}}))}function eW(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Po.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Nt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Df.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:Ya.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(rh.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&Sw(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,rh.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&Sw(r,t,t.titledoubleclick))}))}function eh(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Ro.convertToTspans(e,t,function(){rW(r,t,a,n)})}function rW(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=eu.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===$s?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*Ew,h,d;if(o){var m=Ft.bBox(o);h=m.height,d=m.width,a===$s?Ft.setTranslate(l,u,u+h*.75):Ft.setTranslate(l,0,h*.25)}else{var y="."+s+(a===$s?"title":"")+"text",g=e.select(y),_=Ro.lineCount(g),w=g.node();if(h=v*_,d=w?Ft.bBox(w).width:0,a===$s)t.title.side==="left"&&(d+=Yt.itemGap*2),Ro.positionText(g,u+Yt.titlePad,u+v);else{var T=Yt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=Yt.itemGap,d-=t.indentation+t.itemwidth),Ro.positionText(g,T,-v*((_-1)/2-.3))}}a===$s?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=v,n.height=Math.max(h,16)+3,n.width=d)}function tW(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function aW(e,r,t,a,n){var i=e._fullLayout,l=eu.getId(a);a||(a=i[l]);var o=i._size,s=eu.isVertical(a),u=eu.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,h=2*v,d=Yt.itemGap,m=a.indentation+a.itemwidth+d*2,y=2*(v+d),g=ah(a),_=a.y<0||a.y===0&&g==="top",w=a.y>1||a.y===1&&g==="bottom",T=a.tracegroupgap,b={};let{orientation:M,yref:C}=a,{maxheight:k}=a,q=_||w||M!=="v"||C!=="paper";k||(k=q?.5:1);let D=q?i.height:o.h;a._maxHeight=Math.max(k>1?k:k*D,30);var P=0;a._width=0,a._height=0;var z=tW(a);if(s)t.each(function(le){var ve=le[0].height;Ft.setTranslate(this,v+z[0],v+z[1]+a._height+ve/2+d),a._height+=ve,a._width=Math.max(a._width,le[0].width)}),P=m+a._width,a._width+=d+m+h,a._height+=y,u&&(r.each(function(le,ve){Ft.setTranslate(this,0,ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=th(a),O=a.x<0||a.x===0&&F==="right",I=a.x>1||a.x===1&&F==="left",W=w||_,Z=i.width/2;a._maxWidth=Math.max(O?W&&F==="left"?o.l+o.w:Z:I?W&&F==="right"?o.r+o.w:Z:o.w,2*m);var V=0,Y=0;t.each(function(le){var ve=j0(le,a,m);V=Math.max(V,ve),Y+=ve}),P=null;var H=0;if(u){var Q=0,K=0,ne=0;r.each(function(){var le=0,ve=0;Ya.select(this).selectAll("g.traces").each(function(De){var Re=j0(De,a,m),Le=De[0].height;Ft.setTranslate(this,z[0],z[1]+v+d+Le/2+ve),ve+=Le,le=Math.max(le,Re),b[De[0].trace.legendgroup]=le});var me=le+d;K>0&&me+v+K>a._maxWidth?(H=Math.max(H,K),K=0,ne+=Q+T,Q=ve):Q=Math.max(Q,ve),Ft.setTranslate(this,K,ne),K+=me}),a._width=Math.max(H,K)+v,a._height=ne+Q+y}else{var pe=t.size(),ye=Y+h+(pe-1)*d=a._maxWidth&&(H=Math.max(H,de),re=0,Ce+=Se,a._height+=Se,Se=0),Ft.setTranslate(this,z[0]+v+re,z[1]+v+Ce+ve/2+d),de=re+me+d,re+=De,Se=Math.max(Se,ve)}),ye?(a._width=re+h,a._height=Se+y):(a._width=Math.max(H,de)+h,a._height+=Se+y)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(v+Yt.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(v+Yt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,ge=be.legendText||be.legendPosition;t.each(function(le){var ve=Ya.select(this).select("."+l+"toggle"),me=le[0].height,De=le[0].trace.legendgroup,Re=j0(le,a,m);u&&De!==""&&(Re=b[De]);var Le=ge?m:P||Re;!s&&!f&&(Le+=d/2),Ft.setRect(ve,0,-me/2,Le,me)});var Ae=n.select("."+l+"titletext");Ae.node()&&QG(Ae,a,v);var B=n.select("."+l+"titletoggle");if(B.size()&&Ae.node()){var $=Ae.attr("x")||0,U=Yt.titlePad;Ft.setRect(B,$-U,v,a._titleWidth+2*U,a._titleHeight+2*U)}}function nW(e,r,t,a){var n=e._fullLayout,i=n[r],l=th(i),o=ah(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return _y.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*js[l],r:i._width*Cw[l],b:i._effHeight*Cw[o],t:i._effHeight*js[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function th(e){return Nt.isRightAnchor(e)?"right":Nt.isCenterAnchor(e)?"center":"left"}function ah(e){return Nt.isBottomAnchor(e)?"bottom":Nt.isMiddleAnchor(e)?"middle":"top"}});var Sy=J(ky=>{"use strict";var zo=Ir(),Zi=Hr(),zw=_n(),Mt=Ie(),iW=Mt.pushUnique,My=Mt.strTranslate,lW=Mt.strRotate,oW=uf(),Cn=ya(),sW=lw(),Si=at(),ra=Er(),nh=ei(),Ci=dt(),uW=jt().zindexSeparator,tu=br(),ri=_i(),No=Ku(),fW=fy(),cW=Ty(),Uw=No.YANGLE,Ay=Math.PI*Uw/180,vW=1/Math.sin(Ay),hW=Math.cos(Ay),dW=Math.sin(Ay),pt=No.HOVERARROWSIZE,Or=No.HOVERTEXTPAD,Nw={box:!0,ohlc:!0,violin:!0,candlestick:!0},pW={scatter:!0,scattergl:!0,splom:!0};function Fw(e,r){return e.distance-r.distance}ky.hover=function(r,t,a,n){r=Mt.getGraphDiv(r);var i=t.target;Mt.throttle(r._fullLayout._uid+No.HOVERID,No.HOVERMINTIME,function(){mW(r,t,a,n,i)})};ky.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Zw(n),l=Jw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,T=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),P=g.trace;if(tu.traceIs(P,"gl3d")){var z=n._fullLayout[P.scene]._scene.container,F=z.offsetLeft,O=z.offsetTop;C+=F,k+=F,q+=O,D+=O}M.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||ra.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:M}}),s=!1,u=Gw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ra.background,container:zo.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(g,_){return g.y0-_.y0}).each(function(g,_){var w=g.y0-g.by/2;w-vk[0]._length||U<0||U>q[0]._length)return nh.unhoverRaw(e,r)}if(r.pointerX=$+k[0]._offset,r.pointerY=U+q[0]._offset,"xval"in r?Z=ri.flat(i,r.xval):Z=ri.p2c(k,$),"yval"in r?V=ri.flat(i,r.yval):V=ri.p2c(q,U),!Zi(Z[0])||!Zi(V[0]))return Mt.warn("Fx.hover failed",r,e),nh.unhoverRaw(e,r)}var me=1/0;function De(vr,lt){for(H=0;Hde&&(I.splice(0,de),me=I[0].distance),v&&O!==0&&I.length===0){Ce.distance=O,Ce.index=!1;var Qr=K._module.hoverPoints(Ce,Se,re,"closest",{hoverLayer:o._hoverlayer});if(Qr&&(Qr=Qr.filter(function(Ct){return Ct.spikeDistance<=O})),Qr&&Qr.length){var fa,mn=Qr.filter(function(Ct){return Ct.xa.showspikes&&Ct.xa.spikesnap!=="hovered data"});if(mn.length){var Qt=mn[0];Zi(Qt.x0)&&Zi(Qt.y0)&&(fa=Le(Qt),(!be.vLinePoint||be.vLinePoint.spikeDistance>fa.spikeDistance)&&(be.vLinePoint=fa))}var hi=Qr.filter(function(Ct){return Ct.ya.showspikes&&Ct.ya.spikesnap!=="hovered data"});if(hi.length){var yn=hi[0];Zi(yn.x0)&&Zi(yn.y0)&&(fa=Le(yn),(!be.hLinePoint||be.hLinePoint.spikeDistance>fa.spikeDistance)&&(be.hLinePoint=fa))}}}}}De();function Re(vr,lt,Zr){for(var ft=null,St=1/0,bt,Qr=0;Qrvr.trace.index===Te.trace.index):I=[Te];var ke=I.length,He=Yw("x",Te,o),Je=Yw("y",Te,o);De(He,Je);var Ve=[],Xe={},lr=0,tr=function(vr){var lt=Nw[vr.trace.type]?Vw(vr):vr.trace.index;if(!Xe[lt])lr++,Xe[lt]=lr,Ve.push(vr);else{var Zr=Xe[lt]-1,ft=Ve[Zr];Zr>0&&Math.abs(vr.distance)ke-1;Qe--)tr(I[Qe]);I=Ve,Pe()}var Ne=e._hoverdata,ae=[],oe=Zw(e),qe=Jw(e);for(let vr of I){var Ee=ri.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var ar=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(ar=vr.cd[vr.index].ht),vr.hovertemplate=ar||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var cr=vr.x0+vr.xa._offset,sr=vr.x1+vr.xa._offset,Mr=vr.y0+vr.ya._offset,Br=vr.y1+vr.ya._offset,$r=Math.min(cr,sr),it=Math.max(cr,sr),_t=Math.min(Mr,Br),yt=Math.max(Mr,Br);Ee.bbox={x0:$r+qe,x1:it+qe,y0:_t+oe,y1:yt+oe}}vr.eventData=[Ee],ae.push(Ee)}e._hoverdata=ae;var Dt=h==="y"&&(W.length>1||I.length>1)||h==="closest"&&ge&&I.length>1,Kt=ra.combine(o.plot_bgcolor||ra.background,o.paper_bgcolor),qa=Gw(I,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:Kt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),sa=qa.hoverLabels;if(ri.isUnifiedHover(h)||(gW(sa,Dt,o,qa.commonLabelBoundingBox),Xw(sa,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var ua=tu.getComponentMethod("annotations","hasClickToShow")(e,ae);sW(zo.select(n),ua?"pointer":"")}!n||a||!_W(e,r,Ne)||(Ne&&e.emit("plotly_unhover",{event:r,points:Ne}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:Z,yvals:V}))}function Vw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var yW=/([\s\S]*)<\/extra>/;function Gw(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||No.HOVERFONT,v=r.fontSize||No.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,g=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,M=n.charAt(0),C=M+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-oe&&(qe=a.width-oe),Te.attr("d","M"+(Qe-qe)+",0L"+(Qe-qe+pt)+","+ae+pt+"H"+oe+"v"+ae+(Or*2+tr.height)+"H"+-oe+"V"+ae+pt+"H"+(Qe-qe-pt)+"Z"),Qe=qe,H.minX=Qe-oe,H.maxX=Qe+oe,T.side==="top"?(H.minY=Ne-(Or*2+tr.height),H.maxY=Ne-Or):(H.minY=Ne+Or,H.maxY=Ne+(Or*2+tr.height))}else{var Ee,ar,cr;b.side==="right"?(Ee="start",ar=1,cr="",Qe=T._offset+T._length):(Ee="end",ar=-1,cr="-",Qe=T._offset),Ne=b._offset+(w.y0+w.y1)/2,ke.attr("text-anchor",Ee),Te.attr("d","M0,0L"+cr+pt+","+pt+"V"+(Or+tr.height/2)+"h"+cr+(Or*2+tr.width)+"V-"+(Or+tr.height/2)+"H"+cr+pt+"V-"+pt+"Z"),H.minY=Ne-(Or+tr.height/2),H.maxY=Ne+(Or+tr.height/2),b.side==="right"?(H.minX=Qe+pt,H.maxX=Qe+pt+(Or*2+tr.width)):(H.minX=Qe-pt-(Or*2+tr.width),H.maxX=Qe-pt);var sr=tr.height/2,Mr=P-tr.top-sr,Br="clip"+a._uid+"commonlabel"+b._id,$r;if(QeTe.hoverinfo!=="none");if(ze.length===0)return[];var Q=a.hoverlabel,K=Q.font,ne=ze[0],pe=((n==="x unified"?ne.xa:ne.ya).unifiedhovertitle||{}).text,ye=pe?Mt.hovertemplateString({data:n==="x unified"?[{xa:ne.xa,x:ne.xVal}]:[{ya:ne.ya,y:ne.yVal}],fallback:ne.trace.hovertemplatefallback,locale:a._d3locale,template:pe}):k,Se={showlegend:!0,legend:{title:{text:ye,font:K},font:K,bgcolor:Q.bgcolor,bordercolor:Q.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},re={font:K};fW(Se,re,t._fullData);var Ce=re.legend;Ce.entries=[];for(var de=0;de=0?xe=Pe:Be+ve=0?xe=Be:Ge+ve=0?Ke=Oe:We+me=0?Ke=We:ie+me=0,(ze.idealAlign==="top"||!yt)&&Dt?(cr-=Mr/2,ze.anchor="end"):yt?(cr+=Mr/2,ze.anchor="start"):ze.anchor="middle",ze.crossPos=cr;else{if(ze.pos=cr,yt=ar+sr/2+_t<=z,Dt=ar-sr/2-_t>=0,(ze.idealAlign==="left"||!yt)&&Dt)ar-=sr/2,ze.anchor="end";else if(yt)ar+=sr/2,ze.anchor="start";else{ze.anchor="middle";var Kt=_t/2,qa=ar+Kt-z,sa=ar-Kt;qa>0&&(ar-=qa),sa<0&&(ar+=-sa)}ze.crossPos=ar}Ne.attr("text-anchor",ze.anchor),oe&&ae.attr("text-anchor",ze.anchor),Te.attr("transform",My(ar,cr)+(i?lW(Uw):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function Iw(e,r,t,a,n,i){var v,h;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Mt.templateString(e.name,e.trace._meta)),l=Bw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(h=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),o=Mt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(yW,(m,y)=>(l=Bw(y,e.nameLength),""))}return[o,l]}function gW(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,y=function(Z){return Z*t._invScaleX},g=function(Z){return Z*t._invScaleY};e.each(function(Z){var V=Z[n],Y=Z[i],H=V._id.charAt(0)==="x",Q=V.range;f===0&&Q&&Q[0]>Q[1]!==H&&(o=-1);var K=0,ne=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=Ww(Z,r),ye=Z.anchor,Se=ye==="end"?-1:1,re,Ce;if(ye==="middle")re=Z.crossPos+(H?g(pe.y-Z.by/2):y(Z.bx/2+Z.tx2width/2)),Ce=re+(H?g(Z.by):y(Z.bx));else if(H)re=Z.crossPos+g(pt+pe.y)-g(Z.by/2-pt),Ce=re+g(Z.by);else{var de=y(Se*pt+pe.x),be=de+y(Se*Z.bx);re=Z.crossPos+Math.min(de,be),Ce=Z.crossPos+Math.max(de,be)}H?d!==void 0&&m!==void 0&&Math.min(Ce,m)-Math.max(re,d)>1&&(Y.side==="left"?(K=Y._mainLinePosition,ne=t.width):ne=Y._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Ce,h)-Math.max(re,v)>1&&(Y.side==="top"?(K=Y._mainLinePosition,ne=t.height):ne=Y._mainLinePosition)}u[f++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?vW:1)/2,pmin:K,pmax:ne}]}),u.sort(function(Z,V){return Z[0].posref-V[0].posref||o*(V[0].traceIndex-Z[0].traceIndex)});var _,w,T,b,M,C,k;function q(Z){var V=Z[0],Y=Z[Z.length-1];if(w=V.pmin-V.pos-V.dp+V.size,T=Y.pos+Y.dp+Y.size-V.pmax,w>.01){for(M=Z.length-1;M>=0;M--)Z[M].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(M=Z.length-1;M>=0;M--)Z[M].dp-=T;_=!1}if(_){var H=0;for(b=0;bV.pmax&&H++;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos>V.pmax-1&&(C.del=!0,H--);for(b=0;b=0;M--)Z[M].dp-=T;for(b=Z.length-1;b>=0&&!(H<=0);b--)C=Z[b],C.pos+C.dp+C.size>V.pmax&&(C.del=!0,H--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=w;for(D.push.apply(D,P),u.splice(b+1,1),k=0,M=D.length-1;M>=0;M--)k+=D[M].dp;for(T=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=T;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var O=u[b];for(M=O.length-1;M>=0;M--){var I=O[M],W=I.datum;W.offset=I.dp,W.del=I.del}}}function Ww(e,r){var t=0,a=e.offset;return r&&(a*=-dW,t=e.offset*hW),{x:t,y:a}}function bW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Xw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=zo.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=bW(l),h=Ww(l,r),d=h.x,m=h.y,y=u==="middle",g="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;y?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":g?_="M0,0L"+n(f*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Cn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(Cn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Si.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function xW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Zi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Mt.castOption(n,t,h);return l(m)?m:Mt.extractOption({},a,"",d)}:function(h,d){return Mt.extractOption(i,a,h,d)};function s(h,d,m){var y=o(d,m);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Mt.constrain(e.x0,0,e.xa._length),e.x1=Mt.constrain(e.x1,0,e.xa._length),e.y0=Mt.constrain(e.y0,0,e.ya._length),e.y1=Mt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ci.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ci.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ci.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ci.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ci.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ci.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Hw(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=ra.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var g=zw.readability(h.color,v)<1.5?ra.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||g,b=Ci.getPxPosition(e,f),M,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(M=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),M=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Si.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,P,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(P=l.pointerX,z=l.pointerY):(P=u._offset+D.x,z=f._offset+D.y);var O=zw.readability(D.color,v)<1.5?ra.contrast(v):D.color,I=u.spikemode,W=u.spikethickness,Z=u.spikecolor||O,V=Ci.getPxPosition(e,u),Y,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(Y=V,H=z),I.indexOf("across")!==-1){var Q=u._counterDomainMin,K=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),K=Math.max(K,u.position)),Y=i.t+(1-K)*i.h,H=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W,stroke:Z,"stroke-dasharray":Si.dashStyle(u.spikedash,W)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:Y,y2:H,"stroke-width":W+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:V-(u.side!=="top"?W:-W),r:W,fill:Z}).classed("spikeline",!0)}}}function _W(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Ow(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Bw(e,r){return Cn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Jw=e=>e.offsetLeft+e.clientLeft;function ru(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Mt.apply3DTransform(t._invTransform)(n,i),u=Mt.apply3DTransform(t._invTransform)(l,o),f=s[0],v=s[1],h=u[0],d=u[1];return{x:f,y:v,width:h-f,height:d-v,top:Math.min(v,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(v,d)}}});var ih=J((Ose,Kw)=>{"use strict";var TW=Ie(),MW=Er(),AW=_i().isUnifiedHover;Kw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&AW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=MW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),TW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var $w=J((Bse,Qw)=>{"use strict";var kW=Ie(),SW=ih(),CW=_s();Qw.exports=function(r,t){function a(n,i){return kW.coerce(r,t,CW,n,i)}SW(r,t,a)}});var rT=J((Yse,eT)=>{"use strict";var jw=Ie(),LW=Lv(),qW=ih();eT.exports=function(r,t,a,n){function i(o,s){return jw.coerce(r,t,LW,o,s)}var l=jw.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),qW(r,t,i,l)}});var Cy=J((Use,tT)=>{"use strict";var DW=Ie(),EW=_s();tT.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:DW.coerce(r,t,EW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var iT=J((Vse,nT)=>{"use strict";var aT=Ie(),PW=_s(),RW=Cy(),zW=ih();nT.exports=function(r,t){function a(f,v){return aT.coerce(r,t,PW,f,v)}var n=RW(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),zW(r,t,a),aT.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var sT=J((Gse,oT)=>{"use strict";var Ly=Ie(),lT=br();oT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Ly.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var FW=br(),IW=Sy().hover;uT.exports=function(r,t,a){var n=FW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&IW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Li=J((Xse,hT)=>{"use strict";var HW=Ir(),lh=Ie(),OW=ei(),Ef=_i(),cT=_s(),vT=Sy();hT.exports={moduleType:"component",name:"fx",constants:Ku(),schema:{layout:cT},attributes:Lv(),layoutAttributes:cT,supplyLayoutGlobalDefaults:$w(),supplyDefaults:rT(),supplyLayoutDefaults:iT(),calc:sT(),getDistanceFunction:Ef.getDistanceFunction,getClosest:Ef.getClosest,inbox:Ef.inbox,quadrature:Ef.quadrature,appendArrayPointValue:Ef.appendArrayPointValue,castHoverOption:YW,castHoverinfo:UW,hover:vT.hover,unhover:OW.unhover,loneHover:vT.loneHover,loneUnhover:BW,click:fT()};function BW(e){var r=lh.isD3Selection(e)?e:HW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function YW(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function UW(e,r,t){function a(n){return lh.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",a)}});var au=J(Ji=>{"use strict";Ji.selectMode=function(e){return e==="lasso"||e==="select"};Ji.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ji.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ji.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ji.selectingOrDrawing=function(e){return Ji.freeMode(e)||Ji.rectMode(e)}});var oh=J((Jse,dT)=>{"use strict";dT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var sh=J((Kse,pT)=>{"use strict";pT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var fh=J((Qse,mT)=>{"use strict";var uh=32;mT.exports={CIRCLE_SIDES:uh,i000:0,i090:uh/4,i180:uh/2,i270:uh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ch=J(($se,gT)=>{"use strict";var VW=Ie().strTranslate;function yT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function GW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function WW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return yT(e,t[r])}}function XW(e){return VW(e.xaxis._offset,e.yaxis._offset)}gT.exports={p2r:yT,r2p:GW,axValue:WW,getTransform:XW}});var ql=J(Ki=>{"use strict";var ZW=ym(),_T=fh(),nu=_T.CIRCLE_SIDES,qy=_T.SQRT2,wT=ch(),bT=wT.p2r,xT=wT.r2p,JW=[0,3,4,5,6,1,2],KW=[0,3,4,1,2];Ki.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var TT=Zt(),CT=au(),QW=CT.drawMode,$W=CT.openMode,iu=fh(),MT=iu.i000,AT=iu.i090,kT=iu.i180,ST=iu.i270,jW=iu.cos45,eX=iu.sin45,LT=ch(),hh=LT.p2r,Dl=LT.r2p,rX=_l(),tX=rX.clearOutline,dh=ql(),aX=dh.readPaths,nX=dh.writePaths,iX=dh.ellipseOver,lX=dh.fixDatesForPaths;function oX(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!QW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var sX=au(),uX=sX.selectMode,fX=_l(),cX=fX.clearOutline,Dy=ql(),vX=Dy.readPaths,hX=Dy.writePaths,dX=Dy.fixDatesForPaths;ET.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!uX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";PT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Pl=J(xa=>{"use strict";var qi=Rf(),RT=Ie(),El=dt();xa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};xa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};xa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};xa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};xa.extractPathCoords=function(e,r,t){var a=[],n=e.match(qi.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(qi.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};xa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=xa.shapePositionToRange(r);l=function(s){var u=Qi(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=xa.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};xa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=xa.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};xa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};xa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};xa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};xa.getPathString=function(e,r){let t=r.type,a=El.getRefType(r.xref),n=El.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,h,d,m,y,g,_;function w(P,z,F,O){var I;if(P)if(z==="domain")O?I=function(W){return P._offset+P._length*(1-W)}:I=function(W){return P._offset+P._length*W};else{let W=xa.shapePositionToRange(P);I=function(Z){return P._offset+P.r2p(W(Z,!0))},F==="path"&&P.type==="date"&&(I=xa.decodeDate(I))}else O?I=function(W){return i.t+i.h*(1-W)}:I=function(W){return i.l+i.w*W};return I}if(a==="array"?(h=[],l=r.xref.map(function(P){return El.getFromId(e,P)}),h=r.xref.map(function(P,z){return w(l[z],El.getRefType(P),t,!1)})):(l=El.getFromId(e,r.xref),h=w(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(P){return El.getFromId(e,P)}),d=r.yref.map(function(P,z){return w(o[z],El.getRefType(P),t,!0)})):(o=El.getFromId(e,r.yref),d=w(o,n,t,!0)),t==="path")return pX(r,h,d);if(a==="array")s=Qi(l[0],r.x0shift),u=Qi(l[1],r.x1shift),m=h[0](r.x0)+s,y=h[1](r.x1)+u;else if(s=Qi(l,r.x0shift),u=Qi(l,r.x1shift),r.xsizemode==="pixel"){let P=h(r.xanchor);m=P+r.x0+s,y=P+r.x1+u}else m=h(r.x0)+s,y=h(r.x1)+u;if(n==="array")f=Qi(o[0],r.y0shift),v=Qi(o[1],r.y1shift),g=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=Qi(o,r.y0shift),v=Qi(o,r.y1shift),r.ysizemode==="pixel"){let P=d(r.yanchor);g=P-r.y0+f,_=P-r.y1+v}else g=d(r.y0)+f,_=d(r.y1)+v;if(t==="line")return"M"+m+","+g+"L"+y+","+_;if(t==="rect")return"M"+m+","+g+"H"+y+"V"+_+"H"+m+"Z";var T=(m+y)/2,b=(g+_)/2,M=Math.abs(T-m),C=Math.abs(b-g),k="A"+M+","+C,q=T+M+","+b,D=T+","+(b-C);return"M"+q+k+" 0 1,1 "+D+k+" 0 0,1 "+q+"Z"};function pX(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return a.replace(qi.segmentRE,function(h){var d=0,m=h.charAt(0),y=qi.paramIsX[m],g=qi.paramIsY[m],_=qi.numParams[m];let w=y.drawn!==void 0,T=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var C=h.slice(1).replace(qi.paramRE,function(k){return y[d]?n==="pixel"?k=b(l)+Number(k):k=b(k):g[d]&&(i==="pixel"?k=M(o)-Number(k):k=M(k)),d++,d>_&&(k="X"),k});return d>_&&(C=C.replace(/[\s,]*X.*/,""),RT.log("Ignoring extra params in segment "+h)),w&&f++,T&&v++,m+C})}function Qi(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Ry=J((nue,FT)=>{"use strict";var mX=Ie(),Di=dt(),zT=ya(),NT=at(),yX=ql().readPaths,Py=Pl(),gX=Py.getPathString,zf=Iv(),bX=Ma().FROM_TL;FT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Di.getFromId(r,a.xref),s=Di.getFromId(r,a.yref);let K=Array.isArray(a.xref),ne=Array.isArray(a.yref);for(var u in zf){var f=typeof zf[u]=="function",v=!K||zf.simpleXVariables.includes(u),h=!ne||zf.simpleYVariables.includes(u);if(f&&v&&h){var d=zf[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=mX.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},y=a.label.font,g={"data-notex":1},_=n.append("g").attr(m).classed("shape-label",!0),w=_.append("text").attr(g).classed("shape-label-text",!0).text(i),T,b,M,C;if(a.path){var k=gX(r,a),q=yX(k,r);T=1/0,M=1/0,b=-1/0,C=-1/0;for(var D=0;D=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function _X(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,y=n.label.yanchor,g,_,w,T;if(f==="line"){o==="start"?(g=e,_=r):o==="end"?(g=t,_=a):(g=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var wX=Ie(),TX=wX.strTranslate,IT=ei(),BT=au(),MX=BT.drawMode,YT=BT.selectMode,UT=br(),HT=Er(),yh=fh(),AX=yh.i000,kX=yh.i090,SX=yh.i180,CX=yh.i270,LX=_l(),VT=LX.clearOutlineControllers,Ny=ql(),mh=Ny.pointsOnRectangle,zy=Ny.pointsOnEllipse,qX=Ny.writePaths,DX=ph().newShapes,EX=ph().createShapeObj,PX=Ey(),RX=Ry();GT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(zy(r[0])||a.hasText)&&o({redrawing:!0})}function o(V){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=DX(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=PX(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&UT.call((V||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=MX(f),h=YT(f);(v||h)&&(i._fullLayout._outlining=!0),VT(i),t.attr("d",qX(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=zX([],r);var w=u.append("g").attr("class","outline-controllers");P(w),Z()}if(v&&a.hasText){var T=u.select(".label-temp"),b=EX(t,a,a.dragmode);RX(i,"label-temp",b,T)}function M(V){y=+V.srcElement.getAttribute("data-i"),g=+V.srcElement.getAttribute("data-j"),d[y][g].moveFn=C}function C(V,Y){if(r.length){var H=_[y][g][1],Q=_[y][g][2],K=r[y],ne=K.length;if(mh(K)){var pe=V,ye=Y;if(a.isActiveSelection){var Se=OT(K,g);Se[1]===K[g][1]?ye=0:pe=0}for(var re=0;re1&&!(V.length===2&&V[1][0]==="Z")&&(g===0&&(V[0][0]="M"),r[y]=V,l(),o())}}function D(V,Y){if(V===2){y=+Y.srcElement.getAttribute("data-i"),g=+Y.srcElement.getAttribute("data-j");var H=r[y];!mh(H)&&!zy(H)&&q()}}function P(V){d=[];for(var Y=0;Y{"use strict";var FX=Ir(),KT=br(),Iy=Ie(),Fo=dt(),IX=ql().readPaths,HX=gh(),xh=Ry(),QT=_l().clearOutlineControllers,Fy=Er(),_h=at(),OX=ct().arrayEditor,WT=ei(),XT=Cl(),Io=Rf(),$a=Pl(),Hy=$a.getPathString;eM.exports={draw:Oy,drawOne:$T,eraseActiveShape:VX,drawLabel:xh};function Oy(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nFo.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),v=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...v)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function YX(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",h=i.modifyItem,d,m,y,g,_,w,T,b,M,C,k,q,D,P,z,F=FX.select(r.node().parentNode),O=Fo.getFromId(e,t.xref),I=Fo.getRefType(t.xref),W=Fo.getFromId(e,t.yref),Z=Fo.getRefType(t.yref),V=t.x0shift,Y=t.x1shift,H=t.y0shift,Q=t.y1shift,K=function(Re,Le){var Fe=$a.getDataToPixel(e,O,Le,!1,I);return Fe(Re)},ne=function(Re,Le){var Fe=$a.getDataToPixel(e,W,Le,!0,Z);return Fe(Re)},pe=$a.getPixelToData(e,O,!1,I),ye=$a.getPixelToData(e,W,!0,Z),Se=de(),re={element:Se.node(),gd:e,prepFn:Ae,doneFn:B,clickFn:$},Ce;WT.init(re),Se.node().onmousemove=ge;function de(){return f?be():r}function be(){var Re=10,Le=Math.max(t.line.width,Re),Fe=n.append("g").attr("data-index",a).attr("drag-helper",!0);Fe.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Oe={"fill-opacity":"0"},We=Math.max(Le/2,Re);return Fe.append("circle").attr({"data-line-point":"start-point",cx:s?K(t.xanchor)+t.x0:K(t.x0,V),cy:u?ne(t.yanchor)-t.y0:ne(t.y0,H),r:We}).style(Oe).classed("cursor-grab",!0),Fe.append("circle").attr({"data-line-point":"end-point",cx:s?K(t.xanchor)+t.x1:K(t.x1,Y),cy:u?ne(t.yanchor)-t.y1:ne(t.y1,Q),r:We}).style(Oe).classed("cursor-grab",!0),Fe}function ge(Re){if(bh(e)){Ce=null;return}if(f)Re.target.tagName==="path"?Ce="move":Ce=Re.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=re.element.getBoundingClientRect(),Fe=Le.right-Le.left,Oe=Le.bottom-Le.top,We=Re.clientX-Le.left,Pe=Re.clientY-Le.top,Be=!v&&Fe>l&&Oe>o&&!Re.shiftKey?WT.getCursor(We/Fe,1-Pe/Oe):"move";XT(r,Be),Ce=Be.split("-")[0]}}function Ae(Re){bh(e)||(s&&(_=K(t.xanchor)),u&&(w=ne(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:K(t.x0),m=u?t.y0:ne(t.y0),y=s?t.x1:K(t.x1),g=u?t.y1:ne(t.y1)),dg?(T=m,k="y0",b=g,q="y1"):(T=g,k="y1",b=m,q="y0"),ge(Re),ve(n,t),De(r,t,e),re.moveFn=Ce==="move"?U:le,re.altKey=Re.altKey)}function B(){bh(e)||(XT(r),me(n),jT(r,e,t),KT.call("_guiRelayout",e,i.getUpdateObj()))}function $(){bh(e)||me(n)}function U(Re,Le){if(t.type==="path"){var Fe=function(Pe){return Pe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(Be){return pe(K(Be)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(Be){return ye(ne(Be)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else s?h("xanchor",t.xanchor=pe(_+Re)):(h("x0",t.x0=pe(d+Re)),h("x1",t.x1=pe(y+Re))),u?h("yanchor",t.yanchor=ye(w+Le)):(h("y0",t.y0=ye(m+Le)),h("y1",t.y1=ye(g+Le)));r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function le(Re,Le){if(v){var Fe=function(Xe){return Xe},Oe=Fe,We=Fe;s?h("xanchor",t.xanchor=pe(_+Re)):(Oe=function(lr){return pe(K(lr)+Re)},O&&O.type==="date"&&(Oe=$a.encodeDate(Oe))),u?h("yanchor",t.yanchor=ye(w+Le)):(We=function(lr){return ye(ne(lr)+Le)},W&&W.type==="date"&&(We=$a.encodeDate(We))),h("path",t.path=ZT(z,Oe,We))}else if(f){if(Ce==="resize-over-start-point"){var Pe=d+Re,Be=u?m-Le:m+Le;h("x0",t.x0=s?Pe:pe(Pe)),h("y0",t.y0=u?Be:ye(Be))}else if(Ce==="resize-over-end-point"){var Ge=y+Re,ie=u?g-Le:g+Le;h("x1",t.x1=s?Ge:pe(Ge)),h("y1",t.y1=u?ie:ye(ie))}}else{var xe=function(Xe){return Ce.indexOf(Xe)!==-1},Ke=xe("n"),hr=xe("s"),ze=xe("w"),Te=xe("e"),ke=Ke?T+Le:T,He=hr?b+Le:b,Je=ze?M+Re:M,Ve=Te?C+Re:C;u&&(Ke&&(ke=T-Le),hr&&(He=b-Le)),(!u&&He-ke>o||u&&ke-He>o)&&(h(k,t[k]=u?ke:ye(ke)),h(q,t[q]=u?He:ye(He))),Ve-Je>l&&(h(D,t[D]=s?Je:pe(Je)),h(P,t[P]=s?Ve:pe(Ve)))}r.attr("d",Hy(e,t)),ve(n,t),xh(e,a,t,F)}function ve(Re,Le){(s||u)&&Fe();function Fe(){var Oe=Le.type!=="path",We=Re.selectAll(".visual-cue").data([0]),Pe=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Be=K(s?Le.xanchor:Iy.midRange(Oe?[Le.x0,Le.x1]:$a.extractPathCoords(Le.path,Io.paramIsX))),Ge=ne(u?Le.yanchor:Iy.midRange(Oe?[Le.y0,Le.y1]:$a.extractPathCoords(Le.path,Io.paramIsY)));if(Be=$a.roundPositionForSharpStrokeRendering(Be,Pe),Ge=$a.roundPositionForSharpStrokeRendering(Ge,Pe),s&&u){var ie="M"+(Be-1-Pe)+","+(Ge-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var xe="M"+(Be-1-Pe)+","+(Ge-9-Pe)+"v18 h2 v-18 Z";We.attr("d",xe)}else{var Ke="M"+(Be-9-Pe)+","+(Ge-1-Pe)+"h18 v2 h-18 Z";We.attr("d",Ke)}}}function me(Re){Re.selectAll(".visual-cue").remove()}function De(Re,Le,Fe){var Oe=Le.xref,We=Le.yref,Pe=Fo.getFromId(Fe,Oe),Be=Fo.getFromId(Fe,We),Ge="";Oe!=="paper"&&!Pe.autorange&&(Ge+=Oe),We!=="paper"&&!Be.autorange&&(Ge+=We),_h.setClipUrl(Re,Ge?"clip"+Fe._fullLayout._uid+Ge:null,Fe)}}function ZT(e,r,t){return e.replace(Io.segmentRE,function(a){var n=0,i=a.charAt(0),l=Io.paramIsX[i],o=Io.paramIsY[i],s=Io.numParams[i],u=a.slice(1).replace(Io.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function UX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){JT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=JT,Oy(e)}}}function JT(e){if(wh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(QT(e),delete e._fullLayout._activeShapeIndex,Oy(e))}}function VX(e){if(wh(e)){QT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ln=br(),rM=Ht(),tM=Zt(),Ur=sh(),GX=Th().eraseActiveShape,Mh=Ie(),Nr=Mh._,Vr=uM.exports={};Vr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Ur.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Mh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Ln.call("downloadImage",e,t).then(function(a){Mh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){Mh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){rM.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){rM.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:Na};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:Na};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:Na};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:Na};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:Na};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:Na};Vr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:Na};Vr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:Na};Vr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:Na};Vr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:GX};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:Na};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:Na};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:Na};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:Na};Vr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ur.tooltip_basic,gravity:"ne",click:Na};Vr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ur.tooltip_compare,gravity:"ne",click:Na};function Na(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=tM.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,y;for(f=0;f{"use strict";var fM=Uy(),ZX=Object.keys(fM),cM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],vM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(cM),ou=[],JX=function(e){if(vM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ou.indexOf(r)===-1&&ou.push(r),ou.indexOf(t)===-1&&ou.push(t)}};ZX.forEach(function(e){JX(fM[e])});ou.sort();hM.exports={DRAW_MODES:cM,backButtons:vM,foreButtons:ou}});var Gy=J((fue,dM)=>{"use strict";var uue=Vy();dM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var mM=J((cue,pM)=>{"use strict";var KX=Ie(),Nf=Er(),QX=ct(),$X=Gy();pM.exports=function(r,t){var a=r.modebar||{},n=QX.newContainer(t,"modebar");function i(o,s){return KX.coerce(a,n,$X,o,s)}i("orientation"),i("bgcolor",Nf.addOpacity(t.paper_bgcolor,.5));var l=Nf.contrast(Nf.rgb(t.modebar.bgcolor));i("color",Nf.addOpacity(l,.3)),i("activecolor",Nf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var xM=J((vue,bM)=>{"use strict";var Wy=Ir(),jX=Hr(),kh=Ie(),yM=sh(),eZ=yv().version,rZ=new DOMParser;function gM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ei=gM.prototype;Ei.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),kh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ei.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ei.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ei.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Wy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||yM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ei.createIcon=function(e){var r=jX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=rZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ei.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Wy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:kh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ei.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var nZ=Zt(),_M=ln(),Xy=br(),iZ=_i().isUnifiedHover,lZ=xM(),Sh=Uy(),oZ=Vy().DRAW_MODES,sZ=Ie().extendDeep;wM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=dZ(i):!a.displayModeBar&&a.watermark?l=[]:l=uZ(r),n?n.update(r,l):t._modeBar=lZ(r,l)};function uZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,H){if(typeof H=="string"){if(H.toLowerCase()===Y.toLowerCase())return!0}else{var Q=H.name,K=H._cat||H.name;if(Q===Y||K===Y.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(Y){for(var H=0;H1?(P=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],z=["resetViewMapbox"]):g?(D=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:T?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(vZ(t)||M)&&(P=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:y||g||v?F=["pan2d"]:_&&(F=["zoom2d"]),cZ(t)&&F.push("select2d","lasso2d");var O=[],I=function(Y){O.indexOf(Y)===-1&&P.indexOf(Y)!==-1&&O.push(Y)};if(Array.isArray(o)){for(var W=[],Z=0;Z{"use strict";MM.exports={moduleType:"component",name:"modebar",layoutAttributes:Gy(),supplyLayoutDefaults:mM(),manage:TM()}});var Jy=J((pue,AM)=>{"use strict";var pZ=Ma().FROM_BL;AM.exports=function(r,t,a){a===void 0&&(a=pZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var If=J(Ff=>{"use strict";var Ho=Ie(),Ky=xf(),ti=Zt().id2name,mZ=Qn(),kM=Jy(),yZ=E0(),gZ=Gt().ALMOST_EQUAL,bZ=Ma().FROM_BL;Ff.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.slice(i):a.slice(n))+l}function _Z(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lgZ*m&&!w)){for(i=0;iF&&QP&&(P=Q);var ne=(P-D)/(2*z);v/=ne,D=s.l2r(D),P=s.l2r(P),s.range=s._input.range=C{"use strict";var Lh=Ir(),Fa=br(),cn=Ht(),qn=Ie(),jy=ya(),eg=oh(),Hf=Er(),su=at(),qM=gf(),zM=Zy(),Of=dt(),$i=Ma(),NM=If(),wZ=NM.enforce,TZ=NM.clean,DM=xf().doAutoRange,FM="start",MZ="middle",IM="end",AZ=jt().zindexSeparator;ta.layoutStyles=function(e){return qn.syncOrAsync([cn.doAutoMargin,SZ],e)};function kZ(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function SZ(e){var r=e._fullLayout,t=r._size,a=t.p,n=Of.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(su.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ta.drawMainTitle(e),zM.manage(e),!r._has("cartesian"))return cn.previousPromises(e);function v(Ae,B,$){var U=Ae._lw/2;if(Ae._id.charAt(0)==="x"){if(B){if($==="top")return B._offset-a-U}else return t.t+t.h*(1-(Ae.position||0))+U%1;return B._offset+B._length+a+U}if(B){if($==="right")return B._offset+B._length+a+U}else return t.l+t.w*(Ae.position||0)+U%1;return B._offset-a-U}for(i=0;i0){DZ(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,i);var f=(r.text.match(jy.BR_TAG_ALL)||[]).length;if(f){var v=$i.LINE_SPACING*f+$i.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",g)})}var h=Lh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+qM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:RM(r.yanchor)}).call(jy.positionText,l,y)}}}};function CZ(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=qn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return qn.isTopAnchor(r)&&t==="t"||qn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=LZ(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function DZ(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&CZ(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),cn.allowAutoMargin(e,n),cn.autoMargin(e,n,o)}function EZ(e,r){var t=e.title,a=e._size,n=0;switch(r===FM?n=t.pad.l:r===IM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function PZ(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===$i.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function RM(e){return e==="top"?$i.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":$i.MID_SHIFT+"em"}function RZ(e){var r=e.title,t=MZ;return qn.isRightAnchor(r)?t=IM:qn.isLeftAnchor(r)&&(t=FM),t}function zZ(e){var r=e.title,t="0em";return qn.isTopAnchor(r)?t=$i.CAP_SHIFT+"em":qn.isMiddleAnchor(r)&&(t=$i.MID_SHIFT+"em"),t}ta.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var NZ=ql().readPaths,FZ=gh(),HM=_l().clearOutlineControllers,rg=Er(),OM=at(),IZ=ct().arrayEditor,BM=Pl(),HZ=BM.getPathString;UM.exports={draw:Dh,drawOne:YM,activateLastSelection:YZ};function Dh(e){var r=e._fullLayout;HM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;g--){var _=l.append("path").attr(s).style("opacity",g?.1:u).call(rg.stroke,v).call(rg.fill,f).call(OM.dashLine,g?"solid":d,g?4+h:h);if(OZ(_,e,a),m){var w=IZ(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=NZ(o,e);FZ(b,_,T)}else _.style("pointer-events",g?"all":"none");y[g]=_}var M=y[0],C=y[1];C.node().addEventListener("click",function(){return BZ(e,M)})}}function OZ(e,r,t){var a=t.xref+t.yref;OM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function BZ(e,r){if(Eh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){tg(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=tg,Dh(e)}}}function YZ(e){if(Eh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=tg,Dh(e)}}function tg(e){if(Eh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(HM(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var GM=J((bue,VM)=>{function UZ(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}VM.exports=UZ});var XM=J((xue,WM)=>{function VZ(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}WM.exports=VZ});var JM=J((_ue,ZM)=>{var GZ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};ZM.exports=GZ});var QM=J((wue,KM)=>{var Bf=JM();function WZ(e,r,t){function a(m,y){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:null,below:null},otherFill:null}}function n(m,y,g){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Bf.create();function l(m,y,g,_,w,T){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(g,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?w:T,_?T:w)?1:-1}function o(m,y){i.insertBefore(m,function(g){var _=l(m.isStart,m.pt,y,g.isStart,g.pt,g.other.pt);return _<0})}function s(m,y){var g=Bf.node({isStart:!0,pt:m.start,seg:m,primary:y,other:null,status:null});return o(g,m.end),g}function u(m,y,g){var _=Bf.node({isStart:!1,pt:y.end,seg:y,primary:g,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,y){var g=s(m,y);return u(g,m,y),g}function v(m,y){t&&t.segmentChop(m.seg,y),m.other.remove(),m.seg.end=y,m.other.pt=y,o(m.other,m.pt)}function h(m,y){var g=n(y,m.seg.end,m.seg);return v(m,y),f(g,m.primary)}function d(m,y){var g=Bf.create();function _(W,Z){var V=W.seg.start,Y=W.seg.end,H=Z.seg.start,Q=Z.seg.end;return r.pointsCollinear(V,H,Q)?r.pointsCollinear(Y,H,Q)||r.pointAboveOrOnLine(Y,H,Q)?1:-1:r.pointAboveOrOnLine(V,H,Q)?1:-1}function w(W){return g.findTransition(function(Z){var V=_(W,Z.ev);return V>0})}function T(W,Z){var V=W.seg,Y=Z.seg,H=V.start,Q=V.end,K=Y.start,ne=Y.end;t&&t.checkIntersection(V,Y);var pe=r.linesIntersect(H,Q,K,ne);if(pe===!1){if(!r.pointsCollinear(H,Q,K)||r.pointsSame(H,ne)||r.pointsSame(Q,K))return!1;var ye=r.pointsSame(H,K),Se=r.pointsSame(Q,ne);if(ye&&Se)return Z;var re=!ye&&r.pointBetween(H,K,ne),Ce=!Se&&r.pointBetween(Q,K,ne);if(ye)return Ce?h(Z,Q):h(W,ne),Z;re&&(Se||(Ce?h(Z,Q):h(W,ne)),h(Z,H))}else pe.alongA===0&&(pe.alongB===-1?h(W,K):pe.alongB===0?h(W,pe.pt):pe.alongB===1&&h(W,ne)),pe.alongB===0&&(pe.alongA===-1?h(Z,H):pe.alongA===0?h(Z,pe.pt):pe.alongA===1&&h(Z,Q));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let W=function(){if(k){var Z=T(M,k);if(Z)return Z}return q?T(M,q):!1};var I=W;t&&t.segmentNew(M.seg,M.primary);var C=w(M),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,q?q.seg:!1);var D=W();if(D){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,q?M.seg.myFill.below=q.seg.myFill.above:M.seg.myFill.below=m,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var z;q?M.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=M.primary?y:m,M.seg.otherFill={above:z,below:z}}t&&t.status(M.seg,k?k.seg:!1,q?q.seg:!1),M.other.status=C.insert(Bf.node({ev:M}))}else{var F=M.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(F.prev)&&g.exists(F.next)&&T(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!M.primary){var O=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=O}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var y,g=m[m.length-1],_=0;_{function XZ(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(I,W,Z){return f.index=I,f.matches_head=W,f.matches_pt1=Z,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Yf(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var ZZ={union:function(e,r){return Yf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Yf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Yf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Yf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Yf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};eA.exports=ZZ});var aA=J((Aue,tA)=>{var JZ={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var KZ=GM(),QZ=XM(),nA=QM(),$Z=jM(),Uf=rA(),iA=aA(),Dn=!1,Vf=QZ(),ja;ja={buildLog:function(e){return e===!0?Dn=KZ():e===!1&&(Dn=!1),Dn===!1?!1:Dn.list},epsilon:function(e){return Vf.epsilon(e)},segments:function(e){var r=nA(!0,Vf,Dn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=nA(!1,Vf,Dn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Uf.union(e.combined,Dn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Uf.intersect(e.combined,Dn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Uf.difference(e.combined,Dn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Uf.differenceRev(e.combined,Dn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Uf.xor(e.combined,Dn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$Z(e.segments,Vf,Dn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return iA.toPolygon(ja,e)},polygonToGeoJSON:function(e){return iA.fromPolygon(ja,Vf,e)},union:function(e,r){return Gf(e,r,ja.selectUnion)},intersect:function(e,r){return Gf(e,r,ja.selectIntersect)},difference:function(e,r){return Gf(e,r,ja.selectDifference)},differenceRev:function(e,r){return Gf(e,r,ja.selectDifferenceRev)},xor:function(e,r){return Gf(e,r,ja.selectXor)}};function Gf(e,r,t){var a=ja.segments(e),n=ja.segments(r),i=ja.combine(a,n),l=t(i);return ja.polygon(l)}typeof window=="object"&&(window.PolyBool=ja);lA.exports=ja});var uA=J((Sue,sA)=>{sA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;y&&(o=!o)}return o}});var ig=J((Cue,fA)=>{"use strict";var ng=zv().dot,Ph=Gt().BADNUM,Rh=fA.exports={};Rh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Ph||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===Ph||gn||_===Ph||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],M=0,C,k,q,D,P;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(ng(v,u))>n)return!0;return!1};Rh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var vA=J((Lue,cA)=>{"use strict";cA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var RA=J((que,PA)=>{"use strict";var hA=oA(),jZ=uA(),Zf=br(),eJ=at().dashStyle,Wf=Er(),rJ=Li(),tJ=_i().makeEventData,jf=au(),aJ=jf.freeMode,nJ=jf.rectMode,Jf=jf.drawMode,ug=jf.openMode,fg=jf.selectMode,dA=Pl(),pA=Rf(),xA=gh(),_A=_l().clearOutline,wA=ql(),lg=wA.handleEllipse,iJ=wA.readPaths,lJ=ph().newShapes,oJ=Ey(),sJ=ag().activateLastSelection,Nh=Ie(),uJ=Nh.sorterAsc,TA=ig(),Xf=Xv(),En=Zt().getFromId,fJ=oh(),cJ=qh().redrawReglTraces,Fh=vA(),Pi=Fh.MINSELECT,vJ=TA.filter,cg=TA.tester,vg=ch(),mA=vg.p2r,hJ=vg.axValue,dJ=vg.getTransform;function hg(e){return e.subplot!==void 0}function pJ(e,r,t,a,n){var i=!hg(a),l=aJ(n),o=nJ(n),s=ug(n),u=Jf(n),f=fg(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,y=m._fullLayout,g=f&&y.newselection.mode==="immediate"&&i,_=y._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=dJ(T),M=r-w.left,C=t-w.top;y._calcInverseTransform(m);var k=Nh.apply3DTransform(y._invTransform)(M,C);M=k[0],C=k[1];var q=y._invScaleX,D=y._invScaleY,P=M,z=C,F="M"+M+","+C,O=a.xaxes[0],I=a.yaxes[0],W=O._length,Z=I._length,V=e.altKey&&!(Jf(n)&&s),Y,H,Q,K,ne,pe,ye;AA(e,m,a),l&&(Y=vJ([[M,C]],Fh.BENDPX));var Se=_.selectAll("path.select-outline-"+T.id).data([1]),re=u?y.newshape:y.newselection;u&&(a.hasText=re.label.text||re.label.texttemplate);var Ce=u&&!s?re.fillcolor:"rgba(0,0,0,0)",de=re.line.color||(i?Wf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Se.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":eJ(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Wf.stroke,de).call(Wf.fill,Ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var be=_.append("path").attr("class","zoombox-corners").style({fill:Wf.background,stroke:Wf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ge=_.select(".label-temp");ge.empty()&&(ge=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=y._uid+Fh.SELECTID,B=[],$=Ih(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=O._id,ve=I._id;qA(m,le,ve,$);for(var me=(m.layout||{}).selections||[],De=[],Re=!1,Le=0;Le=0){m._fullLayout._deactivateShape(m);return}if(!u){var me=y.clickmode;Xf.done(Ae).then(function(){if(Xf.clear(Ae),le===2){for(Se.remove(),ne=0;ne<$.length;ne++)pe=$[ne],pe._module.selectPoints(pe,!1);if(Qf(m,$),Kf(a),mg(m),$.length){var De=$[0].xaxis,Re=$[0].yaxis;if(De&&Re){for(var Le=[],Fe=m._fullLayout.selections,Oe=0;Oe-1&&MA(ve,m,a.xaxes,a.yaxes,a.subplot,a,Se),me==="event"&&$f(m,void 0);rJ.click(m,ve,T.id)}).catch(Nh.error)}},a.doneFn=function(){be.remove(),Xf.done(Ae).then(function(){Xf.clear(Ae),!g&&K&&a.selectionDefs&&(K.subtract=V,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(g||u)&&Kf(a,g),a.doneFnCompleted&&a.doneFnCompleted(B),f&&$f(m,ye)}).catch(Nh.error)}}function MA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,y,g,_,w,T,b,M;if(xJ(o)){AA(e,r,i),h=Ih(r,t,a,n);var C=_J(o,h),k=C.pointNumbers.length>0;if(k?wJ(h,C):TJ(h)&&(w=gA(C))){for(l&&l.remove(),M=0;M=0}function bJ(e){return e._fullLayout._activeSelectionIndex>=0}function Kf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;gJ(n)&&n._fullLayout._deactivateShape(n),bJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Jf(t),s=fg(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=lJ(u,e)),f&&Zf.call("_guiRelayout",n,{shapes:f});var v;s&&!hg(e)&&(v=oJ(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Zf.call("_guiRelayout",n,{selections:v}).then(function(){r&&sJ(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function yA(e){return e._id}function Ih(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(yA),l=t.map(yA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function wJ(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Qf(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var le=bA(e,!0);if(le.length){var ve=le[0].xref,me=le[0].yref;if(ve&&me){var De=DA(le),Re=EA([En(e,ve,"x"),En(e,me,"y")]);Re(B,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:U&&$f(e,B),h._reselect=!1}if(!l&&h._deselect){var Le=h._deselect;o=Le.xref,s=Le.yref,kJ(o,s,f)||qA(e,o,s,a),U&&(B.points.length?$f(e,B):mg(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function AJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";zA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var ec=J((Eue,NA)=>{"use strict";NA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var uu=J((Rue,HA)=>{"use strict";var FA=yg(),IA=ma(),Hh=jt(),DJ=ct().templatedArray,Pue=ec();HA.exports=DJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:IA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:FA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:FA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Hh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Hh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Hh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:IA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Oh=J((zue,OA)=>{"use strict";OA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var YA=J((Nue,BA)=>{"use strict";BA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Oo=J((Fue,KA)=>{"use strict";var UA=h0().axisHoverFormat,{hovertemplateAttrs:EJ,texttemplateAttrs:PJ,templatefallbackAttrs:VA}=fo(),GA=pf(),RJ=ma(),WA=gi().dash,zJ=gi().pattern,NJ=at(),FJ=Oh(),rc=Wt().extendFlat,IJ=YA();function XA(e){return{valType:"any",dflt:0,editType:"calc"}}function ZA(e){return{valType:"any",editType:"calc"}}function JA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}KA.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:XA("x"),yperiod:XA("y"),xperiod0:ZA("x0"),yperiod0:ZA("y0"),xperiodalignment:JA("x"),yperiodalignment:JA("y"),xhoverformat:UA("x"),yhoverformat:UA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:PJ(),texttemplatefallback:VA({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:EJ({},{keys:FJ.eventDataKeys}),hovertemplatefallback:VA(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:rc({},WA,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:IJ(!0),fillgradient:rc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:zJ,marker:rc({symbol:{valType:"enumerated",values:NJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:rc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:rc({},WA,{arrayOk:!0}),editType:"calc"},GA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},GA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:RJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gg=J((Hue,jA)=>{"use strict";var QA=uu(),$A=Oo().line,HJ=gi().dash,Bh=Wt().extendFlat,OJ=yi().overrideAll,BJ=ct().templatedArray,Iue=ec();jA.exports=OJ(BJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Bh({},QA.xref,{}),yref:Bh({},QA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:$A.color,width:Bh({},$A.width,{min:1,dflt:1}),dash:Bh({},HJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ak=J((Oue,tk)=>{"use strict";var ek=Ie(),Yh=dt(),YJ=$n(),UJ=gg(),rk=Pl();tk.exports=function(r,t){YJ(r,t,{name:"selections",handleItemDefaults:VJ});for(var a=t.selections,n=0;n{"use strict";nk.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var tc=J((Yue,sk)=>{"use strict";var GJ=br(),lk=Ie(),ok=Zt();sk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=GJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var uk=ag(),ac=RA();fk.exports={moduleType:"component",name:"selections",layoutAttributes:gg(),supplyLayoutDefaults:ak(),supplyDrawNewSelectionDefaults:ik(),includeBasePlot:tc()("selections"),draw:uk.draw,drawOne:uk.drawOne,reselect:ac.reselect,prepSelect:ac.prepSelect,clearOutline:ac.clearOutline,clearSelectionsCache:ac.clearSelectionsCache,selectOnClick:ac.selectOnClick}});var Dk=J((Vue,qk)=>{"use strict";var Tg=Ir(),Pn=Ie(),ck=Pn.numberFormat,WJ=_n(),XJ=ay(),Uh=br(),xk=Pn.strTranslate,ZJ=ya(),vk=Er(),zl=at(),JJ=Li(),hk=dt(),KJ=Cl(),QJ=ei(),_k=au(),Vh=_k.selectingOrDrawing,$J=_k.freeMode,jJ=Ma().FROM_TL,eK=oh(),rK=qh().redrawReglTraces,tK=Ht(),xg=Zt().getFromId,aK=fu().prepSelect,nK=fu().clearOutline,iK=fu().selectOnClick,bg=Jy(),Mg=jt(),dk=Mg.MINDRAG,Ua=Mg.MINZOOM,pk=!0;function lK(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,y,g,_,w,T,b,M,C,k,q,D,P,z,F,O,I,W,Z,V;t+=r.yaxis._shift;function Y(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var Te=r.overlays,ke=0;ke=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(wg(He),Te===2&&!f&&Ge(),u)Je.indexOf("select")>-1&&iK(ke,He,y,g,r.id,K),Je.indexOf("event")>-1&&JJ.click(He,ke,r.id);else if(Te===1&&f){var Ve=l?h:v,Xe=l==="s"||o==="w"?0:1,lr=Ve._name+".range["+Xe+"]",tr=oK(Ve,Xe),Qe="left",Ne="middle";if(Ve.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ve.side==="right"&&(Qe="right")):o==="e"&&(Qe="right"),He._context.showAxisRangeEntryBoxes&&Tg.select(Q).call(ZJ.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(tr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:Qe,verticalAlign:Ne}).on("edit",function(ae){var oe=Ve.d2r(ae);oe!==void 0&&Uh.call("_guiRelayout",He,lr,oe)})}}QJ.init(K);var ye,Se,re,Ce,de,be,ge,Ae,B,$;function U(Te,ke,He){var Je=Q.getBoundingClientRect();ye=ke-Je.left,Se=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ve=Pn.apply3DTransform(e._fullLayout._invTransform)(ye,Se);ye=Ve[0],Se=Ve[1],re={l:ye,r:ye,w:0,t:Se,b:Se,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:WJ(e._fullLayout.plot_bgcolor).getLuminance(),de="M0,0H"+T+"V"+b+"H0V0",be=!1,ge="xy",$=!1,Ae=Mk(s,Ce,_,w,de),B=Ak(s,_,w)}function le(Te,ke){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(T,Z*Te+ye)),Je=Math.max(0,Math.min(b,V*ke+Se)),Ve=Math.abs(He-ye),Xe=Math.abs(Je-Se);re.l=Math.min(ye,He),re.r=Math.max(ye,He),re.t=Math.min(Se,Je),re.b=Math.max(Se,Je);function lr(){ge="",re.r=re.l,re.t=re.b,B.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ve>Ua||Xe>Ua?(ge="xy",Ve/T>Xe/b?(Xe=Ve*b/T,Se>Je?re.t=Se-Xe:re.b=Se+Xe):(Ve=Xe*T/b,ye>He?re.l=ye-Ve:re.r=ye+Ve),B.attr("d",Gh(re))):lr();else if(C.isSubplotConstrained)if(Ve>Ua||Xe>Ua){ge="xy";var tr=Math.min(re.l/T,(b-re.b)/b),Qe=Math.max(re.r/T,(b-re.t)/b);re.l=tr*T,re.r=Qe*T,re.b=(1-tr)*b,re.t=(1-Qe)*b,B.attr("d",Gh(re))}else lr();else!q||Xe0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(lr.maxallowed!==void 0&&P===(lr.range[0]1&&(tr.maxallowed!==void 0&&z===(tr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function uK(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Mk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",xk(t,a)).attr("d",n+"Z")}function Ak(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vk.background,stroke:vk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xk(r,t)).attr("d","M0,0Z")}function kk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),Sk(e,r,n,i)}function Sk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function wg(e){Tg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ck(e){pk&&e.data&&e._context.showTips&&(Pn.notifier(Pn._(e,"Double-click to zoom back out"),"long"),pk=!1)}function fK(e,r){return"M"+(e.l-.5)+","+(r-Ua-.5)+"h-3v"+(2*Ua+1)+"h3ZM"+(e.r+.5)+","+(r-Ua-.5)+"h3v"+(2*Ua+1)+"h-3Z"}function cK(e,r){return"M"+(r-Ua-.5)+","+(e.t-.5)+"v-3h"+(2*Ua+1)+"v3ZM"+(r-Ua-.5)+","+(e.b+.5)+"v3h"+(2*Ua+1)+"v-3Z"}function Gh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ua)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function gk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var vK=Ir(),Wh=Li(),hK=ei(),dK=Cl(),ai=Dk().makeDragBox,aa=jt().DRAGGERSIZE;Xh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){vK.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ai(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Wh.hover(r,h,i)},Wh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,hK.unhover(r,h))},r._context.showAxisDragHandles&&(ai(r,l,o._offset-aa,s._offset-aa,aa,aa,"n","w"),ai(r,l,o._offset+o._length,s._offset-aa,aa,aa,"n","e"),ai(r,l,o._offset-aa,s._offset+s._length,aa,aa,"s","w"),ai(r,l,o._offset+o._length,s._offset+s._length,aa,aa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=aa),ai(r,l,o._offset+o._length*.1,f,o._length*.8,aa,"","ew"),ai(r,l,o._offset,f,o._length*.1,aa,"","w"),ai(r,l,o._offset+o._length*.9,f,o._length*.1,aa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=aa),ai(r,l,v,s._offset+s._length*.1,aa,s._length*.8,"ns",""),ai(r,l,v,s._offset+s._length*.9,aa,s._length*.1,"s",""),ai(r,l,v,s._offset,aa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Wh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Wh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Xh.updateFx(r)}};Xh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";dK(r._draggers,t)}});var Rk=J((Wue,Pk)=>{"use strict";var Ek=br();Pk.exports=function(r){for(var t=Ek.layoutArrayContainers,a=Ek.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var pK=fl(),kg=Rv(),nc=uo(),mK=bp().sorterAsc,Sg=br();ic.containerArrayMatch=Rk();var yK=ic.isAddVal=function(r){return r==="add"||pK(r)},zk=ic.isRemoveVal=function(r){return r===null||r==="remove"};ic.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=Sg.getComponentMethod(l,"supplyLayoutDefaults"),s=Sg.getComponentMethod(l,"draw"),u=Sg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===kg||s===kg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&nc.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(zk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return nc.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(mK),y=t.get(),g=y||[],_=i(h,l).get(),w=[],T=-1,b=g.length,M,C,k,q,D,P,z,F;for(M=0;Mg.length-(z?0:1)){nc.warn("index out of range",l,k);continue}if(P!==void 0)D.length>1&&nc.warn("Insertion & removal are incompatible with edits to the same index.",l,k),zk(P)?w.push(k):z?(P==="add"&&(P={}),g.splice(k,0,P),_&&_.splice(k,0,{})):nc.warn("Unrecognized full object edit value",l,k,P),T===-1&&(T=k);else for(C=0;C=0;M--)g.splice(w[M],1),_&&_.splice(w[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==kg){var O;if(T===-1)O=m;else{for(b=Math.max(g.length,b),O=[],M=0;M=T));M++)O.push(k);for(M=T;M{"use strict";var Ok=Hr(),Bk=br(),Ia=Ie(),lc=Ht(),Yk=Zt(),Uk=Er(),oc=Yk.cleanId,gK=Yk.getFromTrace,Cg=Bk.traceIs,bK=["x","y","z"];Rn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ia.log("Clearing previous rejected promises from queue."),e._promises=[]};Rn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(lc.subplotsRegistry.cartesian||{}).attrRegex,n=(lc.subplotsRegistry.polar||{}).attrRegex,i=(lc.subplotsRegistry.ternary||{}).attrRegex,l=(lc.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Uk.clean(e),e.template&&e.template.layout&&Rn.cleanLayout(e.template.layout),e};function cu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=oc(a,n,!0))}Rn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Rn.hasParent=function(e,r){for(var t=Hk(r);t;){if(t in e)return!0;t=Hk(t)}return!1};Rn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ia.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aIa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Lg(n,i):!1))return!1}return!0}return!1};Rn.collectionsAreEqual=Lg});var zg=J(Yr=>{"use strict";var Qh=Ir(),wK=Hr(),TK=Pp(),rr=Ie(),st=rr.nestedProperty,Eg=uf(),Va=M6(),zn=br(),nd=Fs(),xr=Ht(),Ha=dt(),MK=ty(),AK=Qn(),qg=at(),kK=Er(),SK=Ag().initInteractions,CK=xo(),LK=fu().clearOutline,Jk=so().dfltConfig,Jh=Nk(),It=Vk(),et=qh(),Nl=yi(),qK=jt().AX_NAME_PATTERN,Dg=0,Gk=5;function DK(e,r,t,a){var n;if(e=rr.getGraphDiv(e),Eg.init(e),rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Eg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!rr.isPlotDiv(e)&&rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Yr.addFrames(e,n)}Qk(e,a),t||(t={}),Qh.select(e).classed("js-plotly-plot",!0),qg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(It.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=It.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(eQ(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),qg.initGradients(e),qg.initPatterns(e),s&&Ha.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function $k(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),jh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&jh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function NK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],O=q.parts[z-1]+"."+F,I=q.parts.slice(0,z).join("."),W=st(e.layout,I).get(),Z=st(a,I).get(),V=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:ji(V);var Y=nd.getLayoutValObject(a,q.parts);if(Y&&Y.impliedEdits&&D!==null)for(var H in Y.impliedEdits)T(rr.relativeAttr(k,H),Y.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var Q=k==="height"?"width":"height";T(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(O.match(oS))C(O),st(a,I+"._inputRange").set(null);else if(O.match(sS)){C(O),st(a,I+"._inputRange").set(null);var K=st(a,I).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else O.match(OK)&&st(a,I+"._inputDomain").set(null);if(F==="type"){M=W;var ne=Z.type==="linear"&&D==="log",pe=Z.type==="log"&&D==="linear";if(ne||pe){if(!M||!M.range)T(I+".autorange",!0);else if(Z.autorange)ne&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ye=M.range[0],Se=M.range[1];ne?(ye<=0&&Se<=0&&T(I+".autorange",!0),ye<=0?ye=Se/1e6:Se<=0&&(Se=ye/1e6),T(I+".range[0]",Math.log(ye)/Math.LN10),T(I+".range[1]",Math.log(Se)/Math.LN10)):(T(I+".range[0]",Math.pow(10,ye)),T(I+".range[1]",Math.pow(10,Se)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],zn.getComponentMethod("annotations","convertCoords")(e,Z,D,T),zn.getComponentMethod("images","convertCoords")(e,Z,D,T)}else T(I+".autorange",!0),T(I+".range",null);st(a,I+"._inputRange").set(null)}else if(F.match(qK)){var re=st(a,k).get(),Ce=(D||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),zn.getComponentMethod("annotations","convertCoords")(e,re,Ce,T),zn.getComponentMethod("images","convertCoords")(e,re,Ce,T)}var de=Jh.containerArrayMatch(k);if(de){f=de.array,v=de.index;var be=de.property,ge=Y||{editType:"calc"};v!==""&&be===""&&(Jh.isAddVal(D)?w[k]=null:Jh.isRemoveVal(D)?w[k]=(st(t,f).get()||[])[v]:rr.warn("unrecognized full object value",r)),Nl.update(g,ge),u[f]||(u[f]={});var Ae=u[f][v];Ae||(Ae=u[f][v]={}),Ae[be]=D,delete r[k]}else F==="reverse"?(W.range?W.range.reverse():(T(I+".autorange",!0),W.range=[1,0]),Z.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&V!==!1||D!==!1&&V===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(V==="lasso"||V==="select")?g.plot=!0:Y?Nl.update(g,Y):g.calc=!0,q.set(D))}}for(f in u){var B=Jh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);B||(g.plot=!0)}for(var $ in b){M=Ha.getFromId(e,$);var U=M&&M._constraintGroup;if(U){g.calc=!0;for(var le in U)b[le]||(Ha.getFromId(e,le)._constraintShrinkable=!0)}}(fS(e)||r.height||r.width)&&(g.plot=!0);var ve=a.shapes;for(v=0;v1;)if(a.pop(),t=st(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function UK(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[I,W]of O)W.forEach(Z=>e.on(I,Z));return Yr.react(e,r,t,a)})}else{e.data=r||[],It.cleanData(e.data),e.layout=t||{},It.cleanLayout(e.layout),GK(e.data,e.layout,o,s),xr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,y=ZK(e,s,h,d,m),g=y.newDataRevision,_=XK(e,o,v,d,m,g);if(fS(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function XK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Nl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=nd.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var O=0;Oa._timeToNext&&m()};F()}var g=0;function _(F){return Array.isArray(n)?g>=n.length?F.transitionOpts=n[g]:F.transitionOpts=n[0]:F.transitionOpts=n,g++,F}var w,T,b=[],M=r==null,C=Array.isArray(r),k=!M&&!C&&rr.isPlainObject(r);if(k)b.push({type:"object",data:_(rr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function KK(e,r,t){if(e=rr.getGraphDiv(e),r==null)return Promise.resolve();if(!rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(rr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,y=s[d]||v[d];d&&m&&typeof m=="number"&&y&&Dgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Va&&Va.add(e,o,u,s,f),xr.modifyFrames(e,i)}function $K(e){e=rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Eg.purge(e),r._container&&r._container.remove(),delete e._context,e}function jK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!rr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=rr.inverseTransformMatrix(rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function eQ(e){var r=Qh.select(e),t=e._fullLayout;if(t._calcInverseTransform=jK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Qh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=rr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(CK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Yr.animate=JK;Yr.addFrames=KK;Yr.deleteFrames=QK;Yr.addTraces=aS;Yr.deleteTraces=nS;Yr.extendTraces=rS;Yr.moveTraces=Pg;Yr.prependTraces=tS;Yr.newPlot=zK;Yr._doPlot=DK;Yr.purge=$K;Yr.react=WK;Yr.redraw=RK;Yr.relayout=sc;Yr.restyle=ed;Yr.setPlotConfig=EK;Yr.update=td;Yr._guiRelayout=Rg(sc);Yr._guiRestyle=Rg(ed);Yr._guiUpdate=Rg(td);Yr._storeDirectGUIEdit=HK});var Bo=J(Ri=>{"use strict";var rQ=br();Ri.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Ri.getRedrawFunc=function(e){return function(){rQ.getComponentMethod("colorbar","draw")(e)}};Ri.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ri.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cS=window.URL||window.webkitURL;Ri.createObjectURL=function(e){return cS.createObjectURL(e)};Ri.revokeObjectURL=function(e){return cS.revokeObjectURL(e)};Ri.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=tQ(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Ri.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function tQ(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Fg=Ir(),Que=Ie(),aQ=at(),nQ=Er(),$ue=xo(),Ng=/"/g,fc="TOBESTRIPPED",iQ=new RegExp('("'+fc+")|("+fc+'")',"g");function lQ(e){var r=Fg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function oQ(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(aQ.setRect,0,0,o,s).call(nQ.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var sQ=Ie(),uQ=e0().EventEmitter,cc=Bo();function fQ(e){var r=e.emitter||new uQ,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),y=new i,g,_;o==="svg"||sQ.isSafari()?_=cc.encodeSVG(l):(g=cc.createBlob(l,"svg"),_=cc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var w;switch(g=null,cc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(g=null,cc.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},y.src=_});return e.promise?t:r}hS.exports=fQ});var Hg=J((rfe,mS)=>{"use strict";var dS=Hr(),pS=zg(),cQ=Ht(),zi=Ie(),vc=Bo(),vQ=ld(),hQ=od(),dQ=yv().version,Ig={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function pQ(e,r){r=r||{};var t,a,n,i;zi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=zi.getGraphDiv(e),t=zi.extendDeep([],e.data),a=zi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||zi.validate(r[C],Ig[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+zi.join2(Ig.format.values,", "," or ")+".");var o={};function s(C,k){return zi.coerce(r,o,Ig,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var g=zi.extendFlat({},a);f?g.width=f:r.width===null&&dS(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&dS(i.height)&&(g.height=i.height);var _=zi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=vc.getRedrawFunc(y);function T(){return new Promise(function(C){setTimeout(C,vc.getDelay(y._fullLayout))})}function b(){return new Promise(function(C,k){var q=vQ(y,u,h),D=y._fullLayout.width,P=y._fullLayout.height;function z(){pS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=cQ.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=dQ,F=JSON.stringify(F),z(),C(m?F:vc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:vc.encodeSVG(q));var O=document.createElement("canvas");O.id=zi.randstr(),hQ({format:u,width:D,height:P,scale:h,canvas:O,svg:q,promise:!0}).then(C).catch(k)})}function M(C){return m?C.replace(vc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){pS.newPlot(y,t,g,_).then(w).then(T).then(b).then(function(q){C(M(q))}).catch(function(q){k(q)})})}mS.exports=pQ});var bS=J((tfe,gS)=>{"use strict";var Nn=Ie(),mQ=Ht(),yQ=Fs(),gQ=so().dfltConfig,ni=Nn.isPlainObject,Uo=Array.isArray,Og=Nn.isArrayOrTypedArray;gS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=yQ.get(),n=[],i={_context:Nn.extendFlat({},gQ)},l,o;Uo(r)?(i.data=Nn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(na("array","data"))),ni(t)?(i.layout=Nn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(na("object","layout"))),mQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(na("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(g);w&&(_=Math.min(_,g.length));var T,b,M,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Uo(f[b])){f[b].length>v[b].length&&a.push(na("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,g[b].length):q);T++)M=w?g[b][T]:g,C=f[b][T],k=v[b][T],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b,T),C,k)):a.push(na("value",n,u.concat(b,T),C))}else a.push(na("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)M=w?g[b]:g,C=f[b],k=v[b],Nn.validate(C,M)?k!==C&&k!==+C&&a.push(na("dynamic",n,u.concat(b),C,k)):a.push(na("value",n,u.concat(b),C))}else if(h.items&&!m&&Uo(f)){var D=g[Object.keys(g)[0]],P=[],z,F;for(z=0;z{"use strict";var AQ=Ie(),ud=Bo();function kQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=ud.createBlob(e,t),u=ud.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ud.revokeObjectURL(u),s=null,l(r);if(AQ.isSafari()){var f=t==="svg"?",":";base64,";return ud.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}xS.exports=kQ});var Bg=J((ife,TS)=>{"use strict";var wS=Ie(),SQ=Hg(),CQ=_S(),nfe=Bo();function LQ(e,r){var t;return wS.isPlainObject(e)||(t=wS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=SQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),CQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}TS.exports=LQ});var CS=J(Yg=>{"use strict";var en=Ie(),rn=en.isPlainObject,MS=Fs(),AS=Ht(),qQ=Wn(),kS=ct(),SS=so().dfltConfig;Yg.makeTemplate=function(e){e=en.isPlainObject(e)?e:en.getGraphDiv(e),e=en.extendDeep({_context:SS},{data:e.data,layout:e.layout}),AS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};hc(d,m,EQ.bind(null,d));var y=en.coerce(d,{},qQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),hc(t,a.layout,DQ.bind(null,t)),delete a.layout.template;var n=t.template;if(rn(n)){var i=n.layout,l,o,s,u,f,v;rn(i)&&fd(i,a.layout);var h=n.data;if(rn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:g,dataCount:_}):_>g&&l.push({code:"reused",traceType:d,templateCount:g,dataCount:_})}}function w(T,b){for(var M in T)if(M.charAt(0)!=="_"){var C=T[M],k=Fn(T,M,b);rn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&PQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(RQ)};function PQ(e){for(var r=0;r{"use strict";var Jt=zg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var zQ=ef().getGraphDiv,NQ=Th().eraseActiveShape;mt.deleteActiveShape=function(e){return NQ(zQ(e))};mt.toImage=Hg();mt.validate=bS();mt.downloadImage=Bg();var LS=CS();mt.makeTemplate=LS.makeTemplate;mt.validateTemplate=LS.validateTemplate});var Vg=J((sfe,DS)=>{"use strict";var Ug=Ie(),FQ=br();DS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=FQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ug.minRowLength(i);l?o=Math.min(u,Ug.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ug.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Gg=J((ufe,RS)=>{"use strict";var ES=Ie().dateTick0,IQ=Gt(),HQ=IQ.ONEWEEK;function PS(e,r){return e%HQ===0?ES(r,1):ES(r,0)}RS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",PS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",PS(o,t.ycalendar)),n("yperiodalignment"))}}});var FS=J((ffe,NS)=>{"use strict";var zS=["orientation","groupnorm","stackgaps"];NS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var IS=Er(),HS=An().hasColorscale,OS=Bs(),OQ=ln();BS.exports=function(r,t,a,n,i,l={}){var o=OQ.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),HS(r,"marker")&&OS(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=IS.background:u=IS.defaultLine,i("marker.line.color",u),HS(r,"marker.line")&&OS(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var VS=J((vfe,US)=>{"use strict";var BQ=Ie().isArrayOrTypedArray,YQ=An().hasColorscale,UQ=Bs();US.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),YQ(r,"line"))UQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(BQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var WS=J((hfe,GS)=>{"use strict";GS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var ZS=J((dfe,XS)=>{"use strict";var VQ=Ie();XS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),VQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var QS=J((pfe,KS)=>{"use strict";var vd=Er(),JS=Ie().isArrayOrTypedArray;function GQ(e){for(var r=vd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var $S=Ie(),WQ=br(),XQ=Oo(),ZQ=Oh(),vu=ln(),JQ=Vg(),KQ=Gg(),QQ=FS(),$Q=YS(),jQ=VS(),jS=WS(),e$=ZS(),r$=QS(),t$=Ie().coercePattern;eC.exports=function(r,t,a,n){function i(d,m){return $S.coerce(r,t,XQ,d,m)}var l=JQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){KQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=QQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var a$=If().getAxisGroup;tC.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=a$(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,y=m[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=y.offsetIndex)}});var nC=J((gfe,aC)=>{"use strict";var n$=Ie(),i$=Wg(),l$=Oo();aC.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return n$.coerce(n._input,n,l$,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var lC=J((bfe,iC)=>{"use strict";var o$=Ie(),s$=i0();iC.exports=function(e,r){function t(n,i){return o$.coerce(e,r,s$,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Xg=J((xfe,sC)=>{"use strict";var u$=Hr(),oC=Ie(),f$=oC.dateTime2ms,hd=oC.incrementMonth,c$=Gt(),v$=c$.ONEAVGMONTH;sC.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(u$(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=f$(h,u)||0,m=[],y=[],g=[],_=n.length,w=0;w<_;w++){var T=n[w],b,M,C;if(o){for(b=Math.round((T-d)/(o*v$)),C=hd(d,o*b,u);C>T;)C=hd(C,-o,u);for(;C<=T;)C=hd(C,o,u);M=hd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;M=C-l}m[w]=f?M:v?C:(M+C)/2,y[w]=M,g[w]=C}return{vals:m,starts:y,ends:g}}});var cC=J((_fe,fC)=>{"use strict";var Zg=An().hasColorscale,Jg=y0(),uC=ln();fC.exports=function(r,t){uC.hasLines(t)&&Zg(t,"line")&&Jg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),uC.hasMarkers(t)&&(Zg(t,"marker")&&Jg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Zg(t,"marker.line")&&Jg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Kg=J((wfe,vC)=>{"use strict";var At=Ie();vC.exports=function(r,t){for(var a=0;a{"use strict";var hC=Ie();dC.exports=function(r,t){hC.isArrayOrTypedArray(t.selectedpoints)&&hC.tagSelected(r,t)}});var t2=J((Mfe,_C)=>{"use strict";var pC=Hr(),jg=Ie(),dc=dt(),mC=Xg(),$g=Gt().BADNUM,e2=ln(),h$=cC(),d$=Kg(),p$=Qg();function m$(e,r){var t=e._fullLayout,a=r._xA=dc.getFromId(e,r.xaxis||"x","x"),n=r._yA=dc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=mC(r,a,"x",i),s=mC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=r2(r,t,a,n),y=!1,g,_,w,T,b,M;bC(t,r);var C="x",k="y",q;if(m)jg.pushUnique(m.traceIndices,r.index),g=m.orientation==="v",g?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=gC(r,v);yC(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(M=h[T].s,w=h.length-1;w>T;w--)h[w].s=M;for(;_{"use strict";wC.exports=dd;var y$=Ie().distinctVals;function dd(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";MC.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var s2=J((Sfe,CC)=>{"use strict";var In=Hr(),{isArrayOrTypedArray:el}=Ie(),{BADNUM:hu}=Gt(),g$=br(),mc=dt(),{getAxisGroup:b$}=If(),pd=TC(),{TEXTPAD:x$}=pc(),{LINE_SPACING:_$}=Ma(),{BR_TAG_ALL:w$}=ya();function T$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!In(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*_$*t+x$;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function P$(e,r,t,a){for(var n=du(a),i=0;i{"use strict";var LC=t2(),qC=s2().setGroupPositions;function z$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var F$=at(),NC=Gt(),yc=NC.BADNUM,FC=NC.LOG_CLIP,PC=FC+.5,RC=FC-.5,md=Ie(),I$=md.segmentsIntersect,zC=md.constrain,f2=Oh();IC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,y=m==="linear",g=a.fill&&a.fill!=="none",_=[],w=f2.minTolerance,T=r.length,b=new Array(T),M=0,C,k,q,D,P,z,F,O,I,W,Z,V,Y,H,Q,K;function ne(Ne){var ae=r[Ne];if(!ae)return!1;var oe=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(oe===yc){if(l&&(oe=n.c2p(ae.x,!0)),oe===yc)return!1;o&&qe===yc&&(oe*=Math.abs(n._m*u*(n._m>0?PC:RC)/(i._m*s*(i._m>0?PC:RC)))),oe*=1e3}if(qe===yc){if(o&&(qe=i.c2p(ae.y,!0)),qe===yc)return!1;qe*=1e3}return[oe,qe]}function pe(Ne,ae,oe,qe){var Ee=oe-Ne,ar=qe-ae,cr=.5-Ne,sr=.5-ae,Mr=Ee*Ee+ar*ar,Br=Ee*cr+ar*sr;if(Br>0&&Br1||Math.abs(cr.y-oe[0][1])>1)&&(cr=[cr.x,cr.y],qe&&Ce(cr,Ne)ge||Ne[1]B)return[zC(Ne[0],be,ge),zC(Ne[1],Ae,B)]}function Oe(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===ge)||Ne[1]===ae[1]&&(Ne[1]===Ae||Ne[1]===B))return!0}function We(Ne,ae){var oe=[],qe=Fe(Ne),Ee=Fe(ae);return qe&&Ee&&Oe(qe,Ee)||(qe&&oe.push(qe),Ee&&oe.push(Ee)),oe}function Pe(Ne,ae,oe){return function(qe,Ee){var ar=Fe(qe),cr=Fe(Ee),sr=[];if(ar&&cr&&Oe(ar,cr))return sr;ar&&sr.push(ar),cr&&sr.push(cr);var Mr=2*md.constrain((qe[Ne]+Ee[Ne])/2,ae,oe)-((ar||qe)[Ne]+(cr||Ee)[Ne]);if(Mr){var Br;ar&&cr?Br=Mr>0==ar[Ne]>cr[Ne]?ar:cr:Br=ar||cr,Br[Ne]+=Mr}return sr}}var Be;m==="linear"||m==="spline"?Be=Le:m==="hv"||m==="vh"?Be=We:m==="hvh"?Be=Pe(0,be,ge):m==="vhv"&&(Be=Pe(1,Ae,B));function Ge(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Ee=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Ee>0?[qe>0?be:ge,B]:[qe>0?ge:be,Ae]}function ie(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[M-1][0],Ee=oe===b[M-1][1];if(!(qe&&Ee))if(M>1){var ar=ae===b[M-2][0],cr=oe===b[M-2][1];qe&&(ae===be||ae===ge)&&ar?cr?M--:b[M-1]=Ne:Ee&&(oe===Ae||oe===B)&&cr?ar?M--:b[M-1]=Ne:b[M++]=Ne}else b[M++]=Ne}function xe(Ne){b[M-1][0]!==Ne[0]&&b[M-1][1]!==Ne[1]&&ie([ve,me]),ie(Ne),De=null,ve=me=0}var Ke=md.isArrayOrTypedArray(v);function hr(Ne){if(Ne&&f&&(Ne.i=C,Ne.d=r,Ne.trace=a,Ne.marker=Ke?v[Ne.i]:v,Ne.backoff=f),ye=Ne[0]/s,Se=Ne[1]/u,U=Ne[0]ge?ge:0,le=Ne[1]B?B:0,U||le){if(!M)b[M++]=[U||Ne[0],le||Ne[1]];else if(De){var ae=Be(De,Ne);ae.length>1&&(xe(ae[0]),b[M++]=ae[1])}else Re=Be(b[M-1],Ne)[0],b[M++]=Re;var oe=b[M-1];U&&le&&(oe[0]!==U||oe[1]!==le)?(De&&(ve!==U&&me!==le?ie(ve&&me?Ge(De,Ne):[ve||U,me||le]):ve&&me&&ie([ve,me])),ie([U,le])):ve-U&&me-le&&ie([U||ve,le||me]),De=Ne,ve=U,me=le}else De&&xe(Be(De,Ne)[0]),b[M++]=Ne}for(C=0;Cre(z,ze))break;q=z,Y=I[0]*O[0]+I[1]*O[1],Y>Z?(Z=Y,D=z,F=!1):Y=r.length||!z)break;hr(z),k=z}}De&&ie([ve||De[0],me||De[1]]),_.push(b.slice(0,M))}var Te=m.slice(m.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var ke=!1,He=-1,Je=[],Ve=0;Ve<_.length;Ve++)for(var Xe=0;Xe<_[Ve].length-1;Xe++){var lr=_[Ve][Xe],tr=_[Ve][Xe+1],Qe=F$.applyBackoff(tr,lr);(Qe[0]!==tr[0]||Qe[1]!==tr[1])&&(ke=!0),Je[He+1]||(He++,Je[He]=[lr,[Qe[0],Qe[1]]])}return ke?Je:_}return _}});var YC=J((qfe,BC)=>{"use strict";var OC={tonextx:1,tonexty:1,tonext:1};BC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var ii=Ir(),H$=br(),gc=Ie(),pu=gc.ensureSingle,VC=gc.identity,Lt=at(),mu=ln(),O$=HC(),B$=YC(),yd=ig().tester;GC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=B$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),Y$(r,o,t),f){l&&(s=l());var h=ii.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){UC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){UC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Y$(e,r,t){r.each(function(a){var n=pu(ii.select(this),"g","fills");Lt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,VC);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=pu(ii.select(this),"path","js-fill")})})}function UC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;U$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=ii.select(i),g=pu(y,"g","errorbars"),_=pu(y,"g","lines"),w=pu(y,"g","points"),T=pu(y,"g","text");if(H$.getComponentMethod("errorbars","plot")(e,g,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,M,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",P=[],z=d._prevtrace,F=null,O=null;z&&(D=z._prevRevpath||"",M=z._nextFill,P=z._ownPolygons,F=z._fillsegments,O=z._fillElement);var I,W,Z="",V="",Y,H,Q,K,ne,pe,ye=[];d._polygons=[];var Se=[],re=[],Ce=gc.noop;if(b=d._ownFill,mu.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(Y=Lt.steps(m.shape),H=Lt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?Y=H=function(Pe){var Be=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Be[0]&&Pe[0][1]===Be[1]?Lt.smoothclosed(Pe.slice(1),m.smoothing):Lt.smoothopen(Pe,m.smoothing)}:Y=H=function(Pe){return"M"+Pe.join("L")},Q=function(Pe){return H(Pe.reverse())},re=O$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Se=new Array(re.length);var de=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(y,g){var _=y[0].trace;mu.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";XC.exports={container:"marker",min:"cmin",max:"cmax"}});var JC=J((Pfe,ZC)=>{"use strict";var gd=dt();ZC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=gd.getFromTrace(i,t,"x"),o=gd.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=gd.tickText(l,l.c2l(s),!0).text,n.yLabel=gd.tickText(o,o.c2l(u),!0).text,n}});var p2=J((Rfe,KC)=>{"use strict";var v2=Ir(),yu=at(),V$=br();function G$(e){var r=v2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=v2.select(this),n=t.trace||t[0].trace;h2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=v2.select(this),n=t.trace||t[0].trace;d2(a,n,e)}),r.selectAll("g.trace path.js-line").call(yu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(yu.fillGroupStyle,e,!1),V$.getComponentMethod("errorbars","style")(r)}function h2(e,r,t){yu.pointStyle(e.selectAll("path.point"),r,t)}function d2(e,r,t){yu.textPointStyle(e.selectAll("text"),r,t)}function W$(e,r,t){var a=r[0].trace;a.selectedpoints?(yu.selectedPointStyle(t.selectAll("path.point"),a),yu.selectedTextStyle(t.selectAll("text"),a)):(h2(t,a,e),d2(t,a,e))}KC.exports={style:G$,stylePoints:h2,styleText:d2,styleOnSelect:W$}});var $C=J((zfe,QC)=>{"use strict";var gu=Er(),X$=ln();QC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&gu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&gu.opacity(i)?i:l&&gu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?gu.opacity(n)<.3?gu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&gu.opacity(a)&&X$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var rL=J((Nfe,eL)=>{"use strict";var bd=Ie(),jC=Li(),Z$=br(),J$=$C(),m2=Er(),K$=bd.fillText;eL.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var g=function(V){if(m){var Y=o.c2p(V.xStart),H=o.c2p(V.xEnd);return u>=Math.min(Y,H)&&u<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(o.c2p(V.x)-u);return ne=Math.min(Y,H)&&f<=Math.max(Y,H)?0:1/0}var Q=Math.max(3,V.mrc||0),K=1-1/Q,ne=Math.abs(s.c2p(V.y)-f);return neye!=B>=ye&&(be=Ce[re-1][0],ge=Ce[re][0],B-Ae&&(de=be+(ge-be)*(ye-Ae)/(B-Ae),Q=Math.min(Q,de),K=Math.max(K,de)));return Q=Math.max(Q,0),K=Math.min(K,o._length),{x0:Q,x1:K,y0:ye,y1:ye}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=F(l._fillElement)&&!F(l._fillExclusionElement);if(I){var W=O(l._polygons);W===null&&(W={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var Z=m2.defaultLine;return m2.opacity(l.fillcolor)?Z=l.fillcolor:m2.opacity((l.line||{}).color)&&(Z=l.line.color),bd.extendFlat(r,{distance:r.maxHoverDistance,x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1,color:Z,hovertemplate:!1}),delete r.index,l.text&&!bd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var nL=J((Ffe,aL)=>{"use strict";var tL=ln();aL.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!tL.hasMarkers(o)&&!tL.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";iL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fL=J((Hfe,uL)=>{"use strict";var bc=br().traceIs,y2=zm();uL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Q$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Q$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=$$(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!bc(i,"cartesian")||bc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,sL(i,a)){var u=oL(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(sL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function oL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sL(e,r){var t=oL(e),a=bc(e,"box-violin"),n=bc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var vL=J((Ofe,cL)=>{"use strict";var j$=an().isTypedArraySpec;function ej(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||j$(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=ej(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var pL=J((Bfe,dL)=>{"use strict";var hL=_n().mix,rj=mi(),tj=Ie();dL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return tj.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=hL(i,n.bgColor,n.blend||rj.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=hL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!g||!!_||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b2=J((Yfe,_L)=>{"use strict";var mL=Hr(),aj=br(),xc=Ie(),nj=ct(),ij=$n(),g2=Qn(),yL=nm(),gL=lm(),lj=um(),oj=fm(),sj=vL(),uj=pL(),fj=ty(),bL=E0(),xd=jt().WEEKDAY_PATTERN,cj=jt().HOUR_PATTERN;_L.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=aj.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=xc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),bL(t,i),fj(r,t,a,n),sj(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==g2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(oj(r,t,a,v,n),!u)return t;a("title.text",_),xc.coerceFont(a,"title.font",o,{overrideDflt:{size:xc.bigFont(o.size),color:g}}),yL(r,t,a,v);var w=n.hasMinor;if(w&&(nj.newContainer(t,"minor"),yL(r,t,a,v,{isMinor:!0})),lj(r,t,a,v,n),gL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,gL(r,t,a,n),n.isMinor=T}uj(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g2}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(ij(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vj}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=xL(i[o]),s){l=xd;break}}var u=a("pattern",l);if(u===xd)for(o=0;o<2;o++)s=xL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case xd:if(!mL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case cj:if(!mL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var dj=Hr(),_d=Ie();wL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,y;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(dj(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=_d.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=_d.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var w=a("autoshift");w&&(d=_==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",y);var T=!1;if(l.length&&(T=_d.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),_d.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var DL=J((Vfe,qL)=>{"use strict";var Vo=Ie(),TL=Er(),pj=_i().isUnifiedHover,mj=Cy(),ML=ct(),yj=ks(),AL=Qn(),gj=fL(),kL=b2(),bj=If(),SL=x2(),w2=Zt(),Ni=w2.id2name,CL=w2.name2id,xj=jt().AX_ID_PATTERN,LL=br(),wd=LL.traceIs,_2=LL.getComponentMethod;function Td(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}qL.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},y,g;for(y=0;y{"use strict";var _j=Ir(),EL=br(),Md=Ie(),vn=at(),Ad=dt();PL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ad.redrawComponents(r);return}function l(g){var _=g.xaxis,w=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(vn.setTranslate,0,0).call(vn.setScale,1,1),g.plot.call(vn.setTranslate,_._offset,w._offset).call(vn.setScale,1,1);var T=g.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(vn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(vn.setTextPointsScale,1,1),T.call(vn.hideOutsideRangePoints,g)}function o(g,_){var w=g.plotinfo,T=w.xaxis,b=w.yaxis,M=T._length,C=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var P=Md.simpleMap(g.xr0,T.r2l),z=Md.simpleMap(g.xr1,T.r2l),F=P[1]-P[0],O=z[1]-z[0];D[0]=(P[0]*(1-_)+_*z[0]-P[0])/(P[1]-P[0])*M,D[2]=M*(1-_+_*O/F),T.range[0]=T.l2r(P[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(P[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=M;if(q){var I=Md.simpleMap(g.yr0,b.r2l),W=Md.simpleMap(g.yr1,b.r2l),Z=I[1]-I[0],V=W[1]-W[0];D[1]=(I[1]*(1-_)+_*W[1]-I[1])/(I[0]-I[1])*C,D[3]=C*(1-_+_*V/Z),b.range[0]=T.l2r(I[0]*(1-_)+_*W[0]),b.range[1]=b.l2r(I[1]*(1-_)+_*W[1])}else D[1]=0,D[3]=C;Ad.drawOne(r,T,{skipTitle:!0}),Ad.drawOne(r,b,{skipTitle:!0}),Ad.redrawComponents(r,[T._id,b._id]);var Y=k?M/D[2]:1,H=q?C/D[3]:1,Q=k?D[0]:0,K=q?D[1]:0,ne=k?D[0]/D[2]*M:0,pe=q?D[1]/D[3]*C:0,ye=T._offset-ne,Se=b._offset-pe;w.clipRect.call(vn.setTranslate,Q,K).call(vn.setScale,1/Y,1/H),w.plot.call(vn.setTranslate,ye,Se).call(vn.setScale,Y,H),vn.setPointGroupScale(w.zoomScalePts,1/Y,1/H),vn.setTextPointsScale(w.zoomScaleTxt,1/Y,1/H)}var s;n&&(s=n());function u(){for(var g={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return v=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Cd=J(Sa=>{"use strict";var Sd=Ir(),zL=br(),Go=Ie(),wj=Ht(),Tj=at(),NL=Yp().getModuleCalcData,Fl=Zt(),li=jt(),Mj=xo(),Xr=Go.ensureSingle;function kd(e,r,t){return Go.ensureSingle(e,r,t,function(a){a.datum(t)})}var Wo=li.zindexSeparator;Sa.name="cartesian";Sa.attr=["xaxis","yaxis"];Sa.idRoot=["x","y"];Sa.idRegex=li.idRegex;Sa.attrRegex=li.attrRegex;Sa.attributes=lL();Sa.layoutAttributes=Qn();Sa.supplyLayoutDefaults=DL();Sa.transitionAxes=RL();Sa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Wo)!==-1)continue;d+=Wo+(u+1),h=Go.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(M+=Wo+b),T.push(o+M),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.xaxislayer=Xr(a,"g","xaxislayer-above"),r.yaxislayer=Xr(a,"g","yaxislayer-above");else{if(!l){var h=Xr(a,"g","layer-subplot");r.shapelayer=Xr(h,"g","shapelayer"),r.imagelayer=Xr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xr(a,"g","minor-gridlayer"),r.gridlayer=Xr(a,"g","gridlayer"),r.zerolinelayer=Xr(a,"g","zerolinelayer"));var d=Xr(a,"g","layer-between");r.shapelayerBetween=Xr(d,"g","shapelayer"),r.imagelayerBetween=Xr(d,"g","imagelayer"),Xr(a,"path","xlines-below"),Xr(a,"path","ylines-below"),r.overlinesBelow=Xr(a,"g","overlines-below"),Xr(a,"g","xaxislayer-below"),Xr(a,"g","yaxislayer-below"),r.overaxesBelow=Xr(a,"g","overaxes-below")}r.overplot=Xr(a,"g","overplot"),r.plot=Xr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xr(a,"g","zerolinelayer-above"),l||(r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.overlinesAbove=Xr(a,"g","overlines-above"),Xr(a,"g","xaxislayer-above"),Xr(a,"g","yaxislayer-above"),r.overaxesAbove=Xr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,y=n+"-x",g=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xr(v.overlinesBelow,"path",y),Xr(v.overlinesBelow,"path",g),Xr(v.overaxesBelow,"g",y),Xr(v.overaxesBelow,"g",g),r.plot=Xr(v.overplot,"g",n),Xr(v.overlinesAbove,"path",y),Xr(v.overlinesAbove,"path",g),Xr(v.overaxesAbove,"g",y),Xr(v.overaxesAbove,"g",g),r.xlines=m.select(".overlines-"+o).select("."+y),r.ylines=m.select(".overlines-"+s).select("."+g),r.xaxislayer=m.select(".overaxes-"+o).select("."+y),r.yaxislayer=m.select(".overaxes-"+s).select("."+g)}l||(u||(kd(r.minorGridlayer,"g",r.xaxis._id),kd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort),kd(r.gridlayer,"g",r.xaxis._id),kd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(Fl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function HL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Sd.select(this);f.remove(),OL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var Ld=ln();BL.exports={hasLines:Ld.hasLines,hasMarkers:Ld.hasMarkers,hasText:Ld.hasText,isBubble:Ld.isBubble,attributes:Oo(),layoutAttributes:i0(),supplyDefaults:rC(),crossTraceDefaults:nC(),supplyLayoutDefaults:lC(),calc:t2().calc,crossTraceCalc:EC(),arraysToCalcdata:Kg(),plot:WC(),colorbar:c2(),formatLabels:JC(),style:p2().style,styleOnSelect:p2().styleOnSelect,hoverPoints:rL(),selectPoints:nL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var GL=J((Zfe,VL)=>{"use strict";var kj=Ir(),Sj=Er(),UL=yg(),T2=Ie(),Cj=T2.strScale,Lj=T2.strRotate,qj=T2.strTranslate;VL.exports=function(r,t,a){var n=r.node(),i=UL[a.arrowhead||0],l=UL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,y,g;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,w=d.y-m.y;if(y=Math.atan2(w,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){I();return}if(v){if(v*v>_*_+w*w){I();return}var T=v*Math.cos(y),b=v*Math.sin(y);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){I();return}var M=h*Math.cos(y),C=h*Math.sin(y);d.x-=M,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var WL=Ir(),M2=br(),Dj=Ht(),Hl=Ie(),A2=Hl.strTranslate,wc=dt(),Xo=Er(),rl=at(),XL=Li(),k2=ya(),S2=Cl(),_c=ei(),Ej=ct().arrayEditor,Pj=GL();KL.exports={draw:Rj,drawOne:ZL,drawRaw:JL};function Rj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ee="right":Ee="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ee]}for(var Ae=!1,B=["x","y"],$=0;$1)&&(ve===le?(ze=me.r2fraction(r["a"+U]),(ze<0||ze>1)&&(Ae=!0)):Ae=!0),Be=me._offset+me.r2p(r[U]),xe=.5}else{var Te=hr==="domain";U==="x"?(ie=r[U],Be=Te?me._offset+me._length*ie:Be=o.l+o.w*ie):(ie=1-r[U],Be=Te?me._offset+me._length*ie:Be=o.t+o.h*ie),xe=r.showarrow?.5:ie}if(r.showarrow){Pe.head=Be;var ke=r["a"+U];if(Ke=Re*ge(.5,r.xanchor)-Le*ge(.5,r.yanchor),ve===le){var He=wc.getRefType(ve);He==="domain"?(U==="y"&&(ke=1-ke),Pe.tail=me._offset+me._length*ke):He==="paper"?U==="y"?(ke=1-ke,Pe.tail=o.t+o.h*ke):Pe.tail=o.l+o.w*ke:Pe.tail=me._offset+me.r2p(ke),Ge=Ke}else Pe.tail=Be+ke,Ge=Ke+ke;Pe.text=Pe.tail+Ke;var Je=l[U==="x"?"width":"height"];if(le==="paper"&&(Pe.head=Hl.constrain(Pe.head,1,Je-1)),ve==="pixel"){var Ve=-Math.max(Pe.tail-3,Pe.text),Xe=Math.min(Pe.tail+3,Pe.text)-Je;Ve>0?(Pe.tail+=Ve,Pe.text+=Ve):Xe>0&&(Pe.tail-=Xe,Pe.text-=Xe)}Pe.tail+=We,Pe.head+=We}else Ke=Fe*ge(xe,Oe),Ge=Ke,Pe.text=Be+Ke;Pe.text+=We,Ke+=We,Ge+=We,r["_"+U+"padplus"]=Fe/2+Ge,r["_"+U+"padminus"]=Fe/2-Ge,r["_"+U+"size"]=Fe,r["_"+U+"shift"]=Ke}if(Ae){k.remove();return}var lr=0,tr=0;if(r.align!=="left"&&(lr=(re-ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(tr=(Ce-Se)*(r.valign==="middle"?.5:1)),ne)K.select("svg").attr({x:P+lr-1,y:P+tr}).call(rl.setClipUrl,F?y:null,e);else{var Qe=P+tr-pe.top,Ne=P+lr-pe.left;Z.call(k2.positionText,Ne,Qe).call(rl.setClipUrl,F?y:null,e)}O.select("rect").call(rl.setRect,P,P,re,Ce),z.call(rl.setRect,q/2,q/2,de-q,be-q),k.call(rl.setTranslate,Math.round(g.x.text-de/2),Math.round(g.y.text-be/2)),T.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Ee){w.selectAll(".annotation-arrow-g").remove();var ar=g.x.head,cr=g.y.head,sr=g.x.tail+qe,Mr=g.y.tail+Ee,Br=g.x.text+qe,$r=g.y.text+Ee,it=Hl.rotationXYMatrix(_,Br,$r),_t=Hl.apply2DTransform(it),yt=Hl.apply2DTransform2(it),Dt=+z.attr("width"),Kt=+z.attr("height"),qa=Br-.5*Dt,sa=qa+Dt,ua=$r-.5*Kt,vr=ua+Kt,lt=[[qa,ua,qa,vr],[qa,vr,sa,vr],[sa,vr,sa,ua],[sa,ua,qa,ua]].map(yt);if(!lt.reduce(function(wt,ca){return wt^!!Hl.segmentsIntersect(ar,cr,ar+1e6,cr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){lt.forEach(function(wt){var ca=Hl.segmentsIntersect(sr,Mr,ar,cr,wt[0],wt[1],wt[2],wt[3]);ca&&(sr=ca.x,Mr=ca.y)});var Zr=r.arrowwidth,ft=r.arrowcolor,St=r.arrowside,bt=w.append("g").style({opacity:Xo.opacity(ft)}).classed("annotation-arrow-g",!0),Qr=bt.append("path").attr("d","M"+sr+","+Mr+"L"+ar+","+cr).style("stroke-width",Zr+"px").call(Xo.stroke,Xo.rgb(ft));if(Pj(Qr,St,r),s.annotationPosition&&Qr.node().parentNode&&!a){var fa=ar,mn=cr;if(r.standoff){var Qt=Math.sqrt(Math.pow(ar-sr,2)+Math.pow(cr-Mr,2));fa+=r.standoff*(sr-ar)/Qt,mn+=r.standoff*(Mr-cr)/Qt}var hi=bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-fa)+","+(Mr-mn),transform:A2(fa,mn)}).style("stroke-width",Zr+6+"px").call(Xo.stroke,"rgba(0,0,0,0)").call(Xo.fill,"rgba(0,0,0,0)"),yn,Ct;_c.init({element:hi.node(),gd:e,prepFn:function(){var wt=rl.getTranslate(k);yn=wt.x,Ct=wt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(wt,ca){var Kl=_t(yn,Ct),Ql=Kl[0]+wt,ol=Kl[1]+ca;k.call(rl.setTranslate,Ql,ol),d("x",Il(n,wt,"x",o,r)),d("y",Il(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Il(n,wt,"ax",o,r)),r.ayref===r.yref&&d("ay",Il(i,ca,"ay",o,r)),bt.attr("transform",A2(wt,ca)),T.attr({transform:"rotate("+_+","+Ql+","+ol+")"})},doneFn:function(){M2.call("_guiRelayout",e,m());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;_c.init({element:k.node(),gd:e,prepFn:function(){oe=T.attr("transform")},moveFn:function(qe,Ee){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Il(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Il(i,Ee,"ay",o.w,r)):d("ay",r.ay+Ee),ae(qe,Ee);else{if(a)return;var cr,sr;if(n)cr=Il(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=_c.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)sr=Il(i,Ee,"y",o,r);else{var $r=r._ysize/o.h,it=r.y-(r._yshift+r.yshift)/o.h-$r/2;sr=_c.align(it-Ee/o.h,$r,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&(ar=_c.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}T.attr({transform:A2(qe,Ee)+oe}),S2(k,ar)},clickFn:function(qe,Ee){r.captureevents&&e.emit("plotly_clickannotation",C(Ee))},doneFn:function(){S2(k),M2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?Z.call(k2.makeEditable,{delegate:k,gd:e}).call(V).on("edit",function(H){r.text=H,this.call(V),d("text",H),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),M2.call("_guiRelayout",e,m())}):Z.call(V)}});var tq=J((Kfe,rq)=>{"use strict";var QL=Ie(),zj=br(),$L=ct().arrayEditor;rq.exports={hasClickToShow:Nj,onClick:Fj};function Nj(e,r){var t=eq(e,r);return t.on.length>0||t.explicitOff.length>0}function Fj(e,r){var t=eq(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var C2=Ie(),bu=Er();aq.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=bu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),C2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:bu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),y=a.hoverlabel||{};if(m){var g=n("hoverlabel.bgcolor",y.bgcolor||(bu.opacity(i)?bu.rgb(i):bu.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||bu.contrast(g)),w=C2.extendFlat({},y.font);w.color||(w.color=_),C2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var iq=J(($fe,nq)=>{"use strict";var q2=Ie(),Zo=dt(),Ij=$n(),Hj=L2(),Oj=uu();nq.exports=function(r,t){Ij(r,t,{name:"annotations",handleItemDefaults:Bj})};function Bj(e,r,t){function a(T,b){return q2.coerce(e,r,Oj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Hj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Zo.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Zo.getFromId(u,h);d._annIndices.push(r._index)}if(Zo.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Zo.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Zo.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(q2.noneOrAll(e,r,["x","y"]),l&&q2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Zo.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Zo.cleanPosition(w,u,r.yref)}}}});var sq=J((jfe,oq)=>{"use strict";var D2=Ie(),Jo=dt(),Yj=qd().draw;oq.exports=function(r){var t=r._fullLayout,a=D2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D2.syncOrAsync([Yj,Uj],r)};function Uj(e){var r=e._fullLayout;D2.filterVisible(r.annotations).forEach(function(t){var a=Jo.getFromId(e,t.xref),n=Jo.getFromId(e,t.yref),i=Jo.getRefType(t.xref),l=Jo.getRefType(t.yref);t._extremes={},i==="range"&&lq(t,a),l==="range"&&lq(t,n)})}function lq(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,g=m-f,_;if(o===l){var w=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Jo.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=Jo.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var fq=J((ece,uq)=>{"use strict";var Vj=Hr(),Gj=Sv();uq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],y=null;i?y=Gj(m,t.range):y=Math.pow(10,m),Vj(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var E2=qd(),cq=tq();vq.exports={moduleType:"component",name:"annotations",layoutAttributes:uu(),supplyLayoutDefaults:iq(),includeBasePlot:tc()("annotations"),calcAutorange:sq(),draw:E2.draw,drawOne:E2.drawOne,drawRaw:E2.drawRaw,hasClickToShow:cq.hasClickToShow,onClick:cq.onClick,convertCoords:fq()}});var Dd=J((tce,dq)=>{"use strict";var ut=uu(),Wj=yi().overrideAll,Xj=ct().templatedArray;dq.exports=Wj(Xj("annotation",{visible:ut.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ut.xanchor,xshift:ut.xshift,yanchor:ut.yanchor,yshift:ut.yshift,text:ut.text,textangle:ut.textangle,font:ut.font,width:ut.width,height:ut.height,opacity:ut.opacity,align:ut.align,valign:ut.valign,bgcolor:ut.bgcolor,bordercolor:ut.bordercolor,borderpad:ut.borderpad,borderwidth:ut.borderwidth,showarrow:ut.showarrow,arrowcolor:ut.arrowcolor,arrowhead:ut.arrowhead,startarrowhead:ut.startarrowhead,arrowside:ut.arrowside,arrowsize:ut.arrowsize,startarrowsize:ut.startarrowsize,arrowwidth:ut.arrowwidth,standoff:ut.standoff,startstandoff:ut.startstandoff,hovertext:ut.hovertext,hoverlabel:ut.hoverlabel,captureevents:ut.captureevents}),"calc","from-root")});var mq=J((ace,pq)=>{"use strict";var P2=Ie(),Zj=dt(),Jj=$n(),Kj=L2(),Qj=Dd();pq.exports=function(r,t,a){Jj(r,t,{name:"annotations",handleItemDefaults:$j,fullLayout:a.fullLayout})};function $j(e,r,t,a){function n(o,s){return P2.coerce(e,r,Qj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Zj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Kj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),P2.noneOrAll(e,r,["ax","ay"])))}});var xq=J((nce,bq)=>{"use strict";var yq=Ie(),gq=dt();bq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function R2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function eee(e,r){var t=R2(e.projection,R2(e.view,R2(e.model,[r[0],r[1],r[2],1])));return t}_q.exports=eee});var Mq=J((lce,Tq)=>{"use strict";var ree=qd().drawRaw,tee=wq(),aee=["x","y","z"];Tq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=tee(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),ree(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Sq=J((oce,kq)=>{"use strict";var nee=br(),Aq=Ie();kq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Dd()}}},layoutAttributes:Dd(),handleDefaults:mq(),includeBasePlot:iee,convert:xq(),draw:Mq()};function iee(e,r){var t=nee.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var sce=jt(),Cq=ma(),Lq=Oo().line,lee=gi().dash,oi=Wt().extendFlat,oee=ct().templatedArray,uce=ec(),xu=Wn(),qq=uu(),{shapeTexttemplateAttrs:see,templatefallbackAttrs:uee}=fo(),fee=Iv();Dq.exports=oee("shape",{visible:oi({},xu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:oi({},xu.legend,{editType:"calc+arraydraw"}),legendgroup:oi({},xu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:oi({},xu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Cq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:oi({},xu.legendrank,{editType:"calc+arraydraw"}),legendwidth:oi({},xu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:oi({},qq.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:oi({},qq.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:oi({},Lq.color,{editType:"arraydraw"}),width:oi({},Lq.width,{editType:"calc+arraydraw"}),dash:oi({},lee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:see({},{keys:Object.keys(fee)}),texttemplatefallback:uee({editType:"arraydraw"}),font:Cq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Pq=J((cce,Eq)=>{"use strict";var _u=Ie(),hn=dt(),cee=$n(),vee=z2(),Tc=Pl();Eq.exports=function(r,t){cee(r,t,{name:"shapes",handleItemDefaults:dee})};function hee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function dee(e,r,t){function a(T,b){return _u.coerce(e,r,vee,T,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),_u.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var v=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(T=>{var b=T+"anchor",M=T==="x"?v:h,C={_fullLayout:t},k,q,D,P;let z=T+"ref",F=e[z];if(Array.isArray(F)&&F.length>0){let O=Tc.countDefiningCoords(s,l,T);P=hn.coerceRefArray(e,r,C,T,void 0,"paper",O),r["_"+T+"refArray"]=!0}else P=hn.coerceRef(e,r,C,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){hn.getRefType(O)==="range"&&(k=hn.getFromId(C,O),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let I=P[O];hn.getRefType(I)==="range"?(k=hn.getFromId(C,I),q=Tc.shapePositionToRange(k),D=Tc.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(T+O+"shift")):q=D=_u.identity;let Z=T+O,V=e[Z];if(e[Z]=q(e[Z],!0),M==="pixel"?a(Z,m[O]):hn.coercePosition(r,C,a,I,Z,d[O]),r[Z]=D(r[Z]),e[Z]=V,O===0&&M==="pixel"){let Y=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,I,b,.25),r[b]=D(r[b]),e[b]=Y}});else{if(hn.getRefType(P)==="range"?(k=hn.getFromId(C,P),k._shapeIndices.push(r._index),D=Tc.rangeToShapePosition(k),q=Tc.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):q=D=_u.identity,u){let I=T+"0",W=T+"1",Z=e[I],V=e[W];e[I]=q(e[I],!0),e[W]=q(e[W],!0),M==="pixel"?(a(I,m[0]),a(W,m[1])):(hn.coercePosition(r,C,a,P,I,d[0]),hn.coercePosition(r,C,a,P,W,d[1])),r[I]=D(r[I]),r[W]=D(r[W]),e[I]=Z,e[W]=V}if(M==="pixel"){let I=e[b];e[b]=q(e[b],!0),hn.coercePosition(r,C,a,P,b,.25),r[b]=D(r[b]),e[b]=I}}}),u&&_u.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",g,_;if(u&&(g=a("label.texttemplate"),a("label.texttemplatefallback")),g||(_=a("label.text")),_||g){a("label.textangle");var w=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",hee(y,w)),a("label.padding"),_u.coerceFont(a,"label.font",t.font)}}});var Nq=J((vce,zq)=>{"use strict";var pee=Er(),Rq=Ie();function mee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}zq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),Rq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",pee.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",mee(l,u)),a("newshape.label.padding"),Rq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Uq=J((hce,Yq)=>{"use strict";var N2=Ie(),Hn=dt(),Fi=Rf(),F2=Pl();Yq.exports=function(r){var t=r._fullLayout,a=N2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Iq(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=Hn.getFromId(r,i.xref),o=Oq(l,i,Fi.paramIsX),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Iq(i))));if(u==="array"){let f=Fq(r,i,"y");Object.entries(f).forEach(([v,h])=>{l=Hn.getFromId(r,v),i._extremes[l._id]=Hn.findExtremes(l,h,Hq(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=Hn.getFromId(r,i.yref),o=Oq(l,i,Fi.paramIsY),o&&(i._extremes[l._id]=Hn.findExtremes(l,o,Hq(i))))}};function Fq(e,r,t){let a=r[t+"ref"],n=t==="x"?Fi.paramIsX:Fi.paramIsY;function i(v,h){v==="paper"||Hn.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(h))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(Fi.segmentRE)||[];for(var o=0,s=0;sm&&(i(a[o],y[m]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let v in l){let h=Hn.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=F2.decodeDate(f)),u[h._id]=l[v].map(f)}}return u}function Iq(e){return Bq(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Hq(e){return Bq(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Bq(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?F2.extractPathCoords(n,i?Fi.paramIsY:Fi.paramIsX):[t,a],u=N2.aggNums(Math.max,null,s),f=N2.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+l:l,h=u>0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Oq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Fi.segmentRE),m,y,g,_,w;for(e.type==="date"&&(u=F2.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Wq=J((dce,Gq)=>{"use strict";var Vq=Th();Gq.exports={moduleType:"component",name:"shapes",layoutAttributes:z2(),supplyLayoutDefaults:Pq(),supplyDrawNewShapeDefaults:Nq(),includeBasePlot:tc()("shapes"),calcAutorange:Uq(),draw:Vq.draw,drawOne:Vq.drawOne}});var I2=J((mce,Zq)=>{"use strict";var Xq=jt(),yee=ct().templatedArray,pce=ec();Zq.exports=yee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Xq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Xq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Kq=J((yce,Jq)=>{"use strict";var gee=Ie(),H2=dt(),bee=$n(),xee=I2(),_ee="images";Jq.exports=function(r,t){var a={name:_ee,handleItemDefaults:wee};bee(r,t,a)};function wee(e,r,t){function a(h,d){return gee.coerce(e,r,xee,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=H2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=H2.getFromId(l,f);v._imgIndices.push(r._index)}H2.coercePosition(r,l,a,f,u,0)}return r}});var eD=J((gce,jq)=>{"use strict";var Qq=Ir(),Tee=at(),wu=dt(),$q=Zt(),Mee=xo();jq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var rD=Hr(),Aee=Sv();tD.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";nD.exports={moduleType:"component",name:"images",layoutAttributes:I2(),supplyLayoutDefaults:Kq(),includeBasePlot:tc()("images"),draw:eD(),convertCoords:aD()}});var Ed=J((_ce,lD)=>{"use strict";lD.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var O2=J((wce,sD)=>{"use strict";var kee=ma(),See=mi(),Cee=Wt().extendFlat,Lee=yi().overrideAll,qee=Hv(),oD=ct().templatedArray,Dee=oD("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});sD.exports=Lee(oD("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Dee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Cee(qee({editType:"arraydraw"}),{}),font:kee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:See.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var vD=J((Tce,cD)=>{"use strict";var Pd=Ie(),uD=$n(),fD=O2(),Eee=Ed(),Pee=Eee.name,Ree=fD.buttons;cD.exports=function(r,t){var a={name:Pee,handleItemDefaults:zee};uD(r,t,a)};function zee(e,r,t){function a(l,o){return Pd.coerce(e,r,fD,l,o)}var n=uD(e,r,{name:"buttons",handleItemDefaults:Nee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Pd.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Pd.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Nee(e,r){function t(n,i){return Pd.coerce(e,r,Ree,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var pD=J((Mce,dD)=>{"use strict";dD.exports=xt;var si=Ir(),hD=Er(),Tu=at(),Rd=Ie();function xt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}xt.barWidth=2;xt.barLength=20;xt.barRadius=2;xt.barPad=1;xt.barColor="#808BA4";xt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",y=v==="up",g=s,_=f,w,T,b,M;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var C=h||y;C?(w=o,T=w+g,h?(b=u,M=Math.min(b+_,l),_=M-b):(M=u+_,b=Math.max(M-_,0),_=M-b)):(b=u,M=b+_,d?(T=o+g,w=Math.max(T-g,0),g=T-w):(w=o,T=Math.min(w+g,i),g=T-w)),this._box={l:w,t:b,w:g,h:_};var k=s>g,q=xt.barLength+2*xt.barPad,D=xt.barWidth+2*xt.barPad,P=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(hD.fill,xt.barColor),k?(this.hbar=F.attr({rx:xt.barRadius,ry:xt.barRadius,x:P,y:z,width:q,height:D}),this._hbarXMin=P+q/2,this._hbarTranslateMax=g-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>_,I=xt.barWidth+2*xt.barPad,W=xt.barLength+2*xt.barPad,Z=o+s,V=u;Z+I>i&&(Z=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(hD.fill,xt.barColor),O?(this.vbar=Y.attr({rx:xt.barRadius,ry:xt.barRadius,x:Z,y:V,width:I,height:W}),this._vbarYMin=V+W/2,this._vbarTranslateMax=_-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Q=w-.5,K=O?T+I+.5:T+.5,ne=b-.5,pe=k?M+D+.5:M+.5,ye=n._topdefs.selectAll("#"+H).data(k||O?[0]:[]);if(ye.exit().remove(),ye.enter().append("clipPath").attr("id",H).append("rect"),k||O?(this._clipRect=ye.select("rect").attr({x:Math.floor(Q),y:Math.floor(ne),width:Math.ceil(K)-Math.floor(Q),height:Math.ceil(pe)-Math.floor(ne)}),this.container.call(Tu.setClipUrl,H,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tu.setClipUrl,null),delete this._clipRect),k||O){var Se=si.behavior.drag().on("dragstart",function(){si.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Se);var re=si.behavior.drag().on("dragstart",function(){si.event.sourceEvent.preventDefault(),si.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(re),O&&this.vbar.on(".drag",null).call(re)}this.setTranslate(t,a)};xt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};xt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=si.event.dx),this.vbar&&(t-=si.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=si.event.deltaY),this.vbar&&(t+=si.event.deltaY),this.setTranslate(r,t)};xt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Rd.constrain(si.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Rd.constrain(si.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};xt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Rd.constrain(r||0,0,a),t=Rd.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Tu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Tu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Tu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var AD=J((Ace,MD)=>{"use strict";var Mu=Ir(),Mc=Ht(),Ac=Er(),Au=at(),dn=Ie(),zd=ya(),Fee=ct().arrayEditor,yD=Ma().LINE_SPACING,_r=Ed(),Iee=pD();MD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){Mc.autoMargin(r,wD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,Hee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Wee=Ed();kD.exports={moduleType:"component",name:Wee.name,layoutAttributes:O2(),supplyLayoutDefaults:vD(),draw:AD()}});var Sc=J((Sce,CD)=>{"use strict";CD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var V2=J((Cce,DD)=>{"use strict";var LD=ma(),Xee=Hv(),Zee=Wt().extendDeepAll,Jee=yi().overrideAll,Kee=rf(),qD=ct().templatedArray,Ko=Sc(),Qee=qD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});DD.exports=Jee(qD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Qee,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Zee(Xee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Kee.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:LD({})},font:LD({}),activebgcolor:{valType:"color",dflt:Ko.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ko.railBgColor},bordercolor:{valType:"color",dflt:Ko.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ko.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ko.tickLength},tickcolor:{valType:"color",dflt:Ko.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ko.minorTickLength}}),"arraydraw","from-root")});var zD=J((Lce,RD)=>{"use strict";var ku=Ie(),ED=$n(),PD=V2(),$ee=Sc(),jee=$ee.name,ere=PD.steps;RD.exports=function(r,t){ED(r,t,{name:jee,handleItemDefaults:rre})};function rre(e,r,t){function a(v,h){return ku.coerce(e,r,PD,v,h)}for(var n=ED(e,r,{name:"steps",handleItemDefaults:tre}),i=0,l=0;l{"use strict";var ui=Ir(),Nd=Ht(),Ol=Er(),fi=at(),pn=Ie(),are=pn.strTranslate,Cc=ya(),nre=ct().arrayEditor,Dr=Sc(),X2=Ma(),ID=X2.LINE_SPACING,G2=X2.FROM_TL,W2=X2.FROM_BR;VD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=ire(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Nd.autoMargin(r,HD(f))}if(i.exit().each(function(){ui.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,lre);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",are(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Z2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function FD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function hre(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(YD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Ol.fill,t.bgcolor).attr("opacity",0),fi.setTranslate(n,0,a.currentValueTotalHeight)}function dre(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Ol.stroke,r.bordercolor).call(Ol.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),fi.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var XD=J((Dce,WD)=>{"use strict";var pre=Sc();WD.exports={moduleType:"component",name:pre.name,layoutAttributes:V2(),supplyLayoutDefaults:zD(),draw:GD()}});var Id=J((Ece,JD)=>{"use strict";var ZD=mi();JD.exports={bgcolor:{valType:"color",dflt:ZD.background,editType:"plot"},bordercolor:{valType:"color",dflt:ZD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var J2=J((Pce,KD)=>{"use strict";KD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Hd=J((Rce,QD)=>{"use strict";QD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var eE=J(Bd=>{"use strict";var mre=Zt(),yre=ya(),$D=Hd(),gre=Ma().LINE_SPACING,Od=$D.name;function jD(e){var r=e&&e[Od];return r&&r.visible}Bd.isVisible=jD;Bd.makeData=function(e){for(var r=mre.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Yd=Ie(),rE=ct(),tE=Zt(),bre=Id(),xre=J2();aE.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Yd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=rE.newContainer(i,"rangeslider");function s(M,C){return Yd.coerce(l,o,bre,M,C)}var u,f;function v(M,C){return Yd.coerce(u,f,xre,M,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===tE.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Yd.simpleMap(m,tE.id2name),g=0;g{"use strict";var _re=Zt().list,wre=xf().getAutoRange,Tre=Hd();iE.exports=function(r){for(var t=_re(r,"x",!0),a=0;a{"use strict";var Ud=Ir(),Mre=br(),Are=Ht(),qt=Ie(),Vd=qt.strTranslate,sE=at(),Bl=Er(),kre=gf(),Sre=Cd(),K2=Zt(),Cre=ei(),Lre=Cl(),Fr=Hd();uE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Y.max)Z=z[V+1];else if(W=Y.pmax)Z=z[V+1];else if(W0?e.touches[0].clientX:0}function qre(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Ud.event,u=s.target,f=oE(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=Cre.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var w=oE(_),T=+w-f,b,M,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,M=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,M=d;break;case l:if(C="col-resize",d+T<0)return;b=h,M=d+T;break;default:C="ew-resize",b=v,M=v+T;break}if(M{"use strict";var Ore=Ie(),Bre=Id(),Yre=J2(),Q2=eE();cE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ore.extendFlat({},Bre,{yaxis:Yre})}}},layoutAttributes:Id(),handleDefaults:nE(),calcAutorange:lE(),draw:fE(),isVisible:Q2.isVisible,makeData:Q2.makeData,autoMarginOpts:Q2.autoMarginOpts}});var Gd=J((Oce,dE)=>{"use strict";var Ure=ma(),hE=mi(),Vre=ct().templatedArray,Gre=Vre("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});dE.exports={visible:{valType:"boolean",editType:"plot"},buttons:Gre,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Ure({editType:"plot"}),bgcolor:{valType:"color",dflt:hE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:hE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $2=J((Bce,pE)=>{"use strict";pE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var gE=J((Yce,yE)=>{"use strict";var Wd=Ie(),Wre=Er(),Xre=ct(),Zre=$n(),mE=Gd(),j2=$2();yE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Xre.newContainer(t,"rangeselector");function s(d,m){return Wd.coerce(l,o,mE,d,m)}var u=Zre(l,o,{name:"buttons",handleItemDefaults:Jre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Kre(t,a,n);s("x",v[0]),s("y",v[1]),Wd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Wd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Wre.contrast(h,j2.lightAmount,j2.darkAmount)),s("bordercolor"),s("borderwidth")}};function Jre(e,r,t,a){var n=a.calendar;function i(s,u){return Wd.coerce(e,r,mE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Kre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Qre=Z1(),$re=Ie().titleCase;bE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=jre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function jre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Qre["utc"+$re(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var CE=J((Vce,SE)=>{"use strict";var Zd=Ir(),ete=br(),rte=Ht(),_E=Er(),kE=at(),tl=Ie(),wE=tl.strTranslate,Xd=ya(),tte=Zt(),t3=Ma(),TE=t3.LINE_SPACING,ME=t3.FROM_TL,AE=t3.FROM_BR,r3=$2(),ate=xE();SE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(nte(r),ite);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Zd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(tl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Zd.select(this),v=ate(l,u);u._isActive=lte(l,u,v),f.call(e3,o,u),f.call(ste,o,u,r),f.on("click",function(){r._dragged||ete.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(e3,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(e3,o,u)})}),fte(r,s,o,l._name,i)})};function nte(e){for(var r=tte.list(e,"x",!0),t=[],a=0;a{"use strict";LE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gd()}}},layoutAttributes:Gd(),handleDefaults:gE(),draw:CE()}});var Jd=J(a3=>{"use strict";var DE=Wt().extendFlat;a3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:DE({},t,{}),y:DE({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};a3.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var cte=Ie(),vte=ws().counter,hte=Jd().attributes,EE=jt().idRegex,dte=ct(),n3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[vte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:hte({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Kd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function pte(e,r){var t=e.grid||{},a=Kd(r,t,"x"),n=Kd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=dte.newContainer(r,"grid");function h(C,k){return cte.coerce(t,v,n3,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}v._hasSubplotGrid=i;var g=h("roworder"),_=g==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:PE("x",h,w,b,m),y:PE("y",h,T,M,d,_)}}function PE(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";FE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var OE=J((Jce,HE)=>{"use strict";var IE=Hr(),yte=br(),gte=Ie(),bte=ct(),xte=i3();HE.exports=function(e,r,t,a){var n="error_"+a.axis,i=bte.newContainer(r,n),l=e[n]||{};function o(m,y){return gte.coerce(l,i,xte,m,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||IE(l.thickness)||IE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",yte.traceIs(r,"gl3d")?0:4))}}});var l3=J((Kce,YE)=>{"use strict";YE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=BE(t,r.value),o=BE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function BE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var GE=J((Qce,VE)=>{"use strict";var o3=Hr(),_te=br(),s3=dt(),wte=Ie(),Tte=l3();VE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var WE=Ir(),Yl=Hr(),Mte=at(),Ate=ln();XE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var y=Ate.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=WE.select(this).selectAll("g.errorbar").data(f,m);if(g.exit().remove(),!!f.length){h.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var _=g.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),Mte.setClipUrl(g,a.layerClipId,r),g.each(function(w){var T=WE.select(this),b=kte(w,l,o);if(!(y&&!w.vis)){var M,C=T.select("path.yerror");if(d.visible&&Yl(b.x)&&Yl(b.yh)&&Yl(b.ys)){var k=d.width;M="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(M+="m-"+k+",0h"+2*k),i=!C.size(),i?C=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",M)}else C.remove();var q=T.select("path.xerror");if(h.visible&&Yl(b.y)&&Yl(b.xh)&&Yl(b.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(M+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",M)}else q.remove()}})}})};function kte(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Yl(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Yl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var QE=J((jce,KE)=>{"use strict";var Ste=Ir(),JE=Er();KE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Ste.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(JE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(JE.stroke,i.color)})}});var eP=J((eve,jE)=>{"use strict";var Lc=Ie(),$E=yi().overrideAll,qc=i3(),Qo={error_x:Lc.extendFlat({},qc),error_y:Lc.extendFlat({},qc)};delete Qo.error_x.copy_zstyle;delete Qo.error_y.copy_zstyle;delete Qo.error_y.copy_ystyle;var Dc={error_x:Lc.extendFlat({},qc),error_y:Lc.extendFlat({},qc),error_z:Lc.extendFlat({},qc)};delete Dc.error_x.copy_ystyle;delete Dc.error_y.copy_ystyle;delete Dc.error_z.copy_ystyle;delete Dc.error_z.copy_zstyle;jE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qo,bar:Qo,histogram:Qo,scatter3d:$E(Dc,"calc","nested"),scattergl:$E(Qo,"calc","nested")}},supplyDefaults:OE(),calc:GE(),makeComputeError:l3(),plot:ZE(),style:QE(),hoverInfo:Cte};function Cte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var tP=J((rve,rP)=>{"use strict";rP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var uP=J((tve,sP)=>{"use strict";var Ul=Ir(),u3=_n(),$d=Ht(),aP=br(),al=dt(),Qd=ei(),On=Ie(),vi=On.strTranslate,oP=Wt().extendFlat,f3=Cl(),ci=at(),c3=Er(),Lte=gf(),qte=ya(),Dte=An().flipScale,Ete=b2(),Pte=x2(),Rte=Qn(),v3=Ma(),nP=v3.LINE_SPACING,iP=v3.FROM_TL,lP=v3.FROM_BR,gt=tP().cn;function zte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+gt.colorbar).data(Nte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(gt.colorbar,!0),t.each(function(a){var n=Ul.select(this);On.ensureSingle(n,"rect",gt.cbbg),On.ensureSingle(n,"g",gt.cbfills),On.ensureSingle(n,"g",gt.cblines),On.ensureSingle(n,"g",gt.cbaxis,function(l){l.classed(gt.crisp,!0)}),On.ensureSingle(n,"g",gt.cbtitleunshift,function(l){l.append("g").classed(gt.cbtitle,!0)}),On.ensureSingle(n,"rect",gt.cboutline);var i=Fte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ite(n,a,e)}),t.exit().each(function(a){$d.autoMargin(e,a._id)}).remove(),t.order()}function Nte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return oP(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?Dte(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var $=Math.pow(10,Math.floor(Math.log(B)/Math.LN10));ge*=$*On.roundUp(B/$,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(de.tick0=0)}de.dtick=ge}de.domain=a?[re+m/b.h,re+H-m/b.h]:[re+d/b.w,re+H-d/b.w],de.setScale(),e.attr("transform",vi(Math.round(b.l),Math.round(b.t)));var U=e.select("."+gt.cbtitleunshift).attr("transform",vi(-Math.round(b.l),-Math.round(b.t))),le=de.ticklabelposition,ve=de.title.font.size,me=e.select("."+gt.cbaxis),De,Re=0,Le=0;function Fe(Ge,ie){var xe={propContainer:de,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+gt.cbtitle)},Ke=Ge.charAt(0)==="h"?Ge.slice(1):"h"+Ge;e.selectAll("."+Ke+",."+Ke+"-math-group").remove(),Lte.draw(t,Ge,oP(xe,ie||{}))}function Oe(){if(a&&be||!a&&!be){var Ge,ie;q==="top"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re-H)+3+ve*.75),q==="bottom"&&(Ge=d+b.l+Q*y,ie=m+b.t+K*(1-re)-3-ve*.25),q==="right"&&(ie=m+b.t+K*g+3+ve*.75,Ge=d+b.l+Q*re),Fe(de._id+"title",{attributes:{x:Ge,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Ge=de.position||0,ie=de._offset+de._length/2,xe,Ke;if(q==="right")Ke=ie,xe=b.l+Q*Ge+10+ve*(de.showticklabels?1:.5);else if(xe=ie,q==="bottom"&&(Ke=b.t+K*Ge+10+(le.indexOf("inside")===-1?de.tickfont.size:0)+(de.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=k.text.split("
").length;Ke=b.t+K*Ge+10-Z-nP*ve*hr}Fe((a?"h":"v")+de._id+"title",{avoid:{selection:Ul.select(t).selectAll("g."+de._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:xe,y:Ke,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!be||a&&be){var Ge=e.select("."+gt.cbtitle),ie=Ge.select("text"),xe=[-s/2,s/2],Ke=Ge.select(".h"+de._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*nP);var ze;if(Ke?(ze=ci.bBox(Ke),Le=ze.width,Re=ze.height,Re>hr&&(xe[1]-=(Re-hr)/2)):ie.node()&&!ie.classed(gt.jsPlaceholder)&&(ze=ci.bBox(ie.node()),Le=ze.width,Re=ze.height),a){if(Re){if(Re+=5,q==="top")de.domain[1]-=Re/b.h,xe[1]*=-1;else{de.domain[0]+=Re/b.h;var Te=qte.lineCount(ie);xe[1]+=(1-Te)*hr}Ge.attr("transform",vi(xe[0],xe[1])),de.setScale()}}else Le&&(q==="right"&&(de.domain[0]+=(Le+ve/2)/b.w),Ge.attr("transform",vi(xe[0],xe[1])),de.setScale())}e.selectAll("."+gt.cbfills+",."+gt.cblines).attr("transform",a?vi(0,Math.round(b.h*(1-de.domain[1]))):vi(Math.round(b.w*de.domain[0]),0)),me.attr("transform",a?vi(0,Math.round(-b.t)):vi(Math.round(-b.l),0));var ke=e.select("."+gt.cbfills).selectAll("rect."+gt.cbfill).attr("style","").data(I);ke.enter().append("rect").classed(gt.cbfill,!0).attr("style",""),ke.exit().remove();var He=D.map(de.c2p).map(Math.round).sort(function(tr,Qe){return tr-Qe});ke.each(function(tr,Qe){var Ne=[Qe===0?D[0]:(I[Qe]+I[Qe-1])/2,Qe===I.length-1?D[1]:(I[Qe]+I[Qe+1])/2].map(de.c2p).map(Math.round);a&&(Ne[1]=On.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,He[0],He[1]));var ae=Ul.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",Ul.min(Ne)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Ul.max(Ne)-Ul.min(Ne),2));if(r._fillgradient)ci.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(tr).replace("e-","");ae.attr("fill",u3(oe).toHexString())}});var Je=e.select("."+gt.cblines).selectAll("path."+gt.cbline).data(C.color&&C.width?W:[]);Je.enter().append("path").classed(gt.cbline,!0),Je.exit().remove(),Je.each(function(tr){var Qe=ne,Ne=Math.round(de.c2p(tr))+C.width/2%1;Ul.select(this).attr("d","M"+(a?Qe+","+Ne:Ne+","+Qe)+(a?"h":"v")+Z).call(ci.lineGroupStyle,C.width,P(tr),C.dash)}),me.selectAll("g."+de._id+"tick,path").remove();var Ve=ne+Z+(s||0)/2-(r.ticks==="outside"?1:0),Xe=al.calcTicks(de),lr=al.getTickSigns(de)[2];return al.drawTicks(t,de,{vals:de.ticks==="inside"?al.clipEnds(de,Xe):Xe,layer:me,path:al.makeTickPath(de,Ve,lr),transFn:al.makeTransTickFn(de)}),al.drawLabels(t,de,{vals:Xe,layer:me,transFn:al.makeTransTickLabelFn(de),labelFns:al.makeLabelFns(de,Ve)})}function Be(){var Ge,ie=Z+s/2;le.indexOf("inside")===-1&&(Ge=ci.bBox(me.node()),ie+=a?Ge.width:Ge.height),De=U.select("text");var xe=0,Ke=a&&q==="top",hr=!a&&q==="right",ze=0;if(De.node()&&!De.classed(gt.jsPlaceholder)){var Te,ke=U.select(".h"+de._id+"title-math-group").node();ke&&(a&&be||!a&&!be)?(Ge=ci.bBox(ke),xe=Ge.width,Te=Ge.height):(Ge=ci.bBox(U.node()),xe=Ge.right-b.l-(a?ne:Ce),Te=Ge.bottom-b.t-(a?Ce:ne),!a&&q==="top"&&(ie+=Ge.height,ze=Ge.height)),hr&&(De.attr("transform",vi(xe/2+ve/2,0)),xe*=2),ie=Math.max(ie,a?xe:Te)}var He=(a?d:m)*2+ie+u+s/2,Je=0;!a&&k.text&&h==="bottom"&&g<=0&&(Je=He/2,He+=Je,ze+=Je),T._hColorbarMoveTitle=Je,T._hColorbarMoveCBTitle=ze;var Ve=u+s,Xe=(a?ne:Ce)-Ve/2-(a?d:0),lr=(a?Ce:ne)-(a?Y:m+ze-Je);e.select("."+gt.cbbg).attr("x",Xe).attr("y",lr).attr(a?"width":"height",Math.max(He-Je,2)).attr(a?"height":"width",Math.max(Y+Ve,2)).call(c3.fill,f).call(c3.stroke,r.bordercolor).style("stroke-width",u);var tr=hr?Math.max(xe-10,0):0;e.selectAll("."+gt.cboutline).attr("x",(a?ne:Ce+d)+tr).attr("y",(a?Ce+m-Y:ne)+(Ke?Re:0)).attr(a?"width":"height",Math.max(Z,2)).attr(a?"height":"width",Math.max(Y-(a?2*m+Re:2*d+tr),2)).call(c3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Qe=a?pe*He:0,Ne=a?0:(1-ye)*He-ze;if(Qe=w?b.l-Qe:-Qe,Ne=_?b.t-Ne:-Ne,e.attr("transform",vi(Qe,Ne)),!a&&(u||u3(f).getAlpha()&&!u3.equals(T.paper_bgcolor,f))){var ae=me.selectAll("text"),oe=ae[0].length,qe=e.select("."+gt.cbbg).node(),Ee=ci.bBox(qe),ar=ci.getTranslate(e),cr=2;ae.each(function(qa,sa){var ua=0,vr=oe-1;if(sa===ua||sa===vr){var lt=ci.bBox(this),Zr=ci.getTranslate(this),ft;if(sa===vr){var St=lt.right+Zr.x,bt=Ee.right+ar.x+Ce-u-cr+y;ft=bt-St,ft>0&&(ft=0)}else if(sa===ua){var Qr=lt.left+Zr.x,fa=Ee.left+ar.x+Ce+u+cr;ft=fa-Qr,ft<0&&(ft=0)}ft&&(oe<3?this.setAttribute("transform","translate("+ft+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=iP[v],Br=lP[v],$r=iP[h],it=lP[h],_t=He-Z;a?(i==="pixels"?(sr.y=g,sr.t=Y*$r,sr.b=Y*it):(sr.t=sr.b=0,sr.yt=g+n*$r,sr.yb=g-n*it),o==="pixels"?(sr.x=y,sr.l=He*Mr,sr.r=He*Br):(sr.l=_t*Mr,sr.r=_t*Br,sr.xl=y-l*Mr,sr.xr=y+l*Br)):(i==="pixels"?(sr.x=y,sr.l=Y*Mr,sr.r=Y*Br):(sr.l=sr.r=0,sr.xl=y+n*Mr,sr.xr=y-n*Br),o==="pixels"?(sr.y=1-g,sr.t=He*$r,sr.b=He*it):(sr.t=_t*$r,sr.b=_t*it,sr.yt=g-l*$r,sr.yb=g+l*it));var yt=r.y<.5?"b":"t",Dt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Kt={r:T.width-Xe-Qe,l:Xe+sr.r,b:T.height-lr-Ne,t:lr+sr.b};w&&_?$d.autoMargin(t,r._id,sr):w?t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]:_||a?t._fullLayout._reservedMargin[r._id][Dt]=Kt[Dt]:t._fullLayout._reservedMargin[r._id][yt]=Kt[yt]}return On.syncOrAsync([$d.previousPromises,Oe,Pe,We,$d.previousPromises,Be],t)}function Ite(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Qd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),f3(e)},moveFn:function(u,f){e.attr("transform",l+vi(u,f)),o=Qd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Qd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Qd.getCursor(o,s,r.xanchor,r.yanchor);f3(e,v)},doneFn:function(){if(f3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?aP.call("_guiRestyle",t,u,r._traceIndex):aP.call("_guiRelayout",t,u)}}})}function Hte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";fP.exports={moduleType:"component",name:"colorbar",attributes:d0(),supplyDefaults:cm(),draw:uP().draw,hasColorbar:em()}});var hP=J((nve,vP)=>{"use strict";vP.exports={moduleType:"component",name:"legend",layoutAttributes:sy(),supplyLayoutDefaults:fy(),draw:Ty(),style:by()}});var pP=J((ive,dP)=>{"use strict";dP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var yP=J((lve,mP)=>{"use strict";mP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var d3=J((ove,_P)=>{"use strict";var Bte=br(),xP=Ie(),h3=xP.extendFlat,gP=xP.extendDeep;function bP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Yte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}_P.exports=function(r,t){var a,n=r.data,i=r.layout,l=gP([],n),o=gP({},i,bP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var Ute=e0().EventEmitter,Vte=br(),Gte=Ie(),wP=Bo(),Wte=d3(),Xte=ld(),Zte=od();function Jte(e,r){var t=new Ute,a=Wte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=wP.getDelay(n._fullLayout);setTimeout(function(){var s=Xte(n),u=document.createElement("canvas");u.id=Gte.randstr(),t=Zte({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=wP.getRedrawFunc(n);return Vte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}TP.exports=Jte});var SP=J((uve,kP)=>{"use strict";var AP=Bo(),Kte={getDelay:AP.getDelay,getRedrawFunc:AP.getRedrawFunc,clone:d3(),toSVG:ld(),svgToImg:od(),toImage:MP(),downloadImage:Bg()};kP.exports=Kte});var LP=J(nl=>{"use strict";nl.version=yv().version;bb();s6();var Qte=br(),Ec=nl.register=Qte.register,m3=qS(),CP=Object.keys(m3);for(jd=0;jd{"use strict";qP.exports=LP()});var Pc=J((vve,NP)=>{"use strict";var kt=Oo(),EP=h0().axisHoverFormat,{hovertemplateAttrs:$te,texttemplateAttrs:jte,templatefallbackAttrs:PP}=fo(),zP=pf(),eae=ma(),RP=pc(),rae=gi().pattern,$o=Wt().extendFlat,y3=eae({editType:"calc",arrayOk:!0,colorEditType:"style"}),tae=kt.marker,aae=tae.line,nae=$o({},aae.width,{dflt:0}),iae=$o({width:nae,editType:"calc"},zP("marker.line")),lae=$o({line:iae,editType:"calc"},zP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rae,cornerradius:{valType:"any",editType:"calc"}});NP.exports={x:kt.x,x0:kt.x0,dx:kt.dx,y:kt.y,y0:kt.y0,dy:kt.dy,xperiod:kt.xperiod,yperiod:kt.yperiod,xperiod0:kt.xperiod0,yperiod0:kt.yperiod0,xperiodalignment:kt.xperiodalignment,yperiodalignment:kt.yperiodalignment,xhoverformat:EP("x"),yhoverformat:EP("y"),text:kt.text,texttemplate:jte({editType:"plot"},{keys:RP.eventDataKeys}),texttemplatefallback:PP({editType:"plot"}),hovertext:kt.hovertext,hovertemplate:$te({},{keys:RP.eventDataKeys}),hovertemplatefallback:PP(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:$o({},y3,{}),insidetextfont:$o({},y3,{}),outsidetextfont:$o({},y3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:$o({},kt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:lae,offsetgroup:kt.offsetgroup,alignmentgroup:kt.alignmentgroup,selected:{marker:{opacity:kt.selected.marker.opacity,color:kt.selected.marker.color,editType:"style"},textfont:kt.selected.textfont,editType:"style"},unselected:{marker:{opacity:kt.unselected.marker.opacity,color:kt.unselected.marker.color,editType:"style"},textfont:kt.unselected.textfont,editType:"style"},zorder:kt.zorder}});var g3=J((hve,FP)=>{"use strict";FP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var BP=J((dve,OP)=>{"use strict";var oae=Er(),IP=An().hasColorscale,HP=Bs(),sae=Ie().coercePattern;OP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=IP(r,"marker");o&&HP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",oae.defaultLine),IP(r,"marker.line")&&HP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),sae(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Rc=J((pve,XP)=>{"use strict";var YP=Hr(),Cu=Ie(),UP=Er(),uae=br(),fae=Vg(),cae=Gg(),vae=BP(),hae=Wg(),VP=Pc(),r1=Cu.coerceFont;function dae(e,r,t,a){function n(u,f){return Cu.coerce(e,r,VP,u,f)}var i=fae(e,r,a,n);if(!i){r.visible=!1;return}cae(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");WP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),vae(e,r,n,t,a);var o=(r.marker.line||{}).color,s=uae.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||UP.defaultLine,{axis:"y"}),s(e,r,o||UP.defaultLine,{axis:"x",inherit:"y"}),Cu.coerceSelectionMarkerOpacity(r,n)}function pae(e,r){var t,a;function n(o,s){return Cu.coerce(a._input,a,VP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&YP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function WP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",y=d||n==="outside";if(m||y){var g=r1(a,"textfont",t.font),_=Cu.extendFlat({},g),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,r1(a,"insidetextfont",_),h){var b=Cu.extendFlat({},g);T&&delete b.color,r1(a,"pathbar.textfont",b)}y&&r1(a,"outsidetextfont",g),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}m&&v&&a("insidetextanchor")}XP.exports={supplyDefaults:dae,crossTraceDefaults:pae,handleText:WP,validateCornerradius:GP}});var JP=J((mve,ZP)=>{"use strict";var mae=br(),yae=dt(),gae=Ie(),bae=g3(),xae=Rc().validateCornerradius;ZP.exports=function(e,r,t){function a(y,g){return gae.coerce(e,r,bae,y,g)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=yae.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=xae(m)}});var b3=J((yve,KP)=>{"use strict";var Lu=Ie();KP.exports=function(r,t){for(var a=0;a{"use strict";var QP=dt(),$P=Xg(),jP=An().hasColorscale,eR=y0(),_ae=b3(),wae=Qg();rR.exports=function(r,t){var a=QP.getFromId(r,t.xaxis||"x"),n=QP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=$P(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=$P(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var Tae=Ir(),Mae=Ie();function Aae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Tae.select(this).select("text");Mae.setTransormAndDisplay(u,s)}})}}function kae(e,r,t){if(t.uniformtext.mode){var a=aR(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Cae=Hr(),Lae=_n(),iR=Ie().isArrayOrTypedArray;jo.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};jo.coerceNumber=function(e,r,t){if(Cae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};jo.coerceColor=function(e,r,t){return Lae(r).isValid()?r:t!==void 0?t:e.dflt};jo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};jo.getValue=function(e,r){var t;return iR(e)?r{"use strict";var Nc=Ir(),qae=Er(),Fc=at(),lR=Ie(),oR=br(),sR=zc().resizeText,x3=Pc(),Dae=x3.textfont,Eae=x3.insidetextfont,Pae=x3.outsidetextfont,_a=t1();function Rae(e){var r=Nc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");sR(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Nc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Nc.select(this),l=n[0].trace;uR(i,l,e)}),oR.getComponentMethod("errorbars","style")(r)}function uR(e,r,t){Fc.pointStyle(e.selectAll("path"),r,t),fR(e,r,t)}function fR(e,r,t){e.selectAll("text").each(function(a){var n=Nc.select(this),i=lR.ensureUniformFontSize(t,cR(n,a,r,t));Fc.font(n,i)})}function zae(e,r,t){var a=r[0].trace;a.selectedpoints?Nae(t,a,e):(uR(t,a,e),oR.getComponentMethod("errorbars","style")(t))}function Nae(e,r,t){Fc.selectedPointStyle(e.selectAll("path"),r),Fae(e.selectAll("text"),r,t)}function Fae(e,r,t){e.each(function(a){var n=Nc.select(this),i;if(a.selected){i=lR.ensureUniformFontSize(t,cR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Fc.font(n,i)}else Fc.selectedTextStyle(n,r)})}function cR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=pR(r,t);i=hR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=dR(t,r.i,n));return i}function vR(e,r,t){return _3(Dae,e.textfont,r,t)}function hR(e,r,t,a){var n=vR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:qae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),_3(Eae,e.insidetextfont,r,n)}function dR(e,r,t){var a=vR(e,r,t);return _3(Pae,e.outsidetextfont,r,a)}function _3(e,r,t,a){r=r||{};var n=_a.getValue(r.family,t),i=_a.getValue(r.size,t),l=_a.getValue(r.color,t),o=_a.getValue(r.weight,t),s=_a.getValue(r.style,t),u=_a.getValue(r.variant,t),f=_a.getValue(r.textcase,t),v=_a.getValue(r.lineposition,t),h=_a.getValue(r.shadow,t);return{family:_a.coerceString(e.family,n,a.family),size:_a.coerceNumber(e.size,i,a.size),color:_a.coerceColor(e.color,l,a.color),weight:_a.coerceString(e.weight,o,a.weight),style:_a.coerceString(e.style,s,a.style),variant:_a.coerceString(e.variant,u,a.variant),textcase:_a.coerceString(e.variant,f,a.textcase),lineposition:_a.coerceString(e.variant,v,a.lineposition),shadow:_a.coerceString(e.variant,h,a.shadow)}}function pR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}mR.exports={style:Rae,styleTextPoints:fR,styleOnSelect:zae,getInsideTextFont:hR,getOutsideTextFont:dR,getBarColor:pR,resizeText:sR}});var AR=J((wve,MR)=>{"use strict";var n1=Ir(),i1=Hr(),la=Ie(),Iae=ya(),Hae=Er(),Vl=at(),Oae=br(),l1=dt().tickText,yR=zc(),Bae=yR.recordMinTextSize,Yae=yR.clearMinTextSize,w3=a1(),qu=t1(),Uae=pc(),gR=Pc(),Vae=gR.text,Gae=gR.textposition,Wae=_i().appendArrayPointValue,Oa=Uae.TEXTPAD;function Xae(e){return e.id}function Zae(e){if(e.ids)return Xae}function T3(e){return(e>0)-(e<0)}function Ii(e,r){return e0}function Kae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Yae("bar",s));var f=la.makeTraceGroups(a,t,"trace bars").each(function(v){var h=n1.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",C=xR(n),k=la.ensureSingle(h,"g","points"),q=Zae(d),D=k.selectAll("g.point").data(la.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var O=n1.select(this),I=Jae(z,l,o,M),W=I[0][0],Z=I[0][1],V=I[1][0],Y=I[1][1],H=(M?Z-W:Y-V)===0;H&&T&&qu.getLineWidth(d,z)&&(H=!1),H||(H=!i1(W)||!i1(Z)||!i1(V)||!i1(Y)),z.isBlank=H,H&&(M?Z=W:Y=V),b&&!H&&(M?(W-=Ii(W,Z)*b,Z+=Ii(W,Z)*b):(V-=Ii(V,Y)*b,Y+=Ii(V,Y)*b));var Q,K;if(d.type==="waterfall"){if(!H){var ne=d[z.dir].marker;Q=ne.line.width,K=ne.color}}else Q=qu.getLineWidth(d,z),K=z.mc||d.marker.color;function pe(ie){var xe=n1.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?n1.round(Math.round(ie)-xe,2):ie}function ye(ie,xe,Ke){return Ke&&ie===xe?ie:Math.abs(ie-xe)>=2?pe(ie):ie>xe?Math.ceil(ie):Math.floor(ie)}var Se=Hae.opacity(K),re=Se<1||Q>.01?pe:ye;e._context.staticPlot||(W=re(W,Z,M),Z=re(Z,W,M),V=re(V,Y,!M),Y=re(Y,V,!M));var Ce=M?l.c2p:o.c2p,de;z.s0>0?de=z._sMax:z.s0<0?de=z._sMin:de=z.s1>0?z._sMax:z._sMin;function be(ie,xe){if(!ie)return 0;var Ke=Math.abs(M?Y-V:Z-W),hr=Math.abs(M?Z-W:Y-V),ze=re(Math.abs(Ce(de,!0)-Ce(0,!0))),Te=z.hasB?Math.min(Ke/2,hr/2):Math.min(Ke/2,ze),ke;if(xe==="%"){var He=Math.min(50,ie);ke=Ke*(He/100)}else ke=ie;return re(Math.max(Math.min(ke,Te),0))}var ge=w||_?be(m.cornerradiusvalue,m.cornerradiusform):0,Ae,B,$="M"+W+","+V+"V"+Y+"H"+Z+"V"+V+"Z",U=0;if(ge&&z.s){var le=T3(z.s0)===0||T3(z.s)===T3(z.s0)?z.s1:z.s0;if(U=re(z.hasB?0:Math.abs(Ce(de,!0)-Ce(le,!0))),U0?Math.sqrt(U*(2*ge-U)):0,Fe=ve>0?Math.max:Math.min;Ae="M"+W+","+V+"V"+(Y-Re*me)+"H"+Fe(Z-(ge-U)*ve,W)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me-Le)+"V"+(V+ge*me+Le)+"A "+ge+","+ge+" 0 0 "+De+" "+Fe(Z-(ge-U)*ve,W)+","+(V+Re*me)+"Z"}else if(z.hasB)Ae="M"+(W+ge*ve)+","+V+"A "+ge+","+ge+" 0 0 "+De+" "+W+","+(V+ge*me)+"V"+(Y-ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve)+","+Y+"H"+(Z-ge*ve)+"A "+ge+","+ge+" 0 0 "+De+" "+Z+","+(Y-ge*me)+"V"+(V+ge*me)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-ge*ve)+","+V+"Z";else{B=Math.abs(Y-V)+U;var Oe=B0?Math.sqrt(U*(2*ge-U)):0,Pe=me>0?Math.max:Math.min;Ae="M"+(W+Oe*ve)+","+V+"V"+Pe(Y-(ge-U)*me,V)+"A "+ge+","+ge+" 0 0 "+De+" "+(W+ge*ve-We)+","+Y+"H"+(Z-ge*ve+We)+"A "+ge+","+ge+" 0 0 "+De+" "+(Z-Oe*ve)+","+Pe(Y-(ge-U)*me,V)+"V"+V+"Z"}}else Ae=$}else Ae=$;var Be=bR(la.ensureSingle(O,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-W)*(Y-V))||H&&e._context.staticPlot?"M0,0Z":Ae).call(Vl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Ge=Vl.makePointStyleFns(d);Vl.singlePointStyle(z,Be,d,Ge,e)}Qae(e,r,O,v,F,W,Z,V,Y,ge,U,n,i),r.layerClipId&&Vl.hideOutsideRangePoint(z,O.select("text"),l,o,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;Vl.setClipUrl(h,P?null:r.layerClipId,e)});Oae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Qae(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,y=e._fullLayout,g;function _(B,$,U){var le=la.ensureSingle(B,"text").text($).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Vl.font,U).call(Iae.convertToTspans,e);return le}var w=a[0].trace,T=w.orientation==="h",b=ene(y,a,n,d,m);g=rne(w,n);var M=v.mode==="stack"||v.mode==="relative",C=a[n],k=!M||C._outmost,q=C.hasB,D=u&&u-f>Oa;if(!b||g==="none"||(C.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var P=y.font,z=w3.getBarColor(a[n],w),F=w3.getInsideTextFont(w,n,P,z),O=w3.getOutsideTextFont(w,n,P),I=w.insidetextanchor||"end",W=t.datum();T?d.type==="log"&&W.s0<=0&&(d.range[0]0&&pe>0,re;D?q?re=es(Y-2*u,H,ne,pe,T)||es(Y,H-2*u,ne,pe,T):T?re=es(Y-(u-f),H,ne,pe,T)||es(Y,H-2*(u-f),ne,pe,T):re=es(Y,H-(u-f),ne,pe,T)||es(Y-2*(u-f),H,ne,pe,T):re=es(Y,H,ne,pe,T),Se&&re?g="inside":(g="outside",Q.remove(),Q=null)}else g="inside";if(!Q){ye=la.ensureUniformFontSize(e,g==="outside"?O:F),Q=_(t,b,ye);var Ce=Q.attr("transform");if(Q.attr("transform",""),K=Vl.bBox(Q.node()),ne=K.width,pe=K.height,Q.attr("transform",Ce),ne<=0||pe<=0){Q.remove();return}}var de=w.textangle,be,ge;g==="outside"?(ge=w.constraintext==="both"||w.constraintext==="outside",be=jae(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de})):(ge=w.constraintext==="both"||w.constraintext==="inside",be=TR(i,l,o,s,K,{isHorizontal:T,constrained:ge,angle:de,anchor:I,hasB:q,r:u,overhead:f})),be.fontSize=ye.size,Bae(w.type==="histogram"?"bar":w.type,be,y),C.transform=be;var Ae=bR(Q,y,v,h);la.setTransormAndDisplay(Ae,be)}function es(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function _R(e){return e==="auto"?0:e}function wR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function TR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,y=i.hasB,g=i.r,_=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),M=Math.abs(a-t),C=b>2*Oa&&M>2*Oa?Oa:0;b-=2*C,M-=2*C;var k=_R(s);s==="auto"&&!(w<=b&&T<=M)&&(w>b||T>M)&&(!(w>M||T>b)||wOa){var z=$ae(e,r,t,a,q,g,_,l,y);D=z.scale,P=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,M/q.y)),P=0;var F=n.left*m+n.right*d,O=(n.top+n.bottom)/2,I=(e+Oa)*m+(r-Oa)*d,W=(t+a)/2,Z=0,V=0;if(v||f){var Y=(l?q.x:q.y)/2;g&&(f||y)&&(C+=P);var H=l?Ii(e,r):Ii(t,a);l?v?(I=e+H*C,Z=-H*Y):(I=r-H*C,Z=H*Y):v?(W=t+H*C,V=-H*Y):(W=a-H*C,V=H*Y)}return{textX:F,textY:O,targetX:I,targetY:W,anchorX:Z,anchorY:V,scale:D,rotate:k}}function $ae(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Oa),f=Math.max(0,Math.abs(a-t)-2*Oa),v=i-Oa,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,y,g,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,g=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,g=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):(y=n.x*n.x/4+n.y*n.y,g=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function jae(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Oa?Oa:0:d=v>2*Oa?Oa:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var y=_R(s),g=wR(n,y),_=(l?g.x:g.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,C=0,k=0,q=l?Ii(r,e):Ii(t,a);return l?(b=r-q*d,C=q*_):(M=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:M,anchorX:C,anchorY:k,scale:m,rotate:y}}function ene(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=tne(e,r,t,a,n):i.textinfo?o=ane(r,t,a,n):o=qu.getValue(i.text,t),qu.coerceString(Vae,o)}function rne(e,r){var t=qu.getValue(e.textposition,r);return qu.coerceEnumerated(Gae,t)}function tne(e,r,t,a,n){var i=r[0].trace,l=la.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function y(C){return l1(h,h.c2l(C),!0).text}function g(C){return l1(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=y(_.p);var T=la.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=g(_.s);var b={};Wae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=g(w.delta),w.final=_.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),u&&(w.value=_.s,w.valueLabel=g(w.value),w.percentInitial=_.begR,w.percentInitialLabel=la.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=la.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=la.formatPercent(_.sumR));var M=la.castOption(i,_.i,"customdata");return M&&(w.customdata=M),la.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function ane(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var C=i?a:t;return l1(C,M,!0).text}function u(M){var C=i?t:a;return l1(C,+M,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(m=la.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,w=_-g;y("initial")&&d.push(u(w)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var T=0;y("percent initial")&&T++,y("percent previous")&&T++,y("percent total")&&T++;var b=T>1;y("percent initial")&&(m=la.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=la.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=la.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}MR.exports={plot:Kae,toMoveInsideBar:TR}});var qR=J((Tve,LR)=>{"use strict";var Ic=Li(),nne=br(),kR=Er(),ine=Ie().fillText,lne=t1().getLineWidth,M3=dt().hoverLabelText,one=Gt().BADNUM;function sne(e,r,t,a,n){var i=SR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=CR(o,s),nne.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function SR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,y,g,_,w;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=W,_=F):(h=r,d=t,m="x",y="y",_=W,g=F);var T=l[m+"period"],b=s||T;function M(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Ce){var de=re.w;return re[m]+Ce*de/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?M:T?function(re){return re.p-q(re)/2}:function(re){return Math.min(M(re),re.p-o.bardelta/2)},P=s?C:T?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Ce,de){return n.finiteRange&&(de=0),Ic.inbox(re-h,Ce-h,de+Math.min(1,Math.abs(Ce-re)/w)-1)}function F(re){return z(D(re),P(re),f)}function O(re){return z(M(re),C(re),v)}function I(re){var Ce=re[y];if(u){var de=Math.abs(re.rawS)||0;d>0?Ce+=de:d<0&&(Ce-=de)}return Ce}function W(re){var Ce=d,de=re.b,be=I(re);return Ic.inbox(de-Ce,be-Ce,f+(be-Ce)/(be-de)-1)}function Z(re){var Ce=d,de=re.b,be=I(re);return Ic.inbox(de-Ce,be-Ce,v+(be-Ce)/(be-de)-1)}var V=e[m+"a"],Y=e[y+"a"];w=Math.abs(V.r2c(V.range[1])-V.r2c(V.range[0]));function H(re){return(g(re)+_(re))/2}var Q=Ic.getDistanceFunction(a,g,_,H);if(Ic.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==one){b||(D=function(re){return Math.min(M(re),re.p-o.bargroupwidth/2)},P=function(re){return Math.max(C(re),re.p+o.bargroupwidth/2)});var K=e.index,ne=i[K],pe=l.base?ne.b+ne.s:ne.s;e[y+"0"]=e[y+"1"]=Y.c2p(ne[y],!0),e[y+"LabelVal"]=pe;var ye=o.extents[o.extents.round(ne.p)];e[m+"0"]=V.c2p(s?D(ne):ye[0],!0),e[m+"1"]=V.c2p(s?P(ne):ye[1],!0);var Se=ne.orig_p!==void 0;return e[m+"LabelVal"]=Se?ne.orig_p:ne.p,e.labelLabel=M3(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=M3(Y,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=M3(Y,ne.b,l[y+"hoverformat"]),e.spikeDistance=(Z(ne)+O(ne))/2,e[m+"Spike"]=V.c2p(ne.p,!0),ine(ne,l,e),e.hovertemplate=l.hovertemplate,e}}function CR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=lne(e,r);if(kR.opacity(t))return t;if(kR.opacity(a)&&n)return a}LR.exports={hoverPoints:sne,hoverOnBars:SR,getTraceColor:CR}});var ER=J((Mve,DR)=>{"use strict";DR.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var RR=J((Ave,PR)=>{"use strict";PR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";zR.exports={attributes:Pc(),layoutAttributes:g3(),supplyDefaults:Rc().supplyDefaults,crossTraceDefaults:Rc().crossTraceDefaults,supplyLayoutDefaults:JP(),calc:tR(),crossTraceCalc:s2().crossTraceCalc,colorbar:c2(),arraysToCalcdata:b3(),plot:AR().plot,style:a1().style,styleOnSelect:a1().styleOnSelect,hoverPoints:qR().hoverPoints,eventData:ER(),selectPoints:RR(),moduleType:"trace",name:"bar",basePlotModule:Cd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var IR=J((Sve,FR)=>{"use strict";FR.exports=NR()});var k3=J((Cve,OR)=>{"use strict";var A3=Wn(),fne=Jd().attributes,cne=ma(),vne=mi(),{hovertemplateAttrs:hne,texttemplateAttrs:dne,templatefallbackAttrs:HR}=fo(),rs=Wt().extendFlat,pne=gi().pattern,o1=cne({editType:"plot",arrayOk:!0,colorEditType:"plot"});OR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:vne.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:pne,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:rs({},A3.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:hne({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:HR(),texttemplate:dne({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:HR({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:rs({},o1,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:rs({},o1,{}),outsidetextfont:rs({},o1,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:rs({},A3.showlegend,{arrayOk:!0}),legend:rs({},A3.legend,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:rs({},o1,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:fne({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var VR=J((Lve,UR)=>{"use strict";var mne=Hr(),Hc=Ie(),yne=k3(),gne=Jd().defaults,bne=Rc().handleText,xne=Ie().coercePattern;function BR(e,r){var t=Hc.isArrayOrTypedArray(e),a=Hc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function YR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");xne(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function _ne(e,r,t,a){function n(w,T){return Hc.coerce(e,r,yne,w,T)}var i=n("labels"),l=n("values"),o=BR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,YR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var v;if(f||(v=n("textinfo",Hc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||v&&v!=="none"){var h=n("textposition");bne(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");gne(r,a,n);var y=n("hole"),g=n("title.text");if(g){var _=n("title.position",y?"middle center":"top center");!y&&_==="middle center"&&(r.title.position="top center"),Hc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}UR.exports={handleLabelsAndValues:BR,handleMarkerDefaults:YR,supplyDefaults:_ne}});var S3=J((qve,GR)=>{"use strict";GR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var XR=J((Dve,WR)=>{"use strict";var wne=Ie(),Tne=S3();WR.exports=function(r,t){function a(n,i){return wne.coerce(r,t,Tne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var L3=J((Eve,KR)=>{"use strict";var Mne=Hr(),C3=_n(),Ane=Er(),kne={};function Sne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(M,C){return C.v-M.v}),t[0]&&(t[0].vTotal=m),t}function ZR(e){return function(t,a){return!t||(t=C3(t),!t.isValid())?!1:(t=Ane.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Cne(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=JR(i,kne));for(var o=0,s=0;s{"use strict";var Lne=_i().appendArrayMultiPointValues;QR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Lne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var xz=J((Rve,bz)=>{"use strict";var tn=Ir(),qne=Ht(),s1=Li(),nz=Er(),il=at(),wa=Ie(),Dne=wa.strScale,jR=wa.strTranslate,q3=ya(),iz=zc(),Ene=iz.recordMinTextSize,Pne=iz.clearMinTextSize,lz=pc().TEXTPAD,wr=K0(),u1=$R(),ez=Ie().isValidTextValue;function Rne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Pne("pie",a),uz(r,e),mz(r,n);var i=wa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=tn.select(this),s=l[0],u=s.trace;Une(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=tn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,M){if(b.hidden){tn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=tn.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(oz,e,l),u.pull){var P=+wr.castOption(u.pull,b.pts)||0;P>0&&(C+=P*b.pxmid[0],k+=P*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(Y,H,Q,K){var ne=K*(H[0]-Y[0]),pe=K*(H[1]-Y[1]);return"a"+K*s.r+","+K*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ne+","+pe}var F=u.hole;if(b.v===s.vTotal){var O="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+O):D.attr("d",O)}else{var I=z(b.px0,b.px1,!0,1);if(F){var W=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+W*b.px0[0]+","+W*b.px0[1]+I+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}yz(e,b,s);var Z=wr.castOption(u.textposition,b.pts),V=q.selectAll("g.slicetext").data(b.text&&Z!=="none"?[0]:[]);V.enter().append("g").classed("slicetext",!0),V.exit().remove(),V.each(function(){var Y=wa.ensureSingle(tn.select(this),"text","",function(re){re.attr("data-notex",1)}),H=wa.ensureUniformFontSize(e,Z==="outside"?Nne(u,b,a.font):sz(u,b,a.font));Y.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(il.font,H).call(q3.convertToTspans,e);var Q=il.bBox(Y.node()),K;if(Z==="outside")K=az(Q,b);else if(K=fz(Q,b,s),Z==="auto"&&K.scale<1){var ne=wa.ensureUniformFontSize(e,u.outsidetextfont);Y.call(il.font,ne),Q=il.bBox(Y.node()),K=az(Q,b)}var pe=K.textPosAngle,ye=pe===void 0?b.pxmid:f1(s.r,pe);if(K.targetX=C+ye[0]*K.rCenter+(K.x||0),K.targetY=k+ye[1]*K.rCenter+(K.y||0),gz(K,Q),K.outside){var Se=K.targetY;b.yLabelMin=Se-Q.height/2,b.yLabelMid=Se,b.yLabelMax=Se+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}K.fontSize=H.size,Ene(u.type,K,a),l[M].transform=K,wa.setTransormAndDisplay(Y,K)})});var d=tn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=wa.ensureSingle(tn.select(this),"text","",function(k){k.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=wa.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(il.font,u.title.font).call(q3.convertToTspans,e);var C;u.title.position==="middle center"?C=Hne(s):C=dz(s,n),b.attr("transform",jR(C.x,C.y)+Dne(Math.min(1,C.scale))+jR(C.tx,C.ty))}),h&&Bne(v,u),zne(f,u),h&&u.automargin){var m=il.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),w=(.5*g-s.r)/n.w,T=(.5*_-s.r)/n.h;qne.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-T,yt:y.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=tn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function zne(e,r){e.each(function(t){var a=tn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,wa.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;wa.ensureSingle(a,"path","textline").call(nz.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function oz(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=s1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),y=u.separators,g=[];if(v&&v.indexOf("label")!==-1&&g.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;wa.isValidTextValue(_)&&g.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,y),v&&v.indexOf("value")!==-1&&g.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,y),v&&v.indexOf("percent")!==-1&&g.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];s1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:g.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[u1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[u1(s,f)],event:tn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=tn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=tn.event,r.emit("plotly_unhover",{points:[u1(v,f)],event:tn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(s1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[u1(s,f)],s1.click(r,tn.event))})}function Nne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function sz(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||nz.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function uz(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/T,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=rz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=tz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g));for(var b=0,M=0,C=0;C=1)break}return y[b]}function Fne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Hne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function dz(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=pz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=One(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=D3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function One(e,r){return e/(r===void 0?1:r)}function D3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function pz(e){var r=e.pull;if(!r)return 0;var t;if(wa.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Bne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(T,b){return T.pxmid[1]-b.pxmid[1]}function g(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=M-C,P,z,F,O,I,W;if(D*s>0&&(T.labelExtraY=D),!!wa.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(O=F.cyFinal+l(F.px0[1],F.px1[1]),D=O-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(P=3*o*Math.abs(z-v.indexOf(T)),I=F.cxFinal+i(F.px0[0],F.px1[0]),W=I+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,W*o>0&&(T.labelExtraX+=W)))}for(a=0;a<2;a++)for(n=a?y:g,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Ine(u,r))}function f1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function yz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var y=wr.getFirstFilled(n.text,r.pts);ez(y)&&m.push(y)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function g(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:wa.castOption(n,b.i,"customdata")}}if(i){var _=wa.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var w=g(r),T=wr.getFirstFilled(n.text,r.pts);(ez(T)||T==="")&&(w.text=T),r.text=wa.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:_})}}}function gz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}bz.exports={plot:Rne,formatSliceLabel:yz,transformInsideText:fz,determineInsideTextFont:sz,positionTitleOutside:dz,prerenderTitles:uz,layoutAreas:mz,attachFxHandlers:oz,computeTransform:gz}});var Tz=J((zve,wz)=>{"use strict";var _z=Ir(),Vne=Q0(),Gne=zc().resizeText;wz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Gne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=_z.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){_z.select(this).call(Vne,o,i,r)})})}});var Az=J(Du=>{"use strict";var Mz=Ht();Du.name="pie";Du.plot=function(e,r,t,a){Mz.plotBasePlot(Du.name,e,r,t,a)};Du.clean=function(e,r,t,a){Mz.cleanBasePlot(Du.name,e,r,t,a)}});var Sz=J((Fve,kz)=>{"use strict";kz.exports={attributes:k3(),supplyDefaults:VR().supplyDefaults,supplyLayoutDefaults:XR(),layoutAttributes:S3(),calc:L3().calc,crossTraceCalc:L3().crossTraceCalc,plot:xz().plot,style:Tz(),styleOne:Q0(),moduleType:"trace",name:"pie",basePlotModule:Az(),categories:["pie-like","pie","showLegend"],meta:{}}});var Lz=J((Ive,Cz)=>{"use strict";Cz.exports=Sz()});var Ca=J((Hve,Dz)=>{"use strict";var qz=Object.getOwnPropertySymbols,Wne=Object.prototype.hasOwnProperty,Xne=Object.prototype.propertyIsEnumerable;function Zne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Dz.exports=Jne()?Object.assign:function(e,r){for(var t,a=Zne(e),n,i=1;i{var v1=Ca();function Ez(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}v1(Ez.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function E3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}v1(E3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+c1(Math.abs(this.year()),4)+"-"+c1(this.month(),2)+"-"+c1(this.day(),2)}});function P3(){this.shortYearCutoff="+10"}v1(P3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new E3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+c1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=Pz.exports=new Ez;Pr.cdate=E3;Pr.baseCalendar=P3;Pr.calendars.gregorian=R3});var Rz=J(()=>{var z3=Ca(),oa=La();z3(oa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});oa.local=oa.regionalOptions[""];z3(oa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});z3(oa.baseCalendar.prototype,{UNIX_EPOCH:oa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:oa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw oa.local.invalidFormat||oa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var C=1;T+C1},f=function(b,M,C,k){var q=""+M;if(u(b,k))for(;q.length1},w=function(F,O){var I=_(F,O),W=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],Z=new RegExp("^-?\\d{1,"+W+"}"),V=r.substring(q).match(Z);if(!V)throw(oa.local.missingNumberAt||oa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=V[0].length,parseInt(V[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},M=function(F,O,I,W){for(var Z=_(F,W)?I:O,V=0;V-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var zz=J(()=>{var Gl=La(),Kne=Ca(),N3=Gl.instance();function h1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h1.prototype=new Gl.baseCalendar;Kne(h1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match($ne);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(jne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(eie);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Gl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Gl.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Gl.local.invalidyear),n=Xl[a-Xl[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=N3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Wl[e-Wl[0]],a=t>>13,n=a?12:11;if(r>n)throw Gl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Gl.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=tie(e,i,t,n);return N3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=N3.fromJD(e),t=rie(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Qne),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(h1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var Qne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,$ne=/^\d?\d[iI]?/m,jne=/^闰?十?[一二三四五六七八九]?月/m,eie=/^闰?十?[一二三四五六七八九]?/m;Gl.calendars.chinese=h1;var Wl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Xl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function rie(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Xl[n.year-Xl[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Xl[i.year-Xl[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,y=new Date(v,h-1,d),g=new Date(n.year,n.month-1,n.day);m=Math.round((g-y)/(24*3600*1e3));var _=Wl[i.year-Wl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Wl[l.year-Wl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var y=0;y>9&4095,T=_>>5&15,b=_&31,M=new Date(w,T-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var Nz=J(()=>{var ts=La(),aie=Ca();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new ts.baseCalendar;aie(F3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ts.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ts.local.invalidYear||ts.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ts.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ts.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});ts.calendars.coptic=F3});var Fz=J(()=>{var ll=La(),nie=Ca();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new ll.baseCalendar;nie(I3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ll.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return{century:iie[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var iie={20:"Fruitbat",21:"Anchovy"};ll.calendars.discworld=I3});var Iz=J(()=>{var as=La(),lie=Ca();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new as.baseCalendar;lie(H3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,as.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,as.local.invalidYear||as.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,as.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,as.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});as.calendars.ethiopian=H3});var Hz=J(()=>{var Zl=La(),oie=Ca();function O3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O3.prototype=new Zl.baseCalendar;oie(O3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,d1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Zl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&d1(this.daysInYear(e),10)===5?30:r===9&&d1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Zl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Zl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function d1(e,r){return e-r*Math.floor(e/r)}Zl.calendars.hebrew=O3});var Oz=J(()=>{var Oc=La(),sie=Ca();function B3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B3.prototype=new Oc.baseCalendar;sie(B3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Oc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Oc.calendars.islamic=B3});var Bz=J(()=>{var Bc=La(),uie=Ca();function Y3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y3.prototype=new Bc.baseCalendar;uie(Y3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Bc.calendars.julian=Y3});var Uz=J(()=>{var Bn=La(),fie=Ca();function V3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V3.prototype=new Bn.baseCalendar;fie(V3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Bn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Bn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Bn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=U3(e+8+17*20,365);return[Math.floor(r/20)+1,U3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Yz(e+20,20),Yz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Bn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function U3(e,r){return e-r*Math.floor(e/r)}function Yz(e,r){return U3(e-1,r)+1}Bn.calendars.mayan=V3});var Gz=J(()=>{var ns=La(),cie=Ca();function G3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G3.prototype=new ns.baseCalendar;var Vz=ns.instance("gregorian");cie(G3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ns.local.invalidYear||ns.regionalOptions[""].invalidYear);return Vz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ns.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ns.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});ns.calendars.nanakshahi=G3});var Wz=J(()=>{var is=La(),vie=Ca();function W3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W3.prototype=new is.baseCalendar;vie(W3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,is.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,is.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,is.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=is.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=is.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Eu=La(),hie=Ca();function m1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function p1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}m1.prototype=new Eu.baseCalendar;hie(m1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Eu.local.invalidYear);return p1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Eu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Eu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,p1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Eu.calendars.persian=m1;Eu.calendars.jalali=m1});var Zz=J(()=>{var ls=La(),die=Ca(),y1=ls.instance();function X3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X3.prototype=new ls.baseCalendar;die(X3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ls.local.invalidYear),t=this._t2gYear(r.year());return y1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ls.local.invalidYear),n=this._t2gYear(a.year());return y1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ls.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ls.local.invalidDate),n=this._t2gYear(a.year());return y1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=y1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ls.calendars.taiwan=X3});var Jz=J(()=>{var os=La(),pie=Ca(),g1=os.instance();function Z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z3.prototype=new os.baseCalendar;pie(Z3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,os.local.invalidYear),t=this._t2gYear(r.year());return g1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,os.local.invalidYear),n=this._t2gYear(a.year());return g1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,os.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,os.local.invalidDate),n=this._t2gYear(a.year());return g1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=g1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});os.calendars.thai=Z3});var Kz=J(()=>{var ss=La(),mie=Ca();function J3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J3.prototype=new ss.baseCalendar;mie(J3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ss.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ss.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Jl[n]-Jl[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ss.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Jl[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Jl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ss.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=ss.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ss.calendars.ummalqura=J3;var Jl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var $z=J((y0e,Qz)=>{"use strict";Qz.exports=La();Rz();zz();Nz();Fz();Iz();Hz();Oz();Bz();Uz();Gz();Wz();Xz();Zz();Jz();Kz()});var iN=J((g0e,nN)=>{"use strict";var eN=$z(),Yc=Ie(),rN=Gt(),yie=rN.EPOCHJD,gie=rN.ONEDAY,$3={valType:"enumerated",values:Yc.sortObjectKeys(eN.calendars),editType:"calc",dflt:"gregorian"},tN=function(e,r,t,a){var n={};return n[t]=$3,Yc.coerce(e,r,n,t,a)},bie=function(e,r,t,a){for(var n=0;n{"use strict";lN.exports=iN()});var Aie=J((x0e,uN)=>{var sN=DP();sN.register([IR(),Lz(),oN()]);uN.exports=sN});return Aie();})(); +/*! Bundled license information: + +native-promise-only/lib/npo.src.js: + (*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org + *) + +polybooljs/index.js: + (* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + *) + +object-assign/index.js: + (* + object-assign + (c) Sindre Sorhus + @license MIT + *) +*/ + +window.Plotly = Plotly; +return Plotly; +})); \ No newline at end of file diff --git a/static/js/stats.js b/static/js/stats.js index 90bb9c8fe9..73096952cf 100644 --- a/static/js/stats.js +++ b/static/js/stats.js @@ -113,7 +113,7 @@ function doPlot() { y: 1 } }; - Plotly.plot(dom, traces, layout); + Plotly.newPlot(dom, traces, layout); } // Certificates issued over time @@ -131,7 +131,7 @@ function doPlot() { y: 1 } }; - Plotly.plot(dom, traces, layout); + Plotly.newPlot(dom, traces, layout); } // Combined Graph: issuancePerDay + activeUsage @@ -160,7 +160,7 @@ function doPlot() { y: 1 } }; - Plotly.plot(dom, traces, layout); + Plotly.newPlot(dom, traces, layout); } function httpsCsvListener(responseText) { @@ -315,7 +315,7 @@ function doPlot() { y: 1 } }; - Plotly.plot(dom, traces, layout); + Plotly.newPlot(dom, traces, layout); } var path; diff --git a/themes/le-2025/layouts/partials/plotly.html b/themes/le-2025/layouts/partials/plotly.html index 431e3dbcb4..950aaf99ee 100644 --- a/themes/le-2025/layouts/partials/plotly.html +++ b/themes/le-2025/layouts/partials/plotly.html @@ -1,3 +1,5 @@ + +
- + {{/* translations uploaded from https://github.com/plotly/plotly.js/tree/master/dist */}} {{ if eq "en" .Page.Language.Lang }} {{/* nothing to do */}} {{ else if eq "ca" .Page.Language.Lang }} - + {{ else if eq "cs" .Page.Language.Lang }} - + {{ else if eq "de" .Page.Language.Lang }} - + {{ else if eq "fr" .Page.Language.Lang }} - + {{ else if eq "el" .Page.Language.Lang }} - + {{ else if eq "es" .Page.Language.Lang }} - + {{ else if eq "pl" .Page.Language.Lang }} - + {{ else if eq "pt-br" .Page.Language.Lang }} - + {{ else if eq "ru" .Page.Language.Lang }} - + {{ else if eq "ta" .Page.Language.Lang }} - + {{ else if eq "th" .Page.Language.Lang }} - + {{ else if eq "tr" .Page.Language.Lang }} - + {{ else if eq "zh-cn" .Page.Language.Lang }} - + {{ else if eq "zh-tw" .Page.Language.Lang }} - + {{ else if eq "ja" .Page.Language.Lang }} - + {{ else if eq "id" .Page.Language.Lang }} - + {{ else if eq "ko" .Page.Language.Lang }} - + {{ else if eq "sr" .Page.Language.Lang }} - + {{ else if eq "sv" .Page.Language.Lang }} - + {{ else if eq "vi" .Page.Language.Lang }} - + {{ else if eq "he" .Page.Language.Lang }} - + {{ else if eq "uk" .Page.Language.Lang }} - + {{ else if eq "it" .Page.Language.Lang }} - + {{ else if eq "si" .Page.Language.Lang }} - + {{ else if eq "fi" .Page.Language.Lang }} - + {{ else if eq "hu" .Page.Language.Lang }} - + {{ else if eq "da" .Page.Language.Lang }} - + {{ end }} \ No newline at end of file diff --git a/themes/le-2025/layouts/shortcodes/plotly.html b/themes/le-2025/layouts/shortcodes/plotly.html index a552ff4999..5cd5cb0b03 100644 --- a/themes/le-2025/layouts/shortcodes/plotly.html +++ b/themes/le-2025/layouts/shortcodes/plotly.html @@ -1,4 +1,6 @@ + +
- + {{/* translations uploaded from https://github.com/plotly/plotly.js/tree/master/dist */}} {{ if eq "en" .Page.Language.Lang }} {{/* nothing to do */}} {{ else if eq "ca" .Page.Language.Lang }} - + {{ else if eq "cs" .Page.Language.Lang }} - + {{ else if eq "de" .Page.Language.Lang }} - + {{ else if eq "fr" .Page.Language.Lang }} - + {{ else if eq "el" .Page.Language.Lang }} - + {{ else if eq "es" .Page.Language.Lang }} - + {{ else if eq "pl" .Page.Language.Lang }} - + {{ else if eq "pt-br" .Page.Language.Lang }} - + {{ else if eq "ru" .Page.Language.Lang }} - + {{ else if eq "ta" .Page.Language.Lang }} - + {{ else if eq "th" .Page.Language.Lang }} - + {{ else if eq "tr" .Page.Language.Lang }} - + {{ else if eq "zh-cn" .Page.Language.Lang }} - + {{ else if eq "zh-tw" .Page.Language.Lang }} - + {{ else if eq "ja" .Page.Language.Lang }} - + {{ else if eq "id" .Page.Language.Lang }} - + {{ else if eq "ko" .Page.Language.Lang }} - + {{ else if eq "sr" .Page.Language.Lang }} - + {{ else if eq "sv" .Page.Language.Lang }} - + {{ else if eq "vi" .Page.Language.Lang }} - + {{ else if eq "he" .Page.Language.Lang }} - + {{ else if eq "uk" .Page.Language.Lang }} - + {{ else if eq "it" .Page.Language.Lang }} - + {{ else if eq "si" .Page.Language.Lang }} - + {{ else if eq "fi" .Page.Language.Lang }} - + {{ else if eq "hu" .Page.Language.Lang }} - + {{ else if eq "da" .Page.Language.Lang }} - + {{ end }}