OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
docroot
/
dist
/
static
/
js
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2022 11:12:13 AM
rwxr-xr-x
📄
20.001765676a244701b2db.js
1.56 MB
08/14/2022 11:12:10 AM
rw-r--r--
📄
21.a4548d4c25aafb117be8.js
1.34 MB
08/14/2022 11:12:12 AM
rw-r--r--
📄
22.12a943634beff3377a32.js
1.36 MB
08/14/2022 11:12:13 AM
rw-r--r--
📄
23.92eaf8eeb23617895680.js
42.35 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
24.d34620d747e0ad596977.js
6.23 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
25.bb68d7e8df5cd0d210aa.js
4.14 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
26.0f01cb0542aeb1ae63e0.js
2.06 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
27.c24fb49cd4265d110009.js
2.05 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
28.cbdd9a2e36494b8e7e7c.js
326 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
29.bb4f0a1e06115e10ae26.js
318 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
app.1b8fe5ff1cc27d237ff4.js
449.08 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
app.c38340ea9793effbf0cc.js
53.89 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.axios.0f184e0c0ec7c3bf6d60.js
11.59 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.axios.15d412cfc41c0d21ab9c.js
18.51 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.babel-helper-vue-jsx-merge-props.4db6005eaaa827ce60d3.js
645 bytes
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.babel.8476c741762c6007469c.js
2.18 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.base64-js.3c73d92c1233dcf7fab2.js
1.44 KB
08/14/2022 11:12:08 AM
rw-r--r--
📄
npm.base64-js.8653aea2a2e8c68c989c.js
1.44 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.buffer.87eee1fdab30c7c447c4.js
19.44 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.buffer.ca44dbdf342d0855fb11.js
19.44 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.css-loader.fed8e2bdea243750b36b.js
957 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.d3-hierarchy.c8c2253339c4e4676685.js
13.5 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.d3-time-format.314f5f8a7d9abf16cf84.js
9.5 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.d3-time.2ec89e60084d53c9e7c7.js
3.75 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.d3.c84643ba0f2321d8c13d.js
147.42 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.datatables.net-dt.c7f5903c42b05464134b.js
345 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.datatables.net-fixedheader-dt.aa37425848e58d6bde14.js
84 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.datatables.net-fixedheader.46bde606367c4eb7a765.js
7.05 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.datatables.net-rowgroup-dt.e9ba3b551c9330e0084e.js
84 bytes
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.datatables.net-rowgroup.85c73efc2eba2ad7ab35.js
3.77 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.datatables.net.86b1042b41e49f6a3d21.js
83.41 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.es6-promise.f1633e965e20484156d8.js
6.34 KB
08/14/2022 11:12:08 AM
rw-r--r--
📄
npm.events.3fa62db403dfbe2fc018.js
5.95 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.fast-isnumeric.fec6d11633acc742b8e8.js
247 bytes
08/14/2022 11:12:08 AM
rw-r--r--
📄
npm.fuzzysearch.0938685bd6633c551ce3.js
297 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.gl-mat4.fdfd66cc38eeec8d161e.js
10.65 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.has-hover.907920b8622d929b53f5.js
237 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.has-passive-events.560bcb1bb541045c251d.js
321 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.ieee754.4ec539d8f5a9fbc180f5.js
950 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.is-browser.f246585d9104fe9e25a8.js
96 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.is-mobile.48d8b05c828b3c18002b.js
1.18 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.is-promise.6ffb18ac659be0a497d8.js
208 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.is-string-blank.5334607a98160cdac3dc.js
341 bytes
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.isarray.29b32ffad4770d2466ef.js
179 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.jquery.c4898326f8ac5056493e.js
88.11 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.jquery.dcead76af3c1acc438cb.js
88.12 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.leaflet-iconmaterial.9e7704104018a6b015d3.js
1.86 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.leaflet.6260117c48642af3eead.js
145.1 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.lodash.ad589824b88fa286c327.js
74.62 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.material-design-icons-iconfont.bf1884c0a9878c763687.js
86 bytes
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.material-design-icons-iconfont.d238215181d1a4a0cff9.js
85 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.mdi.2ae0351efe2bb2e096c1.js
84 bytes
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.mdi.3e8905ec49c0a0f711e9.js
83 bytes
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.mouse-event-offset.07f04de76d630c5f1838.js
348 bytes
08/14/2022 11:12:08 AM
rw-r--r--
📄
npm.nepali-date.9b750665a780dd9d904c.js
10.88 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.parse-svg-path.04dac16481785c4040f8.js
594 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.plotly.js.9015f25c707fe7c31a04.js
927.17 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.polybooljs.c669c4c7d010129d55ef.js
13.24 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.process.672ccd900c13d8ccad5e.js
1.7 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.process.f7136e61a24777c18bb1.js
1.7 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.riophae.da8a0ae391caf1ec1a59.js
54.66 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.setimmediate.97a010d57e48e8e6dd93.js
1.7 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.setimmediate.baa1342e5a67a7e4b515.js
1.7 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.sortablejs.143626fccb69f528ad8e.js
42.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.sortablejs.79afed1fc8dca83af1ce.js
42.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.timers-browserify.569c8e4db69b15e690ac.js
1.11 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.timers-browserify.8c4d117f6b41f342b947.js
1.11 KB
08/14/2022 11:12:08 AM
rw-r--r--
📄
npm.tinycolor2.feeaa4db2b7598d5c03f.js
14.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.vue-grid-layout.3d9d54ac10daf8c24e35.js
200.89 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.vue-loader.4fa50e6b376fc7f906b4.js
874 bytes
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vue-loader.98a4f66fcc2fa4294a39.js
874 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.vue-router.6f244f19990ff9797bce.js
25.91 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.vue-router.dd9aa71234a46e167810.js
25.91 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vue-style-loader.b5103048442cbb4f316a.js
2.54 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.vue.025f17956148404b92b3.js
91.34 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.vue.5fbfd768c05128cba78e.js
91.34 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.vue2-leaflet.2ce388f74cc9b4a71af9.js
39.52 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vuedraggable.d71406d943ce8a562b25.js
34.36 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vuedraggable.e5a5dc383ec611ffdd45.js
34.36 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vuetify-loader.b9040a74dd4c7263e8d4.js
331 bytes
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.vuetify.68388ac2cb55cac69cf2.js
791.27 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.vuetify.8b705a4efa5f227391c5.js
779.14 KB
08/14/2022 11:12:10 AM
rw-r--r--
📄
npm.vuex.087c99b4ef23a9ff8a58.js
9.41 KB
08/14/2022 11:12:11 AM
rw-r--r--
📄
npm.vuex.de4062b5d3a514d40c97.js
9.41 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.watch-size.ba2013ab9280cef7fc05.js
1.03 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
npm.webpack.231bc6e559c13c0b9c31.js
211 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.webpack.7112bc5b47c289e366e3.js
518 bytes
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.xlsx.157b545e12627b2cf299.js
886.5 KB
08/14/2022 11:12:09 AM
rw-r--r--
📄
npm.xlsx.68a305afa3732a4e4ae1.js
459.19 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
runtime.96b4b610f5ae334b0eeb.js
1.46 KB
08/14/2022 11:12:12 AM
rw-r--r--
📄
runtime.c1da4fc9523c87a39de0.js
3.55 KB
08/14/2022 11:12:08 AM
rw-r--r--
Editing: npm.plotly.js.9015f25c707fe7c31a04.js
Close
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{"+1bK":function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4"),i=r("DzeQ"),o=r("WeBh");function l(e){return e.data.data.pid}t.findEntryWithLevel=function(e,r){var a;return r&&e.eachAfter((function(e){if(t.getPtId(e)===r)return a=e.copy()})),a||e},t.findEntryWithChild=function(e,r){var a;return e.eachAfter((function(e){for(var n=e.children||[],i=0;i<n.length;i++){var o=n[i];if(t.getPtId(o)===r)return a=e.copy()}})),a||e},t.isEntry=function(e){return!e.parent},t.isLeaf=function(e){return!e.children},t.getPtId=function(e){return e.data.data.id},t.getPtLabel=function(e){return e.data.data.label},t.getValue=function(e){return e.value},t.isHierarchyRoot=function(e){return""===l(e)},t.setSliceCursor=function(e,r,a){var n=a.isTransitioning;if(!n){var o=e.datum();n=a.hideOnRoot&&t.isHierarchyRoot(o)||a.hideOnLeaves&&t.isLeaf(o)}i(e,n?null:"pointer")},t.getInsideTextFontKey=function(e,t,r,n,i){var o=(i||{}).onPathbar?"pathbar.textfont":"insidetextfont",l=r.data.data.i;return a.castOption(t,l,o+"."+e)||a.castOption(t,l,"textfont."+e)||n.size},t.getOutsideTextFontKey=function(e,t,r,n){var i=r.data.data.i;return a.castOption(t,i,"outsidetextfont."+e)||a.castOption(t,i,"textfont."+e)||n.size},t.isOutsideText=function(e,r){return!e._hasColorscale&&t.isHierarchyRoot(r)},t.determineTextFont=function(e,r,i,o){return t.isOutsideText(e,r)?function(e,r,a){return{color:t.getOutsideTextFontKey("color",e,r,a),family:t.getOutsideTextFontKey("family",e,r,a),size:t.getOutsideTextFontKey("size",e,r,a)}}(e,r,i):function(e,r,i,o){var l=(o||{}).onPathbar,s=r.data.data,c=s.i,d=a.castOption(e,c,(l?"pathbar.textfont":"insidetextfont")+".color");return!d&&e._input.textfont&&(d=a.castOption(e._input,c,"textfont.color")),{color:d||n.contrast(s.color),family:t.getInsideTextFontKey("family",e,r,i,o),size:t.getInsideTextFontKey("size",e,r,i,o)}}(e,r,i,o)},t.hasTransition=function(e){return!!(e&&e.duration>0)},t.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},t.isHeader=function(e,r){return!(t.isLeaf(e)||e.depth===r._maxDepth-1)},t.getParent=function(e,r){return t.findEntryWithLevel(e,l(r))},t.listPath=function(e,r){var a=e.parent;if(!a)return[];var n=r?[a.data[r]]:[a];return t.listPath(a,r).concat(n)},t.getPath=function(e){return t.listPath(e,"label").join("/")+"/"},t.formatValue=o.formatPieValue,t.formatPercent=function(e,t){var r=a.formatPercent(e,0);return"0%"===r&&(r=o.formatPiePercent(e,t)),r}},"+1rr":function(e,t,r){"use strict";var a=r("EHyX"),n=r("lNV6").hovertemplateAttrs,i=r("lNV6").texttemplateAttrs,o=r("9Okp"),l=r("mEVB"),s=r("Gl7E"),c=r("kJIm").extendFlat,d=l({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),u=c({},a.marker.line.width,{dflt:0}),f=c({width:u,editType:"calc"},o("marker.line")),h=c({line:f,editType:"calc"},o("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,role:"style",editType:"style",description:"Sets the opacity of the bars."}});e.exports={x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,text:a.text,texttemplate:i({editType:"plot"},{keys:s.eventDataKeys}),hovertext:a.hovertext,hovertemplate:n({},{keys:s.eventDataKeys}),textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",role:"info",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",role:"info",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:c({},d,{description:"Sets the font used for `text`."}),insidetextfont:c({},d,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:c({},d,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],role:"info",dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:c({},a.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",role:"info",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,role:"info",editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,role:"info",editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,role:"info",editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:h,offsetgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},selected:{marker:{opacity:a.selected.marker.opacity,color:a.selected.marker.color,editType:"style"},textfont:a.selected.textfont,editType:"style"},unselected:{marker:{opacity:a.unselected.marker.opacity,color:a.unselected.marker.color,editType:"style"},textfont:a.unselected.textfont,editType:"style"},r:a.r,t:a.t,_deprecated:{bardir:{valType:"enumerated",role:"info",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},"+Y3G":function(e,t,r){"use strict";function a(e,t){var r,a,n=[0,0,0,0];for(r=0;r<4;++r)for(a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}e.exports=function(e,t){return a(e.projection,a(e.view,a(e.model,[t[0],t[1],t[2],1])))}},"+gYs":function(e,t,r){"use strict";var a=r("EHyX"),n=a.marker,i=r("kJIm").extendFlat,o=["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");e.exports={r:i({},a.r,{description:[o,"Sets the radial coordinates","for legacy polar chart only."].join(" ")}),t:i({},a.t,{description:[o,"Sets the angular coordinates","for legacy polar chart only."].join(" ")}),marker:{color:i({},n.color,{description:[o,n.color.description].join(" ")}),size:i({},n.size,{description:[o,n.size.description].join(" ")}),symbol:i({},n.symbol,{description:[o,n.symbol.description].join(" ")}),opacity:i({},n.opacity,{description:[o,n.opacity.description].join(" ")}),editType:"calc"}}},"+lml":function(e,t,r){"use strict";var a=r("bljh");e.exports=function(e,t,r){var n=e.selectAll("g."+r.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));n.exit().remove(),n.enter().append("g").attr("class",r),n.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each((function(e){e[0][i]=a.select(this)})),n}},"+oog":function(e,t,r){"use strict";var a=r("bljh"),n=r("Zss7"),i=r("Nx4I"),o=r("/CZE"),l=r("wlgE").makeColorScaleFuncFromTrace,s=r("c8nr");function c(e,t){var r=t.length-2,a=o.constrain(o.findBin(e,t),0,r),n=t[a],i=t[a+1],l=o.constrain(a+(e-n)/(i-n)-.5,0,r),s=Math.round(l),c=Math.abs(l-s);return l&&l!==r&&c?{bin0:s,frac:c,bin1:Math.round(s+c/(l-s))}:{bin0:s,bin1:s,frac:0}}function d(e,t){var r=t.length-1,a=o.constrain(o.findBin(e,t),0,r),n=t[a],i=(e-n)/(t[a+1]-n)||0;return i<=0?{bin0:a,bin1:a,frac:0}:i<.5?{bin0:a,bin1:a+1,frac:i}:{bin0:a+1,bin1:a,frac:1-i}}function u(e,t,r){e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=Math.round(255*r[3])}e.exports=function(e,t,r,f){var h=t.xaxis,p=t.yaxis;o.makeTraceGroups(f,r,"hm").each((function(t){var r,f,g,m,y,v,x=a.select(this),b=t[0],_=b.trace,w=b.z,k=b.x,T=b.y,A=b.xCenter,M=b.yCenter,S=i.traceIs(_,"contour"),L=S?"best":_.zsmooth,C=w.length,I=o.maxRowLength(w),D=!1,O=!1;for(v=0;void 0===r&&v<k.length-1;)r=h.c2p(k[v]),v++;for(v=k.length-1;void 0===f&&v>0;)f=h.c2p(k[v]),v--;for(f<r&&(g=f,f=r,r=g,D=!0),v=0;void 0===m&&v<T.length-1;)m=p.c2p(T[v]),v++;for(v=T.length-1;void 0===y&&v>0;)y=p.c2p(T[v]),v--;if(y<m&&(g=m,m=y,y=g,O=!0),S&&(A=k,M=T,k=b.xfill,T=b.yfill),"fast"!==L){var z="best"===L?0:.5;r=Math.max(-z*h._length,r),f=Math.min((1+z)*h._length,f),m=Math.max(-z*p._length,m),y=Math.min((1+z)*p._length,y)}var P=Math.round(f-r),E=Math.round(y-m);if(P<=0||E<=0){x.selectAll("image").data([]).exit().remove()}else{var j,R;"fast"===L?(j=I,R=C):(j=P,R=E);var N=document.createElement("canvas");N.width=j,N.height=R;var F,B,H=N.getContext("2d"),V=l(_,{noNumericCheck:!0,returnArray:!0});"fast"===L?(F=D?function(e){return I-1-e}:o.identity,B=O?function(e){return C-1-e}:o.identity):(F=function(e){return o.constrain(Math.round(h.c2p(k[e])-r),0,P)},B=function(e){return o.constrain(Math.round(p.c2p(T[e])-m),0,E)});var Z,G,U,W,q,Y=B(0),X=[Y,Y],J=D?0:1,K=O?0:1,Q=0,$=0,ee=0,te=0;if(L){var re,ae=0;try{re=new Uint8Array(P*E*4)}catch(e){re=new Array(P*E*4)}if("best"===L){var ne,ie,oe,le=A||k,se=M||T,ce=new Array(le.length),de=new Array(se.length),ue=new Array(P),fe=A?d:c,he=M?d:c;for(v=0;v<le.length;v++)ce[v]=Math.round(h.c2p(le[v])-r);for(v=0;v<se.length;v++)de[v]=Math.round(p.c2p(se[v])-m);for(v=0;v<P;v++)ue[v]=fe(v,ce);for(G=0;G<E;G++)for(ie=w[(ne=he(G,de)).bin0],oe=w[ne.bin1],v=0;v<P;v++,ae+=4)u(re,ae,q=Te(ie,oe,ue[v],ne))}else for(G=0;G<C;G++)for(W=w[G],X=B(G),v=0;v<P;v++)q=ke(W[v],1),u(re,ae=4*(X*P+F(v)),q);var pe=H.createImageData(P,E);try{pe.data.set(re)}catch(e){var ge=pe.data,me=ge.length;for(G=0;G<me;G++)ge[G]=re[G]}H.putImageData(pe,0,0)}else{var ye=_.xgap,ve=_.ygap,xe=Math.floor(ye/2),be=Math.floor(ve/2);for(G=0;G<C;G++)if(W=w[G],X.reverse(),X[K]=B(G+1),X[0]!==X[1]&&void 0!==X[0]&&void 0!==X[1])for(Z=[U=F(0),U],v=0;v<I;v++)Z.reverse(),Z[J]=F(v+1),Z[0]!==Z[1]&&void 0!==Z[0]&&void 0!==Z[1]&&(q=ke(W[v],(Z[1]-Z[0])*(X[1]-X[0])),H.fillStyle="rgba("+q.join(",")+")",H.fillRect(Z[0]+xe,X[0]+be,Z[1]-Z[0]-ye,X[1]-X[0]-ve))}$=Math.round($/Q),ee=Math.round(ee/Q),te=Math.round(te/Q);var _e=n("rgb("+$+","+ee+","+te+")");e._hmpixcount=(e._hmpixcount||0)+Q,e._hmlumcount=(e._hmlumcount||0)+Q*_e.getLuminance();var we=x.selectAll("image").data(t);we.enter().append("svg:image").attr({xmlns:s.svg,preserveAspectRatio:"none"}),we.attr({height:E,width:P,x:r,y:m,"xlink:href":N.toDataURL("image/png")})}function ke(e,t){if(void 0!==e){var r=V(e);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=t,$+=r[0]*t,ee+=r[1]*t,te+=r[2]*t,r}return[0,0,0,0]}function Te(e,t,r,a){var n=e[r.bin0];if(void 0===n)return ke(void 0,1);var i,o=e[r.bin1],l=t[r.bin0],s=t[r.bin1],c=o-n||0,d=l-n||0;return i=void 0===o?void 0===s?0:void 0===l?2*(s-n):2*(2*s-l-n)/3:void 0===s?void 0===l?0:2*(2*n-o-l)/3:void 0===l?2*(2*s-o-n)/3:s+n-o-l,ke(n+r.frac*c+a.frac*(d+r.frac*i))}}))}},"/0lf":function(e,t,r){"use strict";var a=r("bljh"),n=r("g9E0"),i=r("BkK/"),o=r("PBw4"),l=r("c8nr");e.exports=function(e){var t,r,s=e._fullLayout,c=[],d={},u=[];for(r=0;r<s.images.length;r++){var f=s.images[r];if(f.visible)if("below"===f.layer&&"paper"!==f.xref&&"paper"!==f.yref){t=o.ref2id(f.xref)+o.ref2id(f.yref);var h=s._plots[t];if(!h){u.push(f);continue}h.mainplot&&(t=h.mainplot.id),d[t]||(d[t]=[]),d[t].push(f)}else"above"===f.layer?c.push(f):u.push(f)}var p={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},g={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function m(t){var r=a.select(this);if(this._imgSrc!==t.source)if(r.attr("xmlns",l.svg),t.source&&"data:"===t.source.slice(0,5))r.attr("xlink:href",t.source),this._imgSrc=t.source;else{var n=new Promise(function(e){var a=new Image;function n(){r.remove(),e()}this.img=a,a.setAttribute("crossOrigin","anonymous"),a.onerror=n,a.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var a=t.toDataURL("image/png");r.attr("xlink:href",a),e()},r.on("error",n),a.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(n)}}function y(t){var r,o,l=a.select(this),c=i.getFromId(e,t.xref),d=i.getFromId(e,t.yref),u="domain"===i.getRefType(t.xref),f="domain"===i.getRefType(t.yref),h=s._size;r=void 0!==c?"string"==typeof t.xref&&u?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*h.w,o=void 0!==d?"string"==typeof t.yref&&f?d._length*t.sizey:Math.abs(d.l2p(t.sizey)-d.l2p(0)):t.sizey*h.h;var m,y,v=r*p[t.xanchor].offset,x=o*g[t.yanchor].offset,b=p[t.xanchor].sizing+g[t.yanchor].sizing;switch(m=void 0!==c?"string"==typeof t.xref&&u?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*h.w+h.l,m+=v,y=void 0!==d?"string"==typeof t.yref&&f?d._length*(1-t.y)+d._offset:d.r2p(t.y)+d._offset:h.h-t.y*h.h+h.t,y+=x,t.sizing){case"fill":b+=" slice";break;case"stretch":b="none"}l.attr({x:m,y:y,width:r,height:o,preserveAspectRatio:b,opacity:t.opacity});var _=(c&&"domain"!==i.getRefType(t.xref)?c._id:"")+(d&&"domain"!==i.getRefType(t.yref)?d._id:"");n.setClipUrl(l,_?"clip"+s._uid+_:null,e)}var v=s._imageLowerLayer.selectAll("image").data(u),x=s._imageUpperLayer.selectAll("image").data(c);v.enter().append("image"),x.enter().append("image"),v.exit().remove(),x.exit().remove(),v.each((function(e){m.bind(this)(e),y.bind(this)(e)})),x.each((function(e){m.bind(this)(e),y.bind(this)(e)}));var b=Object.keys(s._plots);for(r=0;r<b.length;r++){t=b[r];var _=s._plots[t];if(_.imagelayer){var w=_.imagelayer.selectAll("image").data(d[t]||[]);w.enter().append("image"),w.exit().remove(),w.each((function(e){m.bind(this)(e),y.bind(this)(e)}))}}}},"/CZE":function(e,t,r){"use strict";var a=r("bljh"),n=r("cOGN").utcFormat,i=r("GbLo"),o=r("6AZA"),l=o.FP_SAFE,s=o.BADNUM,c=e.exports={};c.nestedProperty=r("dNZO"),c.keyedContainer=r("Xe/Q"),c.relativeAttr=r("Lj1h"),c.isPlainObject=r("E4V0"),c.toLogRange=r("9rBw"),c.relinkPrivateKeys=r("Q1hF");var d=r("avjU");c.isTypedArray=d.isTypedArray,c.isArrayOrTypedArray=d.isArrayOrTypedArray,c.isArray1D=d.isArray1D,c.ensureArray=d.ensureArray,c.concat=d.concat,c.maxRowLength=d.maxRowLength,c.minRowLength=d.minRowLength;var u=r("09xr");c.mod=u.mod,c.modHalf=u.modHalf;var f=r("ZnKQ");c.valObjectMeta=f.valObjectMeta,c.coerce=f.coerce,c.coerce2=f.coerce2,c.coerceFont=f.coerceFont,c.coerceHoverinfo=f.coerceHoverinfo,c.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,c.validate=f.validate;var h=r("Zhzs");c.dateTime2ms=h.dateTime2ms,c.isDateTime=h.isDateTime,c.ms2DateTime=h.ms2DateTime,c.ms2DateTimeLocal=h.ms2DateTimeLocal,c.cleanDate=h.cleanDate,c.isJSDate=h.isJSDate,c.formatDate=h.formatDate,c.incrementMonth=h.incrementMonth,c.dateTick0=h.dateTick0,c.dfltRange=h.dfltRange,c.findExactDates=h.findExactDates,c.MIN_MS=h.MIN_MS,c.MAX_MS=h.MAX_MS;var p=r("3HVJ");c.findBin=p.findBin,c.sorterAsc=p.sorterAsc,c.sorterDes=p.sorterDes,c.distinctVals=p.distinctVals,c.roundUp=p.roundUp,c.sort=p.sort,c.findIndexOfMin=p.findIndexOfMin;var g=r("oBF0");c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=r("7CC7");c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var y=r("bkDJ");c.deg2rad=y.deg2rad,c.rad2deg=y.rad2deg,c.angleDelta=y.angleDelta,c.angleDist=y.angleDist,c.isFullCircle=y.isFullCircle,c.isAngleInsideSector=y.isAngleInsideSector,c.isPtInsideSector=y.isPtInsideSector,c.pathArc=y.pathArc,c.pathSector=y.pathSector,c.pathAnnulus=y.pathAnnulus;var v=r("bFr3");c.isLeftAnchor=v.isLeftAnchor,c.isCenterAnchor=v.isCenterAnchor,c.isRightAnchor=v.isRightAnchor,c.isTopAnchor=v.isTopAnchor,c.isMiddleAnchor=v.isMiddleAnchor,c.isBottomAnchor=v.isBottomAnchor;var x=r("GeF/");c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=r("kJIm");c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=r("rhNM");c.log=_.log,c.warn=_.warn,c.error=_.error;var w=r("BVrX");c.counterRegex=w.counter;var k=r("ffJW");c.throttle=k.throttle,c.throttleDone=k.done,c.clearThrottle=k.clear;var T=r("G4gu");function A(e){var t={};for(var r in e)for(var a=e[r],n=0;n<a.length;n++)t[a[n]]=+r;return t}c.getGraphDiv=T.getGraphDiv,c.isPlotDiv=T.isPlotDiv,c.removeElement=T.removeElement,c.addStyleRule=T.addStyleRule,c.addRelatedStyleRule=T.addRelatedStyleRule,c.deleteRelatedStyleRule=T.deleteRelatedStyleRule,c.getFullTransformMatrix=T.getFullTransformMatrix,c.getElementTransformMatrix=T.getElementTransformMatrix,c.getElementAndAncestors=T.getElementAndAncestors,c.equalDomRects=T.equalDomRects,c.clearResponsive=r("oi9M"),c.preserveDrawingBuffer=r("/aDn"),c.makeTraceGroups=r("+lml"),c._=r("pMAR"),c.notifier=r("AII8"),c.filterUnique=r("VWeM"),c.filterVisible=r("b8PE"),c.pushUnique=r("Whu6"),c.increment=r("zsXM"),c.cleanNumber=r("8trw"),c.ensureNumber=function(e){return i(e)?(e=Number(e))<-l||e>l?s:i(e)?Number(e):s:s},c.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(i(e)&&e>=0&&e%1==0)},c.noop=r("t3iM"),c.identity=r("MGx7"),c.repeat=function(e,t){for(var r=new Array(t),a=0;a<t;a++)r[a]=e;return r},c.swapAttrs=function(e,t,r,a){r||(r="x"),a||(a="y");for(var n=0;n<t.length;n++){var i=t[n],o=c.nestedProperty(e,i.replace("?",r)),l=c.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}},c.raiseToTop=function(e){e.parentNode.appendChild(e)},c.cancelTransition=function(e){return e.transition().duration(0)},c.constrain=function(e,t,r){return t>r?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},c.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},c.simpleMap=function(e,t,r,a,n){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=t(e[l],r,a,n);return o},c.randstr=function e(t,r,a,n){if(a||(a=16),void 0===r&&(r=24),r<=0)return"0";var i,o,l=Math.log(Math.pow(2,r))/Math.log(a),s="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,r/i))/Math.log(a)*i;var d=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)s=Math.floor(Math.random()*a).toString(a)+s;d&&(o=Math.pow(a,d),s=Math.floor(Math.random()*o).toString(a)+s);var u=parseInt(s,a);return t&&t[s]||u!==1/0&&u>=Math.pow(2,r)?n>10?(c.warn("randstr failed uniqueness"),s):e(t,r,a,(n||0)+1):s},c.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(a){a[t]=e,r[a.name]=a,r.optionList.push(a)}};return r["_"+t]=e,r},c.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,a,n,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),d=new Array(o);for(r=0;r<s;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/t))/(2*t);for(r=0;r<o;r++){for(i=0,a=0;a<s;a++)(n=r+a+1-t)<-o?n-=l*Math.round(n/l):n>=l&&(n-=l*Math.floor(n/l)),n<0?n=-1-n:n>=o&&(n=l-1-n),i+=e[n]*c[a];d[r]=i}return d},c.syncOrAsync=function(e,t,r){var a;function n(){return c.syncOrAsync(e,t,r)}for(;e.length;)if((a=(0,e.splice(0,1)[0])(t))&&a.then)return a.then(n).then(void 0,c.promiseError);return r&&r(t)},c.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},c.noneOrAll=function(e,t,r){if(e){var a,n=!1,i=!0;for(a=0;a<r.length;a++)null!=e[r[a]]?n=!0:i=!1;if(n&&!i)for(a=0;a<r.length;a++)e[r[a]]=t[r[a]]}},c.mergeArray=function(e,t,r,a){var n="function"==typeof a;if(c.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][r]=n?a(l):l}},c.mergeArrayCastPositive=function(e,t,r){return c.mergeArray(e,t,r,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},c.fillArray=function(e,t,r,a){if(a=a||c.identity,c.isArrayOrTypedArray(e))for(var n=0;n<t.length;n++)t[n][r]=a(e[n])},c.castOption=function(e,t,r,a){a=a||c.identity;var n=c.nestedProperty(e,r).get();return c.isArrayOrTypedArray(n)?Array.isArray(t)&&c.isArrayOrTypedArray(n[t[0]])?a(n[t[0]][t[1]]):a(n[t]):n},c.extractOption=function(e,t,r,a){if(r in e)return e[r];var n=c.nestedProperty(t,a).get();return Array.isArray(n)?void 0:n},c.tagSelected=function(e,t,r){var a,n,i=t.selectedpoints,o=t._indexToPoints;o&&(a=A(o));for(var l=0;l<i.length;l++){var s=i[l];if(c.isIndex(s)||c.isArrayOrTypedArray(s)&&c.isIndex(s[0])&&c.isIndex(s[1])){var d=a?a[s]:s,u=r?r[d]:d;void 0!==(n=u)&&n<e.length&&(e[u].selected=1)}}},c.selIndices2selPoints=function(e){var t=e.selectedpoints,r=e._indexToPoints;if(r){for(var a=A(r),n=[],i=0;i<t.length;i++){var o=t[i];if(c.isIndex(o)){var l=a[o];c.isIndex(l)&&n.push(l)}}return n}return t},c.getTargetArray=function(e,t){var r=t.target;if("string"==typeof r&&r){var a=c.nestedProperty(e,r).get();return!!Array.isArray(a)&&a}return!!Array.isArray(r)&&r},c.minExtend=function(e,t){var r={};"object"!=typeof t&&(t={});var a,n,i,o=Object.keys(e);for(a=0;a<o.length;a++)i=e[n=o[a]],"_"!==n.charAt(0)&&"function"!=typeof i&&("module"===n?r[n]=i:Array.isArray(i)?r[n]="colorscale"===n?i.slice():i.slice(0,3):c.isTypedArray(i)?r[n]=i.subarray(0,3):r[n]=i&&"object"==typeof i?c.minExtend(e[n],t[n]):i);for(o=Object.keys(t),a=0;a<o.length;a++)"object"==typeof(i=t[n=o[a]])&&n in r&&"object"==typeof r[n]||(r[n]=i);return r},c.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},c.containsAny=function(e,t){for(var r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))return!0;return!1},c.isIE=function(){return void 0!==window.navigator.msSaveBlob};var M=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&&M.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var L=/iPad|iPhone|iPod/;c.isIOS=function(){return L.test(window.navigator.userAgent)},c.isD3Selection=function(e){return e&&"function"==typeof e.classed},c.ensureSingle=function(e,t,r,a){var n=e.select(t+(r?"."+r:""));if(n.size())return n;var i=e.append(t);return r&&i.classed(r,!0),a&&i.call(a),i},c.ensureSingleById=function(e,t,r,a){var n=e.select(t+"#"+r);if(n.size())return n;var i=e.append(t).attr("id",r);return a&&i.call(a),i},c.objectFromPath=function(e,t){for(var r,a=e.split("."),n=r={},i=0;i<a.length;i++){var o=a[i],l=null,s=a[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],r=r[o]=[],i===a.length-1?r[l]=t:r[l]={},r=r[l]):(i===a.length-1?r[o]=t:r[o]={},r=r[o])}return n};var C=/^([^\[\.]+)\.(.+)?/,I=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(e){var t,r,a,n,i,o,l;if("object"==typeof e&&!Array.isArray(e))for(r in e)e.hasOwnProperty(r)&&((t=r.match(C))?(n=e[r],a=t[1],delete e[r],e[a]=c.extendDeepNoArrays(e[a]||{},c.objectFromPath(r,c.expandObjectPaths(n))[a])):(t=r.match(I))?(n=e[r],a=t[1],i=parseInt(t[2]),delete e[r],e[a]=e[a]||[],"."===t[3]?(l=t[4],o=e[a][i]=e[a][i]||{},c.extendDeepNoArrays(o,c.objectFromPath(l,c.expandObjectPaths(n)))):e[a][i]=c.expandObjectPaths(n)):e[r]=c.expandObjectPaths(e[r]));return e},c.numSeparate=function(e,t,r){if(r||(r=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var a=/(\d+)(\d{3})/,n=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?n+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var D=/^\w*$/;c.templateString=function(e,t){var r={};return e.replace(c.TEMPLATE_STRING_REGEX,(function(e,a){var n;return D.test(a)?n=t[a]:(r[a]=r[a]||c.nestedProperty(t,a).get,n=r[a]()),c.isValidTextValue(n)?n:""}))};var O={max:10,count:0,name:"hovertemplate"};c.hovertemplateString=function(){return E.apply(O,arguments)};var z={max:10,count:0,name:"texttemplate"};c.texttemplateString=function(){return E.apply(z,arguments)};var P=/^[:|\|]/;function E(e,t,r){var i=this,o=arguments;t||(t={});var l={};return e.replace(c.TEMPLATE_STRING_REGEX,(function(e,s,d){var u,f,h,p;for(h=3;h<o.length;h++)if(u=o[h]){if(u.hasOwnProperty(s)){f=u[s];break}if(D.test(s)||(f=l[s]||c.nestedProperty(u,s).get())&&(l[s]=f),void 0!==f)break}if(void 0===f&&i)return i.count<i.max&&(c.warn("Variable '"+s+"' in "+i.name+" could not be found!"),f=e),i.count===i.max&&c.warn("Too many "+i.name+" warnings - additional warnings will be suppressed"),i.count++,e;if(d){if(":"===d[0]&&(f=(p=r?r.numberFormat:a.format)(d.replace(P,""))(f)),"|"===d[0]){p=r?r.timeFormat:n;var g=c.dateTime2ms(f);f=c.formatDate(g,d.replace(P,""),!1,p)}}else t.hasOwnProperty(s+"Label")&&(f=t[s+"Label"]);return f}))}c.subplotSort=function(e,t){for(var r=Math.min(e.length,t.length)+1,a=0,n=0,i=0;i<r;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,c=l>=48&&l<=57;if(s&&(a=10*a+o-48),c&&(n=10*n+l-48),!s||!c){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var j=2e9;c.seedPseudoRandom=function(){j=2e9},c.pseudoRandom=function(){var e=j;return j=(69069*j+1)%4294967296,Math.abs(j-e)<429496729?c.pseudoRandom():j/4294967296},c.fillText=function(e,t,r){var a=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},n=c.extractOption(e,t,"htx","hovertext");if(c.isValidTextValue(n))return a(n);var i=c.extractOption(e,t,"tx","text");return c.isValidTextValue(i)?a(i):void 0},c.isValidTextValue=function(e){return e||0===e},c.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",a=0;a<t;a++)-1!==r.indexOf(".")&&(r=(r=r.replace("0%","%")).replace(".%","%"));return r},c.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},c.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},c.strRotate=function(e){return e?"rotate("+e+")":""},c.strScale=function(e){return 1!==e?"scale("+e+")":""},c.getTextTransform=function(e){var t=e.noCenter,r=e.textX,a=e.textY,n=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,d=e.scale;return d?d>1&&(d=1):d=0,c.strTranslate(n-d*(r+o),i-d*(a+l))+c.strScale(d)+(s?"rotate("+s+(t?"":" "+r+" "+a)+")":"")},c.ensureUniformFontSize=function(e,t){var r=c.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},c.join2=function(e,t,r){var a=e.length;return a>1?e.slice(0,-1).join(t)+r+e[a-1]:e.join(t)}},"/Hui":function(e,t,r){"use strict";var a=r("E6B2");t.calc=function(e,t){return a.calc(e,t)},t.crossTraceCalc=function(e){return a._runCrossTraceCalc("treemap",e)}},"/LJd":function(e,t,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:r("Z8TU"),supplyDefaults:r("jyrE"),draw:r("jezF").draw,hasColorbar:r("cIkR")}},"/LM6":function(e,t,r){"use strict";e.exports={min:"zmin",max:"zmax"}},"/NYH":function(e,t,r){"use strict";var a=r("/CZE"),n=r("89+b");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}r("hiddenlabels"),r("funnelareacolorway",t.colorway),r("extendfunnelareacolors")}},"/YBL":function(e,t,r){"use strict";var a=r("bljh"),n=r("u3HJ"),i=r("0RW4"),o=r("g9E0"),l=r("/CZE"),s=r("A3kh"),c=r("plED").arrayEditor,d=r("Y9zF").LINE_SPACING,u=r("PS76"),f=r("j/Ga");function h(e){return e._index}function p(e,t){return+e.attr(u.menuIndexAttrName)===t._index}function g(e,t,r,a,n,i,o,l){t.active=o,c(e.layout,u.name,t).applyUpdate("active",o),"buttons"===t.type?y(e,a,null,null,t):"dropdown"===t.type&&(n.attr(u.menuIndexAttrName,"-1"),m(e,a,n,i,t),l||y(e,a,n,i,t))}function m(e,t,r,a,n){var i=l.ensureSingle(t,"g",u.headerClassName,(function(e){e.style("pointer-events","all")})),s=n._dims,c=n.active,d=n.buttons[c]||u.blankHeaderOpts,f={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},h={width:s.headerWidth,height:s.headerHeight};i.call(v,n,d,e).call(M,n,f,h),l.ensureSingle(t,"text",u.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,n.font).text(u.arrowSymbol[n.direction])})).attr({x:s.headerWidth-u.arrowOffsetX+n.pad.l,y:s.headerHeight/2+u.textOffsetY+n.pad.t}),i.on("click",(function(){r.call(S,String(p(r,n)?-1:n._index)),y(e,t,r,a,n)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(k,n)})),o.setTranslate(t,s.lx,s.ly)}function y(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(u.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?u.dropdownButtonClassName:u.buttonClassName,d=r.selectAll("g."+c).data(l.filterVisible(s)),f=d.enter().append("g").classed(c,!0),h=d.exit();"dropdown"===o.type?(f.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var p=0,m=0,y=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?m=y.headerHeight+u.gapButtonHeader:p=y.headerWidth+u.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(m=-u.gapButtonHeader+u.gapButton-y.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-u.gapButtonHeader+u.gapButton-y.openWidth);var b={x:y.lx+p+o.pad.l,y:y.ly+m+o.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};d.each((function(l,s){var c=a.select(this);c.call(v,o,l,e).call(M,o,b),c.on("click",(function(){a.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(e,o,0,t,r,i,-1),n.executeAPICommand(e,l.method,l.args2)):(g(e,o,0,t,r,i,s),n.executeAPICommand(e,l.method,l.args))),e.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),d.call(_,o)}))})),d.call(_,o),x?(T.w=Math.max(y.openWidth,y.headerWidth),T.h=b.y-T.t):(T.w=b.x-T.l,T.h=Math.max(y.openHeight,y.headerHeight)),T.direction=o.direction,i&&(d.size()?function(e,t,r,a,n,i){var o,l,s,c=n.direction,d="up"===c||"down"===c,f=n._dims,h=n.active;if(d)for(l=0,s=0;s<h;s++)l+=f.heights[s]+u.gapButton;else for(o=0,s=0;s<h;s++)o+=f.widths[s]+u.gapButton;a.enable(i,o,l),a.hbar&&a.hbar.attr("opacity","0").transition().attr("opacity","1");a.vbar&&a.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,T):function(e){var t=!!e.hbar,r=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,r||e.disable()}));r&&e.vbar.transition().attr("opacity","0").each("end",(function(){r=!1,t||e.disable()}))}(i))}function v(e,t,r,a){e.call(x,t).call(b,t,r,a)}function x(e,t){l.ensureSingle(e,"rect",u.itemRectClassName,(function(e){e.attr({rx:u.rx,ry:u.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,a){var n=l.ensureSingle(e,"text",u.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),i=r.label,c=a._fullLayout._meta;c&&(i=l.templateString(i,c)),n.call(o.font,t.font).text(i).call(s.convertToTspans,a)}function _(e,t){var r=t.active;e.each((function(e,n){var o=a.select(this);n===r&&t.showactive&&o.select("rect."+u.itemRectClassName).call(i.fill,u.activeColor)}))}function w(e){e.select("rect."+u.itemRectClassName).call(i.fill,u.hoverColor)}function k(e,t){e.select("rect."+u.itemRectClassName).call(i.fill,t.bgcolor)}function T(e,t){var r=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+u.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(u.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(n,i){var l=a.select(this);l.call(v,t,n,e);var f=l.select("."+u.itemTextClassName),h=f.node()&&o.bBox(f.node()).width,p=Math.max(h+u.textPadX,u.minWidth),g=t.font.size*d,m=s.lineCount(f),y=Math.max(g*m,u.minHeight)+u.textOffsetY;y=Math.ceil(y),p=Math.ceil(p),r.widths[i]=p,r.heights[i]=y,r.height1=Math.max(r.height1,y),r.width1=Math.max(r.width1,p),c?(r.totalWidth=Math.max(r.totalWidth,p),r.openWidth=r.totalWidth,r.totalHeight+=y+u.gapButton,r.openHeight+=y+u.gapButton):(r.totalWidth+=p+u.gapButton,r.openWidth+=p+u.gapButton,r.totalHeight=Math.max(r.totalHeight,y),r.openHeight=r.totalHeight)})),c?r.totalHeight-=u.gapButton:r.totalWidth-=u.gapButton,r.headerWidth=r.width1+u.arrowPadX,r.headerHeight=r.height1,"dropdown"===t.type&&(c?(r.width1+=u.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=u.arrowPadX),i.remove();var f=r.totalWidth+t.pad.l+t.pad.r,h=r.totalHeight+t.pad.t+t.pad.b,p=e._fullLayout._size;r.lx=p.l+p.w*t.x,r.ly=p.t+p.h*(1-t.y);var g="left";l.isRightAnchor(t)&&(r.lx-=f,g="right"),l.isCenterAnchor(t)&&(r.lx-=f/2,g="center");var m="top";l.isBottomAnchor(t)&&(r.ly-=h,m="bottom"),l.isMiddleAnchor(t)&&(r.ly-=h/2,m="middle"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),n.autoMargin(e,A(t),{x:t.x,y:t.y,l:f*({right:1,center:.5}[g]||0),r:f*({left:1,center:.5}[g]||0),b:h*({top:1,middle:.5}[m]||0),t:h*({bottom:1,middle:.5}[m]||0)})}function A(e){return u.autoMarginIdRoot+e._index}function M(e,t,r,a){a=a||{};var n=e.select("."+u.itemRectClassName),i=e.select("."+u.itemTextClassName),l=t.borderwidth,c=r.index,f=t._dims;o.setTranslate(e,l+r.x,l+r.y);var h=-1!==["up","down"].indexOf(t.direction),p=a.height||(h?f.heights[c]:f.height1);n.attr({x:0,y:0,width:a.width||(h?f.width1:f.widths[c]),height:p});var g=t.font.size*d,m=(s.lineCount(i)-1)*g/2;s.positionText(i,u.textOffsetX,p/2-m+u.textOffsetY),h?r.y+=f.heights[c]+r.yPad:r.x+=f.widths[c]+r.xPad,r.index++}function S(e,t){e.attr(u.menuIndexAttrName,t||"-1").selectAll("g."+u.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,r=l.filterVisible(t[u.name]);function i(t){n.autoMargin(e,A(t))}var o=t._menulayer.selectAll("g."+u.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){a.select(this).selectAll("g."+u.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+u.headerGroupClassName).data(r,h);s.enter().append("g").classed(u.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",u.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),d=0;d<r.length;d++){var v=r[d];T(e,v)}var x="updatemenus"+t._uid,b=new f(e,c,x);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(S)),s.exit().each((function(e){c.call(S),i(e)})).remove(),s.each((function(t){var r=a.select(this),i="dropdown"===t.type?c:null;n.manageCommandObserver(e,t,t.buttons,(function(a){g(e,t,t.buttons[a.index],r,i,b,a.index,!0)})),"dropdown"===t.type?(m(e,r,c,b,t),p(c,t)&&y(e,r,c,b,t)):y(e,r,null,null,t)}))}}},"/aDn":function(e,t,r){"use strict";var a=r("GbLo"),n=r("jfjY");e.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;"undefined"!=typeof navigator&&(e=navigator.userAgent);e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]);return e}()))return!0;var r=n({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),o=1;o<i.length;o++){if(-1!==i[o].indexOf("Safari"))for(var l=o-1;l>-1;l--){var s=i[l];if("Version/"===s.substr(0,8)){var c=s.substr(8).split(".")[0];if(a(c)&&(c=+c),c>=13)return!0}}}return r}},"/cea":function(e,t,r){"use strict";var a=r("2FgJ"),n=r("/CZE");t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.extractPathCoords=function(e,t){var r=[];return e.match(a.segmentRE).forEach((function(e){var i=t[e.charAt(0)].drawn;if(void 0!==i){var o=e.substr(1).match(a.paramRE);!o||o.length<i||r.push(n.cleanNumber(o[i]))}})),r},t.getDataToPixel=function(e,r,a,n){var i,o=e._fullLayout._size;if(r)if("domain"===n)i=function(e){return r._length*(a?1-e:e)+r._offset};else{var l=t.shapePositionToRange(r);i=function(e){return r._offset+r.r2p(l(e,!0))},"date"===r.type&&(i=t.decodeDate(i))}else i=a?function(e){return o.t+o.h*(1-e)}:function(e){return o.l+o.w*e};return i},t.getPixelToData=function(e,r,a,n){var i,o=e._fullLayout._size;if(r)if("domain"===n)i=function(e){var t=(e-r._offset)/r._length;return a?1-t:t};else{var l=t.rangeToShapePosition(r);i=function(e){return l(r.p2r(e-r._offset))}}else i=a?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return i},t.roundPositionForSharpStrokeRendering=function(e,t){var r=1===Math.round(t%2),a=Math.round(e);return r?a+.5:a},t.makeOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},a=e._fullLayout._plots[r.xref+r.yref];return!!a?a._hadPlotinfo=!0:(a={},r.xref&&"paper"!==r.xref&&(a.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(a.yaxis=e._fullLayout[r.yref+"axis"])),a.xsizemode=r.xsizemode,a.ysizemode=r.ysizemode,a.xanchor=r.xanchor,a.yanchor=r.yanchor,{options:r,plotinfo:a}}},"/u34":function(e,t,r){"use strict";var a=r("0RW4"),n=r("3oHU");e.exports=function(e,t){var r,i;if("lines"===e.mode)return(r=e.line.color)&&a.opacity(r)?r:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&a.opacity(o)?o:l&&a.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?a.opacity(i)<.3?a.addOpacity(i,.3):i:(r=(e.line||{}).color)&&a.opacity(r)&&n.hasLines(e)&&e.line.width?r:e.fillcolor}},"/w3t":function(e,t,r){"use strict";e.exports={attributes:r("+1rr"),layoutAttributes:r("N+MO"),supplyDefaults:r("HByh").supplyDefaults,crossTraceDefaults:r("HByh").crossTraceDefaults,supplyLayoutDefaults:r("7RaA"),calc:r("14/L"),crossTraceCalc:r("DOzC").crossTraceCalc,colorbar:r("88/Y"),arraysToCalcdata:r("QkuE"),plot:r("x5FY").plot,style:r("LfN2").style,styleOnSelect:r("LfN2").styleOnSelect,hoverPoints:r("rJf6").hoverPoints,eventData:r("1Bxf"),selectPoints:r("cADB"),moduleType:"trace",name:"bar",basePlotModule:r("kc20"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},"09xr":function(e,t,r){"use strict";e.exports={mod:function(e,t){var r=e%t;return r<0?r+t:r},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},"0GSP":function(e,t,r){"use strict";var a=r("/CZE"),n=r("6AZA").BADNUM,i=r("h5fz");e.exports=function(e,t,r,o,l,s){var c=e._length,d=t.makeCalcdata(e,o),u=r.makeCalcdata(e,l);d=i(e,t,o,d),u=i(e,r,l,u);var f,h,p,g,m=e.text,y=void 0!==m&&a.isArray1D(m),v=e.hovertext,x=void 0!==v&&a.isArray1D(v),b=a.distinctVals(d),_=b.vals,w=a.distinctVals(u),k=w.vals,T=[],A=k.length,M=_.length;for(f=0;f<s.length;f++)T[f]=a.init2dArray(A,M);y&&(p=a.init2dArray(A,M)),x&&(g=a.init2dArray(A,M));var S=a.init2dArray(A,M);for(f=0;f<c;f++)if(d[f]!==n&&u[f]!==n){var L=a.findBin(d[f]+b.minDiff/2,_),C=a.findBin(u[f]+w.minDiff/2,k);for(h=0;h<s.length;h++){var I=e[s[h]];T[h][C][L]=I[f],S[C][L]=f}y&&(p[C][L]=m[f]),x&&(g[C][L]=v[f])}for(e["_"+o]=_,e["_"+l]=k,h=0;h<s.length;h++)e["_"+s[h]]=T[h];y&&(e._text=p),x&&(e._hovertext=g),t&&"category"===t.type&&(e["_"+o+"CategoryMap"]=_.map((function(e){return t._categories[e]}))),r&&"category"===r.type&&(e["_"+l+"CategoryMap"]=k.map((function(e){return r._categories[e]}))),e._after2before=S}},"0RW4":function(e,t,r){"use strict";var a=r("Zss7"),n=r("GbLo"),i=e.exports={},o=r("37PH");i.defaults=o.defaults;var l=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var s=i.background=o.background;function c(e){if(n(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var r=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return e;var a=r[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===a.length;if(!i&&3!==a.length)return e;for(var o=0;o<a.length;o++){if(!a[o].length)return e;if(a[o]=Number(a[o]),!(a[o]>=0))return e;if(3===o)a[o]>1&&(a[o]=1);else if(a[o]>=1)return e}var l=Math.round(255*a[0])+", "+Math.round(255*a[1])+", "+Math.round(255*a[2]);return i?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}i.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},i.rgb=function(e){return i.tinyRGB(a(e))},i.opacity=function(e){return e?a(e).getAlpha():0},i.addOpacity=function(e,t){var r=a(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},i.combine=function(e,t){var r=a(e).toRgb();if(1===r.a)return a(e).toRgbString();var n=a(t||s).toRgb(),i=1===n.a?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.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 a(o).toRgbString()},i.contrast=function(e,t,r){var n=a(e);return 1!==n.getAlpha()&&(n=a(i.combine(e,s))),(n.isDark()?t?n.lighten(t):s:r?n.darken(r):l).toString()},i.stroke=function(e,t){var r=a(t);e.style({stroke:i.tinyRGB(r),"stroke-opacity":r.getAlpha()})},i.fill=function(e,t){var r=a(t);e.style({fill:i.tinyRGB(r),"fill-opacity":r.getAlpha()})},i.clean=function(e){if(e&&"object"==typeof e){var t,r,a,n,o=Object.keys(e);for(t=0;t<o.length;t++)if(n=e[a=o[t]],"color"===a.substr(a.length-5))if(Array.isArray(n))for(r=0;r<n.length;r++)n[r]=c(n[r]);else e[a]=c(n);else if("colorscale"===a.substr(a.length-10)&&Array.isArray(n))for(r=0;r<n.length;r++)Array.isArray(n[r])&&(n[r][1]=c(n[r][1]));else if(Array.isArray(n)){var l=n[0];if(!Array.isArray(l)&&l&&"object"==typeof l)for(r=0;r<n.length;r++)i.clean(n[r])}else n&&"object"==typeof n&&i.clean(n)}}},"0Y4q":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=n.extendFlat,o=n.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={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":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var r;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var n,s=e.data,c=e.layout,d=o([],s),u=o({},c,l(t.tileClass)),f=e._context||{};if(t.width&&(u.width=t.width),t.height&&(u.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){u.annotations=[];var h=Object.keys(u);for(r=0;r<h.length;r++)n=h[r],["xaxis","yaxis","zaxis"].indexOf(n.slice(0,5))>-1&&(u[h[r]].title={text:""});for(r=0;r<d.length;r++){var p=d[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),a.traceIs(p,"pie-like")&&(p.textposition="none")}}if(Array.isArray(t.annotations))for(r=0;r<t.annotations.length;r++)u.annotations.push(t.annotations[r]);var g=Object.keys(u).filter((function(e){return e.match(/^scene\d*$/)}));if(g.length){var m={};for("thumbnail"===t.tileClass&&(m={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<g.length;r++){var y=u[g[r]];y.xaxis||(y.xaxis={}),y.yaxis||(y.yaxis={}),y.zaxis||(y.zaxis={}),i(y.xaxis,m),i(y.yaxis,m),i(y.zaxis,m),y._scene=null}}var v=document.createElement("div");t.tileClass&&(v.className=t.tileClass);var x={gd:v,td:v,layout:u,data:d,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:f.mapboxAccessToken}};return"transparent"!==t.setBackground&&(x.config.setBackground=t.setBackground||"opaque"),x.gd.defaultLayout=l(t.tileClass),x}},"0YvE":function(e,t,r){"use strict";e.exports=function(e,t,r,a){if("category"===t.type){var n,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(n="array");var l,s=r("categoryorder",n);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,a,n,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],a=0;a<t.data.length;a++){var l=t.data[a];l[i+"axis"]===e._id&&r.push(l)}for(a=0;a<r.length;a++){var s=r[a][i];for(n=0;n<s.length;n++){var c=s[n];null!=c&&(o[c]=1)}}return Object.keys(o)}(t,a).sort(),"category ascending"===s?t._initialCategories=l:"category descending"===s&&(t._initialCategories=l.reverse()))}}},"0tl7":function(e,t,r){"use strict";var a=r("mEVB"),n=r("37PH"),i=(0,r("plED").templatedArray)("button",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});e.exports={visible:{valType:"boolean",role:"info",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:i,x:{valType:"number",min:-2,max:3,role:"style",editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,role:"style",editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",role:"info",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:a({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:n.lightLine,role:"style",editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",role:"style",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},"0wH6":function(e,t,r){"use strict";var a=r("BVrX").counter;e.exports={idRegex:{x:a("x","( domain)?"),y:a("y","( domain)?")},attrRegex:a("[xy]axis"),xAxisMatch:a("xaxis"),yAxisMatch:a("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,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",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"}}},"14/L":function(e,t,r){"use strict";var a=r("BkK/"),n=r("h5fz"),i=r("IVx0").hasColorscale,o=r("OqjQ"),l=r("QkuE"),s=r("QTaS");e.exports=function(e,t){var r,c,d,u,f=a.getFromId(e,t.xaxis||"x"),h=a.getFromId(e,t.yaxis||"y"),p={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(r=f.makeCalcdata(t,"x",p),d=h.makeCalcdata(t,"y"),c=n(t,h,"y",d),u=!!t.yperiodalignment):(r=h.makeCalcdata(t,"y",p),d=f.makeCalcdata(t,"x"),c=n(t,f,"x",d),u=!!t.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),y=0;y<g;y++)m[y]={p:c[y],s:r[y]},u&&(m[y].orig_p=d[y]),t.ids&&(m[y].id=String(t.ids[y]));return i(t,"marker")&&o(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),i(t,"marker.line")&&o(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),l(m,t),s(m,t),m}},"15jM":function(e,t,r){"use strict";var a=r("mEVB"),n=r("37PH"),i=r("21T9").dash,o=r("kJIm").extendFlat,l=r("plED").templatedArray,s=r("eN+q").FORMAT_LINK,c=r("eN+q").DATE_FORMAT_LINK,d=r("6AZA").ONEDAY,u=r("0wH6"),f=u.HOUR_PATTERN,h=u.WEEKDAY_PATTERN;e.exports={visible:{valType:"boolean",role:"info",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",role:"info",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:a({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",role:"info",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",role:"info",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",role:"info",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"info",editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"info",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",role:"info",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,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],role:"info",editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],role:"info",editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],role:"info",editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",role:"info",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",role:"info",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[h,f,""],role:"info",editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+h+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+f+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+h+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+f+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,role:"info",editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",role:"info",editType:"calc",min:0,dflt:d,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},tickson:{valType:"enumerated",values:["labels","boundaries"],role:"info",dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",role:"info",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",role:"info",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",editType:"ticks",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,role:"style",editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:o({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"data",role:"style",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:a({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,role:"style",editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",s,"And for dates see:",c,"We add one item to d3's date formatter: *%{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(" ")},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",role:"info",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",role:"info",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",role:"style",editType:"none",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",s,"And for dates see:",c,"We add one item to d3's date formatter: *%{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(" ")},showline:{valType:"boolean",dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:n.lightLine,role:"style",editType:"ticks",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],role:"info",editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],role:"info",editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",role:"info",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},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","median ascending","median descending"],dflt:"trace",role:"info",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",role:"info",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",role:"info",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",role:"info",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:a({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"1Bxf":function(e,t,r){"use strict";e.exports=function(e,t,r){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===r.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},"1YsL":function(e,t,r){"use strict";var a=r("/CZE"),n=r("dnh+");e.exports=function(e,t,r){var i=!1;function o(r,i){return a.coerce(e,t,n,r,i)}for(var l=0;l<r.length;l++){var s=r[l];if(s.visible&&"funnel"===s.type){i=!0;break}}i&&(o("funnelmode"),o("funnelgap",.2),o("funnelgroupgap"))}},"1vus":function(e,t,r){"use strict";var a=r("pcRN"),n=r("/CZE"),i=r("BkK/"),o=r("wlgE").extractOpts;e.exports=function(e,t,r,l,s,c){var d,u,f,h,p=e.cd[0],g=p.trace,m=e.xa,y=e.ya,v=p.x,x=p.y,b=p.z,_=p.xCenter,w=p.yCenter,k=p.zmask,T=g.zhoverformat,A=v,M=x;if(!1!==e.index){try{f=Math.round(e.index[1]),h=Math.round(e.index[0])}catch(t){return void n.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(f<0||f>=b[0].length||h<0||h>b.length)return}else{if(a.inbox(t-v[0],t-v[v.length-1],0)>0||a.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(c){var S;for(A=[2*v[0]-v[1]],S=1;S<v.length;S++)A.push((v[S]+v[S-1])/2);for(A.push([2*v[v.length-1]-v[v.length-2]]),M=[2*x[0]-x[1]],S=1;S<x.length;S++)M.push((x[S]+x[S-1])/2);M.push([2*x[x.length-1]-x[x.length-2]])}f=Math.max(0,Math.min(A.length-2,n.findBin(t,A))),h=Math.max(0,Math.min(M.length-2,n.findBin(r,M)))}var L,C,I=m.c2p(v[f]),D=m.c2p(v[f+1]),O=y.c2p(x[h]),z=y.c2p(x[h+1]);c?(L=p.orig_x||v,C=p.orig_y||x,D=I,d=L[f],z=O,u=C[h]):(L=p.orig_x||_||v,C=p.orig_y||w||x,d=_?L[f]:(L[f]+L[f+1])/2,u=w?C[h]:(C[h]+C[h+1])/2,m&&"category"===m.type&&(d=v[f]),y&&"category"===y.type&&(u=x[h]),g.zsmooth&&(I=D=m.c2p(d),O=z=y.c2p(u)));var P=b[h][f];if(k&&!k[h][f]&&(P=void 0),void 0!==P||g.hoverongaps){var E;Array.isArray(p.hovertext)&&Array.isArray(p.hovertext[h])?E=p.hovertext[h][f]:Array.isArray(p.text)&&Array.isArray(p.text[h])&&(E=p.text[h][f]);var j=o(g),R={type:"linear",range:[j.min,j.max],hoverformat:T,_separators:m._separators,_numFormat:m._numFormat},N=i.tickText(R,P,"hover").text;return[n.extendFlat(e,{index:g._after2before?g._after2before[h][f]:[h,f],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:I,x1:D,y0:O,y1:z,xLabelVal:d,yLabelVal:u,zLabelVal:P,zLabel:N,text:E})]}}},"1wZf":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE").isArrayOrTypedArray;e.exports=function(e,t,r,i,o,l){var s,c,d,u=[],f=a.traceIs(e,"contour"),h=a.traceIs(e,"histogram"),p=a.traceIs(e,"gl2d");if(n(t)&&t.length>1&&!h&&"category"!==l.type){var g=t.length;if(!(g<=o))return f?t.slice(0,o):t.slice(0,o+1);if(f||p)u=t.slice(0,o);else if(1===o)u=[t[0]-.5,t[0]+.5];else{for(u=[1.5*t[0]-.5*t[1]],d=1;d<g;d++)u.push(.5*(t[d-1]+t[d]));u.push(1.5*t[g-1]-.5*t[g-2])}if(g<o){var m=u[u.length-1],y=m-u[u.length-2];for(d=g;d<o;d++)m+=y,u.push(m)}}else{var v=e[l._id.charAt(0)+"calendar"];if(h)s=l.r2c(r,0,v);else if(n(t)&&1===t.length)s=t[0];else if(void 0===r)s=0;else{s=("log"===l.type?l.d2c:l.r2c)(r,0,v)}for(c=i||1,d=f||p?0:-.5;d<o;d++)u.push(s+c*d)}return u}},"1y5b":function(e,t,r){"use strict";var a=r("0wH6"),n=r("plED").templatedArray,i=r("RFwu");e.exports=n("image",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],dflt:"paper",role:"info",editType:"arraydraw",description:["Sets the images's x coordinate axis.",i.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],dflt:"paper",role:"info",editType:"arraydraw",description:["Sets the images's y coordinate axis.",i.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})},"21T9":function(e,t,r){"use strict";t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},"2DHC":function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:r("qPk+"),categories:["pie-like","funnelarea","showLegend"],attributes:r("7MU3"),layoutAttributes:r("89+b"),supplyDefaults:r("5IWQ"),supplyLayoutDefaults:r("/NYH"),calc:r("OTZx").calc,crossTraceCalc:r("OTZx").crossTraceCalc,plot:r("fEMZ"),style:r("pB2H"),styleOne:r("pwgW"),meta:{description:["Visualize stages in a process using area-encoded trapezoids. This trace can be used",'to show data in a part-to-whole representation similar to a "pie" trace, wherein','each item appears in a single stage. See also the "funnel" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},"2FgJ":function(e,t,r){"use strict";e.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:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},"2S8E":function(e,t,r){"use strict";var a=r("2mon"),n=r("/CZE").isArrayOrTypedArray;e.exports=function(e,t,r,i){function o(r){var a=e[r];return void 0!==a?a:(t._template||{})[r]}var l=o("tick0"),s=o("dtick"),c=o("tickvals"),d=r("tickmode",n(c)?"array":s?"linear":"auto");if("auto"===d)r("nticks");else if("linear"===d){var u=t.dtick=a.dtick(s,i);t.tick0=a.tick0(l,i,t.calendar,u)}else if("multicategory"!==i){void 0===r("tickvals")?t.tickmode="auto":r("ticktext")}}},"2mon":function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("6AZA"),o=i.ONEDAY,l=i.ONEWEEK;t.dtick=function(e,t){var r="log"===t,n="date"===t,i="category"===t,l=n?o:1;if(!e)return l;if(a(e))return(e=Number(e))<=0?l:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if("string"!=typeof e||!n&&!r)return l;var s=e.charAt(0),c=e.substr(1);return(c=a(c)?Number(c):0)<=0||!(n&&"M"===s&&c===Math.round(c)||r&&"L"===s||r&&"D"===s&&(1===c||2===c))?l:e},t.tick0=function(e,t,r,i){return"date"===t?n.cleanDate(e,n.dateTick0(r,i%l==0?1:0)):"D1"!==i&&"D2"!==i?a(e)?Number(e):0:void 0}},"2oy/":function(e,t,r){"use strict";var a=r("bljh"),n=r("0RW4"),i=r("/CZE"),o=r("+1bK"),l=r("k6aH").resizeText;function s(e,t,r,a){var l,s,c=(a||{}).hovered,d=t.data.data,u=d.i,f=d.color,h=o.isHierarchyRoot(t),p=1;if(c)l=r._hovered.marker.line.color,s=r._hovered.marker.line.width;else if(h&&f===r.root.color)p=100,l="rgba(0,0,0,0)",s=0;else if(l=i.castOption(r,u,"marker.line.color")||n.defaultLine,s=i.castOption(r,u,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var g=r.marker.depthfade;if(g){var m,y=n.combine(n.addOpacity(r._backgroundColor,.75),f);if(!0===g){var v=o.getMaxDepth(r);m=isFinite(v)?o.isLeaf(t)?0:r._maxVisibleLayers-(t.data.depth-r._entryDepth):t.data.height+1}else m=t.data.depth-r._entryDepth,r._atRootLevel||m++;if(m>0)for(var x=0;x<m;x++){var b=.5*x/m;f=n.combine(n.addOpacity(y,b),f)}}}e.style("stroke-width",s).call(n.fill,f).call(n.stroke,l).style("opacity",p)}e.exports={style:function(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");l(e,t,"treemap"),t.each((function(e){var t=a.select(this),r=e[0].trace;t.style("opacity",r.opacity),t.selectAll("path.surface").each((function(e){a.select(this).call(s,e,r,{hovered:!1})}))}))},styleOne:s}},"2z/O":function(e,t,r){"use strict";var a=r("GbLo"),n=r("Nx4I"),i=r("BkK/"),o=r("/CZE"),l=r("PDHv");function s(e,t,r,n){var s=t["error_"+n]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var d=l(s),u=0;u<e.length;u++){var f=e[u],h=f.i;if(void 0===h)h=u;else if(null===h)continue;var p=f[n];if(a(r.c2l(p))){var g=d(p,h);if(a(g[0])&&a(g[1])){var m=f[n+"s"]=p-g[0],y=f[n+"h"]=p+g[1];c.push(m,y)}}}var v=r._id,x=t._extremes[v],b=i.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(e){for(var t=e.calcdata,r=0;r<t.length;r++){var a=t[r],o=a[0].trace;if(!0===o.visible&&n.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(a,o,l,"x"),s(a,o,c,"y")}}}},"37PH":function(e,t,r){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},"3HVJ":function(e,t,r){"use strict";var a=r("GbLo"),n=r("rhNM"),i=r("MGx7"),o=r("6AZA").BADNUM;function l(e,t){return e<t}function s(e,t){return e<=t}function c(e,t){return e>t}function d(e,t){return e>=t}t.findBin=function(e,t,r){if(a(t.start))return r?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var i,o,u=0,f=t.length,h=0,p=f>1?(t[f-1]-t[0])/(f-1):1;for(o=p>=0?r?l:s:r?d:c,e+=1e-9*p*(r?-1:1)*(p>=0?1:-1);u<f&&h++<100;)o(t[i=Math.floor((u+f)/2)],e)?u=i+1:f=i;return h>90&&n.log("Long binary search..."),u-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e,r){var a,n=(r||{}).unitMinDiff,i=e.slice();for(i.sort(t.sorterAsc),a=i.length-1;a>-1&&i[a]===o;a--);var l=1;n||(l=i[a]-i[0]||1);for(var s,c=l/(a||1)/1e4,d=[],u=0;u<=a;u++){var f=i[u],h=f-s;void 0===s?(d.push(f),s=f):h>c&&(l=Math.min(l,h),d.push(f),s=f)}return{vals:d,minDiff:l}},t.roundUp=function(e,t,r){for(var a,n=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;n<i&&o++<100;)t[a=c((n+i)/2)]<=e?n=a+l:i=a-s;return t[n]},t.sort=function(e,t){for(var r=0,a=0,n=1;n<e.length;n++){var i=t(e[n],e[n-1]);if(i<0?r=1:i>0&&(a=1),r&&a)return e.sort(t)}return a?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var r,a=1/0,n=0;n<e.length;n++){var o=t(e[n]);o<a&&(a=o,r=n)}return r}},"3MKb":function(e,t,r){"use strict";var a=r("/CZE"),n=r("5azm"),i=r("QtxG"),o=r("PS76").name,l=i.buttons;function s(e,t,r){function o(r,n){return a.coerce(e,t,i,r,n)}o("visible",n(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),a.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),a.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,n){return a.coerce(e,t,l,r,n)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){n(e,t,{name:o,handleItemDefaults:s})}},"3iLW":function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/");function i(e,t){var r=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},a.extendFlat(e._xa,o),n.setConvert(e._xa),e._xa._offset=i.l+r.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(r.x[1]-r.x[0])},e._ya={},a.extendFlat(e._ya,o),n.setConvert(e._ya),e._ya._offset=i.t+(1-r.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(r.y[1]-r.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r<t.length;r++)i(t[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},"3mkv":function(e,t,r){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},"3oHU":function(e,t,r){"use strict";var a=r("/CZE");e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return a.isPlainObject(e.marker)&&a.isArrayOrTypedArray(e.marker.size)}}},"4WVA":function(e,t,r){"use strict";var a=r("/CZE"),n=r("HByh").handleGroupingDefaults,i=r("HByh").handleText,o=r("B28u"),l=r("V5Np"),s=r("Df4R"),c=r("0RW4"),d=r("uM7j"),u=d.INCREASING.COLOR,f=d.DECREASING.COLOR;function h(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",c.defaultLine),e(t+".marker.line.width")}e.exports={supplyDefaults:function(e,t,r,n){function c(r,n){return a.coerce(e,t,s,r,n)}if(o(e,t,n,c)){l(e,t,n,c),c("measure"),c("orientation",t.x&&!t.y?"h":"v"),c("base"),c("offset"),c("width"),c("text"),c("hovertext"),c("hovertemplate");var d=c("textposition");if(i(e,t,n,c,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==t.textposition&&(c("texttemplate"),t.texttemplate||c("textinfo")),h(c,"increasing",u),h(c,"decreasing",f),h(c,"totals","#4499FF"),c("connector.visible"))c("connector.mode"),c("connector.line.width")&&(c("connector.line.color"),c("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var r,i;function o(e){return a.coerce(i._input,i,s,e)}if("group"===t.waterfallmode)for(var l=0;l<e.length;l++)r=(i=e[l])._input,n(r,i,t,o)}}},"4X2v":function(e,t,r){"use strict";var a=r("bljh"),n=r("yUfG"),i=r("g9E0"),o=r("/CZE"),l=r("A3kh"),s=r("k6aH"),c=s.recordMinTextSize,d=s.clearMinTextSize,u=r("wK8V"),f=r("WeBh").getRotationAngle,h=u.computeTransform,p=u.transformInsideText,g=r("dZSj").styleOne,m=r("LfN2").resizeText,y=r("aWIO"),v=r("i6kf"),x=r("+1bK");function b(e,r,s,d){var u=e._fullLayout,m=!u.uniformtext.mode&&x.hasTransition(d),b=a.select(s).selectAll("g.slice"),w=r[0],k=w.trace,T=w.hierarchy,A=x.findEntryWithLevel(T,k.level),M=x.getMaxDepth(k),S=u._size,L=k.domain,C=S.w*(L.x[1]-L.x[0]),I=S.h*(L.y[1]-L.y[0]),D=.5*Math.min(C,I),O=w.cx=S.l+S.w*(L.x[1]+L.x[0])/2,z=w.cy=S.t+S.h*(1-L.y[0])-I/2;if(!A)return b.remove();var P=null,E={};m&&b.each((function(e){E[x.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!P&&x.isEntry(e)&&(P=e)}));var j=function(e){return n.partition().size([2*Math.PI,e.height+1])(e)}(A).descendants(),R=A.height+1,N=0,F=M;w.hasMultipleRoots&&x.isHierarchyRoot(A)&&(j=j.slice(1),R-=1,N=1,F+=1),j=j.filter((function(e){return e.y1<=F}));var B=f(k.rotation);B&&j.forEach((function(e){e.x0+=B,e.x1+=B}));var H=Math.min(R,M),V=function(e){return(e-N)/H*D},Z=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},G=function(e){return o.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,O,z)},U=function(e){return O+_(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},W=function(e){return z+_(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};(b=b.data(j,x.getPtId)).enter().append("g").classed("slice",!0),m?b.exit().transition().each((function(){var e=a.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var t=function(e){var t,r=x.getPtId(e),n=E[r],i=E[x.getPtId(A)];if(i){var o=(e.x1>i.x1?2*Math.PI:0)+B;t=e.rpx1<i.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var l,s=x.getPtId(e.parent);b.each((function(e){if(x.getPtId(e)===s)return l=e}));var c,d=l.children;d.forEach((function(e,t){if(x.getPtId(e)===r)return c=t}));var u=d.length,f=a.interpolate(l.x0,l.x1);t={rpx0:D,rpx1:D,x0:f(c/u),x1:f((c+1)/u)}}return a.interpolate(n,t)}(e);return function(e){return G(t(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():b.exit().remove(),b.order();var q=null;if(m&&P){var Y=x.getPtId(P);b.each((function(e){null===q&&x.getPtId(e)===Y&&(q=e.x1)}))}var X=b;function J(e){var t=e.parent,r=E[x.getPtId(t)],n={};if(r){var i=t.children,o=i.indexOf(e),l=i.length,s=a.interpolate(r.x0,r.x1);n.x0=s(o/l),n.x1=s(o/l)}else n.x0=n.x1=0;return n}m&&(X=X.transition().each("end",(function(){var t=a.select(this);x.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),X.each((function(n){var s=a.select(this),d=o.ensureSingle(s,"path","surface",(function(e){e.style("pointer-events","all")}));n.rpx0=V(n.y0),n.rpx1=V(n.y1),n.xmid=(n.x0+n.x1)/2,n.pxmid=Z(n.rpx1,n.xmid),n.midangle=-(n.xmid-Math.PI/2),n.startangle=-(n.x0-Math.PI/2),n.stopangle=-(n.x1-Math.PI/2),n.halfangle=.5*Math.min(o.angleDelta(n.x0,n.x1)||Math.PI,Math.PI),n.ring=1-n.rpx0/n.rpx1,n.rInscribed=function(e){return 0===e.rpx0&&o.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}(n),m?d.transition().attrTween("d",(function(e){var t=function(e){var t,r=E[x.getPtId(e)],n={x0:e.x0,x1:e.x1,rpx0:e.rpx0,rpx1:e.rpx1};if(r)t=r;else if(P)if(e.parent)if(q){var i=(e.x1>q?2*Math.PI:0)+B;t={x0:i,x1:i}}else t={rpx0:D,rpx1:D},o.extendFlat(t,J(e));else t={rpx0:0,rpx1:0};else t={x0:B,x1:B};return a.interpolate(t,n)}(e);return function(e){return G(t(e))}})):d.attr("d",G),s.call(y,A,e,r,{eventDataKeys:v.eventDataKeys,transitionTime:v.CLICK_TRANSITION_TIME,transitionEasing:v.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),d.call(g,n,k);var f=o.ensureSingle(s,"g","slicetext"),b=o.ensureSingle(f,"text","",(function(e){e.attr("data-notex",1)})),_=o.ensureUniformFontSize(e,x.determineTextFont(k,n,u.font));b.text(t.formatSliceLabel(n,A,k,r,u)).classed("slicetext",!0).attr("text-anchor","middle").call(i.font,_).call(l.convertToTspans,e);var T=i.bBox(b.node());n.transform=p(T,n,w),n.transform.targetX=U(n),n.transform.targetY=W(n);var M=function(e,t){var r=e.transform;return h(r,t),r.fontSize=_.size,c(k.type,r,u),o.getTextTransform(r)};m?b.transition().attrTween("transform",(function(e){var t=function(e){var t,r=E[x.getPtId(e)],n=e.transform;if(r)t=r;else if(t={rpx1:e.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},P)if(e.parent)if(q){var i=e.x1>q?2*Math.PI:0;t.x0=t.x1=i}else o.extendFlat(t,J(e));else t.x0=t.x1=B;else t.x0=t.x1=B;var l=a.interpolate(t.transform.textPosAngle,e.transform.textPosAngle),s=a.interpolate(t.rpx1,e.rpx1),d=a.interpolate(t.x0,e.x0),f=a.interpolate(t.x1,e.x1),h=a.interpolate(t.transform.scale,n.scale),p=a.interpolate(t.transform.rotate,n.rotate),g=0===n.rCenter?3:0===t.transform.rCenter?1/3:1,m=a.interpolate(t.transform.rCenter,n.rCenter);return function(e){var t=s(e),r=d(e),a=f(e),i=function(e){return m(Math.pow(e,g))}(e),o={pxmid:Z(t,(r+a)/2),rpx1:t,transform:{textPosAngle:l(e),rCenter:i,x:n.x,y:n.y}};return c(k.type,n,u),{transform:{targetX:U(o),targetY:W(o),scale:h(e),rotate:p(e),rCenter:i}}}}(e);return function(e){return M(t(e),T)}})):b.attr("transform",M(n,T))}))}function _(e){return t=e.rpx1,r=e.transform.textPosAngle,[t*Math.sin(r),-t*Math.cos(r)];var t,r}t.plot=function(e,t,r,n){var i,o,l=e._fullLayout,s=l._sunburstlayer,c=!r,u=!l.uniformtext.mode&&x.hasTransition(r);(d("sunburst",l),(i=s.selectAll("g.trace.sunburst").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),i.order(),u)?(n&&(o=n()),a.transition().duration(r.duration).ease(r.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){s.selectAll("g.trace").each((function(t){b(e,t,this,r)}))}))):(i.each((function(t){b(e,t,this,r)})),l.uniformtext.mode&&m(e,l._sunburstlayer.selectAll(".trace"),"sunburst"));c&&i.exit().remove()},t.formatSliceLabel=function(e,t,r,a,n){var i=r.texttemplate,l=r.textinfo;if(!(i||l&&"none"!==l))return"";var s=n.separators,c=a[0],d=e.data.data,u=c.hierarchy,f=x.isHierarchyRoot(e),h=x.getParent(u,e),p=x.getValue(e);if(!i){var g,m=l.split("+"),y=function(e){return-1!==m.indexOf(e)},v=[];if(y("label")&&d.label&&v.push(d.label),d.hasOwnProperty("v")&&y("value")&&v.push(x.formatValue(d.v,s)),!f){y("current path")&&v.push(x.getPath(e.data));var b=0;y("percent parent")&&b++,y("percent entry")&&b++,y("percent root")&&b++;var _=b>1;if(b){var w,k=function(e){g=x.formatPercent(w,s),_&&(g+=" of "+e),v.push(g)};y("percent parent")&&!f&&(w=p/x.getValue(h),k("parent")),y("percent entry")&&(w=p/x.getValue(t),k("entry")),y("percent root")&&(w=p/x.getValue(u),k("root"))}}return y("text")&&(g=o.castOption(r,d.i,"text"),o.isValidTextValue(g)&&v.push(g)),v.join("<br>")}var T=o.castOption(r,d.i,"texttemplate");if(!T)return"";var A={};d.label&&(A.label=d.label),d.hasOwnProperty("v")&&(A.value=d.v,A.valueLabel=x.formatValue(d.v,s)),A.currentPath=x.getPath(e.data),f||(A.percentParent=p/x.getValue(h),A.percentParentLabel=x.formatPercent(A.percentParent,s),A.parent=x.getPtLabel(h)),A.percentEntry=p/x.getValue(t),A.percentEntryLabel=x.formatPercent(A.percentEntry,s),A.entry=x.getPtLabel(t),A.percentRoot=p/x.getValue(u),A.percentRootLabel=x.formatPercent(A.percentRoot,s),A.root=x.getPtLabel(u),d.hasOwnProperty("color")&&(A.color=d.color);var M=o.castOption(r,d.i,"text");return(o.isValidTextValue(M)||""===M)&&(A.text=M),A.customdata=o.castOption(r,d.i,"customdata"),o.texttemplateString(T,A,n._d3locale,A,r._meta||{})}},"4htA":function(e,t,r){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},"5IWQ":function(e,t,r){"use strict";var a=r("/CZE"),n=r("7MU3"),i=r("gfA5").defaults,o=r("HByh").handleText,l=r("qc20").handleLabelsAndValues;e.exports=function(e,t,r,s){function c(r,i){return a.coerce(e,t,n,r,i)}var d=c("labels"),u=c("values"),f=l(d,u),h=f.len;if(t._hasLabels=f.hasLabels,t._hasValues=f.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),h){t._length=h,c("marker.line.width")&&c("marker.line.color",s.paper_bgcolor),c("marker.colors"),c("scalegroup");var p,g=c("text"),m=c("texttemplate");if(m||(p=c("textinfo",Array.isArray(g)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),m||p&&"none"!==p){var y=c("textposition");o(e,t,s,c,y,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(t,s,c),c("title.text")&&(c("title.position"),a.coerceFont(c,"title.font",s.font)),c("aspectratio"),c("baseratio")}else t.visible=!1}},"5azm":function(e,t,r){"use strict";var a=r("/CZE"),n=r("plED");e.exports=function(e,t,r){var i,o,l=r.name,s=r.inclusionAttr||"visible",c=t[l],d=a.isArrayOrTypedArray(e[l])?e[l]:[],u=t[l]=[],f=n.arrayTemplater(t,l,s);for(i=0;i<d.length;i++){var h=d[i];a.isPlainObject(h)?o=f.newItem(h):(o=f.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&r.handleItemDefaults(h,o,t,r),u.push(o)}var p=f.defaultItems();for(i=0;i<p.length;i++)(o=p[i])._index=u.length,r.handleItemDefaults({},o,t,r,{}),u.push(o);if(a.isArrayOrTypedArray(c)){var g=Math.min(c.length,u.length);for(i=0;i<g;i++)a.relinkPrivateKeys(u[i],c[i])}return u}},"5jll":function(e,t,r){"use strict";e.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}},"6AZA":function(e,t,r){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,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,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},"6BKz":function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("Zss7"),o=r("/CZE"),l=o.strTranslate,s=o.strRotate,c=r("h0EB"),d=r("A3kh"),u=r("yVNY"),f=r("g9E0"),h=r("0RW4"),p=r("Tv4R"),g=r("BkK/"),m=r("Nx4I"),y=r("xMdC"),v=r("f7dW"),x=r("6BNG"),b=r("Q9kw"),_=v.YANGLE,w=Math.PI*_/180,k=1/Math.sin(w),T=Math.cos(w),A=Math.sin(w),M=v.HOVERARROWSIZE,S=v.HOVERTEXTPAD;function L(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}t.hover=function(e,t,r,i){e=o.getGraphDiv(e),o.throttle(e._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,(function(){!function(e,t,r,i){r||(r="xy");var l=Array.isArray(r)?r:[r],s=e._fullLayout,d=s._plots||[],f=d[r],g=s._has("cartesian");if(f){var v=f.overlays.map((function(e){return e.id}));l=l.concat(v)}for(var x=l.length,b=new Array(x),_=new Array(x),w=!1,T=0;T<x;T++){var A=l[T];if(d[A])w=!0,b[T]=d[A].xaxis,_[T]=d[A].yaxis;else{if(!s[A]||!s[A]._subplot)return void o.warn("Unrecognized subplot: "+A);var M=s[A]._subplot;b[T]=M.xaxis,_[T]=M.yaxis}}var S=t.hovermode||s.hovermode;S&&!w&&(S="closest");if(-1===["x","y","closest","x unified","y unified"].indexOf(S)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return p.unhoverRaw(e,t);var C,D,j,R,N,F,B,H,V,Z,G,U,W,q=-1===s.hoverdistance?1/0:s.hoverdistance,Y=-1===s.spikedistance?1/0:s.spikedistance,X=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(t))for(S="array",j=0;j<t.length;j++)(N=e.calcdata[t[j].curveNumber||0])&&(F=N[0].trace,"skip"!==N[0].trace.hoverinfo&&(J.push(N),"h"===F.orientation&&(Q=!0)));else{for(R=0;R<e.calcdata.length;R++)N=e.calcdata[R],"skip"!==(F=N[0].trace).hoverinfo&&y.isTraceInSubplots(F,l)&&(J.push(N),"h"===F.orientation&&(Q=!0));var $,ee;if(!t.target)$="xpx"in t?t.xpx:b[0]._length/2,ee="ypx"in t?t.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(e,"plotly_beforehover",t))return;var te=t.target.getBoundingClientRect();$=t.clientX-te.left,ee=t.clientY-te.top,s._calcInverseTransform(e);var re=o.apply3DTransform(s._invTransform)($,ee);if($=re[0],ee=re[1],$<0||$>b[0]._length||ee<0||ee>_[0]._length)return p.unhoverRaw(e,t)}if(t.pointerX=$+b[0]._offset,t.pointerY=ee+_[0]._offset,C="xval"in t?y.flat(l,t.xval):y.p2c(b,$),D="yval"in t?y.flat(l,t.yval):y.p2c(_,ee),!n(C[0])||!n(D[0]))return o.warn("Fx.hover failed",t,e),p.unhoverRaw(e,t)}var ae=1/0;function ne(e,r){for(R=0;R<J.length;R++)if((N=J[R])&&N[0]&&N[0].trace&&!0===(F=N[0].trace).visible&&0!==F._length&&-1===["carpet","contourcarpet"].indexOf(F._module.name)){if("splom"===F.type?B=l[H=0]:(B=y.getSubplot(F),H=l.indexOf(B)),V=S,y.isUnifiedHover(V)&&(V=V.charAt(0)),U={cd:N,trace:F,xa:b[H],ya:_[H],maxHoverDistance:q,maxSpikeDistance:Y,index:!1,distance:Math.min(ae,q),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:h.defaultLine,name:F.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},s[B]&&(U.subplot=s[B]._subplot),s._splomScenes&&s._splomScenes[F.uid]&&(U.scene=s._splomScenes[F.uid]),W=X.length,"array"===V){var a=t[R];"pointNumber"in a?(U.index=a.pointNumber,V="closest"):(V="","xval"in a&&(Z=a.xval,V="x"),"yval"in a&&(G=a.yval,V=V?"closest":"y"))}else void 0!==e&&void 0!==r?(Z=e,G=r):(Z=C[H],G=D[H]);if(0!==q)if(F._module&&F._module.hoverPoints){var i=F._module.hoverPoints(U,Z,G,V,s._hoverlayer);if(i)for(var c,d=0;d<i.length;d++)c=i[d],n(c.x0)&&n(c.y0)&&X.push(z(c,S))}else o.log("Unrecognized trace type in hover:",F);if("closest"===S&&X.length>W&&(X.splice(0,W),ae=X[0].distance),g&&0!==Y&&0===X.length){U.distance=Y,U.index=!1;var u=F._module.hoverPoints(U,Z,G,"closest",s._hoverlayer);if(u&&(u=u.filter((function(e){return e.spikeDistance<=Y}))),u&&u.length){var f,p=u.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(p.length){var m=p[0];n(m.x0)&&n(m.y0)&&(f=oe(m),(!K.vLinePoint||K.vLinePoint.spikeDistance>f.spikeDistance)&&(K.vLinePoint=f))}var v=u.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var x=v[0];n(x.x0)&&n(x.y0)&&(f=oe(x),(!K.hLinePoint||K.hLinePoint.spikeDistance>f.spikeDistance)&&(K.hLinePoint=f))}}}}}function ie(e,t){for(var r,a=null,n=1/0,i=0;i<e.length;i++)(r=e[i].spikeDistance)<=n&&r<=t&&(a=e[i],n=r);return a}function oe(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}ne();var le={fullLayout:s,container:s._hoverlayer,outerContainer:s._paperdiv,event:t},se=e._spikepoints,ce={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(e._spikepoints=ce,g&&0!==Y&&0!==X.length){var de=ie(X.filter((function(e){return e.ya.showspikes})),Y);K.hLinePoint=oe(de);var ue=ie(X.filter((function(e){return e.xa.showspikes})),Y);K.vLinePoint=oe(ue)}if(0===X.length){var fe=p.unhoverRaw(e,t);return!g||null===K.hLinePoint&&null===K.vLinePoint||E(se)&&P(e,K,le),fe}g&&E(se)&&P(e,K,le);if(X.sort((function(e,t){return e.distance-t.distance})),y.isXYhover(V)&&0!==X[0].length&&"splom"!==X[0].trace.type){var he=X[0],pe=he.cd[he.index],ge="group"===s.boxmode||"group"===s.violinmode,me=he.xVal,ye=he.xa;"category"===ye.type&&(me=ye._categoriesMap[me]),"date"===ye.type&&(me=ye.d2c(me)),pe&&pe.t&&pe.t.posLetter===ye._id&&ge&&(me+=pe.t.dPos);var ve=he.yVal;"category"===(ye=he.ya).type&&(ve=ye._categoriesMap[ve]),"date"===ye.type&&(ve=ye.d2c(ve)),pe&&pe.t&&pe.t.posLetter===ye._id&&ge&&(ve+=pe.t.dPos),ne(me,ve);var xe={};X=X.filter((function(e){var t=L(e);if(!xe[t])return xe[t]=!0,xe[t]}))}var be=e._hoverdata,_e=[];for(j=0;j<X.length;j++){var we=X[j],ke=y.makeEventData(we,we.trace,we.cd);if(!1!==we.hovertemplate){var Te=!1;we.cd[we.index]&&we.cd[we.index].ht&&(Te=we.cd[we.index].ht),we.hovertemplate=Te||we.trace.hovertemplate||!1}we.eventData=[ke],_e.push(ke)}e._hoverdata=_e;var Ae="y"===S&&(J.length>1||X.length>1)||"closest"===S&&Q&&X.length>1,Me=h.combine(s.plot_bgcolor||h.background,s.paper_bgcolor),Se={hovermode:S,rotateLabels:Ae,bgColor:Me,container:s._hoverlayer,outerContainer:s._paperdiv,commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance},Le=I(X,Se,e);y.isUnifiedHover(S)||(!function(e,t,r){var a,n,i,o,l,s,c,d=0,u=1,f=e.size(),h=new Array(f),p=0;function g(e){var t=e[0],r=e[e.length-1];if(n=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,n>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=n;a=!1}if(!(i<.01)){if(n<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;a=!1}if(a){var c=0;for(o=0;o<e.length;o++)(s=e[o]).pos+s.dp+s.size>t.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o<e.length&&!(c<=0);o++)if((s=e[o]).pos<t.pmin+1)for(s.del=!0,c--,i=2*s.size,l=e.length-1;l>=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}e.each((function(e){var a=e[t],n="x"===a._id.charAt(0),i=a.range;0===p&&i&&i[0]>i[1]!==n&&(u=-1),h[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(n?k:1)/2,pmin:0,pmax:n?r.width:r.height}]})),h.sort((function(e,t){return e[0].posref-t[0].posref||u*(t[0].traceIndex-e[0].traceIndex)}));for(;!a&&d<=f;){for(d++,a=!0,o=0;o<h.length-1;){var m=h[o],y=h[o+1],v=m[m.length-1],x=y[0];if((n=v.pos+v.dp+v.size-x.pos-x.dp+x.size)>.01&&v.pmin===x.pmin&&v.pmax===x.pmax){for(l=y.length-1;l>=0;l--)y[l].dp+=n;for(m.push.apply(m,y),h.splice(o+1,1),c=0,l=m.length-1;l>=0;l--)c+=m[l].dp;for(i=c/m.length,l=m.length-1;l>=0;l--)m[l].dp-=i;a=!1}else o++}h.forEach(g)}for(o=h.length-1;o>=0;o--){var b=h[o];for(l=b.length-1;l>=0;l--){var _=b[l],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Le,Ae?"xa":"ya",s),O(Le,Ae,s._invScaleX,s._invScaleY));if(t.target&&t.target.tagName){var Ce=m.getComponentMethod("annotations","hasClickToShow")(e,_e);u(a.select(t.target),Ce?"pointer":"")}if(!t.target||i||!function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var a=r.length-1;a>=0;a--){var n=r[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,be))return;be&&e.emit("plotly_unhover",{event:t,points:be});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:D})}(e,t,r,i)}))},t.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var n=e.map((function(e){return{color:e.color||h.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),i=a.select(t.container),o=t.outerContainer?a.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||h.background,container:i,outerContainer:o},s=I(n,l,t.gd),c=0,d=0;s.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var a=e.y0-e.by/2;e.offset=a-5<c?c-a+5:0,c=a+e.by+e.offset,r===t.anchorIndex&&(d=e.offset)})).each((function(e){e.offset-=d}));var u=t.gd._fullLayout._invScaleX,f=t.gd._fullLayout._invScaleY;return O(s,l.rotateLabels,u,f),r?s:s.node()};var C=/<extra>([\s\S]*)<\/extra>/;function I(e,t,r){var n=r._fullLayout,i=t.hovermode,c=t.rotateLabels,u=t.bgColor,p=t.container,g=t.outerContainer,m=t.commonLabelOpts||{},w=t.fontFamily||v.HOVERFONT,k=t.fontSize||v.HOVERFONTSIZE,T=e[0],A=T.xa,C=T.ya,I="y"===i.charAt(0)?"yLabel":"xLabel",O=T[I],z=(String(O)||"").split(" ")[0],P=g.node().getBoundingClientRect(),E=P.top,j=P.width,R=P.height,N=void 0!==O&&T.distance<=t.hoverdistance&&("x"===i||"y"===i);if(N){var F,B,H=!0;for(F=0;F<e.length;F++)if(H&&void 0===e[F].zLabel&&(H=!1),B=e[F].hoverinfo||e[F].trace.hoverinfo){var V=Array.isArray(B)?B:B.split("+");if(-1===V.indexOf("all")&&-1===V.indexOf(i)){N=!1;break}}H&&(N=!1)}var Z=p.selectAll("g.axistext").data(N?[0]:[]);function G(e){return e.filter((function(e){return void 0!==e.zLabelVal||(e[I]||"").split(" ")[0]===z}))}if(Z.enter().append("g").classed("axistext",!0),Z.exit().remove(),Z.each((function(){var t=a.select(this),s=o.ensureSingle(t,"path","",(function(e){e.style({"stroke-width":"1px"})})),c=o.ensureSingle(t,"text","",(function(e){e.attr("data-notex",1)})),u=m.bgcolor||h.defaultLine,p=m.bordercolor||h.contrast(u),g=h.contrast(u),y={family:m.font.family||w,size:m.font.size||k,color:m.font.color||g};s.style({fill:u,stroke:p}),c.text(O).call(f.font,y).call(d.positionText,0,0).call(d.convertToTspans,r),t.attr("transform","");var v,x,b=c.node().getBoundingClientRect();if("x"===i){var _="top"===A.side?"-":"";c.attr("text-anchor","middle").call(d.positionText,0,"top"===A.side?E-b.bottom-M-S:E-b.top+M+S),v=A._offset+(T.x0+T.x1)/2,x=C._offset+("top"===A.side?0:C._length);var L=b.width/2+S;v<L?(v=L,s.attr("d","M-"+(L-M)+",0L-"+(L-2*M)+","+_+M+"H"+(S+b.width/2)+"v"+_+(2*S+b.height)+"H-"+L+"V"+_+M+"Z")):v>n.width-L?(v=n.width-L,s.attr("d","M"+(L-M)+",0L"+L+","+_+M+"v"+_+(2*S+b.height)+"H-"+L+"V"+_+M+"H"+(L-2*M)+"Z")):s.attr("d","M0,0L"+M+","+_+M+"H"+(S+b.width/2)+"v"+_+(2*S+b.height)+"H-"+(S+b.width/2)+"V"+_+M+"H-"+M+"Z")}else{var I,D,z;"right"===C.side?(I="start",D=1,z="",v=A._offset+A._length):(I="end",D=-1,z="-",v=A._offset),x=C._offset+(T.y0+T.y1)/2,c.attr("text-anchor",I),s.attr("d","M0,0L"+z+M+","+M+"V"+(S+b.height/2)+"h"+z+(2*S+b.width)+"V-"+(S+b.height/2)+"H"+z+M+"V-"+M+"Z");var P,j=b.height/2,R=E-b.top-j,N="clip"+n._uid+"commonlabel"+C._id;if(v<b.width+2*S+M){P="M-"+(M+S)+"-"+j+"h-"+(b.width-S)+"V"+j+"h"+(b.width-S)+"Z";var F=b.width-v+S;d.positionText(c,F,R),"end"===I&&c.selectAll("tspan").each((function(){var e=a.select(this),t=f.tester.append("text").text(e.text()).call(f.font,y),r=t.node().getBoundingClientRect();Math.round(r.width)<Math.round(b.width)&&e.attr("x",F-r.width),t.remove()}))}else d.positionText(c,D*(S+M),R),P=null;var B=n._topclips.selectAll("#"+N).data(P?[0]:[]);B.enter().append("clipPath").attr("id",N).append("path"),B.exit().remove(),B.select("path").attr("d",P),f.setClipUrl(c,P?N:null,r)}t.attr("transform",l(v,x)),e=G(e)})),y.isUnifiedHover(i)){if(p.selectAll("g.hovertext").remove(),void 0!==O&&T.distance<=t.hoverdistance&&(e=G(e)),0===e.length)return;var U={showlegend:!0,legend:{title:{text:O,font:n.hoverlabel.font},font:n.hoverlabel.font,bgcolor:n.hoverlabel.bgcolor,bordercolor:n.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},W={};x(U,W,r._fullData);var q=W.legend;q.entries=[];for(var Y=0;Y<e.length;Y++){var X=D(e[Y],!0,i,n,O),J=X[0],K=X[1],Q=e[Y];Q.name=K,Q.text=""!==K?K+" : "+J:J;var $=Q.cd[Q.index];$&&($.mc&&(Q.mc=$.mc),$.mcc&&(Q.mc=$.mcc),$.mlc&&(Q.mlc=$.mlc),$.mlcc&&(Q.mlc=$.mlcc),$.mlw&&(Q.mlw=$.mlw),$.mrc&&(Q.mrc=$.mrc),$.dir&&(Q.dir=$.dir)),Q._distinct=!0,q.entries.push([Q])}q.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),q.layer=p,b(r,q);var ee=o.mean(e.map((function(e){return(e.y0+e.y1)/2}))),te=o.mean(e.map((function(e){return(e.x0+e.x1)/2}))),re=p.select("g.legend"),ae=re.node().getBoundingClientRect();te+=A._offset,ee+=C._offset-ae.height/2;var ne=ae.width+2*S;!(te+ne<=j)&&te-ne>=0?te-=ne:te+=2*S;var ie=ae.height+2*S,oe=ee+ie>=R;return ie<=R&&(ee<=E?ee=C._offset+2*S:oe&&(ee=R-ie)),re.attr("transform",l(te,ee)),re}var le=p.selectAll("g.hovertext").data(e,(function(e){return L(e)}));return le.enter().append("g").classed("hovertext",!0).each((function(){var e=a.select(this);e.append("rect").call(h.fill,h.addOpacity(u,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(f.font,w,k)})),le.exit().remove(),le.each((function(e){var t=a.select(this).attr("transform",""),o=e.color;Array.isArray(o)&&(o=o[e.eventData[0].pointNumber]);var p=e.bgcolor||o,g=h.combine(h.opacity(p)?p:h.defaultLine,u),m=h.combine(h.opacity(o)?o:h.defaultLine,u),y=e.borderColor||h.contrast(g),v=D(e,N,i,n,O,t),x=v[0],b=v[1],T=t.select("text.nums").call(f.font,e.fontFamily||w,e.fontSize||k,e.fontColor||y).text(x).attr("data-notex",1).call(d.positionText,0,0).call(d.convertToTspans,r),A=t.select("text.name"),L=0,C=0;if(b&&b!==x){A.call(f.font,e.fontFamily||w,e.fontSize||k,m).text(b).attr("data-notex",1).call(d.positionText,0,0).call(d.convertToTspans,r);var I=A.node().getBoundingClientRect();L=I.width+2*S,C=I.height+2*S}else A.remove(),t.select("rect").remove();t.select("path").style({fill:g,stroke:y});var z,P,F=T.node().getBoundingClientRect(),B=e.xa._offset+(e.x0+e.x1)/2,H=e.ya._offset+(e.y0+e.y1)/2,V=Math.abs(e.x1-e.x0),Z=Math.abs(e.y1-e.y0),G=F.width+M+S+L;if(e.ty0=E-F.top,e.bx=F.width+2*S,e.by=Math.max(F.height+2*S,C),e.anchor="start",e.txwidth=F.width,e.tx2width=L,e.offset=0,c)e.pos=B,z=H+Z/2+G<=R,P=H-Z/2-G>=0,"top"!==e.idealAlign&&z||!P?z?(H+=Z/2,e.anchor="start"):e.anchor="middle":(H-=Z/2,e.anchor="end");else if(e.pos=H,z=B+V/2+G<=j,P=B-V/2-G>=0,"left"!==e.idealAlign&&z||!P)if(z)B+=V/2,e.anchor="start";else{e.anchor="middle";var U=G/2,W=B+U-j,q=B-U;W>0&&(B-=W),q<0&&(B+=-q)}else B-=V/2,e.anchor="end";T.attr("text-anchor",e.anchor),L&&A.attr("text-anchor",e.anchor),t.attr("transform",l(B,H)+(c?s(_):""))})),le}function D(e,t,r,a,n,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=j(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[r.charAt(0)+"Label"]===n?s=e[("x"===r.charAt(0)?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var c=a._d3locale,d=e.hovertemplate||!1,u=e.hovertemplateLabels||e,f=e.eventData[0]||{};return d&&(s=(s=o.hovertemplateString(d,u,c,f,e.trace._meta)).replace(C,(function(t,r){return l=j(r,e.nameLength),""}))),[s,l]}function O(e,t,r,n){var i=function(e){return e*r},o=function(e){return e*n};e.each((function(e){var r=a.select(this);if(e.del)return r.remove();var n=r.select("text.nums"),l=e.anchor,s="end"===l?-1:1,c={start:1,end:-1,middle:0}[l],u=c*(M+S),h=u+c*(e.txwidth+S),p=0,g=e.offset,m="middle"===l;m&&(u-=e.tx2width/2,h+=e.txwidth/2+S),t&&(g*=-A,p=e.offset*T),r.select("path").attr("d",m?"M-"+i(e.bx/2+e.tx2width/2)+","+o(g-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*M+p)+","+o(M+g)+"v"+o(e.by/2-M)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*M+p)+"V"+o(g-M)+"Z");var y=p+u,v=g+e.ty0-e.by/2+S,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==l?(n.attr("text-anchor","start"),y=m?-e.bx/2-e.tx2width/2+S:-e.bx-S):"right"===x&&"end"!==l&&(n.attr("text-anchor","end"),y=m?e.bx/2-e.tx2width/2-S:e.bx+S)),n.call(d.positionText,i(y),o(v)),e.tx2width&&(r.select("text.name").call(d.positionText,i(h+c*S+p),o(g+e.ty0-e.by/2+S)),r.select("rect").call(f.setRect,i(h+(c-1)*e.tx2width/2+p),o(g-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function z(e,t){var r=e.index,a=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||n(e)&&0===e}var c=Array.isArray(r)?function(e,t){var n=o.castOption(i,r,e);return s(n)?n:o.extractOption({},a,"",t)}:function(e,t){return o.extractOption(l,a,e,t)};function d(t,r,a){var n=c(r,a);s(n)&&(e[t]=n)}if(d("hoverinfo","hi","hoverinfo"),d("bgcolor","hbg","hoverlabel.bgcolor"),d("borderColor","hbc","hoverlabel.bordercolor"),d("fontFamily","htf","hoverlabel.font.family"),d("fontSize","hts","hoverlabel.font.size"),d("fontColor","htc","hoverlabel.font.color"),d("nameLength","hnl","hoverlabel.namelength"),d("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===a.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:g.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:g.hoverLabelText(e.ya,e.yLabelVal),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var u=g.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+u+" / -"+g.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+u,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var f=g.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+f+" / -"+g.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+f,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function P(e,t,r){var a,n,o=r.container,l=r.fullLayout,s=l._size,c=r.event,d=!!t.hLinePoint,u=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),u||d){var p=h.combine(l.plot_bgcolor,l.paper_bgcolor);if(d){var m,y,v=t.hLinePoint;a=v&&v.xa,"cursor"===(n=v&&v.ya).spikesnap?(m=c.pointerX,y=c.pointerY):(m=a._offset+v.x,y=n._offset+v.y);var x,b,_=i.readability(v.color,p)<1.5?h.contrast(p):v.color,w=n.spikemode,k=n.spikethickness,T=n.spikecolor||_,A=g.getPxPosition(e,n);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=A,b=m),-1!==w.indexOf("across")){var M=n._counterDomainMin,S=n._counterDomainMax;"free"===n.anchor&&(M=Math.min(M,n.position),S=Math.max(S,n.position)),x=s.l+M*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":k,stroke:T,"stroke-dasharray":f.dashStyle(n.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":k+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:A+("right"!==n.side?k:-k),cy:y,r:k,fill:T}).classed("spikeline",!0)}if(u){var L,C,I=t.vLinePoint;a=I&&I.xa,n=I&&I.ya,"cursor"===a.spikesnap?(L=c.pointerX,C=c.pointerY):(L=a._offset+I.x,C=n._offset+I.y);var D,O,z=i.readability(I.color,p)<1.5?h.contrast(p):I.color,P=a.spikemode,E=a.spikethickness,j=a.spikecolor||z,R=g.getPxPosition(e,a);if(-1!==P.indexOf("toaxis")||-1!==P.indexOf("across")){if(-1!==P.indexOf("toaxis")&&(D=R,O=C),-1!==P.indexOf("across")){var N=a._counterDomainMin,F=a._counterDomainMax;"free"===a.anchor&&(N=Math.min(N,a.position),F=Math.max(F,a.position)),D=s.t+(1-F)*s.h,O=s.t+(1-N)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:D,y2:O,"stroke-width":E,stroke:j,"stroke-dasharray":f.dashStyle(a.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:D,y2:O,"stroke-width":E+2,stroke:p}).classed("spikeline",!0).classed("crisp",!0)}-1!==P.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:R-("top"!==a.side?E:-E),r:E,fill:j}).classed("spikeline",!0)}}}function E(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function j(e,t){return d.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},"6BNG":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=r("plED"),o=r("6Ccv"),l=r("poX/"),s=r("efHY");e.exports=function(e,t,r){for(var c=e.legend||{},d=0,u=!1,f="normal",h=0;h<r.length;h++){var p=r[h];p.visible&&((p.showlegend||p._dfltShowLegend&&!(p._module&&p._module.attributes&&p._module.attributes.showlegend&&!1===p._module.attributes.showlegend.dflt))&&(d++,p.showlegend&&(u=!0,(a.traceIs(p,"pie-like")||!0===p._input.showlegend)&&d++)),(a.traceIs(p,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(p.fill))&&(f=s.isGrouped({traceorder:f})?"grouped+reversed":"reversed"),void 0!==p.legendgroup&&""!==p.legendgroup&&(f=s.isReversed({traceorder:f})?"reversed+grouped":"grouped"))}var g=n.coerce(e,t,l,"showlegend",u&&d>1);if(!1!==g||c.uirevision){var m=i.newContainer(t,"legend");if(_("uirevision",t.uirevision),!1!==g){_("bgcolor",t.paper_bgcolor),_("bordercolor"),_("borderwidth"),n.coerceFont(_,"font",t.font);var y,v,x,b=_("orientation");"h"===b?(y=0,a.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(v=1.1,x="bottom"):(v=-.1,x="top")):(y=1.02,v=1,x="auto"),_("traceorder",f),s.isGrouped(t.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemwidth"),_("itemclick"),_("itemdoubleclick"),_("x",y),_("xanchor"),_("y",v),_("yanchor",x),_("valign"),n.noneOrAll(c,m,["x","y"]),_("title.text")&&(_("title.side","h"===b?"left":"top"),n.coerceFont(_,"title.font",t.font))}}function _(e,t){return n.coerce(c,m,o,e,t)}}},"6Ccv":function(e,t,r){"use strict";var a=r("mEVB"),n=r("37PH");e.exports={bgcolor:{valType:"color",role:"style",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:n.defaultLine,role:"style",editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:a({editType:"legend",description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",role:"style",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,role:"style",editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",role:"info",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disable legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",role:"info",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disable legend item double-click interactions."].join(" ")},x:{valType:"number",min:-2,max:3,role:"style",editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",min:-2,max:3,role:"style",editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","Defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],role:"info",editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",role:"info",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:a({editType:"legend",description:["Sets this legend's title font."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],role:"style",editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}},"6M+F":function(e,t,r){"use strict";var a=r("/CZE"),n=r("QkhT");e.exports=function(e,t,r){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,d;if(a.isIE9orBelow()&&s(new Error("IE < 10 unsupported")),a.isSafari()){var u="svg"===r?",":";base64,";return n.octetStream(u+encodeURIComponent(e)),l(t)}return a.isIE()?(c=n.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t)):o?(c=n.createBlob(e,r),d=n.createObjectURL(c),i.href=d,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),n.revokeObjectURL(d),c=null,l(t)):void s(new Error("download error"))}))}},"6Ue+":function(e,t,r){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearSelect:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}}},"6feh":function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e,t,r,n,i){i=i||{},n("textposition"),a.coerceFont(n,"textfont",r.font),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}},"6weB":function(e,t,r){"use strict";e.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},"7CC7":function(e,t,r){"use strict";var a=r("Rgdr");t.init2dArray=function(e,t){for(var r=new Array(e),a=0;a<e;a++)r[a]=new Array(t);return r},t.transposeRagged=function(e){var t,r,a=0,n=e.length;for(t=0;t<n;t++)a=Math.max(a,e[t].length);var i=new Array(a);for(t=0;t<a;t++)for(i[t]=new Array(n),r=0;r<n;r++)i[t][r]=e[r][t];return i},t.dot=function(e,r){if(!e.length||!r.length||e.length!==r.length)return null;var a,n,i=e.length;if(e[0].length)for(a=new Array(i),n=0;n<i;n++)a[n]=t.dot(e[n],r);else if(r[0].length){var o=t.transposeRagged(r);for(a=new Array(o.length),n=0;n<o.length;n++)a[n]=t.dot(e,o[n])}else for(a=0,n=0;n<i;n++)a+=e[n]*r[n];return a},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,r,a){return t.dot(t.dot(t.translationMatrix(r,a),t.rotationMatrix(e)),t.translationMatrix(-r,-a))},t.apply3DTransform=function(e){return function(){var r=arguments,a=1===arguments.length?r[0]:[r[0],r[1],r[2]||0];return t.dot(e,[a[0],a[1],a[2],1]).slice(0,3)}},t.apply2DTransform=function(e){return function(){var r=arguments;3===r.length&&(r=r[0]);var a=1===arguments.length?r[0]:[r[0],r[1]];return t.dot(e,[a[0],a[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var r=t.apply2DTransform(e);return function(e){return r(e.slice(0,2)).concat(r(e.slice(2,4)))}},t.convertCssMatrix=function(e){if(e){var t=e.length;if(16===t)return e;if(6===t)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},t.inverseTransformMatrix=function(e){var t=[];return a.invert(t,e),[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}},"7MU3":function(e,t,r){"use strict";var a=r("kZ5o"),n=r("qHYo"),i=r("gfA5").attributes,o=r("lNV6").hovertemplateAttrs,l=r("lNV6").texttemplateAttrs,s=r("kJIm").extendFlat;e.exports={labels:a.labels,label0:a.label0,dlabel:a.dlabel,values:a.values,marker:{colors:a.marker.colors,line:{color:s({},a.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:s({},a.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:a.text,hovertext:a.hovertext,scalegroup:s({},a.scalegroup,{description:["If there are multiple funnelareas that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")}),textinfo:s({},a.textinfo,{flags:["label","text","value","percent"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:s({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","text","percent"]}),textposition:s({},a.textposition,{values:["inside","none"],dflt:"inside"}),textfont:a.textfont,insidetextfont:a.insidetextfont,title:{text:a.title.text,font:a.title.font,position:s({},a.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",role:"info",min:0,dflt:1,editType:"plot",description:["Sets the ratio between height and width"].join(" ")},baseratio:{valType:"number",role:"info",min:0,max:1,dflt:.333,editType:"plot",description:["Sets the ratio between bottom length and maximum top length."].join(" ")}}},"7RaA":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("BkK/"),i=r("/CZE"),o=r("N+MO");e.exports=function(e,t,r){function l(r,a){return i.coerce(e,t,o,r,a)}for(var s=!1,c=!1,d=!1,u={},f=l("barmode"),h=0;h<r.length;h++){var p=r[h];if(a.traceIs(p,"bar")&&p.visible){if(s=!0,"group"===f){var g=p.xaxis+p.yaxis;u[g]&&(d=!0),u[g]=!0}if(p.visible&&"histogram"===p.type)"category"!==n.getFromId({_fullLayout:t},p["v"===p.orientation?"xaxis":"yaxis"]).type&&(c=!0)}}s?("overlay"!==f&&l("barnorm"),l("bargap",c&&!d?0:.2),l("bargroupgap")):delete t.barmode}},"7ncg":function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("/CZE"),o=i.strTranslate,l=r("g9E0"),s=r("0RW4"),c=r("IVx0").extractOpts,d=r("3oHU"),u=r("pwgW"),f=r("WeBh").castOption,h=r("uvVx");function p(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}e.exports=function(e,t,r){var g=t._fullLayout;r||(r=g.legend);var m="constant"===r.itemsizing,y=r.itemwidth,v=(y+2*h.itemGap)/2,x=o(v,0),b=function(e,t,r,a){var n;if(e+1)n=e;else{if(!(t&&t.width>0))return 0;n=t.width}return m?a:Math.min(n,r)};function _(e,t,r){var i=e[0].trace,o=i.marker||{},l=o.line||{},c=r?i.visible&&i.type===r:n.traceIs(i,"bar"),d=a.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(c?[e]:[]);d.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),d.exit().remove(),d.each((function(e){var t=a.select(this),r=e[0],n=b(r.mlw,o.line,5,2);t.style("stroke-width",n+"px").call(s.fill,r.mc||o.color),n&&s.stroke(t,r.mlc||l.color)}))}function w(e,t,r){var o=e[0],l=o.trace,s=r?l.visible&&l.type===r:n.traceIs(l,r),c=a.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),c.exit().remove(),c.size()){var d=(l.marker||{}).line,h=b(f(d.width,o.pts),d,5,2),p=i.minExtend(l,{marker:{line:{width:h}}});p.marker.line.color=d.color;var g=i.minExtend(o,{trace:p});u(c,g,p)}}e.each((function(e){var t=a.select(this),n=i.ensureSingle(t,"g","layers");n.style("opacity",e[0].trace.opacity);var l=r.valign,s=e[0].lineHeight,c=e[0].height;if("middle"!==l&&s&&c){var d={top:1,bottom:-1}[l]*(.5*(s-c+3));n.attr("transform",o(0,d))}else n.attr("transform",null);n.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),n.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var u=n.selectAll("g.legendsymbols").data([e]);u.enter().append("g").classed("legendsymbols",!0),u.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,n=e[0].trace,o=[];if(n.visible)switch(n.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["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":o=[["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":o=[["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":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var d=a.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",x).style("stroke-miterlimit",1),d.exit().remove(),d.each((function(e,o){var d,u=a.select(this),f=c(n),h=f.colorscale,g=f.reversescale;if(h){if(!r){var m=h.length;d=0===o?h[g?m-1:0][1]:1===o?h[g?0:m-1][1]:h[Math.floor((m-1)/2)][1]}}else{var y=n.vertexcolor||n.facecolor||n.color;d=i.isArrayOrTypedArray(y)?y[o]||y[0]:y}u.attr("d",e[0]),d?u.call(s.fill,d):u.call((function(e){if(e.size()){var a="legendfill-"+n.uid;l.gradient(e,t,a,p(g,"radial"===r),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var n=e[0].trace[e[0].dir].marker;return e[0].mc=n.color,e[0].mlw=n.line.width,e[0].mlc=n.line.color,_(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[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 o=a.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",x).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=a.select(this),n=t[e[0]].marker,i=b(void 0,n.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,n.color),i&&r.call(s.stroke,n.line.color)}))})).each((function(e){_(e,this,"funnel")})).each((function(e){_(e,this)})).each((function(e){var r=e[0].trace,o=a.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&n.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),o.exit().remove(),o.each((function(){var e=a.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var n=b(void 0,r.line,5,2);e.style("stroke-width",n+"px").call(s.fill,r.fillcolor),n&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:m?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}}))})).each((function(e){w(e,this,"funnelarea")})).each((function(e){w(e,this,"pie")})).each((function(e){var r,n,o=e[0],s=o.trace,u=s.visible&&s.fill&&"none"!==s.fill,f=d.hasLines(s),h=s.contours,g=!1,m=!1,v=c(s),x=v.colorscale,_=v.reversescale;if(h){var w=h.coloring;"lines"===w?g=!0:f="none"===w||"heatmap"===w||h.showlines,"constraint"===h.type?u="="!==h._operation:"fill"!==w&&"heatmap"!==w||(m=!0)}var k=d.hasMarkers(s)||d.hasText(s),T=u||m,A=f||g,M=k||!T?"M5,0":A?"M5,-2":"M5,-3",S=a.select(this),L=S.select(".legendfill").selectAll("path").data(u||m?[e]:[]);if(L.enter().append("path").classed("js-fill",!0),L.exit().remove(),L.attr("d",M+"h"+y+"v6h-"+y+"z").call(u?l.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+s.uid;l.gradient(e,t,r,p(_),x,"fill")}}),f||g){var C=b(void 0,s.line,10,5);n=i.minExtend(s,{line:{width:C}}),r=[i.minExtend(o,{trace:n})]}var I=S.select(".legendlines").selectAll("path").data(f||g?[r]:[]);I.enter().append("path").classed("js-line",!0),I.exit().remove(),I.attr("d",M+(g?"l"+y+",0.0001":"h"+y)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+s.uid;l.lineGroupStyle(e),l.gradient(e,t,r,p(_),x,"stroke")}})})).each((function(e){var r,n,o=e[0],s=o.trace,c=d.hasMarkers(s),u=d.hasText(s),f=d.hasLines(s);function h(e,t,r,a){var n=i.nestedProperty(s,e).get(),o=i.isArrayOrTypedArray(n)&&t?t(n):n;if(m&&o&&void 0!==a&&(o=a),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function p(e){return o._distinct&&o.index&&e[o.index]?e[o.index]:e[0]}if(c||u||f){var g={},y={};if(c){g.mc=h("marker.color",p),g.mx=h("marker.symbol",p),g.mo=h("marker.opacity",i.mean,[.2,1]),g.mlc=h("marker.line.color",p),g.mlw=h("marker.line.width",i.mean,[0,5],2),y.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var v=h("marker.size",i.mean,[2,16],12);g.ms=v,y.marker.size=v}f&&(y.line={width:h("line.width",p,[0,10],5)}),u&&(g.tx="Aa",g.tp=h("textposition",p),g.ts=10,g.tc=h("textfont.color",p),g.tf=h("textfont.family",p)),r=[i.minExtend(o,g)],(n=i.minExtend(s,y)).selectedpoints=null,n.texttemplate=null}var b=a.select(this).select("g.legendpoints"),_=b.selectAll("path.scatterpts").data(c?r:[]);_.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",x),_.exit().remove(),_.call(l.pointStyle,n,t),c&&(r[0].mrc=3);var w=b.selectAll("g.pointtext").data(u?r:[]);w.enter().append("g").classed("pointtext",!0).append("text").attr("transform",x),w.exit().remove(),w.selectAll("text").call(l.textPointStyle,n,t)})).each((function(e){var t=e[0].trace,r=a.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",x).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var n=a.select(this),i=t[r?"increasing":"decreasing"],o=b(void 0,i.line,5,2);n.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(n,i.line.color)}))})).each((function(e){var t=e[0].trace,r=a.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",x).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var n=a.select(this),i=t[r?"increasing":"decreasing"],o=b(void 0,i.line,5,2);n.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(n,i.line.color)}))}))}},"7pK6":function(e,t,r){"use strict";var a=r("+qE3").EventEmitter,n=r("Nx4I"),i=r("/CZE"),o=r("QkhT"),l=r("0Y4q"),s=r("ywRt"),c=r("Tr0U");e.exports=function(e,t){var r=new a,d=l(e,{format:"png"}),u=d.gd;u.style.position="absolute",u.style.left="-5000px",document.body.appendChild(u);var f=o.getRedrawFunc(u);return n.call("plot",u,d.data,d.layout,d.config).then(f).then((function(){var e=o.getDelay(u._fullLayout);setTimeout((function(){var e=s(u),a=document.createElement("canvas");a.id=i.randstr(),(r=c({format:t.format,width:u._fullLayout.width,height:u._fullLayout.height,canvas:a,emitter:r,svg:e})).clean=function(){u&&document.body.removeChild(u)}}),e)})).catch((function(e){r.emit("error",e)})),r}},"7rOW":function(e,t,r){"use strict";var a=r("5jll");e.exports={moduleType:"component",name:a.name,layoutAttributes:r("nF9v"),supplyLayoutDefaults:r("chCF"),draw:r("8QPt")}},"825b":function(e,t,r){"use strict";e.exports=r("2DHC")},"86IV":function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE");e.exports=function(e,t,r,i){var o,l,s,c,d=i.counterAxes||[],u=i.overlayableAxes||[],f=i.letter,h=i.grid;h&&(l=h._domains[f][h._axisMap[t._id]],o=h._anchors[t._id],l&&(s=h[f+"side"].split(" ")[0],c=h.domain[f]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(a(e.position)?"free":d[0]||"free"),s=s||("x"===f?"bottom":"left"),c=c||0,"free"===n.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(d),dflt:o}},"anchor")&&r("position",c),n.coerce(e,t,{side:{valType:"enumerated",values:"x"===f?["bottom","top"]:["left","right"],dflt:s}},"side");var p=!1;if(u.length&&(p=n.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(u),dflt:!1}},"overlaying")),!p){var g=r("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),n.noneOrAll(e.domain,t.domain,l)}return r("layer"),t}},"88/Y":function(e,t,r){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},"89+b":function(e,t,r){"use strict";var a=r("eNjM").hiddenlabels;e.exports={hiddenlabels:a,funnelareacolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default funnelarea slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendfunnelareacolors`."].join(" ")},extendfunnelareacolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},"8QPt":function(e,t,r){"use strict";var a=r("bljh"),n=r("u3HJ"),i=r("0RW4"),o=r("g9E0"),l=r("/CZE"),s=l.strTranslate,c=r("A3kh"),d=r("plED").arrayEditor,u=r("5jll"),f=r("Y9zF"),h=f.LINE_SPACING,p=f.FROM_TL,g=f.FROM_BR;function m(e){return u.autoMarginIdRoot+e._index}function y(e){return e._index}function v(e,t){var r=o.tester.selectAll("g."+u.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(u.labelGroupClass,!0);var i=0,s=0;r.each((function(e){var r=_(a.select(this),{step:e},t).node();if(r){var n=o.bBox(r);s=Math.max(s,n.height),i=Math.max(i,n.width)}})),r.remove();var d=t._dims={};d.inputAreaWidth=Math.max(u.railWidth,u.gripHeight);var f=e._fullLayout._size;d.lx=f.l+f.w*t.x,d.ly=f.t+f.h*(1-t.y),"fraction"===t.lenmode?d.outerLength=Math.round(f.w*t.len):d.outerLength=t.len,d.inputAreaStart=0,d.inputAreaLength=Math.round(d.outerLength-t.pad.l-t.pad.r);var h=(d.inputAreaLength-2*u.stepInset)/(t._stepCount-1),y=i+u.labelPadding;if(d.labelStride=Math.max(1,Math.ceil(y/h)),d.labelHeight=s,d.currentValueMaxWidth=0,d.currentValueHeight=0,d.currentValueTotalHeight=0,d.currentValueMaxLines=1,t.currentvalue.visible){var v=o.tester.append("g");r.each((function(e){var r=x(v,t,e.label),a=r.node()&&o.bBox(r.node())||{width:0,height:0},n=c.lineCount(r);d.currentValueMaxWidth=Math.max(d.currentValueMaxWidth,Math.ceil(a.width)),d.currentValueHeight=Math.max(d.currentValueHeight,Math.ceil(a.height)),d.currentValueMaxLines=Math.max(d.currentValueMaxLines,n)})),d.currentValueTotalHeight=d.currentValueHeight+t.currentvalue.offset,v.remove()}d.height=d.currentValueTotalHeight+u.tickOffset+t.ticklen+u.labelOffset+d.labelHeight+t.pad.t+t.pad.b;var b="left";l.isRightAnchor(t)&&(d.lx-=d.outerLength,b="right"),l.isCenterAnchor(t)&&(d.lx-=d.outerLength/2,b="center");var w="top";l.isBottomAnchor(t)&&(d.ly-=d.height,w="bottom"),l.isMiddleAnchor(t)&&(d.ly-=d.height/2,w="middle"),d.outerLength=Math.ceil(d.outerLength),d.height=Math.ceil(d.height),d.lx=Math.round(d.lx),d.ly=Math.round(d.ly);var k={y:t.y,b:d.height*g[w],t:d.height*p[w]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*p[b],k.r=0,k.xr=t.x+t.len*g[b]):(k.x=t.x,k.l=d.outerLength*p[b],k.r=d.outerLength*g[b]),n.autoMargin(e,m(t),k)}function x(e,t,r){if(t.currentvalue.visible){var a,n,i=t._dims;switch(t.currentvalue.xanchor){case"right":a=i.inputAreaLength-u.currentValueInset-i.currentValueMaxWidth,n="left";break;case"center":a=.5*i.inputAreaLength,n="middle";break;default:a=u.currentValueInset,n="left"}var s=l.ensureSingle(e,"text",u.labelClass,(function(e){e.attr({"text-anchor":n,"data-notex":1})})),d=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof r)d+=r;else{var f=t.steps[t.active].label,p=t._gd._fullLayout._meta;p&&(f=l.templateString(f,p)),d+=f}t.currentvalue.suffix&&(d+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(d).call(c.convertToTspans,t._gd);var g=c.lineCount(s),m=(i.currentValueMaxLines+1-g)*t.currentvalue.font.size*h;return c.positionText(s,a,m),s}}function b(e,t,r){l.ensureSingle(e,"rect",u.gripRectClass,(function(a){a.call(A,t,e,r).style("pointer-events","all")})).attr({width:u.gripWidth,height:u.gripHeight,rx:u.gripRadius,ry:u.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _(e,t,r){var a=l.ensureSingle(e,"text",u.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),n=t.step.label,i=r._gd._fullLayout._meta;return i&&(n=l.templateString(n,i)),a.call(o.font,r.font).text(n).call(c.convertToTspans,r._gd),a}function w(e,t){var r=l.ensureSingle(e,"g",u.labelsClass),n=t._dims,i=r.selectAll("g."+u.labelGroupClass).data(n.labelSteps);i.enter().append("g").classed(u.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var r=a.select(this);r.call(_,e,t),o.setTranslate(r,L(t,e.fraction),u.tickOffset+t.ticklen+t.font.size*h+u.labelOffset+n.currentValueTotalHeight)}))}function k(e,t,r,a,n){var i=Math.round(a*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&T(e,t,r,o,!0,n)}function T(e,t,r,a,i,o){var l=r.active;r.active=a,d(e.layout,u.name,r).applyUpdate("active",a);var s=r.steps[r.active];t.call(S,r,o),t.call(x,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame((function(){var r=t._nextMethod.step;r.method&&(r.execute&&n.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function A(e,t,r){var n=r.node(),o=a.select(t);function l(){return r.data()[0]}e.on("mousedown",(function(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+u.gripRectClass);a.event.stopPropagation(),a.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=C(e,a.mouse(n)[0]);k(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",(function(){var e=l(),i=C(e,a.mouse(n)[0]);k(t,r,e,i,!1)})),o.on("mouseup",(function(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}))}))}function M(e,t){var r=e.selectAll("rect."+u.tickRectClass).data(t._visibleSteps),n=t._dims;r.enter().append("rect").classed(u.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(e,r){var l=r%n.labelStride==0,s=a.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,L(t,r/(t._stepCount-1))-.5*t.tickwidth,(l?u.tickOffset:u.minorTickOffset)+n.currentValueTotalHeight)}))}function S(e,t,r){for(var a=e.select("rect."+u.gripRectClass),n=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){n=i;break}var o=L(t,n/(t._stepCount-1));if(!t._invokingCommand){var l=a;r&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*u.gripWidth,t._dims.currentValueTotalHeight))}}function L(e,t){var r=e._dims;return r.inputAreaStart+u.stepInset+(r.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function C(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*u.stepInset-2*r.inputAreaStart)))}function I(e,t,r){var a=r._dims,n=l.ensureSingle(e,"rect",u.railTouchRectClass,(function(a){a.call(A,t,e,r).style("pointer-events","all")}));n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,u.tickOffset+r.ticklen+a.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(n,0,a.currentValueTotalHeight)}function D(e,t){var r=t._dims,a=r.inputAreaLength-2*u.railInset,n=l.ensureSingle(e,"rect",u.railRectClass);n.attr({width:a,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(n,u.railInset,.5*(r.inputAreaWidth-u.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[u.name],a=[],n=0;n<r.length;n++){var i=r[n];i.visible&&(i._gd=t,a.push(i))}return a}(t,e),i=t._infolayer.selectAll("g."+u.containerClassName).data(r.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),n.autoMargin(e,m(t))}if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){a.select(this).selectAll("g."+u.groupClassName).each(l)})).remove(),0!==r.length){var s=i.selectAll("g."+u.groupClassName).data(r,y);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c<r.length;c++){var d=r[c];v(e,d)}s.each((function(t){var r=a.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,a=0;a<r;a+=t.labelStride)t.labelSteps.push({fraction:a/(r-1),step:e._visibleSteps[a]})}(t),n.manageCommandObserver(e,t,t._visibleSteps,(function(t){var a=r.data()[0];a.active!==t.index&&(a._dragging||T(e,r,a,t.index,!1,!0))})),function(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);t.call(x,r).call(D,r).call(w,r).call(M,r).call(I,e,r).call(b,e,r);var a=r._dims;o.setTranslate(t,a.lx+r.pad.l,a.ly+r.pad.t),t.call(S,r,!1),t.call(x,r)}(e,a.select(this),t)}))}}},"8RjX":function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("/CZE"),o=i.ensureSingle,l=i.identity,s=r("g9E0"),c=r("3oHU"),d=r("nPGn"),u=r("AL0Q"),f=r("tos6").tester;function h(e,t,r,u,h,p,g){var m;!function(e,t,r,n,o){var l=r.xaxis,s=r.yaxis,d=a.extent(i.simpleMap(l.range,l.r2c)),u=a.extent(i.simpleMap(s.range,s.r2c)),f=n[0].trace;if(!c.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=n.filter((function(e){return e.x>=d[0]&&e.x<=d[1]&&e.y>=u[0]&&e.y<=u[1]})),g=Math.ceil(p.length/h),m=0;o.forEach((function(e,r){var a=e[0].trace;c.hasMarkers(a)&&a.marker.maxdisplayed>0&&r<t&&m++}));var y=Math.round(m*g/3+Math.floor(m/3)*g/7.1);n.forEach((function(e){delete e.vis})),p.forEach((function(e,t){0===Math.round((t+y)%g)&&(e.vis=!0)}))}(0,t,r,u,h);var y=!!g&&g.duration>0;function v(e){return y?e.transition():e}var x=r.xaxis,b=r.yaxis,_=u[0].trace,w=_.line,k=a.select(p),T=o(k,"g","errorbars"),A=o(k,"g","lines"),M=o(k,"g","points"),S=o(k,"g","text");if(n.getComponentMethod("errorbars","plot")(e,T,r,g),!0===_.visible){var L,C;v(k).style("opacity",_.opacity);var I=_.fill.charAt(_.fill.length-1);"x"!==I&&"y"!==I&&(I=""),u[0][r.isRangePlot?"nodeRangePlot3":"node3"]=k;var D,O,z="",P=[],E=_._prevtrace;E&&(z=E._prevRevpath||"",C=E._nextFill,P=E._polygons);var j,R,N,F,B,H,V,Z="",G="",U=[],W=i.noop;if(L=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(C&&C.datum(u),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(j=s.steps(w.shape),R=s.steps(w.shape.split("").reverse().join(""))):j=R="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),w.smoothing):s.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},N=function(e){return R(e.reverse())},U=d(u,{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(U.length),m=0;m<U.length;m++)_._polygons[m]=f(U[m]);U.length&&(F=U[0][0],H=(B=U[U.length-1])[B.length-1]),W=function(e){return function(t){if(D=j(t),O=N(t),Z?I?(Z+="L"+D.substr(1),G=O+"L"+G.substr(1)):(Z+="Z"+D,G=O+"Z"+G):(Z=D,G=O),c.hasLines(_)&&t.length>1){var r=a.select(this);if(r.datum(u),e)v(r.style("opacity",0).attr("d",D).call(s.lineGroupStyle)).style("opacity",1);else{var n=v(r);n.attr("d",D),s.singleLineStyle(u,n)}}}}}var q=A.selectAll(".js-line").data(U);v(q.exit()).style("opacity",0).remove(),q.each(W(!1)),q.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(W(!0)),s.setClipUrl(q,r.layerClipId,e),U.length?(L?(L.datum(u),F&&H&&(I?("y"===I?F[1]=H[1]=b.c2p(0,!0):"x"===I&&(F[0]=H[0]=x.c2p(0,!0)),v(L).attr("d","M"+H+"L"+F+"L"+Z.substr(1)).call(s.singleFillStyle)):v(L).attr("d",Z+"Z").call(s.singleFillStyle))):C&&("tonext"===_.fill.substr(0,6)&&Z&&z?("tonext"===_.fill?v(C).attr("d",Z+"Z"+z+"Z").call(s.singleFillStyle):v(C).attr("d",Z+"L"+z.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(P)):(X(C),_._polygons=null)),_._prevRevpath=G,_._prevPolygons=V):(L?X(L):C&&X(C),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(u),S.datum(u),function(t,n,i){var o,d=i[0].trace,u=c.hasMarkers(d),f=c.hasText(d),h=ee(d),p=te,g=te;if(u||f){var m=l,_=d.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;d.marker.maxdisplayed||d._needsCull?m=w?K:J:_&&!w&&(m=Q),u&&(p=m),f&&(g=m)}var k,T=(o=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);y&&T.call(s.pointStyle,d,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),u&&(k=s.makePointStyleFns(d)),o.each((function(t){var n=a.select(this),i=v(n);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,d,k,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,d.xcalendar,d.ycalendar),d.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),y?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=n.selectAll("g").data(g,h)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=a.select(this),n=v(t.select("text"));s.translatePoint(e,n,x,b)?r.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,d.xcalendar,d.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,d,e).each((function(e){var t=x.c2p(e.x),r=b.c2p(e.y);a.select(this).selectAll("tspan.line").each((function(){v(a.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(M,S,u);var Y=!1===_.cliponaxis?null:r.layerClipId;s.setClipUrl(M,Y,e),s.setClipUrl(S,Y,e)}function X(e){v(e).attr("d","M0,0Z")}function J(e){return e.filter((function(e){return!e.gap&&e.vis}))}function K(e){return e.filter((function(e){return e.vis}))}function Q(e){return e.filter((function(e){return!e.gap}))}function $(e){return e.id}function ee(e){if(e.ids)return $}function te(){return!1}}e.exports=function(e,t,r,n,i,c){var d,f,p=!i,g=!!i&&i.duration>0,m=u(e,t,r);((d=n.selectAll("g.trace").data(m,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),d.order(),function(e,t,r){t.each((function(t){var n=o(a.select(this),"g","fills");s.setClipUrl(n,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var d=n.selectAll("g").data(c,l);d.enter().append("g"),d.exit().each((function(e){i[e]=null})).remove(),d.order().each((function(e){i[e]=o(a.select(this),"path","js-fill")}))}))}(e,d,t),g)?(c&&(f=c()),a.transition().duration(i.duration).ease(i.easing).each("end",(function(){f&&f()})).each("interrupt",(function(){f&&f()})).each((function(){n.selectAll("g.trace").each((function(r,a){h(e,a,t,r,m,this,i)}))}))):d.each((function(r,a){h(e,a,t,r,m,this,i)}));p&&d.exit().remove(),n.selectAll("path:not([d])").remove()}},"8gD/":function(e,t,r){"use strict";var a=r("qHYo"),n=r("lNV6").hovertemplateAttrs,i=r("lNV6").texttemplateAttrs,o=r("9Okp"),l=r("gfA5").attributes,s=r("kZ5o"),c=r("i6kf"),d=r("kJIm").extendFlat;e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the labels of each of the sectors."].join(" ")},parents:{valType:"data_array",editType:"calc",description:["Sets the parent sectors for each of the sectors.","Empty string items '' are understood to reference","the root node in the hierarchy.",'If `ids` is filled, `parents` items are understood to be "ids" themselves.',"When `ids` is not set, plotly attempts to find matching items in `labels`,","but beware they must be unique."].join(" ")},values:{valType:"data_array",editType:"calc",description:["Sets the values associated with each of the sectors.","Use with `branchvalues` to determine how the values are summed."].join(" ")},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc",role:"info",description:["Determines how the items in `values` are summed.","When set to *total*, items in `values` are taken to be value of all its descendants.","When set to *remainder*, items in `values` corresponding to the root and the branches sectors","are taken to be the extra part not part of the sum of the values at their leaves."].join(" ")},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc",role:"info",description:["Determines default for `values` when it is not provided,","by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0."].join(" ")},level:{valType:"any",editType:"plot",anim:!0,role:"info",description:["Sets the level from which this trace hierarchy is rendered.","Set `level` to `''` to start from the root node in the hierarchy.",'Must be an "id" if `ids` is filled in, otherwise plotly attempts to find a matching',"item in `labels`."].join(" ")},maxdepth:{valType:"integer",editType:"plot",role:"info",dflt:-1,description:["Sets the number of rendered sectors from any given `level`.","Set `maxdepth` to *-1* to render all the levels in the hierarchy."].join(" ")},marker:d({colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector of this trace.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:d({},s.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:d({},s.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},o("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",role:"style",min:0,max:1,description:["Sets the opacity of the leaves. With colorscale","it is defaulted to 1; otherwise it is defaulted to 0.7"].join(" ")},editType:"plot"},text:s.text,textinfo:{valType:"flaglist",role:"info",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot",description:["Determines which trace information appear on the graph."].join(" ")},texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:d({},a.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextorientation:s.insidetextorientation,insidetextfont:s.insidetextfont,outsidetextfont:d({},s.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented at the center of a sunburst graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),rotation:{valType:"angle",role:"style",dflt:0,editType:"plot",description:["Rotates the whole diagram counterclockwise by some angle.","By default the first slice starts at 3 o'clock."].join(" ")},sort:s.sort,root:{color:{valType:"color",editType:"calc",role:"style",dflt:"rgba(0,0,0,0)",description:["sets the color of the root node for a sunburst or a treemap trace.","this has no effect when a colorscale is used to set the markers."].join(" ")},editType:"calc"},domain:l({name:"sunburst",trace:!0,editType:"calc"})}},"8o4k":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("efHY");e.exports=function(e,t){var r,i,o={},l=[],s=!1,c={},d=0,u=0,f=t._main;function h(e,r){if(""!==e&&n.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,o[e]=[[r]]):o[e].push([r]);else{var a="~~i"+d;l.push(a),o[a]=[[r]],d++}}for(r=0;r<e.length;r++){var p=e[r],g=p[0],m=g.trace,y=m.legendgroup;if(!f||m.visible&&m.showlegend)if(a.traceIs(m,"pie-like"))for(c[y]||(c[y]={}),i=0;i<p.length;i++){var v=p[i].label;c[y][v]||(h(y,{label:v,color:p[i].color,i:p[i].i,trace:m,pts:p[i].pts}),c[y][v]=!0,u=Math.max(u,(v||"").length))}else h(y,g),u=Math.max(u,(m.name||"").length)}if(!l.length)return[];var x,b,_=l.length;if(s&&n.isGrouped(t))for(b=new Array(_),r=0;r<_;r++)x=o[l[r]],b[r]=n.isReversed(t)?x.reverse():x;else{for(b=[new Array(_)],r=0;r<_;r++)x=o[l[r]][0],b[0][n.isReversed(t)?_-r-1:r]=x;_=1}return t._lgroupsLength=_,t._maxNameLength=u,b}},"8trw":function(e,t,r){"use strict";var a=r("GbLo"),n=r("6AZA").BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),a(e)?Number(e):n}},"98FX":function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4"),i=r("plED"),o=r("5azm"),l=r("0tl7"),s=r("sZtP");function c(e,t,r,n){var i=n.calendar;function o(r,n){return a.coerce(e,t,l.buttons,r,n)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}e.exports=function(e,t,r,d,u){var f=e.rangeselector||{},h=i.newContainer(t,"rangeselector");function p(e,t){return a.coerce(f,h,l,e,t)}if(p("visible",o(f,h,{name:"buttons",handleItemDefaults:c,calendar:u}).length>0)){var g=function(e,t,r){for(var a=r.filter((function(r){return t[r].anchor===e._id})),n=0,i=0;i<a.length;i++){var o=t[a[i]].domain;o&&(n=Math.max(o[1],n))}return[e.domain[0],n+s.yPad]}(t,r,d);p("x",g[0]),p("y",g[1]),a.noneOrAll(e,t,["x","y"]),p("xanchor"),p("yanchor"),a.coerceFont(p,"font",r.font);var m=p("bgcolor");p("activecolor",n.contrast(m,s.lightAmount,s.darkAmount)),p("bordercolor"),p("borderwidth")}}},"9CI2":function(e,t,r){"use strict";var a=r("JZU4").drawRaw,n=r("+Y3G"),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,d=0;d<3;d++){var u=i[d],f=s[u],h=t[u+"axis"].r2fraction(f);if(h<0||h>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=n(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),a(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},"9Okp":function(e,t,r){"use strict";var a=r("Z8TU"),n=r("BVrX").counter,i=r("SFLx").scales,o=Object.keys(i);function l(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var r,s,c=(t=t||{}).cLetter||"c",d="onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),u="noScale"in t?t.noScale:"marker.line"===e,f="showScaleDflt"in t?t.showScaleDflt:"z"===c,h="string"==typeof t.colorscaleDflt?i[t.colorscaleDflt]:null,p=t.editTypeOverride||"",g=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,s=t.colorAttr):s="in "+l(g+(r={z:"z",c:"color"}[c]));var m=d?" Has an effect only if "+s+"is set to a numerical array.":"",y=c+"auto",v=c+"min",x=c+"max",b=c+"mid",_=l(g+y),w=l(g+v),k=l(g+x),T=w+" and "+k,A={};A[v]=A[x]=void 0;var M={};M[y]=!1;var S={};return"color"===r&&(S.color={valType:"color",arrayOk:!0,role:"style",editType:p||"style",description:["Sets the",e,"color."," It accepts either a specific color"," or an array of numbers that are mapped to the colorscale"," relative to the max and min values of the array or relative to"," "+T+" if set."].join("")},t.anim&&(S.color.anim=!0)),S[y]={valType:"boolean",role:"info",dflt:!0,editType:"calc",impliedEdits:A,description:["Determines whether or not the color domain is computed"," with respect to the input data (here "+s+") or the bounds set in"," ",T," ",m," Defaults to `false` when ",T," are set by the user."].join("")},S[v]={valType:"number",role:"info",dflt:null,editType:p||"plot",impliedEdits:M,description:["Sets the lower bound of the color domain.",m," Value should have the same units as ",s," and if set, ",k," must be set as well."].join("")},S[x]={valType:"number",role:"info",dflt:null,editType:p||"plot",impliedEdits:M,description:["Sets the upper bound of the color domain.",m," Value should have the same units as ",s," and if set, ",w," must be set as well."].join("")},S[b]={valType:"number",role:"info",dflt:null,editType:"calc",impliedEdits:A,description:["Sets the mid-point of the color domain by scaling ",w," and/or ",k," to be equidistant to this point.",m," Value should have the same units as ",s,". ","Has no effect when ",_," is `false`."].join("")},S.colorscale={valType:"colorscale",role:"style",editType:"calc",dflt:h,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale.",m," The colorscale must be an array containing"," arrays mapping a normalized value to an"," rgb, rgba, hex, hsl, hsv, or named color string."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`."," To control the bounds of the colorscale in color space,"," use",T,"."," Alternatively, `colorscale` may be a palette name string"," of the following list: "+o+"."].join("")},S.autocolorscale={valType:"boolean",role:"style",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)"," or the palette determined by ",l(g+"colorscale"),".",m," In case `colorscale` is unspecified or `autocolorscale` is true, the default "," palette will be chosen according to whether numbers in the `color` array are"," all positive, all negative or mixed."].join("")},S.reversescale={valType:"boolean",role:"style",dflt:!1,editType:"plot",description:["Reverses the color mapping if true.",m," If true, ",w," will correspond to the last color"," in the array and ",k," will correspond to the first color."].join("")},u||(S.showscale={valType:"boolean",role:"info",dflt:f,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace.",m].join("")},S.colorbar=a),t.noColorAxis||(S.coloraxis={valType:"subplotid",role:"info",regex:n("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),S}},"9ldu":function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"sunburst",basePlotModule:r("s1NN"),categories:[],animatable:!0,attributes:r("8gD/"),layoutAttributes:r("e6NF"),supplyDefaults:r("jb4q"),supplyLayoutDefaults:r("LdfS"),calc:r("E6B2").calc,crossTraceCalc:r("E6B2").crossTraceCalc,plot:r("4X2v").plot,style:r("dZSj").style,colorbar:r("88/Y"),meta:{description:["Visualize hierarchal data spanning outward radially from root to leaves.","The sunburst sectors are determined by the entries in *labels* or *ids*","and in *parents*."].join(" ")}}},"9rBw":function(e,t,r){"use strict";var a=r("GbLo");e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return a(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},"9yVo":function(e,t,r){"use strict";e.exports=r("/w3t")},A3kh:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=n.strTranslate,o=r("c8nr"),l=r("Y9zF").LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,r,g){var M=e.text(),S=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&M.match(c),I=a.select(e.node().parentNode);if(!I.empty()){var D=e.attr("class")?e.attr("class").split(" ")[0]:"text";return D+="-math",I.selectAll("svg."+D).remove(),I.selectAll("g."+D+"-group").remove(),e.style("display",null).attr({"data-unformatted":M,"data-math":"N"}),S?(r&&r._promises||[]).push(new Promise((function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var i,o,l,s;MathJax.Hub.Queue((function(){return o=n.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-"+n.randstr({},64);return s=a.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(d,"\\lt ").replace(u,"\\gt ")),MathJax.Hub.Typeset(s.node())}),(function(){var t=a.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())n.log("There was an error in the tex syntax.",e),r();else{var o=s.select("svg").node().getBoundingClientRect();r(s.select(".MathJax_SVG"),t,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(S[2],o,(function(a,n,o){I.selectAll("svg."+D).remove(),I.selectAll("g."+D+"-group").remove();var l=a&&a.select("svg");if(!l||!l.node())return O(),void t();var c=I.append("g").classed(D+"-group",!0).attr({"pointer-events":"none","data-unformatted":M,"data-math":"Y"});c.node().appendChild(l.node()),n&&n.node()&&l.node().insertBefore(n.node().cloneNode(!0),l.node().firstChild),l.attr({class:D,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var d=e.node().style.fill||"black",u=l.select("g");u.attr({fill:d,stroke:d});var f=s(u,"width"),h=s(u,"height"),p=+e.attr("x")-f*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],m=-(r||s(e,"height"))/4;"y"===D[0]?(c.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+")"+i(-f/2,m-h/2)}),l.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===D[0]?l.attr({x:e.attr("x"),y:m-h/2}):"a"===D[0]&&0!==D.indexOf("atitle")?l.attr({x:0,y:m}):l.attr({x:p,y:+e.attr("y")+m-h/2}),g&&g.call(e,c),t(c)}))}))):O(),e}function O(){I.empty()||(D=e.attr("class")+"-math",I.select("svg."+D).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(m," ");var r,i=!1,s=[],c=-1;function d(){c++;var t=document.createElementNS(o.svg,"tspan");a.select(t).attr({class:"line",dy:c*l+"em"}),e.appendChild(t),r=t;var n=s;if(s=[{node:t}],n.length>1)for(var i=1;i<n.length;i++)u(n[i])}function u(e){var t,n=e.type,i={};if("a"===n){t="a";var l=e.target,c=e.href,d=e.popup;c&&(i={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":c},d&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+d+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var u=document.createElementNS(o.svg,t);if("sup"===n||"sub"===n){g(r,""),r.appendChild(u);var f=document.createElementNS(o.svg,"tspan");g(f,""),a.select(f).attr("dy",p[n]),i.dy=h[n],r.appendChild(u),r.appendChild(f)}else r.appendChild(u);a.select(u).attr(i),r=e.node=u,s.push(e)}function g(e,t){e.appendChild(document.createTextNode(t))}function M(e){if(1!==s.length){var a=s.pop();e!==a.type&&n.log("Start tag <"+a.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else n.log("Ignoring unexpected end tag </"+e+">.",t)}x.test(t)?d():(r=e,s=[{node:e}]);for(var S=t.split(y),I=0;I<S.length;I++){var D=S[I],O=D.match(v),z=O&&O[2].toLowerCase(),P=f[z];if("br"===z)d();else if(void 0===P)g(r,L(D));else if(O[1])M(z);else{var E=O[4],j={type:z},R=T(E,b);if(R?(R=R.replace(A,"$1 fill:"),P&&(R+=";"+P)):P&&(R=P),R&&(j.style=R),"a"===z){i=!0;var N=T(E,_);if(N){var F=C(N);F&&(j.href=F,j.target=T(E,w)||"_blank",j.popup=T(E,k))}}u(j)}}return i}(e.node(),M)&&e.style("pointer-events","all"),t.positionText(e),g&&g.call(e)}};var d=/(<|<|<)/g,u=/(>|>|>)/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"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},g=["http:","https:","mailto:","",void 0,":"],m=t.NEWLINES=/(\r\n?|\n)/g,y=/(<[^<>]*>)/,v=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/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(e,t){if(!e)return null;var r=e.match(t),a=r&&(r[3]||r[4]);return a&&L(a)}var A=/(^|;)\s*color:/;t.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,a=void 0!==t.allowedTags?t.allowedTags:["br"],n="...".length,i=e.split(y),o=[],l="",s=0,c=0;c<i.length;c++){var d=i[c],u=d.match(v),f=u&&u[2].toLowerCase();if(f)-1!==a.indexOf(f)&&(o.push(d),l=f);else{var h=d.length;if(s+h<r)o.push(d),s+=h;else if(s<r){var p=r-s;l&&("br"!==l||p<=n||h<=n)&&o.pop(),r>n?o.push(d.substr(0,p-n)+"..."):o.push(d.substr(0,p));break}l=""}}return o.join("")};var M={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L(e){return e.replace(S,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):M[t])||e}))}function C(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),a=document.createElement("a");r.href=e,a.href=t;var n=r.protocol,i=a.protocol;return-1!==g.indexOf(n)&&-1!==g.indexOf(i)?t:""}function I(e,t,r){var a,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),d=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-a.height}:"middle"===s?function(){return c.top+(c.height-a.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-a.width}:"center"===l?function(){return c.left+(c.width-a.width)/2}:function(){return c.left},function(){a=this.node().getBoundingClientRect();var e=o()-d.left,t=i()-d.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=n.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}t.convertEntities=L,t.sanitizeHTML=function(e){e=e.replace(m," ");for(var t=document.createElement("p"),r=t,n=[],i=e.split(y),o=0;o<i.length;o++){var l=i[o],s=l.match(v),c=s&&s[2].toLowerCase();if(c in f)if(s[1])n.length&&(r=n.pop());else{var d=s[4],u=T(d,b),h=u?{style:u}:{};if("a"===c){var p=T(d,_);if(p){var g=C(p);if(g){h.href=g;var x=T(d,w);x&&(h.target=x)}}}var k=document.createElement(c);r.appendChild(k),a.select(k).attr(h),r=k,n.push(k)}else r.appendChild(document.createTextNode(L(l)))}return t.innerHTML},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,r){return e.each((function(){var e=a.select(this);function n(t,r){return void 0===r?null===(r=e.attr(t))&&(e.attr(t,0),r=0):e.attr(t,r),r}var i=n("x",t),o=n("y",r);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))},t.makeEditable=function(e,t){var r=t.gd,n=t.delegate,i=a.dispatch("edit","input","cancel"),o=n||e;if(e.style({"pointer-events":n?"none":"all"}),1!==e.size())throw new Error("boo");function l(){!function(){var n=a.select(r).select(".svg-container"),o=n.append("div"),l=e.node().style,c=parseFloat(l.fontSize||12),d=t.text;void 0===d&&(d=e.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":l.fontFamily||"Arial","font-size":c,color:t.fill||l.fill||"black",opacity:1,"background-color":t.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(d).call(I(e,n,t)).on("blur",(function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var t,n=a.select(this).attr("class");(t=n?"."+n.split(" ")[0]+"-math-group":"[class*=-math-group]")&&a.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;a.select(this).transition().duration(0).remove(),a.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;r._editing=!0,a.select(document).on("mouseup",(function(){if(a.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()}))})).on("keyup",(function(){27===a.event.which?(r._editing=!1,e.style({opacity:1}),a.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),a.select(this).call(I(e,n,t)))})).on("keydown",(function(){13===a.event.which&&this.blur()})).call(s)}(),e.style({opacity:0});var n,l=o.attr("class");(n=l?"."+l.split(" ")[0]+"-math-group":"[class*=-math-group]")&&a.select(e.node().parentNode).select(n).style({opacity:0})}function s(e){var t=e.node(),r=document.createRange();r.selectNodeContents(t);var a=window.getSelection();a.removeAllRanges(),a.addRange(r),t.focus()}return t.immediate?l():o.on("click",l),a.rebind(e,i,"on")}},"A9f/":function(e,t,r){"use strict";var a=r("bljh"),n=r("g9E0"),i=r("0RW4"),o=r("cqRZ").DESELECTDIM,l=r("LfN2"),s=r("k6aH").resizeText,c=l.styleTextPoints;e.exports={style:function(e,t,r){var l=r||a.select(e).selectAll("g.waterfalllayer").selectAll("g.trace");s(e,l,"waterfall"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var r=a.select(this),l=t[0].trace;r.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l[e.dir].marker;a.select(this).call(i.fill,t.color).call(i.stroke,t.line.color).call(n.dashLine,t.line.dash,t.line.width).style("opacity",l.selectedpoints&&!e.selected?o:1)}})),c(r,l,e),r.selectAll(".lines").each((function(){var e=l.connector.line;n.lineGroupStyle(a.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},AII8:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var r=1e3;n(t)?r=t:"long"===t&&(r=3e3);var o=a.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var n=a.select(this);n.append("button").classed("notifier-close",!0).html("×").on("click",(function(){n.transition().call(l)}));for(var i=n.append("p"),o=e.split(/<br\s*\/?>/g),s=0;s<o.length;s++)s&&i.append("br"),i.append("span").text(o[s]);"stick"===t?n.transition().duration(350).style("opacity",1):n.transition().duration(700).style("opacity",1).transition().delay(r).call(l)}))}function l(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),a.select(this).remove()}))}}},AL0Q:function(e,t,r){"use strict";var a={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,r){var n,i,o,l,s,c={},d=!1,u=-1,f=0,h=-1;for(i=0;i<r.length;i++)(o=(n=r[i][0].trace).stackgroup||"")?o in c?s=c[o]:(s=c[o]=f,f++):n.fill in a&&h>=0?s=h:(s=h=f,f++),s<u&&(d=!0),n._groupIndex=u=s;var p=r.slice();d&&p.sort((function(e,t){var r=e[0].trace,a=t[0].trace;return r._groupIndex-a._groupIndex||r.index-a.index}));var g={};for(i=0;i<p.length;i++)o=(n=p[i][0].trace).stackgroup||"",!0===n.visible?(n._nexttrace=null,n.fill in a&&(l=g[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace),g[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}},AySM:function(e,t,r){"use strict";e.exports=function(e){for(var t=0;t<e.length;t++){var r=e[t];if("scatter"===r.type){var a=r.fill;if("none"!==a&&"toself"!==a&&(r.opacity=void 0,"tonexty"===a||"tonextx"===a))for(var n=t-1;n>=0;n--){var i=e[n];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},B28u:function(e,t,r){"use strict";var a=r("/CZE"),n=r("Nx4I");e.exports=function(e,t,r,i){var o,l=i("x"),s=i("y");if(n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],r),l){var c=a.minRowLength(l);s?o=Math.min(c,a.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=a.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},BDWl:function(e,t,r){"use strict";var a=r("EHyX"),n=r("qHYo"),i=r("lNV6").hovertemplateAttrs,o=r("9Okp"),l=r("eN+q").FORMAT_LINK,s=r("kJIm").extendFlat;e.exports=s({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:s({},a.x,{impliedEdits:{xtype:"array"}}),x0:s({},a.x0,{impliedEdits:{xtype:"scaled"}}),dx:s({},a.dx,{impliedEdits:{xtype:"scaled"}}),y:s({},a.y,{impliedEdits:{ytype:"array"}}),y0:s({},a.y0,{impliedEdits:{ytype:"scaled"}}),dy:s({},a.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:s({},a.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:s({},a.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:s({},a.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:s({},a.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:s({},a.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:s({},a.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"calc",description:"Same as `text`."},transpose:{valType:"boolean",dflt:!1,role:"info",editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],role:"info",editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's x coordinates are given by *x*","(the default behavior when `x` is provided).","If *scaled*, the heatmap's x coordinates are given by *x0* and *dx*","(the default behavior when `x` is not provided)."].join(" ")},ytype:{valType:"enumerated",values:["array","scaled"],role:"info",editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's y coordinates are given by *y*","(the default behavior when `y` is provided)","If *scaled*, the heatmap's y coordinates are given by *y0* and *dy*","(the default behavior when `y` is not provided)"].join(" ")},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,role:"style",editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,role:"style",editType:"none",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data have hover labels associated with them."].join(" ")},connectgaps:{valType:"boolean",role:"info",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array and `zsmooth` is not false;","otherwise it is defaulted to false."].join(" ")},xgap:{valType:"number",dflt:0,min:0,role:"style",editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,role:"style",editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},zhoverformat:{valType:"string",dflt:"",role:"style",editType:"none",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. See:",l].join(" ")},hovertemplate:i(),showlegend:s({},n.showlegend,{dflt:!1})},{transforms:void 0},o("",{cLetter:"z",autoColorDflt:!1}))},BEZi:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("/CZE"),o=r("g9E0"),l=r("BkK/");e.exports=function(e,t,r,s){var c=e._fullLayout;if(0!==t.length){var d,u,f,h;s&&(d=s());var p=a.ease(r.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(h),h=null,function(){for(var r={},a=0;a<t.length;a++){var i=t[a],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr0&&(r[o._name+".range"]=i.xr0.slice()),i.yr0&&(r[l._name+".range"]=i.yr0.slice())}return n.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}()})),u=Date.now(),h=window.requestAnimationFrame((function a(){f=Date.now();for(var i=Math.min(1,(f-u)/r.duration),o=p(i),l=0;l<t.length;l++)m(t[l],o);f-u>r.duration?(!function(){for(var r={},a=0;a<t.length;a++){var i=t[a],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr1&&(r[o._name+".range"]=i.xr1.slice()),i.yr1&&(r[l._name+".range"]=i.yr1.slice())}d&&d(),n.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}(),h=window.cancelAnimationFrame(a)):h=window.requestAnimationFrame(a)})),Promise.resolve()}function g(e){var t=e.xaxis,r=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var a=e.plot.selectAll(".scatterlayer .trace");a.selectAll(".point").call(o.setPointGroupScale,1,1),a.selectAll(".textpoint").call(o.setTextPointsScale,1,1),a.call(o.hideOutsideRangePoints,e)}function m(t,r){var a=t.plotinfo,n=a.xaxis,s=a.yaxis,c=n._length,d=s._length,u=!!t.xr1,f=!!t.yr1,h=[];if(u){var p=i.simpleMap(t.xr0,n.r2l),g=i.simpleMap(t.xr1,n.r2l),m=p[1]-p[0],y=g[1]-g[0];h[0]=(p[0]*(1-r)+r*g[0]-p[0])/(p[1]-p[0])*c,h[2]=c*(1-r+r*y/m),n.range[0]=n.l2r(p[0]*(1-r)+r*g[0]),n.range[1]=n.l2r(p[1]*(1-r)+r*g[1])}else h[0]=0,h[2]=c;if(f){var v=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=v[1]-v[0],_=x[1]-x[0];h[1]=(v[1]*(1-r)+r*x[1]-v[1])/(v[0]-v[1])*d,h[3]=d*(1-r+r*_/b),s.range[0]=n.l2r(v[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(v[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=d;l.drawOne(e,n,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[n._id,s._id]);var w=u?c/h[2]:1,k=f?d/h[3]:1,T=u?h[0]:0,A=f?h[1]:0,M=u?h[0]/h[2]*c:0,S=f?h[1]/h[3]*d:0,L=n._offset-M,C=s._offset-S;a.clipRect.call(o.setTranslate,T,A).call(o.setScale,1/w,1/k),a.plot.call(o.setTranslate,L,C).call(o.setScale,w,k),o.setPointGroupScale(a.zoomScalePts,1/w,1/k),o.setTextPointsScale(a.zoomScaleTxt,1/w,1/k)}l.redrawComponents(e)}},BGtl:function(e,t,r){"use strict";var a=r("/CZE"),n={"X,X div":"direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding: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":"overflow:hidden;","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 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;","X .modebar--hover>: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', 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,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 n){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");a.addStyleRule(o,n[i])}},BK0j:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r("0tl7")}}},layoutAttributes:r("0tl7"),handleDefaults:r("98FX"),draw:r("iHwY")}},BVrX:function(e,t,r){"use strict";t.counter=function(e,t,r,a){var n=(t||"")+(r?"":"$"),i=!1===a?"":"^";return"xy"===e?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)}},BiVG:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=r("BkK/"),o=r("h5fz"),l=r("f56O"),s=r("OqjQ"),c=r("0GSP"),d=r("G2oM"),u=r("LQ6N"),f=r("DDrG"),h=r("1wZf"),p=r("6AZA").BADNUM;function g(e){for(var t=[],r=e.length,a=0;a<r;a++){var n=e[a];n!==p&&t.push(n)}return t}e.exports=function(e,t){var r,m,y,v,x,b,_,w,k,T,A,M=i.getFromId(e,t.xaxis||"x"),S=i.getFromId(e,t.yaxis||"y"),L=a.traceIs(t,"contour"),C=a.traceIs(t,"histogram"),I=a.traceIs(t,"gl2d"),D=L?"best":t.zsmooth;if(M._minDtick=0,S._minDtick=0,C)v=(A=l(e,t)).orig_x,r=A.x,m=A.x0,y=A.dx,w=A.orig_y,x=A.y,b=A.y0,_=A.dy,k=A.z;else{var O=t.z;n.isArray1D(O)?(c(t,M,S,"x","y",["z"]),r=t._x,x=t._y,O=t._z):(v=t.x?M.makeCalcdata(t,"x"):[],w=t.y?S.makeCalcdata(t,"y"):[],r=o(t,M,"x",v),x=o(t,S,"y",w),t._x=r,t._y=x),m=t.x0,y=t.dx,b=t.y0,_=t.dy,k=d(O,t,M,S)}function z(e){D=t._input.zsmooth=t.zsmooth=!1,n.warn('cannot use zsmooth: "fast": '+e)}if((M.rangebreaks||S.rangebreaks)&&(k=function(e,t,r){for(var a=[],n=-1,i=0;i<r.length;i++)if(t[i]!==p){n++,a[n]=[];for(var o=0;o<r[i].length;o++)e[o]!==p&&a[n].push(r[i][o])}return a}(r,x,k),C||(r=g(r),x=g(x),t._x=r,t._y=x)),C||!L&&!t.connectgaps||(t._emptypoints=f(k),u(k,t._emptypoints)),"fast"===D)if("log"===M.type||"log"===S.type)z("log axis found");else if(!C){if(r.length){var P=(r[r.length-1]-r[0])/(r.length-1),E=Math.abs(P/100);for(T=0;T<r.length-1;T++)if(Math.abs(r[T+1]-r[T]-P)>E){z("x scale is not linear");break}}if(x.length&&"fast"===D){var j=(x[x.length-1]-x[0])/(x.length-1),R=Math.abs(j/100);for(T=0;T<x.length-1;T++)if(Math.abs(x[T+1]-x[T]-j)>R){z("y scale is not linear");break}}}var N=n.maxRowLength(k),F="scaled"===t.xtype?"":r,B=h(t,F,m,y,N,M),H="scaled"===t.ytype?"":x,V=h(t,H,b,_,k.length,S);I||(t._extremes[M._id]=i.findExtremes(M,B),t._extremes[S._id]=i.findExtremes(S,V));var Z={x:B,y:V,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&v&&(Z.orig_x=v),t.yperiodalignment&&w&&(Z.orig_y=w),F&&F.length===B.length-1&&(Z.xCenter=F),H&&H.length===V.length-1&&(Z.yCenter=H),C&&(Z.xRanges=A.xRanges,Z.yRanges=A.yRanges,Z.pts=A.pts),L||s(e,t,{vals:k,cLetter:"z"}),L&&t.contours&&"heatmap"===t.contours.coloring){var G={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};Z.xfill=h(G,F,m,y,N,M),Z.yfill=h(G,H,b,_,k.length,S)}return[Z]}},"BkK/":function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("u3HJ"),o=r("Nx4I"),l=r("/CZE"),s=l.strTranslate,c=r("A3kh"),d=r("GZnn"),u=r("0RW4"),f=r("g9E0"),h=r("15jM"),p=r("2mon"),g=r("6AZA"),m=g.ONEMAXYEAR,y=g.ONEAVGYEAR,v=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,k=g.ONEAVGMONTH,T=g.ONEMINMONTH,A=g.ONEWEEK,M=g.ONEDAY,S=M/2,L=g.ONEHOUR,C=g.ONEMIN,I=g.ONESEC,D=g.MINUS_SIGN,O=g.BADNUM,z=r("Y9zF"),P=z.MID_SHIFT,E=z.CAP_SHIFT,j=z.LINE_SPACING,R=z.OPPOSITE_SIDE,N=e.exports={};N.setConvert=r("GkA6");var F=r("C3fs"),B=r("PBw4"),H=B.idSort,V=B.isLinked;N.id2name=B.id2name,N.name2id=B.name2id,N.cleanId=B.cleanId,N.list=B.list,N.listIds=B.listIds,N.getFromId=B.getFromId,N.getFromTrace=B.getFromTrace;var Z=r("zlYT");N.getAutoRange=Z.getAutoRange,N.findExtremes=Z.findExtremes;function G(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}N.coerceRef=function(e,t,r,a,n,i){var o=a.charAt(a.length-1),s=r._fullLayout._subplots[o+"axis"],c=a+"ref",d={};return n||(n=s[0]||("string"==typeof i?i:i[0])),i||(i=n),s=s.concat(s.map((function(e){return e+" domain"}))),d[c]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:n},l.coerce(e,t,d,c)},N.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},N.coercePosition=function(e,t,r,a,n,i){var o,s;if("range"!==N.getRefType(a))o=l.ensureNumber,s=r(n,i);else{var c=N.getFromId(t,a);s=r(n,i=c.fraction2r(i)),o=c.cleanPos}e[n]=o(s)},N.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:N.getFromId(t,r).cleanPos)(e)},N.redrawComponents=function(e,t){t=t||N.listIds(e);var r=e._fullLayout;function a(a,n,i,l){for(var s=o.getComponentMethod(a,n),c={},d=0;d<t.length;d++)for(var u=r[N.id2name(t[d])][i],f=0;f<u.length;f++){var h=u[f];if(!c[h]&&(s(e,h),c[h]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0)};var U=N.getDataConversions=function(e,t,r,a){var n,i="x"===r||"y"===r||"z"===r?r:a;if(Array.isArray(i)){if(n={type:F(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},N.setConvert(n),"category"===n.type)for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=N.getFromTrace(e,t,i);return n?{d2c:n.d2c,c2d:n.c2d}:"ids"===i?{d2c:q,c2d:q}:{d2c:W,c2d:W}};function W(e){return+e}function q(e){return String(e)}function Y(e){return+e.substring(1)}N.getDataToCoordFunc=function(e,t,r,a){return U(e,t,r,a).d2c},N.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},N.minDtick=function(e,t,r,a){-1===["log","category","multicategory"].indexOf(e.type)&&a?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=r):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((r-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=r):((t/e._minDtick+1e-6)%1>2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},N.saveRangeInitial=function(e,t){for(var r=N.list(e,"",!0),a=!1,n=0;n<r.length;n++){var i=r[n],o=void 0===i._rangeInitial,l=o||!(i.range[0]===i._rangeInitial[0]&&i.range[1]===i._rangeInitial[1]);(o&&!1===i.autorange||t&&l)&&(i._rangeInitial=i.range.slice(),a=!0)}return a},N.saveShowSpikeInitial=function(e,t){for(var r=N.list(e,"",!0),a=!1,n="on",i=0;i<r.length;i++){var o=r[i],l=void 0===o._showSpikeInitial,s=l||!(o.showspikes===o._showspikes);(l||t&&s)&&(o._showSpikeInitial=o.showspikes,a=!0),"on"!==n||o.showspikes||(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a},N.autoBin=function(e,t,r,a,i,o){var s,c=l.aggNums(Math.min,null,e),d=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:d+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:d-c};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[c,d]}:{type:t.type,range:l.simpleMap([c,d],t.c2r,0,i),calendar:i},N.setConvert(s),o=o&&p.dtick(o,s.type))s.dtick=o,s.tick0=p.tick0(void 0,s.type,i);else{var u;if(r)u=(d-c)/r;else{var f=l.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),g=h*l.roundUp(f.minDiff/h,[.9,1.9,4.9,9.9],!0);u=Math.max(g,2*l.stdev(e)/Math.pow(e.length,a?.25:.4)),n(u)||(u=1)}N.autoTicks(s,u)}var m,y=s.dtick,v=N.tickIncrement(N.tickFirst(s),y,"reverse",i);if("number"==typeof y)m=(v=function(e,t,r,a,i){var o=0,l=0,s=0,c=0;function d(t){return(1+100*(t-e)/r.dtick)%100<2}for(var u=0;u<t.length;u++)t[u]%1==0?s++:n(t[u])||c++,d(t[u])&&o++,d(t[u]+r.dtick/2)&&l++;var f=t.length-c;if(s===f&&"date"!==r.type)r.dtick<1?e=a-.5*r.dtick:(e-=.5)+r.dtick<a&&(e+=r.dtick);else if(l<.1*f&&(o>.3*f||d(a)||d(i))){var h=r.dtick/2;e+=e+h<a?h:-h}return e}(v,e,s,c,d))+(1+Math.floor((d-v)/y))*y;else for("M"===s.dtick.charAt(0)&&(v=function(e,t,r,a,n){var i=l.findExactDates(t,n);if(i.exactDays>.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?e=N.tickIncrement(e,"M6","reverse")+1.5*M:i.exactMonths>.8?e=N.tickIncrement(e,"M1","reverse")+15.5*M:e-=S;var s=N.tickIncrement(e,r);if(s<=a)return s}return e}(v,e,y,c,i)),m=v,0;m<=d;)m=N.tickIncrement(m,y,!1,i);return{start:t.c2r(v,0,i),end:t.c2r(m,0,i),size:y,_dataSpan:d-c}},N.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var a,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(a=e.tickfont?1.2*(e.tickfont.size||12):15,i=e._length/a):(a="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/a,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,N.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(n(e.dtick)||"M"!==e.dtick.charAt(0))}var a=r(),i=N.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=L,o&&!a&&e.dtick<L&&(e.dtick=L)):/%p/.test(i)?(t=S,o&&!a&&e.dtick<S&&(e.dtick=S)):/%[Aadejuwx]/.test(i)?(t=M,o&&!a&&e.dtick<M&&(e.dtick=M)):/%[UVW]/.test(i)?(t=A,o&&!a&&e.dtick<A&&(e.dtick=A)):/%[Bbm]/.test(i)?(t=k,o&&(a?Y(e.dtick)<1:e.dtick<T)&&(e.dtick="M1")):/%[q]/.test(i)?(t=b,o&&(a?Y(e.dtick)<3:e.dtick<_)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=y,o&&(a?Y(e.dtick)<12:e.dtick<v)&&(e.dtick="M12")))}(a=r())&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0);e._definedDelta=t}(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),ae(e)},N.calcTicks=function(e,t){N.prepTicks(e,t);var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("array"===e.tickmode)return function(e){var t=e.tickvals,r=e.ticktext,a=new Array(t.length),n=G(l.simpleMap(e.range,e.r2l)),i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),s=0;Array.isArray(r)||(r=[]);var c="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var d=0;d<t.length;d++){var u=c(t[d]);u>i&&u<o&&(void 0===r[d]?a[s]=N.tickText(e,u):a[s]=ne(e,u,String(r[d])),s++)}s<t.length&&a.splice(s,t.length-s);e.rangebreaks&&(a=a.filter((function(t){return e.maskBreaks(t.x)!==O})));return a}(e);var a=G(r),i=a[0],o=a[1],s=r[1]<r[0],c=Math.min(r[0],r[1]),d=Math.max(r[0],r[1]),u="log"===e.type&&!(n(e.dtick)||"L"===e.dtick.charAt(0)),f="period"===e.ticklabelmode;if(e._tmin=N.tickFirst(e,t),e._tmin<i!==s)return[];"category"!==e.type&&"multicategory"!==e.type||(o=s?Math.max(-.5,o):Math.min(e._categories.length-.5,o));var h=e._tmin;e.rangebreaks&&e._tick0Init!==e.tick0&&(h=we(h,e),s||(h=N.tickIncrement(h,e.dtick,!s,e.calendar))),f&&(h=N.tickIncrement(h,e.dtick,!s,e.calendar));for(var p,g=Math.max(1e3,e._length||0),C=[],I=null;s?h>=o:h<=o;h=N.tickIncrement(h,e.dtick,s,e.calendar)){if(e.rangebreaks&&!s){if(h<i)continue;if(e.maskBreaks(h)===O&&we(h,e)>=d)break}if(C.length>g||h===I)break;I=h;var D=!1;u&&h!==(0|h)&&(D=!0),C.push({minor:D,value:h})}if(f&&function(e,t,r){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l,s=e[i].value,c=e[o].value,d=Math.abs(c-s),u=r||d,f=0;u>=v?f=d>=v&&d<=m?d:y:r===b&&u>=_?f=d>=_&&d<=x?d:b:u>=T?f=d>=T&&d<=w?d:k:r===A&&u>=A?f=A:u>=M?f=M:r===S&&u>=S?f=S:r===L&&u>=L&&(f=L),f>=d&&(f=d,l=!0);var h=n+f;if(t.rangebreaks&&f>0){for(var p=0,g=0;g<84;g++){var C=(g+.5)/84;t.maskBreaks(n*(1-C)+C*h)!==O&&p++}(f*=p/84)||(e[a].drop=!0),l&&d>A&&(f=d)}(f>0||0===a)&&(e[a].periodX=n+f/2)}}(C,e,e._definedDelta),e.rangebreaks){var z="y"===e._id.charAt(0),P=1;"auto"===e.tickmode&&(P=e.tickfont?e.tickfont.size:12);var E=NaN;for(p=C.length-1;p>-1;p--)if(C[p].drop)C.splice(p,1);else{C[p].value=we(C[p].value,e);var j=e.c2p(C[p].value);(z?E>j-P:E<j+P)?C.splice(s?p+1:p,1):E=j}}_e(e)&&360===Math.abs(r[1]-r[0])&&C.pop(),e._tmax=(C[C.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var R,F,B=[];for(p=0;p<C.length;p++){var H=C[p].minor,V=C[p].value;R=N.tickText(e,V,!1,H),void 0!==(F=C[p].periodX)&&(R.periodX=F,(F>d||F<c)&&(F>d&&(R.periodX=d),F<c&&(R.periodX=c),R.text=" ",e._prevDateHead="")),B.push(R)}return e._inCalcTicks=!1,B};var X=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],ee=[-.301,0,.301,.699,1],te=[15,30,45,90,180];function re(e,t,r){return t*l.roundUp(e/t,r)}function ae(e){var t=e.dtick;if(e._tickexponent=0,n(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var r=e.r2l(e.tick0),a=e.l2r(r).replace(/(^-|i)/g,""),i=a.length;if("M"===String(t).charAt(0))i>10||"01-01"!==a.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=M&&i<=10||t>=15*M)e._tickround="d";else if(t>=C&&i<=16||t>=L)e._tickround="M";else if(t>=I&&i<=19||t>=C)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(n(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);n(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),d=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>d&&(oe(e.exponentformat)&&!le(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ne(e,t,r){var a=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:a.size,font:a.family,fontColor:a.color}}N.autoTicks=function(e,t){var r;function a(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var i=2*t;if(i>y)t/=y,r=a(10),e.dtick="M"+12*re(t,r,X);else if(i>k)t/=k,e.dtick="M"+re(t,1,J);else if(i>M){e.dtick=re(t,M,e._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=N.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>L?e.dtick=re(t,L,J):i>C?e.dtick=re(t,C,K):i>I?e.dtick=re(t,I,K):(r=a(10),e.dtick=re(t,r,X))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var d=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/d,r=a(10),e.dtick="L"+re(t,r,X)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):_e(e)?(e.tick0=0,r=1,e.dtick=re(t,r,te)):(e.tick0=0,r=a(10),e.dtick=re(t,r,X));if(0===e.dtick&&(e.dtick=1),!n(e.dtick)&&"string"!=typeof e.dtick){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}},N.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(n(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var d="D2"===t?ee:$,u=e+.01*o,f=l.roundUp(l.mod(u,1),d,r);return Math.floor(u)+Math.log(a.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},N.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1]<i[0],s=o?Math.floor:Math.ceil,c=G(i)[0],d=e.dtick,u=r(e.tick0);if(n(d)){var f=s((c-u)/d)*d+u;return"category"!==e.type&&"multicategory"!==e.type||(f=l.constrain(f,0,e._categories.length-1)),f}var h=d.charAt(0),p=Number(d.substr(1));if("M"===h){for(var g,m,y,v=0,x=u;v<10;){if(((g=N.tickIncrement(x,d,o,e.calendar))-c)*(x-c)<=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),y=h+(Math.abs(Math.round(m))||1)*p,x=N.tickIncrement(x,y,m<0?!o:o,e.calendar),v++}return l.error("tickFirst did not converge",e),x}if("L"===h)return Math.log(s((Math.pow(10,c)-u)/p)*p+u)/Math.LN10;if("D"===h){var b="D2"===d?ee:$,_=l.roundUp(l.mod(c,1),b,o);return Math.floor(c)+Math.log(a.round(Math.pow(10,_),1))/Math.LN10}throw"unrecognized dtick "+String(d)},N.tickText=function(e,t,r,a){var i,o=ne(e,t),s="array"===e.tickmode,c=r||s,d=e.type,u="category"===d?e.d2l_noadd:e.d2l;if(s&&Array.isArray(e.ticktext)){var f=l.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-u(e.tickvals[i]))<h);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o}function p(a){if(void 0===a)return!0;if(r)return"none"===a;var n={first:e._tmin,last:e._tmax}[a];return"all"!==a&&t!==n}var g=r?"never":"none"!==e.exponentformat&&p(e.showexponent)?"hide":"";if("date"===d?function(e,t,r,a){var i=e._tickround,o=r&&e.hoverformat||N.getTickFormat(e);a&&(i=n(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,c=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),d=c.indexOf("\n");-1!==d&&(s=c.substr(d+1),c=c.substr(0,d));a&&("00:00:00"===c||"00:00"===c?(c=s,s=""):8===c.length&&(c=c.replace(/:00$/,"")));if(s)if(r)"d"===i?c+=", "+s:c=s+(c?", "+c:"");else if(e._inCalcTicks&&e._prevDateHead===s){var u=-1!==(e.ticklabelposition||"").indexOf("inside"),f=e._realSide||e.side;(!u&&"top"===f||u&&"bottom"===f)&&(c+="<br> ")}else e._prevDateHead=s,c+="<br>"+s;t.text=c}(e,o,r,c):"log"===d?function(e,t,r,a,i){var o=e.dtick,s=t.x,c=e.tickformat,d="string"==typeof o&&o.charAt(0);"never"===i&&(i="");a&&"L"!==d&&(o="L3",d="L");if(c||"L"===d)t.text=se(Math.pow(10,s),e,i,a);else if(n(o)||"D"===d&&l.mod(s+.01,1)<.1){var u=Math.round(s),f=Math.abs(u),h=e.exponentformat;"power"===h||oe(h)&&le(u)?(t.text=0===u?1:1===u?"10":"10<sup>"+(u>1?"":D)+f+"</sup>",t.fontSize*=1.25):("e"===h||"E"===h)&&f>2?t.text="1"+h+(u>0?"+":D)+f:(t.text=se(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==d)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var p=String(t.text).charAt(0);"0"!==p&&"1"!==p||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,g):"category"===d?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r="");t.text=String(r)}(e,o):"multicategory"===d?function(e,t,r){var a=Math.round(t.x),n=e._categories[a]||[],i=void 0===n[1]?"":String(n[1]),o=void 0===n[0]?"":String(n[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):_e(e)?function(e,t,r,a,n){if("radians"!==e.thetaunit||r)t.text=se(t.x,e,n,a);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}var r=function(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}(e),a=e*r,n=Math.abs(function e(r,a){return t(a,0)?r:e(a,r%a)}(a,r));return[Math.round(a/n),Math.round(r/n)]}(i);if(o[1]>=100)t.text=se(l.deg2rad(t.x),e,n,a);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["<sup>",o[0],"</sup>","⁄","<sub>",o[1],"</sub>","π"].join(""),s&&(t.text=D+t.text)}}}}(e,o,r,c,g):function(e,t,r,a,n){"never"===n?n="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide");t.text=se(t.x,e,n,a)}(e,o,0,c,g),a||(e.tickprefix&&!p(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!p(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var m=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[m(o.x-.5),m(o.x+e.dtick-.5)]}return o},N.hoverLabelText=function(e,t,r){if(r!==O&&r!==t)return N.hoverLabelText(e,t)+" - "+N.hoverLabelText(e,r);var a="log"===e.type&&t<=0,n=N.tickText(e,e.c2l(a?-t:t),"hover").text;return a?0===t?"0":D+n:n};var ie=["f","p","n","μ","m","","k","M","G","T"];function oe(e){return"SI"===e||"B"===e}function le(e){return e>14||e<-15}function se(e,t,r,a){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,d=N.getTickFormat(t),u=t.separatethousands;if(a){var f={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:n(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ae(f),o=(Number(f._tickround)||0)+4,c=f._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return t._numFormat(d)(e).replace(/-/g,D);var h,p=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,c&&(e*=Math.pow(10,-c),o+=c),0===o)e=String(Math.floor(e));else if(o<0){e=(e=String(Math.round(e))).substr(0,e.length+o);for(var g=o;g<0;g++)e+="0"}else{var m=(e=String(e)).indexOf(".")+1;m&&(e=e.substr(0,m+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,u)}c&&"hide"!==s&&(oe(s)&&le(c)&&(s="power"),h=c<0?D+-c:"power"!==s?"+"+c:String(c),"e"===s||"E"===s?e+=s+h:"power"===s?e+="×10<sup>"+h+"</sup>":"B"===s&&9===c?e+="B":oe(s)&&(e+=ie[c/3+5]));return i?D+e:e}function ce(e,t){for(var r=[],a={},n=0;n<t.length;n++){var i=t[n];a[i.text2]?a[i.text2].push(i.x):a[i.text2]=[i.x]}for(var o in a)r.push(ne(e,l.interp(a[o],.5),o));return r}function de(e){return void 0!==e.periodX?e.periodX:e.x}function ue(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function fe(e){var t=e.title.font.size,r=(e.title.text.match(c.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r?t*(E+r*j):t*E:r?t*(r+1)*j:t}function he(e,t){var r=e.l2p(t);return r>1&&r<e._length-1}function pe(e){var t=a.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}function ge(e){return e._id+".automargin"}function me(e){return ge(e)+".mirror"}function ye(e){return e._id+".rangeslider"}function ve(e,t){for(var r=0;r<t.length;r++)-1===e.indexOf(t[r])&&e.push(t[r])}function xe(e,t,r){var a,n,i=[],o=[],s=e.layout;for(a=0;a<t.length;a++)i.push(N.getFromId(e,t[a]));for(a=0;a<r.length;a++)o.push(N.getFromId(e,r[a]));var c=Object.keys(h),d=["anchor","domain","overlaying","position","side","tickangle","editType"],u=["linear","log"];for(a=0;a<c.length;a++){var f=c[a],p=i[0][f],g=o[0][f],m=!0,y=!1,v=!1;if("_"!==f.charAt(0)&&"function"!=typeof p&&-1===d.indexOf(f)){for(n=1;n<i.length&&m;n++){var x=i[n][f];"type"===f&&-1!==u.indexOf(p)&&-1!==u.indexOf(x)&&p!==x?y=!0:x!==p&&(m=!1)}for(n=1;n<o.length&&m;n++){var b=o[n][f];"type"===f&&-1!==u.indexOf(g)&&-1!==u.indexOf(b)&&g!==b?v=!0:o[n][f]!==g&&(m=!1)}m&&(y&&(s[i[0]._name].type="linear"),v&&(s[o[0]._name].type="linear"),be(s,f,i,o,e._fullLayout._dfltTitle))}}for(a=0;a<e._fullLayout.annotations.length;a++){var _=e._fullLayout.annotations[a];-1!==t.indexOf(_.xref)&&-1!==r.indexOf(_.yref)&&l.swapAttrs(s.annotations[a],["?"])}}function be(e,t,r,a,n){var i,o=l.nestedProperty,s=o(e[r[0]._name],t).get(),c=o(e[a[0]._name],t).get();for("title"===t&&(s&&s.text===n.x&&(s.text=n.y),c&&c.text===n.y&&(c.text=n.x)),i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(c);for(i=0;i<a.length;i++)o(e,a[i]._name+"."+t).set(s)}function _e(e){return"angularaxis"===e._id}function we(e,t){for(var r=t._rangebreaks.length,a=0;a<r;a++){var n=t._rangebreaks[a];if(e>=n.min&&e<n.max)return n.max}return e}N.getTickFormat=function(e){var t,r,a,n,i,o,l,s;function c(e){return"string"!=typeof e?e:Number(e.replace("M",""))*k}function d(e,t){var r=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var a=r.indexOf(e.charAt(0)),n=r.indexOf(t.charAt(0));return a===n?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):a-n}return"number"==typeof e?1:-1}function u(e,t){var r=null===t[0],a=null===t[1],n=d(e,t[0])>=0,i=d(e,t[1])<=0;return(r||n)&&(a||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((a=e.tickformatstops[t]).enabled&&(n=e.dtick,i=a.dtickrange,o=void 0,l=void 0,s=void 0,o=c||function(e){return e},l=i[0],s=i[1],(!l&&"number"!=typeof l||o(l)<=o(n))&&(!s&&"number"!=typeof s||o(s)>=o(n)))){r=a;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((a=e.tickformatstops[t]).enabled&&u(e.dtick,a.dtickrange)){r=a;break}}return r?r.value:e.tickformat},N.getSubplots=function(e,t){var r=e._fullLayout._subplots,a=r.cartesian.concat(r.gl2d||[]),n=t?N.findSubplotsWithAxis(a,t):a;return n.sort((function(e,t){var r=e.substr(1).split("y"),a=t.substr(1).split("y");return r[0]===a[0]?+r[1]-+a[1]:+r[0]-+a[0]})),n},N.findSubplotsWithAxis=function(e,t){for(var r=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),a=[],n=0;n<e.length;n++){var i=e[n];r.test(i)&&a.push(i)}return a},N.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r,n,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=N.list(e,"x",!0),s=N.list(e,"y",!0),c=[];for(r=0;r<l.length;r++)for(c.push({x:l[r],y:o}),n=0;n<s.length;n++)0===r&&c.push({x:i,y:s[n]}),c.push({x:l[r],y:s[n]});var d=t._clips.selectAll(".axesclip").data(c,(function(e){return e.x._id+e.y._id}));d.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),d.exit().remove(),d.each((function(e){a.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},N.draw=function(e,t,r){var a=e._fullLayout;"redraw"===t&&a._paper.selectAll("g.subplot").each((function(e){var t=e[0],r=a._plots[t];if(r){var n=r.xaxis,i=r.yaxis;r.xaxislayer.selectAll("."+n._id+"tick").remove(),r.yaxislayer.selectAll("."+i._id+"tick").remove(),r.xaxislayer.selectAll("."+n._id+"tick2").remove(),r.yaxislayer.selectAll("."+i._id+"tick2").remove(),r.xaxislayer.selectAll("."+n._id+"divider").remove(),r.yaxislayer.selectAll("."+i._id+"divider").remove(),r.gridlayer&&r.gridlayer.selectAll("path").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll("path").remove(),a._infolayer.select(".g-"+n._id+"title").remove(),a._infolayer.select(".g-"+i._id+"title").remove()}}));var n=t&&"redraw"!==t?t:N.listIds(e);return l.syncOrAsync(n.map((function(t){return function(){if(t){var a=N.getFromId(e,t),n=N.drawOne(e,a,r);return a._r=a.range.slice(),a._rl=l.simpleMap(a._r,a.r2l),n}}})))},N.drawOne=function(e,t,r){var a,n,s;r=r||{},t.setScale();var c=e._fullLayout,h=t._id,p=h.charAt(0),g=N.counterLetter(h),m=c._plots[t._mainSubplot];if(m){var y=m[p+"axislayer"],v=t._mainLinePosition,x=t._mainMirrorPosition,b=t._vals=N.calcTicks(t),_=[t.mirror,v,x].join("_");for(a=0;a<b.length;a++)b[a].axInfo=_;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var w={};if(t.visible){var k,T,A=N.makeTransTickFn(t),M=N.makeTransTickLabelFn(t),S="inside"===t.ticks,L="outside"===t.ticks;if("boundaries"===t.tickson){var C=function(e,t){var r,a=[],n=function(e,t){var r=e.xbnd[t];null!==r&&a.push(l.extendFlat({},e,{x:r}))};if(t.length){for(r=0;r<t.length;r++)n(t[r],0);n(t[r-1],1)}return a}(0,b);T=N.clipEnds(t,C),k=S?T:C}else T=N.clipEnds(t,b),k=S&&"period"!==t.ticklabelmode?T:b;var I=t._gridVals=T,D=function(e,t){var r,a,n=[],i=t.length&&t[t.length-1].x<t[0].x,o=function(e,t){var r=e.xbnd[t];null!==r&&n.push(l.extendFlat({},e,{x:r}))};if(e.showdividers&&t.length){for(r=0;r<t.length;r++){var s=t[r];s.text2!==a&&o(s,i?1:0),a=s.text2}o(t[r-1],i?0:1)}return n}(t,b);if(!c._hasOnlyLargeSploms){var O=t._subplotsWith,z={};for(a=0;a<O.length;a++){n=O[a];var P=(s=c._plots[n])[g+"axis"],E=P._mainAxis._id;if(!z[E]){z[E]=1;var F="x"===p?"M0,"+P._offset+"v"+P._length:"M"+P._offset+",0h"+P._length;N.drawGrid(e,t,{vals:I,counterAxis:P,layer:s.gridlayer.select("."+h),path:F,transFn:A}),N.drawZeroLine(e,t,{counterAxis:P,layer:s.zerolinelayer,path:F,transFn:A})}}}var B=N.getTickSigns(t),H=[];if(t.ticks){var V,Z,G,U=N.makeTickPath(t,v,B[2]);if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(V=N.makeTickPath(t,x,B[3]),Z=U+V):(V="",Z=U),t.showdividers&&L&&"boundaries"===t.tickson){var W={};for(a=0;a<D.length;a++)W[D[a].x]=1;G=function(e){return W[e.x]?V:Z}}else G=Z;N.drawTicks(e,t,{vals:k,layer:y,path:G,transFn:A}),"allticks"===t.mirror&&(H=Object.keys(t._linepositions||{}))}for(a=0;a<H.length;a++){n=H[a],s=c._plots[n];var q=t._linepositions[n]||[],Y=N.makeTickPath(t,q[0],B[0])+N.makeTickPath(t,q[1],B[1]);N.drawTicks(e,t,{vals:k,layer:s[p+"axislayer"],path:Y,transFn:A})}var X=[];if(X.push((function(){return N.drawLabels(e,t,{vals:b,layer:y,transFn:M,labelFns:N.makeLabelFns(t,v)})})),"multicategory"===t.type){var J={x:2,y:10}[p];X.push((function(){var r={x:"height",y:"width"}[p],a=Q()[r]+J+(t._tickAngles[h+"tick"]?t.tickfont.size*j:0);return N.drawLabels(e,t,{vals:ce(t,b),layer:y,cls:h+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:N.makeLabelFns(t,v+a*B[4])})})),X.push((function(){return t._depth=B[4]*(Q("tick2")[t.side]-v),function(e,t,r){var a=t._id+"divider",n=r.vals,i=r.layer.selectAll("path."+a).data(n,ue);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(u.stroke,t.dividercolor).style("stroke-width",f.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",r.transFn).attr("d",r.path)}(e,t,{vals:D,layer:y,path:N.makeTickPath(t,v,B[4],t._depth),transFn:A})}))}else t.title.hasOwnProperty("standoff")&&X.push((function(){t._depth=B[4]*(Q()[t.side]-v)}));var K=o.getComponentMethod("rangeslider","isVisible")(t);return X.push((function(){var r,a,n,l,s=t.side.charAt(0),d=R[t.side].charAt(0),u=N.getPxPosition(e,t),f=L?t.ticklen:0;if((t.automargin||K)&&("multicategory"===t.type?r=Q("tick2"):(r=Q(),"x"===p&&"b"===s&&(t._depth=Math.max(r.width>0?r.bottom-u:0,f)))),t.automargin){a={x:0,y:0,r:0,l:0,t:0,b:0};var h=[0,1];if("x"===p){if("b"===s?a[s]=t._depth:(a[s]=t._depth=Math.max(r.width>0?u-r.top:0,f),h.reverse()),r.width>0){var m=r.right-(t._offset+t._length);m>0&&(a.xr=1,a.r=m);var y=t._offset-r.left;y>0&&(a.xl=0,a.l=y)}}else if("l"===s?a[s]=t._depth=Math.max(r.height>0?u-r.left:0,f):(a[s]=t._depth=Math.max(r.height>0?r.right-u:0,f),h.reverse()),r.height>0){var v=r.bottom-(t._offset+t._length);v>0&&(a.yb=0,a.b=v);var x=t._offset-r.top;x>0&&(a.yt=1,a.t=x)}a[g]="free"===t.anchor?t.position:t._anchorAxis.domain[h[0]],t.title.text!==c._dfltTitle[p]&&(a[s]+=fe(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((n={x:0,y:0,r:0,l:0,t:0,b:0})[d]=t.linewidth,t.mirror&&!0!==t.mirror&&(n[d]+=f),!0===t.mirror||"ticks"===t.mirror?n[g]=t._anchorAxis.domain[h[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(n[g]=[t._counterDomainMin,t._counterDomainMax][h[1]]))}K&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,ge(t),a),i.autoMargin(e,me(t),n),i.autoMargin(e,ye(t),l)})),r.skipTitle||K&&"bottom"===t.side||X.push((function(){return function(e,t){var r,a=e._fullLayout,n=t._id,i=n.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+fe(t);else{var l=-1!==(t.ticklabelposition||"").indexOf("inside");if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,u,h,p,g=N.getPxPosition(e,t);"x"===i?(u=t._offset+t._length/2,h="top"===t.side?g-r:g+r):(h=t._offset+t._length/2,u="right"===t.side?g+r:g-r,c={rotate:"-90",offset:0});if("multicategory"!==t.type){var m=t._selections[t._id+"tick"];if(p={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var y=f.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return d.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:a._dfltTitle[i],avoid:p,transform:c,attributes:{x:u,y:h,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(X)}}function Q(e){var r=h+(e||"tick");return w[r]||(w[r]=function(e,t){var r,a,n,i;e._selections[t].size()?(r=1/0,a=-1/0,n=1/0,i=-1/0,e._selections[t].each((function(){var e=pe(this),t=f.bBox(e.node().parentNode);r=Math.min(r,t.top),a=Math.max(a,t.bottom),n=Math.min(n,t.left),i=Math.max(i,t.right)}))):(r=0,a=0,n=0,i=0);return{top:r,bottom:a,left:n,right:i,height:a-r,width:i-n}}(t,r)),w[r]}},N.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],a=e.side===r?1:-1,n=[-1,1,a,-a];return"inside"!==e.ticks==("x"===t)&&(n=n.map((function(e){return-e}))),e.side&&n.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),n},N.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},N.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},a=r("top"),n=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||n||a||i;if(!s&&!l)return[0,0];var c=e.side,d=s?(e.tickwidth||0)/2:0,u=3,f=e.tickfont?e.tickfont.size:12;(o||a)&&(d+=f*E,u+=(e.linewidth||0)/2);(n||i)&&(d+=(e.linewidth||0)/2,u+=3);l&&"top"===c&&(u-=f*(1-E));(n||a)&&(d=-d);"bottom"!==c&&"right"!==c||(u=-u);return[s?d:0,l?u:0]}(e),r=t[0],a=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(de(t)),a)}:function(t){return s(a,r+e._offset+e.l2p(de(t)))}},N.makeTickPath=function(e,t,r,a){a=void 0!==a?a:e.ticklen;var n=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===n?"M0,"+(t+i*r)+"v"+a*r:"M"+(t+i*r)+",0h"+a*r},N.makeLabelFns=function(e,t,r){var a=e.ticklabelposition||"",i=function(e){return-1!==a.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),d=i("bottom")||s||o||c,u=i("inside"),f="inside"===a&&"inside"===e.ticks||!u&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,g=f?e.ticklen:0;if(u?g*=-1:d&&(g=0),f&&(h+=g,r)){var m=l.deg2rad(r);h=g*Math.cos(m)+1,p=g*Math.sin(m)}e.showticklabels&&(f||e.showline)&&(h+=.2*e.tickfont.size);var y,v,x,b,_,w={labelStandoff:h+=(e.linewidth||1)/2*(u?-1:1),labelShift:p},k=0,T=e.side,A=e._id.charAt(0),M=e.tickangle;if("x"===A)b=(_=!u&&"bottom"===T||u&&"top"===T)?1:-1,u&&(b*=-1),y=p*b,v=t+h*b,x=_?1:-.2,90===Math.abs(M)&&(u?x+=P:x=-90===M&&"bottom"===T?E:90===M&&"top"===T?P:.5,k=P/2*(M/90)),w.xFn=function(e){return e.dx+y+k*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*x},w.anchorFn=function(e,t){if(d){if(s)return"end";if(c)return"start"}return n(t)&&0!==t&&180!==t?t*b<0!==u?"end":"start":"middle"},w.heightFn=function(t,r,a){return r<-60||r>60?-.5*a:"top"===e.side!==u?-a:0};else if("y"===A){if(b=(_=!u&&"left"===T||u&&"right"===T)?1:-1,u&&(b*=-1),y=h,v=p*b,x=0,u||90!==Math.abs(M)||(x=-90===M&&"left"===T||90===M&&"right"===T?E:.5),u){var S=n(M)?+M:0;if(0!==S){var L=l.deg2rad(S);k=Math.abs(Math.sin(L))*E*b,x=0}}w.xFn=function(e){return e.dx+t-(y+e.fontSize*x)*b+k*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*P},w.anchorFn=function(e,t){return n(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,a){return"right"===e.side&&(r*=-1),r<-30?-a:r<30?-.5*a:0}}return w},N.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",n=r.vals;"period"===t.ticklabelmode&&(n=n.slice()).shift();var i=r.layer.selectAll("path."+a).data(t.ticks?n:[],ue);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(u.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path),i.attr("transform",r.transFn)},N.drawGrid=function(e,t,r){r=r||{};var a=t._id+"grid",n=r.vals,i=r.counterAxis;if(!1===t.showgrid)n=[];else if(i&&N.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;l<n.length;l++){var s=n[l].x;if(o?!s:Math.abs(s)<t.dtick/100){if(n=n.slice(0,l).concat(n.slice(l+1)),!o)break;l--}}var c=r.layer.selectAll("path."+a).data(n,ue);c.exit().remove(),c.enter().append("path").classed(a,1).classed("crisp",!1!==r.crisp),t._gw=f.crispRound(e,t.gridwidth,1),c.attr("transform",r.transFn).attr("d",r.path).call(u.stroke,t.gridcolor||"#ddd").style("stroke-width",t._gw+"px"),"function"==typeof r.path&&c.attr("d",r.path)},N.drawZeroLine=function(e,t,r){r=r||r;var a=t._id+"zl",n=N.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+a).data(n?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",!1!==r.crisp).each((function(){r.layer.selectAll("path").sort((function(e,t){return H(e.id,t.id)}))})),i.attr("transform",r.transFn).attr("d",r.path).call(u.stroke,t.zerolinecolor||u.defaultLine).style("stroke-width",f.crispRound(e,t.zerolinewidth,t._gw||1)+"px")},N.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,o=t._id,d=o.charAt(0),u=r.cls||o+"tick",h=r.vals,p=r.labelFns,g=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[u],y=r.layer.selectAll("g."+u).data(t.showticklabels?h:[],ue),v=[];function x(e,i){var o=-1!==(t.ticklabelposition||"").indexOf("inside");e.each((function(e){var l=a.select(this),d=l.select(".text-math-group"),u=p.anchorFn(e,i),h=r.transFn.call(l.node(),e)+(n(i)&&0!=+i?" rotate("+i+","+p.xFn(e)+","+(p.yFn(e)-e.fontSize/2)+")":""),g=c.lineCount(l),m=j*e.fontSize,y=p.heightFn(e,n(i)?+i:0,(g-1)*m);if(y&&(h+=s(0,y)),d.empty()){var v=l.select("text");v.attr({transform:h,"text-anchor":u}),o&&(v.style({opacity:100}),t._hideOutOfRangeInsideTickLabels&&t._hideOutOfRangeInsideTickLabels())}else{var x=f.bBox(d.node()).width*{end:-.5,start:.5}[u];d.attr("transform",h+s(x,0))}}))}y.enter().append("g").classed(u,1).append("text").attr("text-anchor","middle").each((function(t){var r=a.select(this),n=e._promises.length;r.call(c.positionText,p.xFn(t),p.yFn(t)).call(f.font,t.font,t.fontSize,t.fontColor).text(t.text).call(c.convertToTspans,e),e._promises[n]?v.push(e._promises.pop().then((function(){x(r,g)}))):x(r,g)})),y.exit().remove(),r.repositionOnUpdate&&y.each((function(e){a.select(this).select("text").call(c.positionText,p.xFn(e),p.yFn(e))})),t._hideOutOfRangeInsideTickLabels=void 0,-1!==(t.ticklabelposition||"").indexOf("inside")&&(t._hideOutOfRangeInsideTickLabels=function(){var e=l.simpleMap(t.range,t.r2l),r=t.l2p(e[0]),n=t.l2p(e[1]),i=Math.min(r,n)+t._offset,o=Math.max(r,n)+t._offset,s="x"===t._id.charAt(0);y.each((function(e){var r=a.select(this);if(r.select(".text-math-group").empty()){var n=f.bBox(r.node()),l=!1;s?(n.right>o||n.left<i)&&(l=!0):(n.bottom>o||n.top+(t.tickangle?0:e.fontSize/4)<i)&&(l=!0),l&&r.select("text").style({opacity:0})}}))}),x(y,m+1?m:g);var b=null;t._selections&&(t._selections[u]=y);var _=[function(){return v.length&&Promise.all(v)}];t.automargin&&i._redrawFromAutoMarginCount&&90===m?(b=90,_.push((function(){x(y,m)}))):_.push((function(){if(x(y,g),h.length&&"x"===d&&!n(g)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=0;var e,a=0,i=[];if(y.each((function(e){a=Math.max(a,e.fontSize);var r=t.l2p(e.x),n=pe(this),o=f.bBox(n.node());i.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=h.length,s=Math.abs((h[o-1].x-h[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",u=function(e){return-1!==c.indexOf(e)},p=u("top"),m=u("left"),v=u("right"),_=u("bottom")||m||p||v?(t.tickwidth||0)+6:0,w=s<2.5*a||"multicategory"===t.type;for(e=0;e<i.length-1;e++)if(l.bBoxIntersect(i[e],i[e+1],_)){b=w?90:30;break}}else{var k=2;for(t.ticks&&(k+=t.tickwidth/2),e=0;e<i.length;e++){var T=h[e].xbnd,A=i[e];if(null!==T[0]&&A.left-t.l2p(T[0])<k||null!==T[1]&&t.l2p(T[1])-A.right<k){b=90;break}}}b&&x(y,b)}})),t._tickAngles&&_.push((function(){t._tickAngles[u]=null===b?n(g)?g:0:b}));var w=t._anchorAxis;w&&w.autorange&&-1!==(t.ticklabelposition||"").indexOf("inside")&&!V(i,t._id)&&(i._insideTickLabelsAutorange||(i._insideTickLabelsAutorange={}),i._insideTickLabelsAutorange[w._name+".autorange"]=w.autorange,_.push((function(){y.each((function(e,r){var a=pe(this);t._vals[r].bb=f.bBox(a.node())}))})));var k=l.syncOrAsync(_);return k&&k.then&&e._promises.push(k),k},N.getPxPosition=function(e,t){var r,a=e._fullLayout._size,n=t._id.charAt(0),i=t.side;return"free"!==t.anchor?r=t._anchorAxis:"x"===n?r={_offset:a.t+(1-(t.position||0))*a.h,_length:0}:"y"===n&&(r={_offset:a.l+(t.position||0)*a.w,_length:0}),"top"===i||"left"===i?r._offset:"bottom"===i||"right"===i?r._offset+r._length:void 0},N.shouldShowZeroLine=function(e,t,r){var a=l.simpleMap(t.range,t.r2l);return a[0]*a[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===O)&&(he(t,0)||!function(e,t,r,a){var n=r._mainAxis;if(!n)return;var i=e._fullLayout,o=t._id.charAt(0),l=N.counterLetter(t._id),s=t._offset+(Math.abs(a[0])<Math.abs(a[1])==("x"===o)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var r=Math.max((e.linewidth+t.zerolinewidth)/2,1);function a(e){return"number"==typeof e&&Math.abs(e-s)<r}if(a(e._mainLinePosition)||a(e._mainMirrorPosition))return!0;var n=e._linepositions||{};for(var i in n)if(a(n[i][0])||a(n[i][1]))return!0}var d=i._plots[r._mainSubplot];if(!(d.mainplotinfo||d).overlays.length)return c(r);for(var u=N.list(e,l),f=0;f<u.length;f++){var h=u[f];if(h._mainAxis===n&&c(h))return!0}}(e,t,r,a)||function(e,t){for(var r=e._fullData,a=t._mainSubplot,n=t._id.charAt(0),i=0;i<r.length;i++){var l=r[i];if(!0===l.visible&&l.xaxis+l.yaxis===a){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[n])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===n)return!0}}return!1}(e,t))},N.clipEnds=function(e,t){return t.filter((function(t){return he(e,t.x)}))},N.allowAutoMargin=function(e){for(var t=N.list(e,"",!0),r=0;r<t.length;r++){var a=t[r];a.automargin&&(i.allowAutoMargin(e,ge(a)),a.mirror&&i.allowAutoMargin(e,me(a))),o.getComponentMethod("rangeslider","isVisible")(a)&&i.allowAutoMargin(e,ye(a))}},N.swap=function(e,t){for(var r=function(e,t){var r,a,n=[];for(r=0;r<t.length;r++){var i=[],o=e._fullData[t[r]].xaxis,l=e._fullData[t[r]].yaxis;if(o&&l){for(a=0;a<n.length;a++)-1===n[a].x.indexOf(o)&&-1===n[a].y.indexOf(l)||i.push(a);if(i.length){var s,c=n[i[0]];if(i.length>1)for(a=1;a<i.length;a++)s=n[i[a]],ve(c.x,s.x),ve(c.y,s.y);ve(c.x,[o]),ve(c.y,[l])}else n.push({x:[o],y:[l]})}}return n}(e,t),a=0;a<r.length;a++)xe(e,r[a].x,r[a].y)}},C3fs:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("6AZA").BADNUM,o=n.isArrayOrTypedArray,l=n.isDateTime,s=n.cleanNumber,c=Math.round;function d(e,t){return t?a(e):"number"==typeof e}function u(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,r){var n=e,f=r.noMultiCategory;if(o(n)&&!n.length)return"-";if(!f&&function(e){return o(e[0])&&o(e[1])}(n))return"multicategory";if(f&&Array.isArray(n[0])){for(var h=[],p=0;p<n.length;p++)if(o(n[p]))for(var g=0;g<n[p].length;g++)h.push(n[p][g]);n=h}if(function(e,t){for(var r=e.length,n=u(r),i=0,o=0,s={},d=0;d<r;d+=n){var f=c(d),h=e[f],p=String(h);s[p]||(s[p]=1,l(h,t)&&i++,a(h)&&o++)}return i>2*o}(n,t))return"date";var m="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,a=u(r),n=0,o=0,l={},d=0;d<r;d+=a){var f=c(d),h=e[f],p=String(h);if(!l[p]){l[p]=1;var g=typeof h;"boolean"===g?o++:(t?s(h)!==i:"number"===g)?n++:"string"===g&&o++}}return o>2*n}(n,m)?"category":function(e,t){for(var r=e.length,a=0;a<r;a++)if(d(e[a],t))return!0;return!1}(n,m)?"linear":"-"}},Cb1W:function(e,t,r){"use strict";var a=r("IVx0").hasColorscale,n=r("OqjQ"),i=r("3oHU");e.exports=function(e,t){i.hasLines(t)&&a(t,"line")&&n(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(a(t,"marker")&&n(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a(t,"marker.line")&&n(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},Cluh:function(e,t,r){"use strict";var a=r("0RW4");e.exports=function(e,t,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var n=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",a.contrast(n)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},DDk4:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("Nx4I"),o=r("BkK/"),l=r("QkuE"),s=r("bcxm"),c=r("wAWO"),d=r("lUdJ"),u=r("WRPy");function f(e,t,r,l,s){var c,d,u,h,p,g,m,y=l+"bins",v=e._fullLayout,x=t["_"+l+"bingroup"],b=v._histogramBinOpts[x],_="overlay"===v.barmode,w=function(e){return r.r2c(e,0,h)},k=function(e){return r.c2r(e,0,h)},T="date"===r.type?function(e){return e||0===e?n.cleanDate(e,null,h):null}:function(e){return a(e)?Number(e):null};function A(e,t,r){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=r[e])):(g[e]=t[e]=r[e],n.nestedProperty(d[0],y+"."+e).set(r[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{d=b.traces;var M=[],S=!0,L=!1,C=!1;for(c=0;c<d.length;c++)if((u=d[c]).visible){var I=b.dirs[c];p=u["_"+I+"pos0"]=r.makeCalcdata(u,I),M=n.concat(M,p),delete u["_"+l+"autoBinFinished"],!0===t.visible&&(S?S=!1:(delete u._autoBin,u["_"+l+"autoBinFinished"]=1),i.traceIs(u,"2dMap")&&(L=!0),"histogram2dcontour"===u.type&&(C=!0))}h=d[0][l+"calendar"];var D=o.autoBin(M,r,b.nbins,L,h,b.sizeFound&&b.size),O=d[0]._autoBin={};if(g=O[b.dirs[0]]={},C&&(b.size||(D.start=k(o.tickIncrement(w(D.start),D.size,!0,h))),void 0===b.end&&(D.end=k(o.tickIncrement(w(D.end),D.size,!1,h)))),_&&!i.traceIs(t,"2dMap")&&0===D._dataSpan&&"category"!==r.type&&"multicategory"!==r.type){if(s)return[D,p,!0];D=function(e,t,r,a,i){var o,l,s,c=e._fullLayout,d=function(e,t){for(var r=t.xaxis,a=t.yaxis,n=t.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];"histogram"===s.type&&!0===s.visible&&s.orientation===n&&s.xaxis===r&&s.yaxis===a&&i.push(s)}return i}(e,t),u=!1,h=1/0,p=[t];for(o=0;o<d.length;o++)if((l=d[o])===t)u=!0;else if(u){var g=f(e,l,r,a,!0),m=g[0],y=g[2];l["_"+a+"autoBinFinished"]=1,l["_"+a+"pos0"]=g[1],y?p.push(l):h=Math.min(h,m.size)}else s=c._histogramBinOpts[l["_"+a+"bingroup"]],h=Math.min(h,s.size||l[i].size);var v=new Array(p.length);for(o=0;o<p.length;o++)for(var x=p[o]["_"+a+"pos0"],b=0;b<x.length;b++)if(void 0!==x[b]){v[o]=x[b];break}isFinite(h)||(h=n.distinctVals(v).minDiff);for(o=0;o<p.length;o++){var _=(l=p[o])[a+"calendar"],w={start:r.c2r(v[o]-h/2,0,_),end:r.c2r(v[o]+h/2,0,_),size:h};l._input[i]=l[i]=w,(s=c._histogramBinOpts[l["_"+a+"bingroup"]])&&n.extendFlat(s,w)}return t[i]}(e,t,r,l,y)}(m=u.cumulative||{}).enabled&&"include"!==m.currentbin&&("decreasing"===m.direction?D.start=k(o.tickIncrement(w(D.start),D.size,!0,h)):D.end=k(o.tickIncrement(w(D.end),D.size,!1,h))),b.size=D.size,b.sizeFound||(g.size=D.size,n.nestedProperty(d[0],y+".size").set(D.size)),A("start",b,D),A("end",b,D)}p=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var z=t._input[y]||{},P=n.extendFlat({},b),E=b.start,j=r.r2l(z.start),R=void 0!==j;if((b.startFound||R)&&j!==r.r2l(E)){var N=R?j:n.aggNums(Math.min,null,p),F={type:"category"===r.type||"multicategory"===r.type?"linear":r.type,r2l:r.r2l,dtick:b.size,tick0:E,calendar:h,range:[N,o.tickIncrement(N,b.size,!1,h)].map(r.l2r)},B=o.tickFirst(F);B>r.r2l(N)&&(B=o.tickIncrement(B,b.size,!0,h)),P.start=r.l2r(B),R||n.nestedProperty(t,y+".start").set(P.start)}var H=b.end,V=r.r2l(z.end),Z=void 0!==V;if((b.endFound||Z)&&V!==r.r2l(H)){var G=Z?V:n.aggNums(Math.max,null,p);P.end=r.l2r(G),Z||n.nestedProperty(t,y+".start").set(P.end)}var U="autobin"+l;return!1===t._input[U]&&(t._input[y]=n.extendFlat({},t[y]||{}),delete t._input[U],delete t[U]),[P,p]}e.exports={calc:function(e,t){var r,i,h,p,g=[],m=[],y=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),v="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[v],b=t[v+"calendar"],_=t.cumulative,w=f(e,t,y,v),k=w[0],T=w[1],A="string"==typeof k.size,M=[],S=A?M:k,L=[],C=[],I=[],D=0,O=t.histnorm,z=t.histfunc,P=-1!==O.indexOf("density");_.enabled&&P&&(O=O.replace(/ ?density$/,""),P=!1);var E,j="max"===z||"min"===z?null:0,R=s.count,N=c[O],F=!1,B=function(e){return y.r2c(e,0,b)};for(n.isArrayOrTypedArray(t[x])&&"count"!==z&&(E=t[x],F="avg"===z,R=s[z]),r=B(k.start),h=B(k.end)+(r-o.tickIncrement(r,k.size,!1,b))/1e6;r<h&&g.length<1e6&&(i=o.tickIncrement(r,k.size,!1,b),g.push((r+i)/2),m.push(j),I.push([]),M.push(r),P&&L.push(1/(i-r)),F&&C.push(0),!(i<=r));)r=i;M.push(r),A||"date"!==y.type||(S={start:B(S.start),end:B(S.end),size:S.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var H=t["_"+v+"bingroup"],V={leftGap:1/0,rightGap:1/0};H&&(e._fullLayout._roundFnOpts[H]||(e._fullLayout._roundFnOpts[H]=V),V=e._fullLayout._roundFnOpts[H]);var Z,G=m.length,U=!0,W=V.leftGap,q=V.rightGap,Y={};for(r=0;r<T.length;r++){var X=T[r];(p=n.findBin(X,S))>=0&&p<G&&(D+=R(p,r,m,E,C),U&&I[p].length&&X!==T[I[p][0]]&&(U=!1),I[p].push(r),Y[r]=p,W=Math.min(W,X-M[p]),q=Math.min(q,M[p+1]-X))}V.leftGap=W,V.rightGap=q,U||(Z=function(t,r){return function(){var a=e._fullLayout._roundFnOpts[H];return u(a.leftGap,a.rightGap,M,y,b)(t,r)}}),F&&(D=d(m,C)),N&&N(m,D,L),_.enabled&&function(e,t,r){var a,n,i;function o(t){i=e[t],e[t]/=2}function l(t){n=e[t],e[t]=i+n/2,i+=n}if("half"===r)if("increasing"===t)for(o(0),a=1;a<e.length;a++)l(a);else for(o(e.length-1),a=e.length-2;a>=0;a--)l(a);else if("increasing"===t){for(a=1;a<e.length;a++)e[a]+=e[a-1];"exclude"===r&&(e.unshift(0),e.pop())}else{for(a=e.length-2;a>=0;a--)e[a]+=e[a+1];"exclude"===r&&(e.push(0),e.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r<J;r++)if(m[r]){Q=r;break}for(r=J-1;r>=Q;r--)if(m[r]){$=r;break}for(r=Q;r<=$;r++)if(a(g[r])&&a(m[r])){var ee={p:g[r],s:m[r],b:0};_.enabled||(ee.pts=I[r],U?ee.ph0=ee.ph1=I[r].length?T[I[r][0]]:g[r]:(t._computePh=!0,ee.ph0=Z(M[r]),ee.ph1=Z(M[r+1],!0))),K.push(ee)}return 1===K.length&&(K[0].width1=o.tickIncrement(K[0].p,k.size,!1,b)-K[0].p),l(K,t),n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(K,t,Y),K},calcAllAutoBins:f}},DDrG:function(e,t,r){"use strict";var a=r("/CZE").maxRowLength;e.exports=function(e){var t,r,n,i,o,l,s,c,d=[],u={},f=[],h=e[0],p=[],g=[0,0,0],m=a(e);for(r=0;r<e.length;r++)for(t=p,p=h,h=e[r+1]||[],n=0;n<m;n++)void 0===p[n]&&((l=(void 0!==p[n-1]?1:0)+(void 0!==p[n+1]?1:0)+(void 0!==t[n]?1:0)+(void 0!==h[n]?1:0))?(0===r&&l++,0===n&&l++,r===e.length-1&&l++,n===p.length-1&&l++,l<4&&(u[[r,n]]=[r,n,l]),d.push([r,n,l])):f.push([r,n]));for(;f.length;){for(s={},c=!1,o=f.length-1;o>=0;o--)(l=((u[[(r=(i=f[o])[0])-1,n=i[1]]]||g)[2]+(u[[r+1,n]]||g)[2]+(u[[r,n-1]]||g)[2]+(u[[r,n+1]]||g)[2])/20)&&(s[i]=[r,n,l],f.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)u[i]=s[i],d.push(s[i])}return d.sort((function(e,t){return t[2]-e[2]}))}},DOzC:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE").isArrayOrTypedArray,i=r("6AZA").BADNUM,o=r("Nx4I"),l=r("BkK/"),s=r("at2O").getAxisGroup,c=r("iyXT");function d(e,t,r,o,d){if(o.length){var b,_,w,k;switch(function(e,t){var r,i;for(r=0;r<t.length;r++){var o,l=t[r],s=l[0].trace,c="funnel"===s.type?s._base:s.base,d="h"===s.orientation?s.xcalendar:s.ycalendar,u="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(n(c)){for(i=0;i<Math.min(c.length,l.length);i++)o=u(c[i],0,d),a(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=u(c,0,d);var f=a(o);for(o=f?o:0,i=0;i<l.length;i++)l[i].b=o,f&&(l[i].hasB=1)}}}(r,o),d.mode){case"overlay":u(t,r,o,d);break;case"group":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.offset?_.push(k):b.push(k);_.length&&function(e,t,r,a,n){var o=new c(a,{sepNegVal:!1,overlapNoMerge:!n.norm});(function(e,t,r,a){for(var n=e._fullLayout,i=r.positions,o=r.distinctPositions,l=r.minDiff,c=r.traces,d=c.length,u=i.length!==o.length,f=l*(1-a.gap),m=s(n,t._id)+c[0][0].trace.orientation,y=n._alignmentOpts[m]||{},v=0;v<d;v++){var x,b,_=c[v],w=_[0].trace,k=y[w.alignmentgroup]||{},T=Object.keys(k.offsetGroups||{}).length,A=(x=T?f/T:u?f/d:f)*(1-(a.groupgap||0));b=T?((2*w._offsetIndex+1-T)*x-A)/2:u?((2*v+1-d)*x-A)/2:-A/2;var M=_[0].t;M.barwidth=A,M.poffset=b,M.bargroupwidth=f,M.bardelta=l}r.binWidth=c[0][0].t.barwidth/100,h(r),p(t,r),g(t,r,u)})(e,t,o,n),function(e){for(var t=e.traces,r=0;r<t.length;r++){var a=t[r];if(void 0===a[0].trace.base)for(var n=new c([a],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o<a.length;o++){var l=a[o];if(l.p!==i){var s=n.put(l.p,l.b+l.s);s&&(l.b=s)}}}}(o),n.norm?(y(o),v(r,o,n)):m(r,o)}(e,t,r,_,d),b.length&&u(t,r,b,d);break;case"stack":case"relative":for(b=[],_=[],w=0;w<o.length;w++)void 0===(k=o[w])[0].trace.base?_.push(k):b.push(k);_.length&&function(e,t,r,a,n){var o=new c(a,{sepNegVal:"relative"===n.mode,overlapNoMerge:!(n.norm||"stack"===n.mode||"relative"===n.mode)});f(t,o,n),function(e,t,r){var a,n,o,s,c,d,u=x(e),f=t.traces;for(s=0;s<f.length;s++)if(a=f[s],"funnel"===(n=a[0].trace).type)for(c=0;c<a.length;c++)(d=a[c]).s!==i&&t.put(d.p,-.5*d.s);for(s=0;s<f.length;s++){a=f[s],n=a[0].trace,o="funnel"===n.type;var h=[];for(c=0;c<a.length;c++)if((d=a[c]).s!==i){var p;p=o?d.s:d.s+d.b;var g=t.put(d.p,p),m=g+p;d.b=g,d[u]=m,r.norm||(h.push(m),d.hasB&&h.push(g))}r.norm||(n._extremes[e._id]=l.findExtremes(e,h,{tozero:!0,padded:!0}))}}(r,o,n);for(var s=0;s<a.length;s++)for(var d=a[s],u=0;u<d.length;u++){var h=d[u];if(h.s!==i)h.b+h.s===o.get(h.p,h.s)&&(h._outmost=!0)}n.norm&&v(r,o,n)}(0,t,r,_,d),b.length&&u(t,r,b,d)}!function(e,t){var r,n,i,o=x(t),l={},s=1/0,c=-1/0;for(r=0;r<e.length;r++)for(i=e[r],n=0;n<i.length;n++){var d=i[n].p;a(d)&&(s=Math.min(s,d),c=Math.max(c,d))}var u=1e4/(c-s),f=l.round=function(e){return String(Math.round(u*(e-s)))};for(r=0;r<e.length;r++){(i=e[r])[0].t.extents=l;var h=i[0].t.poffset,p=Array.isArray(h);for(n=0;n<i.length;n++){var g=i[n],m=g[o]-g.w/2;if(a(m)){var y=g[o]+g.w/2,v=f(g.p);l[v]?l[v]=[Math.min(m,l[v][0]),Math.max(y,l[v][1])]:l[v]=[m,y]}g.p0=g.p+(p?h[n]:h),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,t)}}function u(e,t,r,a){for(var n=0;n<r.length;n++){var i=r[n],o=new c([i],{unitMinDiff:a.xCat||a.yCat,sepNegVal:!1,overlapNoMerge:!a.norm});f(e,o,a),a.norm?(y(o),v(t,o,a)):m(t,o)}}function f(e,t,r){for(var a=t.minDiff,n=t.traces,i=a*(1-r.gap),o=i*(1-(r.groupgap||0)),l=-o/2,s=0;s<n.length;s++){var c=n[s][0].t;c.barwidth=o,c.poffset=l,c.bargroupwidth=i,c.bardelta=a}t.binWidth=n[0][0].t.barwidth/100,h(t),p(e,t),g(e,t)}function h(e){var t,r,i=e.traces;for(t=0;t<i.length;t++){var o,l=i[t],s=l[0],c=s.trace,d=s.t,u=c._offset||c.offset,f=d.poffset;if(n(u)){for(o=Array.prototype.slice.call(u,0,l.length),r=0;r<o.length;r++)a(o[r])||(o[r]=f);for(r=o.length;r<l.length;r++)o.push(f);d.poffset=o}else void 0!==u&&(d.poffset=u);var h=c._width||c.width,p=d.barwidth;if(n(h)){var g=Array.prototype.slice.call(h,0,l.length);for(r=0;r<g.length;r++)a(g[r])||(g[r]=p);for(r=g.length;r<l.length;r++)g.push(p);if(d.barwidth=g,void 0===u){for(o=[],r=0;r<l.length;r++)o.push(f+(p-g[r])/2);d.poffset=o}}else void 0!==h&&(d.barwidth=h,void 0===u&&(d.poffset=f+(p-h)/2))}}function p(e,t){for(var r=t.traces,a=x(e),n=0;n<r.length;n++)for(var i=r[n],o=i[0].t,l=o.poffset,s=Array.isArray(l),c=o.barwidth,d=Array.isArray(c),u=0;u<i.length;u++){var f=i[u],h=f.w=d?c[u]:c;f[a]=f.p+(s?l[u]:l)+h/2}}function g(e,t,r){var a=t.traces,n=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],r);for(var i=0;i<a.length;i++){var o,s,c,d,u=a[i],f=u[0],h=f.trace,p=[];for(d=0;d<u.length;d++)s=(o=u[d]).p-n,c=o.p+n,p.push(s,c);if(h.width||h.offset){var g=f.t,m=g.poffset,y=g.barwidth,v=Array.isArray(m),x=Array.isArray(y);for(d=0;d<u.length;d++){o=u[d];var b=v?m[d]:m,_=x?y[d]:y;c=(s=o.p+b)+_,p.push(s,c)}}h._extremes[e._id]=l.findExtremes(e,p,{padded:!1})}}function m(e,t){for(var r=t.traces,a=x(e),n=0;n<r.length;n++){for(var i=r[n],o=i[0].trace,s=[],c=!1,d=0;d<i.length;d++){var u=i[d],f=u.b,h=f+u.s;u[a]=h,s.push(h),u.hasB&&s.push(f),u.hasB&&u.b||(c=!0)}o._extremes[e._id]=l.findExtremes(e,s,{tozero:c,padded:!0})}}function y(e){for(var t=e.traces,r=0;r<t.length;r++)for(var a=t[r],n=0;n<a.length;n++){var o=a[n];o.s!==i&&e.put(o.p,o.b+o.s)}}function v(e,t,r){var n=t.traces,o=x(e),s="fraction"===r.norm?1:100,c=s/1e9,d=e.l2c(e.c2l(0)),u="stack"===r.mode?s:d;function f(t){return a(e.c2l(t))&&(t<d-c||t>u+c||!a(d))}for(var h=0;h<n.length;h++){for(var p=n[h],g=p[0].trace,m=[],y=!1,v=!1,b=0;b<p.length;b++){var _=p[b];if(_.s!==i){var w=Math.abs(s/t.get(_.p,_.s));_.b*=w,_.s*=w;var k=_.b,T=k+_.s;_[o]=T,m.push(T),v=v||f(T),_.hasB&&(m.push(k),v=v||f(k)),_.hasB&&_.b||(y=!0)}}g._extremes[e._id]=l.findExtremes(e,m,{tozero:y,padded:v})}}function x(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var r=t.xaxis,a=t.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],c=[],u=0;u<i.length;u++){var f=i[u];if(!0===f.visible&&o.traceIs(f,"bar")&&f.xaxis===r._id&&f.yaxis===a._id&&("h"===f.orientation?s.push(l[u]):c.push(l[u]),f._computePh))for(var h=e.calcdata[u],p=0;p<h.length;p++)"function"==typeof h[p].ph0&&(h[p].ph0=h[p].ph0()),"function"==typeof h[p].ph1&&(h[p].ph1=h[p].ph1())}var g={xCat:"category"===r.type||"multicategory"===r.type,yCat:"category"===a.type||"multicategory"===a.type,mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};d(e,r,a,c,g),d(e,a,r,s,g)},setGroupPositions:d}},DdeV:function(e,t,r){"use strict";var a=r("kJIm").extendFlat,n=r("9Okp"),i=r("SFLx").scales,o="Note that `autocolorscale` must be true for this attribute to work.";e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,role:"style",editType:"calc",description:["Sets the default sequential colorscale for positive values.",o].join(" ")},sequentialminus:{valType:"colorscale",dflt:i.Blues,role:"style",editType:"calc",description:["Sets the default sequential colorscale for negative values.",o].join(" ")},diverging:{valType:"colorscale",dflt:i.RdBu,role:"style",editType:"calc",description:["Sets the default diverging colorscale.",o].join(" ")}},coloraxis:a({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},n("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},Df4R:function(e,t,r){"use strict";var a=r("+1rr"),n=r("EHyX").line,i=r("qHYo"),o=r("lNV6").hovertemplateAttrs,l=r("lNV6").texttemplateAttrs,s=r("VeuS"),c=r("kJIm").extendFlat,d=r("0RW4");function u(e){return{marker:{color:c({},a.marker.color,{arrayOk:!1,editType:"style",description:"Sets the marker color of all "+e+" values."}),line:{color:c({},a.marker.line.color,{arrayOk:!1,editType:"style",description:"Sets the line color of all "+e+" values."}),width:c({},a.marker.line.width,{arrayOk:!1,editType:"style",description:"Sets the line width of all "+e+" values."}),editType:"style"},editType:"style"},editType:"style"}}e.exports={measure:{valType:"data_array",dflt:[],role:"info",editType:"calc",description:["An array containing types of values.","By default the values are considered as 'relative'.","However; it is possible to use 'total' to compute the sums.","Also 'absolute' could be applied to reset the computed total","or to declare an initial value where needed."].join(" ")},base:{valType:"number",dflt:null,arrayOk:!1,role:"info",editType:"calc",description:["Sets where the bar base is drawn (in position axis units)."].join(" ")},x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,hovertext:a.hovertext,hovertemplate:o({},{keys:s.eventDataKeys}),hoverinfo:c({},i.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],role:"info",editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple waterfalls, totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label"])}),text:a.text,textposition:a.textposition,insidetextanchor:a.insidetextanchor,textangle:a.textangle,textfont:a.textfont,insidetextfont:a.insidetextfont,outsidetextfont:a.outsidetextfont,constraintext:a.constraintext,cliponaxis:a.cliponaxis,orientation:a.orientation,offset:a.offset,width:a.width,increasing:u("increasing"),decreasing:u("decreasing"),totals:u("intermediate sums and total"),connector:{line:{color:c({},n.color,{dflt:d.defaultLine}),width:c({},n.width,{editType:"plot"}),dash:n.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",role:"info",editType:"plot",description:["Sets the shape of connector lines."].join(" ")},visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if connector lines are drawn. "].join(" ")},editType:"plot"},offsetgroup:a.offsetgroup,alignmentgroup:a.alignmentgroup}},DrdO:function(e,t,r){"use strict";var a=r("/CZE"),n=r("Nx4I"),i=r("EHyX"),o=r("3mkv"),l=r("3oHU"),s=r("B28u"),c=r("V5Np"),d=r("a3ij"),u=r("UEdZ"),f=r("Wb4T"),h=r("6weB"),p=r("6feh"),g=r("OAL3");e.exports=function(e,t,r,m){function y(r,n){return a.coerce(e,t,i,r,n)}var v=s(e,t,m,y);if(v||(t.visible=!1),t.visible){c(e,t,m,y);var x=d(e,t,m,y),b=!x&&v<o.PTS_LINESONLY?"lines+markers":"lines";y("text"),y("hovertext"),y("mode",b),l.hasLines(t)&&(f(e,t,r,m,y),h(e,t,y),y("connectgaps"),y("line.simplify")),l.hasMarkers(t)&&u(e,t,r,m,y,{gradient:!0}),l.hasText(t)&&(y("texttemplate"),p(e,t,m,y));var _=[];(l.hasMarkers(t)||l.hasText(t))&&(y("cliponaxis"),y("marker.maxdisplayed"),_.push("points")),y("fill",x?x.fillDflt:"none"),"none"!==t.fill&&(g(e,t,r,y),l.hasLines(t)||h(e,t,y));var w=(t.line||{}).color,k=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||_.push("fills"),y("hoveron",_.join("+")||"points"),"fills"!==t.hoveron&&y("hovertemplate");var T=n.getComponentMethod("errorbars","supplyDefaults");T(e,t,w||k||r,{axis:"y"}),T(e,t,w||k||r,{axis:"x",inherit:"y"}),a.coerceSelectionMarkerOpacity(t,y)}}},DzeQ:function(e,t,r){"use strict";e.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},E4V0:function(e,t,r){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},E6B2:function(e,t,r){"use strict";var a=r("yUfG"),n=r("GbLo"),i=r("/CZE"),o=r("wlgE").makeColorScaleFuncFromTrace,l=r("hriN").makePullColorFn,s=r("hriN").generateExtendedColors,c=r("wlgE").calc,d=r("6AZA").ALMOST_EQUAL,u={},f={};t.calc=function(e,t){var r,s,u,f,h,p,g=e._fullLayout,m=t.ids,y=i.isArrayOrTypedArray(m),v=t.labels,x=t.parents,b=t.values,_=i.isArrayOrTypedArray(b),w=[],k={},T={},A=function(e){return e||"number"==typeof e},M=function(e){return!_||n(b[e])&&b[e]>=0};y?(r=Math.min(m.length,x.length),s=function(e){return A(m[e])&&M(e)},u=function(e){return String(m[e])}):(r=Math.min(v.length,x.length),s=function(e){return A(v[e])&&M(e)},u=function(e){return String(v[e])}),_&&(r=Math.min(r,b.length));for(var S=0;S<r;S++)if(s(S)){var L=u(S),C=A(x[S])?String(x[S]):"",I={i:S,id:L,pid:C,label:A(v[S])?String(v[S]):""};_&&(I.v=+b[S]),w.push(I),h=L,k[f=C]?k[f].push(h):k[f]=[h],T[h]=1}if(k[""]){if(k[""].length>1){for(var D=i.randstr(),O=0;O<w.length;O++)""===w[O].pid&&(w[O].pid=D);w.unshift({hasMultipleRoots:!0,id:D,pid:"",label:""})}}else{var z,P=[];for(z in k)T[z]||P.push(z);if(1!==P.length)return i.warn(["Multiple implied roots, cannot build",t.type,"hierarchy of",t.name+".","These roots include:",P.join(", ")].join(" "));z=P[0],w.unshift({hasImpliedRoot:!0,id:z,pid:"",label:z})}try{p=a.stratify().id((function(e){return e.id})).parentId((function(e){return e.pid}))(w)}catch(e){return i.warn(["Failed to build",t.type,"hierarchy of",t.name+".","Error:",e.message].join(" "))}var E=a.hierarchy(p),j=!1;if(_)switch(t.branchvalues){case"remainder":E.sum((function(e){return e.data.v}));break;case"total":E.each((function(e){var r=e.data.data,a=r.v;if(e.children){var n=e.children.reduce((function(e,t){return e+t.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&&(a=n),a<n*d)return j=!0,i.warn(["Total value for node",e.data.data.id,"of",t.name,"is smaller than the sum of its children.","\nparent value =",a,"\nchildren sum =",n].join(" "))}e.value=a}))}else!function e(t,r,a){var n=0,i=t.children;if(i){for(var o=i.length,l=0;l<o;l++)n+=e(i[l],r,a);a.branches&&n++}else a.leaves&&n++;t.value=t.data.data.value=n,r._values||(r._values=[]);return r._values[t.data.data.i]=n,n}(E,t,{branches:-1!==t.count.indexOf("branches"),leaves:-1!==t.count.indexOf("leaves")});if(!j){var R,N;t.sort&&E.sort((function(e,t){return t.value-e.value}));var F=t.marker.colors||[],B=!!F.length;return t._hasColorscale?(B||(F=_?t.values:t._values),c(e,t,{vals:F,containerStr:"marker",cLetter:"c"}),N=o(t.marker)):R=l(g["_"+t.type+"colormap"]),E.each((function(e){var r=e.data.data;r.color=t._hasColorscale?N(F[r.i]):R(F[r.i],r.id)})),w[0].hierarchy=E,w}},t._runCrossTraceCalc=function(e,t){var r=t._fullLayout,a=t.calcdata,n=r[e+"colorway"],i=r["_"+e+"colormap"];r["extend"+e+"colors"]&&(n=s(n,"treemap"===e?f:u));var o,l=0;function c(e){var t=e.data.data,r=t.id;!1===t.color&&(i[r]?t.color=i[r]:e.parent?e.parent.parent?t.color=e.parent.data.data.color:(i[r]=t.color=n[l%n.length],l++):t.color=o)}for(var d=0;d<a.length;d++){var h=a[d][0];h.trace.type===e&&h.hierarchy&&(o=h.trace.root.color,h.hierarchy.each(c))}},t.crossTraceCalc=function(e){return t._runCrossTraceCalc("sunburst",e)}},E6Qf:function(e,t,r){"use strict";var a=r("/CZE"),n=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:a.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:a.constrain(Math.floor(3*t),0,2),n[t][e]}},E8TZ:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("u3HJ"),i=r("PBw4"),o=r("dVlp"),l=r("I23g").eraseActiveShape,s=r("/CZE"),c=s._,d=e.exports={};function u(e,t){var r,n,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,d={},u=i.list(e,null,!0),f=c._cartesianSpikesEnabled;if("zoom"===l){var h,p="in"===s?.5:2,g=(1+p)/2,m=(1-p)/2;for(n=0;n<u.length;n++)if(!(r=u[n]).fixedrange)if(h=r._name,"auto"===s)d[h+".autorange"]=!0;else if("reset"===s){if(void 0===r._rangeInitial)d[h+".autorange"]=!0;else{var y=r._rangeInitial.slice();d[h+".range[0]"]=y[0],d[h+".range[1]"]=y[1]}void 0!==r._showSpikeInitial&&(d[h+".showspikes"]=r._showSpikeInitial,"on"!==f||r._showSpikeInitial||(f="off"))}else{var v=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*v[0]+m*v[1],g*v[1]+m*v[0]];d[h+".range[0]"]=r.l2r(x[0]),d[h+".range[1]"]=r.l2r(x[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),d[l]=s;c._cartesianSpikesEnabled=f,a.call("_guiRelayout",e,d)}function f(e,t){for(var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=n.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var d="pan"===i?i:"zoom";l.dragmode=d,a.call("_guiRelayout",e,l)}function h(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),n="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,l=o._subplots.gl3d||[],s={},c=0;c<l.length;c++){var d,u=l[c],f=u+".camera",h=u+".aspectratio",p=u+".aspectmode",g=o[u]._scene;n?(s[f+".up"]=g.viewInitial.up,s[f+".eye"]=g.viewInitial.eye,s[f+".center"]=g.viewInitial.center,d=!0):i&&(s[f+".up"]=null,s[f+".eye"]=null,s[f+".center"]=null,d=!0),d&&(s[h+".x"]=g.viewInitial.aspectratio.x,s[h+".y"]=g.viewInitial.aspectratio.y,s[h+".z"]=g.viewInitial.aspectratio.z,s[p]=g.viewInitial.aspectmode)}a.call("_guiRelayout",e,s)}function p(e,t){var r=t.currentTarget,a=r._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,r._previousVal=null;else{for(var c=0;c<i.length;c++){var d=i[c],u=n[d],f=d+".hovermode";l[f]=u.hovermode,s[f]=!1;for(var h=0;h<3;h++){var p=o[h],g=d+"."+p+".showspikes";s[g]=!1,l[g]=u[p].showspikes}}r._previousVal=l}return s}function g(e,t){for(var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],d=o[c];if("zoom"===n){var u=d.projection.scale,f="in"===i?2*u:.5*u;a.call("_guiRelayout",e,c+".projection.scale",f)}}"reset"===n&&x(e,"geo")}function m(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function y(e){var t=m(e);a.call("_guiRelayout",e,"hovermode",t)}function v(e,t){for(var r=t.currentTarget.getAttribute("data-val"),n=e._fullLayout,i=n._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=n[s].zoom,d="in"===r?1.05*c:c/1.05;o[s+".zoom"]=d}a.call("_guiRelayout",e,o)}function x(e,t){for(var r=e._fullLayout,n=r._subplots[t]||[],i={},o=0;o<n.length;o++)for(var l=n[o],s=r[l]._subplot.viewInitial,c=Object.keys(s),d=0;d<c.length;d++){var u=c[d];i[l+"."+u]=s[u]}a.call("_guiRelayout",e,i)}d.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(r[e]=t[e])})),a.call("downloadImage",e,r).then((function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},d.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){n.sendDataToCloud(e)}},d.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){n.sendDataToCloud(e)}},d.zoom2d={name:"zoom2d",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:u},d.pan2d={name:"pan2d",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:u},d.select2d={name:"select2d",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:u},d.lasso2d={name:"lasso2d",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:u},d.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:u},d.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:u},d.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:u},d.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:u},d.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:u},d.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},d.zoomIn2d={name:"zoomIn2d",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:u},d.zoomOut2d={name:"zoomOut2d",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:u},d.autoScale2d={name:"autoScale2d",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:u},d.resetScale2d={name:"resetScale2d",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:u},d.hoverClosestCartesian={name:"hoverClosestCartesian",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:u},d.hoverCompareCartesian={name:"hoverCompareCartesian",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:u},d.zoom3d={name:"zoom3d",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:f},d.pan3d={name:"pan3d",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:f},d.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:f},d.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:f},d.resetCameraDefault3d={name:"resetCameraDefault3d",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:h},d.resetCameraLastSave3d={name:"resetCameraLastSave3d",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:h},d.hoverClosest3d={name:"hoverClosest3d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=p(e,t);a.call("_guiRelayout",e,r)}},d.zoomInGeo={name:"zoomInGeo",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:g},d.zoomOutGeo={name:"zoomOutGeo",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:g},d.resetGeo={name:"resetGeo",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:g},d.hoverClosestGeo={name:"hoverClosestGeo",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},d.hoverClosestGl2d={name:"hoverClosestGl2d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},d.hoverClosestPie={name:"hoverClosestPie",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:y},d.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var n=e._fullData[r]._viewInitial;t["node.groups"].push(n.node.groups.slice()),t["node.x"].push(n.node.x.slice()),t["node.y"].push(n.node.y.slice())}a.call("restyle",e,t)}},d.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=p(e,t);r.hovermode=m(e),a.call("_guiRelayout",e,r)}},d.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),u(e,t),r.setAttribute("data-attr","resetLastSave"),h(e,t),x(e,"geo"),x(e,"mapbox")}},d.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===r?"off":"on",a.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,r=i.list(e,null,!0),a={},n=0;n<r.length;n++){var o=r[n];a[o._name+".showspikes"]=!!t||o._showSpikeInitial}return a}(e))}},d.resetViewMapbox={name:"resetViewMapbox",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},d.zoomInMapbox={name:"zoomInMapbox",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:v},d.zoomOutMapbox={name:"zoomOutMapbox",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:v}},EGun:function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;a.mergeArray(t.text,e,"tx"),a.mergeArray(t.texttemplate,e,"txt"),a.mergeArray(t.hovertext,e,"htx"),a.mergeArray(t.customdata,e,"data"),a.mergeArray(t.textposition,e,"tp"),t.textfont&&(a.mergeArrayCastPositive(t.textfont.size,e,"ts"),a.mergeArray(t.textfont.color,e,"tc"),a.mergeArray(t.textfont.family,e,"tf"));var n=t.marker;if(n){a.mergeArrayCastPositive(n.size,e,"ms"),a.mergeArrayCastPositive(n.opacity,e,"mo"),a.mergeArray(n.symbol,e,"mx"),a.mergeArray(n.color,e,"mc");var i=n.line;n.line&&(a.mergeArray(i.color,e,"mlc"),a.mergeArrayCastPositive(i.width,e,"mlw"));var o=n.gradient;o&&"none"!==o.type&&(a.mergeArray(o.type,e,"mgt"),a.mergeArray(o.color,e,"mgc"))}}},EHyX:function(e,t,r){"use strict";var a=r("lNV6").texttemplateAttrs,n=r("lNV6").hovertemplateAttrs,i=r("9Okp"),o=r("mEVB"),l=r("21T9").dash,s=r("g9E0"),c=r("3mkv"),d=r("kJIm").extendFlat;function u(e){return{valType:"any",dflt:0,role:"info",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M<n>* on the "+e+" axis.","Special values in the form of *M<n>* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function f(e){return{valType:"any",role:"info",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function h(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",role:"style",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,role:"info",editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,role:"info",editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,role:"info",editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,role:"info",editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:u("x"),yperiod:u("y"),xperiod0:f("x0"),yperiod0:f("y0"),xperiodalignment:h("x"),yperiodalignment:h("y"),stackgroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",role:"info",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",role:"info",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",role:"info",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",role:"info",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:a({},{}),hovertext:{valType:"string",role:"info",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],role:"info",editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+c.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],role:"info",editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:n({},{keys:c.eventDataKeys}),line:{color:{valType:"color",role:"style",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,role:"style",editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",role:"style",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,role:"style",editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:d({},l,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,role:"info",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],role:"style",editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",role:"style",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},marker:d({symbol:{valType:"enumerated",values:s.symbolList,dflt:"circle",arrayOk:!0,role:"style",editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,role:"style",editType:"style",anim:!0,description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,role:"style",editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,role:"style",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,role:"style",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",role:"info",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:d({width:{valType:"number",min:0,arrayOk:!0,role:"style",editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},i("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",role:"style",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,role:"style",editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},i("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",role:"style",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",role:"style",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},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,role:"style",editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:o({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."}),r:{valType:"data_array",editType:"calc",description:["r coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the radial coordinates","for legacy polar chart only."].join("")},t:{valType:"data_array",editType:"calc",description:["t coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the angular coordinates","for legacy polar chart only."].join("")}}},EsF5:function(e,t,r){"use strict";e.exports=function(){var e,t=[],r=-1,a=!1;function n(e,t){return e?(a=!0,e[t](),a=!1,this):this}return{add:function(e){return a||(t.splice(r+1,t.length-r),t.push(e),r=t.length-1),this},setCallback:function(t){e=t},undo:function(){var a=t[r];return a?(n(a,"undo"),r-=1,e&&e(a.undo),this):this},redo:function(){var a=t[r+1];return a?(n(a,"redo"),r+=1,e&&e(a.redo),this):this},clear:function(){t=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r<t.length-1},getCommands:function(){return t},getPreviousCommand:function(){return t[r-1]},getIndex:function(){return r}}}},FLbl:function(e,t,r){"use strict";var a=r("u0qo"),n=r("yzSc").overrideAll,i=r("plED").templatedArray;e.exports=n(i("annotation",{visible:a.visible,x:{valType:"any",role:"info",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",role:"info",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",role:"info",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",role:"info",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:a.xanchor,xshift:a.xshift,yanchor:a.yanchor,yshift:a.yshift,text:a.text,textangle:a.textangle,font:a.font,width:a.width,height:a.height,opacity:a.opacity,align:a.align,valign:a.valign,bgcolor:a.bgcolor,bordercolor:a.bordercolor,borderpad:a.borderpad,borderwidth:a.borderwidth,showarrow:a.showarrow,arrowcolor:a.arrowcolor,arrowhead:a.arrowhead,startarrowhead:a.startarrowhead,arrowside:a.arrowside,arrowsize:a.arrowsize,startarrowsize:a.startarrowsize,arrowwidth:a.arrowwidth,standoff:a.standoff,startstandoff:a.startstandoff,hovertext:a.hovertext,hoverlabel:a.hoverlabel,captureevents:a.captureevents}),"calc","from-root")},Fyky:function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4");e.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=n.opacity(l);i("borderpad");var c=i("borderwidth"),d=i("showarrow");if(i("text",d?" ":r._dfltTitle.annotation),i("textangle"),a.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),d){var u,f,h=i("arrowside");-1!==h.indexOf("end")&&(u=i("arrowhead"),f=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",u),i("startarrowsize",f)),i("arrowcolor",s?t.bordercolor:n.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),g=r.hoverlabel||{};if(p){var m=i("hoverlabel.bgcolor",g.bgcolor||(n.opacity(o)?n.rgb(o):n.defaultLine)),y=i("hoverlabel.bordercolor",g.bordercolor||n.contrast(m));a.coerceFont(i,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||y})}i("captureevents",!!p)}},G2oM:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("6AZA").BADNUM;e.exports=function(e,t,r,o){var l,s,c,d,u,f;function h(e){if(a(e))return+e}if(t&&t.transpose){for(l=0,u=0;u<e.length;u++)l=Math.max(l,e[u].length);if(0===l)return!1;c=function(e){return e.length},d=function(e,t,r){return(e[r]||[])[t]}}else l=e.length,c=function(e,t){return e[t].length},d=function(e,t,r){return(e[t]||[])[r]};var p=function(e,t,r){return t===i||r===i?i:d(e,t,r)};function g(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var r=e._id.charAt(0),a={},o=t["_"+r+"CategoryMap"]||t[r];for(u=0;u<o.length;u++)a[o[u]]=u;return function(t){var r=a[e._categories[t]];return r+1?r:i}}return n.identity}var m=g(r),y=g(o);o&&"category"===o.type&&(l=o._categories.length);var v=new Array(l);for(u=0;u<l;u++)for(s=r&&"category"===r.type?r._categories.length:c(e,u),v[u]=new Array(s),f=0;f<s;f++)v[u][f]=h(p(e,y(u),m(f)));return v}},G4gu:function(e,t,r){"use strict";var a=r("bljh"),n=r("rhNM"),i=r("7CC7"),o=r("Rgdr");function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t,r){var a="plotly.js-style-"+e,i=document.getElementById(a);i||((i=document.createElement("style")).setAttribute("id",a),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o.insertRule?o.insertRule(t+"{"+r+"}",0):o.addRule?o.addRule(t,r,0):n.warn("addStyleRule failed")}function c(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===r?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map((function(e){return+e}))}function d(e){for(var t=[];u(e);)t.push(e),e=e.parentNode;return t}function u(e){return e&&(e instanceof Element||e instanceof HTMLElement)}e.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=a.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:l,addStyleRule:function(e,t){s("global",e,t)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&l(r)},getFullTransformMatrix:function(e){var t=d(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach((function(e){var t=c(e);if(t){var a=i.convertCssMatrix(t);r=o.multiply(r,r,a)}})),r},getElementTransformMatrix:c,getElementAndAncestors:d,equalDomRects:function(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},G767:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("/CZE"),o=r("dVlp"),l=new DOMParser;function s(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=s.prototype;c.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===a.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=a.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(n),i.addRelatedStyleRule(n,l+"#"+n+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(n,"#"+n+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,d=this.locale!==r.locale;if(this.locale=r.locale,(s||c||d)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var u=this.getLogo();r.watermark&&(u.className=u.className+" watermark"),"v"===a.modebar.orientation?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var r=t.createGroup();e.forEach((function(e){var a=e.name;if(!a)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(a))throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var n=t.createButton(e);t.buttonElements.push(n),r.appendChild(n)})),t.element.appendChild(r)}))},c.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},c.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;void 0===n?n=e.name:"function"==typeof n&&(n=n(this.graphInfo)),(n||0===n)&&r.setAttribute("data-title",n),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),r.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&a.select(r).classed("active",!0);var l=e.icon;return"function"==typeof l?r.appendChild(l()):r.appendChild(this.createIcon(l||o.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},c.createIcon=function(e){var t,r=n(e.height)?Number(e.height):e.ascent-e.descent,a="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(a,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(a,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=l.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var n=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=a.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===n)}}))},c.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r){if(e[r].length!==t[r].length)return!1;for(var a=0;a<e[r].length;a++)if(e[r][a].name!==t[r][a].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly")),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},e.exports=function(e,t){var r=e._fullLayout,n=new s({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&a.select(n.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),n}},GHb7:function(e,t,r){"use strict";var a=r("JEGg"),n=r("Nx4I"),i=r("g9E0").dashStyle,o=r("0RW4"),l=r("pcRN"),s=r("xMdC").makeEventData,c=r("4htA"),d=c.freeMode,u=c.rectMode,f=c.drawMode,h=c.openMode,p=c.selectMode,g=r("ymS1"),m=r("s02k").handleEllipse,y=r("OyTQ"),v=r("/CZE"),x=r("tos6"),b=r("ffJW"),_=r("PBw4").getFromId,w=r("ghsG"),k=r("o5LV").redrawReglTraces,T=r("0wH6"),A=T.MINSELECT,M=x.filter,S=x.tester,L=r("6Ue+").clearSelect,C=r("rDM+"),I=C.p2r,D=C.axValue,O=C.getTransform;function z(e,t,r,a,n,i,o){var l,s,c,d,u,f,p,m,y,v=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(v)){R(e,t,i);var _=function(e,t){var r,a,n=e[0],i=-1,o=[];for(a=0;a<t.length;a++)if(r=t[a],n.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===n.hoverOnBox)break;void 0!==n.pointNumber?i=n.pointNumber:void 0!==n.binNumber&&(i=n.binNumber,o=n.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:r}}(v,l=F(t,r,a,n));if(_.pointNumbers.length>0?function(e,t){var r,a,n,i=[];for(n=0;n<e.length;n++)(r=e[n]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(a=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(n=0;n<t.pointNumbers.length;n++)if(a.selectedpoints.indexOf(t.pointNumbers[n])<0)return!1;return!0}return!1}(l,_):function(e){var t,r,a,n=0;for(a=0;a<e.length;a++)if(t=e[a],(r=t.cd[0].trace).selectedpoints){if(r.selectedpoints.length>1)return!1;if((n+=r.selectedpoints.length)>1)return!1}return 1===n}(l)&&(f=B(_))){for(o&&o.remove(),y=0;y<l.length;y++)(s=l[y])._module.selectPoints(s,!1);H(t,l),N(i),x&&t.emit("plotly_deselect",null)}else{for(p=e.shiftKey&&(void 0!==f?f:B(_)),c=function(e,t,r){return{pointNumber:e,searchInfo:t,subtract:r}}(_.pointNumber,_.searchInfo,p),d=j(i.selectionDefs.concat([c])),y=0;y<l.length;y++)if(u=V(l[y]._module.selectPoints(l[y],d),l[y]),b.length)for(var w=0;w<u.length;w++)b.push(u[w]);else b=u;if(H(t,l,m={points:b}),c&&i&&i.selectionDefs.push(c),o){var k=i.mergedPolygons,T=h(i.dragmode);g(Z(k,T),o,i)}x&&t.emit("plotly_selected",m)}}}function P(e){return"pointNumber"in e&&"searchInfo"in e}function E(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,r,a,n){var i=e.searchInfo.cd[0].trace._expandedIndex;return n.cd[0].trace._expandedIndex===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:e.subtract}}function j(e){for(var t=[],r=P(e[0])?0:e[0][0][0],a=r,n=P(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(P(e[o]))t.push(E(e[o]));else{var l=x.tester(e[o]);l.subtract=e[o].subtract,t.push(l),r=Math.min(r,l.xmin),a=Math.max(a,l.xmax),n=Math.min(n,l.ymin),i=Math.max(i,l.ymax)}return{xmin:r,xmax:a,ymin:n,ymax:i,pts:[],contains:function(e,r,a,n){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,r,a,n)&&(i=!1===t[o].subtract);return i},isRect:!1,degenerate:!1}}function R(e,t,r){t._fullLayout._drawing=!1;var a=t._fullLayout,n=r.plotinfo,i=r.dragmode,o=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,l=(e.shiftKey||e.altKey)&&!(f(i)&&h(i));o&&l&&n.selection&&n.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=n.selection.selectionDefs,r.mergedPolygons=n.selection.mergedPolygons):l&&n.selection||N(r),o||(L(t),a._lastSelectedSubplot=n.id)}function N(e){var t=e.dragmode,r=e.plotinfo,a=e.gd;if(a._fullLayout._activeShapeIndex>=0&&a._fullLayout._deactivateShape(a),f(t)){var i=a._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&a._fullLayout._drawing){var o=y(i,e);o&&n.call("_guiRelayout",a,{shapes:o}),a._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function F(e,t,r,a){var n,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o<e.calcdata.length;o++)if(!0===(i=(n=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!a||i.subplot!==a&&i.geo!==a)if("splom"===i.type&&i._xaxes[s[0]]&&i._yaxes[c[0]]){var d=f(i._module,n,t[0],r[0]);d.scene=e._fullLayout._splomScenes[i.uid],l.push(d)}else if("sankey"===i.type){var u=f(i._module,n,t[0],r[0]);l.push(u)}else{if(-1===s.indexOf(i.xaxis))continue;if(-1===c.indexOf(i.yaxis))continue;l.push(f(i._module,n,_(e,i.xaxis),_(e,i.yaxis)))}else l.push(f(i._module,n,t[0],r[0]));return l;function f(e,t,r,a){return{_module:e,cd:t,xaxis:r,yaxis:a}}}function B(e){var t=e.searchInfo.cd[0].trace,r=e.pointNumber,a=e.pointNumbers,n=a.length>0?a[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(n)>-1}function H(e,t,r){var a,i,o,l;for(a=0;a<t.length;a++){var s=t[a].cd[0].trace._fullInput,c=e._fullLayout._tracePreGUI[s.uid]||{};void 0===c.selectedpoints&&(c.selectedpoints=s._input.selectedpoints||null)}if(r){var d=r.points||[];for(a=0;a<t.length;a++)(l=t[a].cd[0].trace)._input.selectedpoints=l._fullInput.selectedpoints=[],l._fullInput!==l&&(l.selectedpoints=[]);for(a=0;a<d.length;a++){var u=d[a],f=u.data,h=u.fullData;u.pointIndices?([].push.apply(f.selectedpoints,u.pointIndices),l._fullInput!==l&&[].push.apply(h.selectedpoints,u.pointIndices)):(f.selectedpoints.push(u.pointIndex),l._fullInput!==l&&h.selectedpoints.push(u.pointIndex))}}else for(a=0;a<t.length;a++)delete(l=t[a].cd[0].trace).selectedpoints,delete l._input.selectedpoints,l._fullInput!==l&&delete l._fullInput.selectedpoints;var p=!1;for(a=0;a<t.length;a++){l=(o=(i=t[a]).cd)[0].trace,n.traceIs(l,"regl")&&(p=!0);var g=i._module,m=g.styleOnSelect||g.style;m&&(m(e,o,o[0].node3),o[0].nodeRangePlot3&&m(e,o,o[0].nodeRangePlot3))}p&&(w(e),k(e))}function V(e,t){if(Array.isArray(e))for(var r=t.cd,a=t.cd[0].trace,n=0;n<e.length;n++)e[n]=s(e[n],a,r);return e}function Z(e,t){for(var r=[],a=0;a<e.length;a++){r[a]=[];for(var n=0;n<e[a].length;n++){r[a][n]=[],r[a][n][0]=n?"L":"M";for(var i=0;i<e[a][n].length;i++)r[a][n].push(e[a][n][i])}t||r[a].push(["Z",r[a][0][1],r[a][0][2]])}return r}e.exports={prepSelect:function(e,t,r,n,s){var c=d(s),y=u(s),x=h(s),_=f(s),w=p(s),k="drawcircle"===s,L="drawline"===s||k,C=n.gd,P=C._fullLayout,E=P._zoomlayer,B=n.element.getBoundingClientRect(),G=n.plotinfo,U=O(G),W=t-B.left,q=r-B.top;P._calcInverseTransform(C);var Y=v.apply3DTransform(P._invTransform)(W,q);W=Y[0],q=Y[1];var X,J,K,Q,$,ee,te,re=P._invScaleX,ae=P._invScaleY,ne=W,ie=q,oe="M"+W+","+q,le=n.xaxes[0]._length,se=n.yaxes[0]._length,ce=n.xaxes.concat(n.yaxes),de=e.altKey&&!(f(s)&&x);R(e,C,n),c&&(X=M([[W,q]],T.BENDPX));var ue=E.selectAll("path.select-outline-"+G.id).data(_?[0]:[1,2]),fe=P.newshape;ue.enter().append("path").attr("class",(function(e){return"select-outline select-outline-"+e+" select-outline-"+G.id})).style(_?{opacity:fe.opacity/2,fill:x?void 0:fe.fillcolor,stroke:fe.line.color,"stroke-dasharray":i(fe.line.dash,fe.line.width),"stroke-width":fe.line.width+"px"}:{}).attr("fill-rule",fe.fillrule).classed("cursor-move",!!_).attr("transform",U).attr("d",oe+"Z");var he,pe=E.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1}).attr("transform",U).attr("d","M0,0Z"),ge=P._uid+T.SELECTID,me=[],ye=F(C,n.xaxes,n.yaxes,n.subplot);function ve(e,t){return e-t}he=G.fillRangeItems?G.fillRangeItems:y?function(e,t){var r=e.range={};for($=0;$<ce.length;$++){var a=ce[$],n=a._id.charAt(0);r[a._id]=[I(a,t[n+"min"]),I(a,t[n+"max"])].sort(ve)}}:function(e,t,r){var a=e.lassoPoints={};for($=0;$<ce.length;$++){var n=ce[$];a[n._id]=r.filtered.map(D(n))}},n.moveFn=function(e,t){ne=Math.max(0,Math.min(le,re*e+W)),ie=Math.max(0,Math.min(se,ae*t+q));var r=Math.abs(ne-W),i=Math.abs(ie-q);if(y){var o,l,s;if(w){var d=P.selectdirection;switch(o="any"===d?i<Math.min(.6*r,A)?"h":r<Math.min(.6*i,A)?"v":"d":d){case"h":l=k?se/2:0,s=se;break;case"v":l=k?le/2:0,s=le}}if(_)switch(P.newshape.drawdirection){case"vertical":o="h",l=k?se/2:0,s=se;break;case"horizontal":o="v",l=k?le/2:0,s=le;break;case"ortho":r<i?(o="h",l=q,s=ie):(o="v",l=W,s=ne);break;default:o="d"}"h"===o?((Q=L?m(k,[ne,l],[ne,s]):[[W,l],[W,s],[ne,s],[ne,l]]).xmin=L?ne:Math.min(W,ne),Q.xmax=L?ne:Math.max(W,ne),Q.ymin=Math.min(l,s),Q.ymax=Math.max(l,s),pe.attr("d","M"+Q.xmin+","+(q-A)+"h-4v"+2*A+"h4ZM"+(Q.xmax-1)+","+(q-A)+"h4v"+2*A+"h-4Z")):"v"===o?((Q=L?m(k,[l,ie],[s,ie]):[[l,q],[l,ie],[s,ie],[s,q]]).xmin=Math.min(l,s),Q.xmax=Math.max(l,s),Q.ymin=L?ie:Math.min(q,ie),Q.ymax=L?ie:Math.max(q,ie),pe.attr("d","M"+(W-A)+","+Q.ymin+"v-4h"+2*A+"v4ZM"+(W-A)+","+(Q.ymax-1)+"v4h"+2*A+"v-4Z")):"d"===o&&((Q=L?m(k,[W,q],[ne,ie]):[[W,q],[W,ie],[ne,ie],[ne,q]]).xmin=Math.min(W,ne),Q.xmax=Math.max(W,ne),Q.ymin=Math.min(q,ie),Q.ymax=Math.max(q,ie),pe.attr("d","M0,0Z"))}else c&&(X.addPt([ne,ie]),Q=X.filtered);n.selectionDefs&&n.selectionDefs.length?(K=function(e,t,r){if(r)return a.difference({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions;return a.union({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions}(n.mergedPolygons,Q,de),Q.subtract=de,J=j(n.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(Z(K,x),ue,n),w&&b.throttle(ge,T.SELECTDELAY,(function(){var e;me=[];var t,r=[];for($=0;$<ye.length;$++)if(t=(ee=ye[$])._module.selectPoints(ee,J),r.push(t),e=V(t,ee),me.length)for(var a=0;a<e.length;a++)me.push(e[a]);else me=e;H(C,ye,te={points:me}),he(te,Q,X),n.gd.emit("plotly_selecting",te)}))},n.clickFn=function(e,t){if(pe.remove(),C._fullLayout._activeShapeIndex>=0)C._fullLayout._deactivateShape(C);else if(!_){var r=P.clickmode;b.done(ge).then((function(){if(b.clear(ge),2===e){for(ue.remove(),$=0;$<ye.length;$++)(ee=ye[$])._module.selectPoints(ee,!1);H(C,ye),N(n),C.emit("plotly_deselect",null)}else r.indexOf("select")>-1&&z(t,C,n.xaxes,n.yaxes,n.subplot,n,ue),"event"===r&&C.emit("plotly_selected",void 0);l.click(C,t)})).catch(v.error)}},n.doneFn=function(){pe.remove(),b.done(ge).then((function(){b.clear(ge),n.gd.emit("plotly_selected",te),Q&&n.selectionDefs&&(Q.subtract=de,n.selectionDefs.push(Q),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,K)),n.doneFnCompleted&&n.doneFnCompleted(me)})).catch(v.error),_&&N(n)}},clearSelect:L,clearSelectionsCache:N,selectOnClick:z}},GLsQ:function(e,t,r){"use strict";var a=r("/CZE"),n=r("HIIg"),i=r("gfA5").defaults,o=r("plED"),l=r("5azm"),s=r("SbTw"),c=r("2S8E"),d=r("J+Po"),u=r("UAgb");function f(e,t){function r(r,i){return a.coerce(e,t,n.gauge.steps,r,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}e.exports={supplyDefaults:function(e,t,r,h){function p(r,i){return a.coerce(e,t,n,r,i)}i(t,h,p),p("mode"),t._hasNumber=-1!==t.mode.indexOf("number"),t._hasDelta=-1!==t.mode.indexOf("delta"),t._hasGauge=-1!==t.mode.indexOf("gauge");var g=p("value");t._range=[0,"number"==typeof g?1.5*g:1];var m,y,v,x,b,_,w=new Array(2);function k(e,t){return a.coerce(v,x,n.gauge,e,t)}function T(e,t){return a.coerce(b,_,n.gauge.axis,e,t)}if(t._hasNumber&&(p("number.valueformat"),p("number.font.color",h.font.color),p("number.font.family",h.font.family),p("number.font.size"),void 0===t.number.font.size&&(t.number.font.size=s.defaultNumberFontSize,w[0]=!0),p("number.prefix"),p("number.suffix"),m=t.number.font.size),t._hasDelta&&(p("delta.font.color",h.font.color),p("delta.font.family",h.font.family),p("delta.font.size"),void 0===t.delta.font.size&&(t.delta.font.size=(t._hasNumber?.5:1)*(m||s.defaultNumberFontSize),w[1]=!0),p("delta.reference",t.value),p("delta.relative"),p("delta.valueformat",t.delta.relative?"2%":""),p("delta.increasing.symbol"),p("delta.increasing.color"),p("delta.decreasing.symbol"),p("delta.decreasing.color"),p("delta.position"),y=t.delta.font.size),t._scaleNumbers=(!t._hasNumber||w[0])&&(!t._hasDelta||w[1])||!1,p("title.font.color",h.font.color),p("title.font.family",h.font.family),p("title.font.size",.25*(m||y||s.defaultNumberFontSize)),p("title.text"),t._hasGauge){(v=e.gauge)||(v={}),x=o.newContainer(t,"gauge"),k("shape"),(t._isBullet="bullet"===t.gauge.shape)||p("title.align","center"),(t._isAngular="angular"===t.gauge.shape)||p("align","center"),k("bgcolor",h.paper_bgcolor),k("borderwidth"),k("bordercolor"),k("bar.color"),k("bar.line.color"),k("bar.line.width"),k("bar.thickness",s.valueThickness*("bullet"===t.gauge.shape?.5:1)),l(v,x,{name:"steps",handleItemDefaults:f}),k("threshold.value"),k("threshold.thickness"),k("threshold.line.width"),k("threshold.line.color"),b={},v&&(b=v.axis||{}),_=o.newContainer(x,"axis"),T("visible"),t._range=T("range",t._range);var A={outerTicks:!0};c(b,_,T,"linear"),u(b,_,T,"linear",A),d(b,_,T,A)}else p("title.align","center"),p("align","center"),t._isAngular=t._isBullet=!1;t._length=null}}},GXgJ:function(e,t,r){"use strict";var a=r("GbLo");e.exports=function(e){var t=e.marker,r=t.sizeref||1,n=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/r)}:function(e){return e/r};return function(e){var t=i(e/2);return a(t)&&t>0?Math.max(t,n):0}}},GZnn:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("u3HJ"),o=r("Nx4I"),l=r("/CZE"),s=l.strTranslate,c=r("g9E0"),d=r("0RW4"),u=r("A3kh"),f=r("cqRZ"),h=r("Y9zF").OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(e,t,r){var g,m=r.propContainer,y=r.propName,v=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,k=r.containerGroup,T=e._fullLayout,A=1,M=!1,S=m.title,L=(S&&S.text?S.text:"").trim(),C=S&&S.font?S.font:{},I=C.family,D=C.size,O=C.color;"title.text"===y?g="titleText":-1!==y.indexOf("axis")?g="axisTitleText":y.indexOf(!0)&&(g="colorbarTitleText");var z=e._context.edits[g];""===L?A=0:L.replace(p," % ")===v.replace(p," % ")&&(A=.2,M=!0,z||(L="")),r._meta?L=l.templateString(L,r._meta):T._meta&&(L=l.templateString(L,T._meta));var P=L||z;k||(k=l.ensureSingle(T._infolayer,"g","g-"+t));var E=k.selectAll("text").data(P?[0]:[]);if(E.enter().append("text"),E.text(L).attr("class",t),E.exit().remove(),!P)return k;function j(e){l.syncOrAsync([R,N],e)}function R(t){var r;return w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),w.offset&&(r+=s(0,w.offset))):r=null,t.attr("transform",r),t.style({"font-family":I,"font-size":a.round(D,2)+"px",fill:d.rgb(O),opacity:A*d.opacity(O),"font-weight":i.fontWeight}).attr(_).call(u.convertToTspans,e),i.previousPromises(e)}function N(e){var t=a.select(e.node().parentNode);if(b&&b.selection&&b.side&&L){t.attr("transform",null);var r=h[b.side],i="left"===b.side||"top"===b.side?-1:1,o=n(b.pad)?b.pad:2,d=c.bBox(t.node()),u={left:0,top:0,right:T.width,bottom:T.height},f=b.maxShift||i*(u[b.side]-d[b.side]),p=0;if(f<0)p=f;else{var g=b.offsetLeft||0,m=b.offsetTop||0;d.left-=g,d.right-=g,d.top-=m,d.bottom-=m,b.selection.each((function(){var e=c.bBox(this);l.bBoxIntersect(d,e,o)&&(p=Math.max(p,i*(e[b.side]-d[r])+o))})),p=Math.min(f,p)}if(p>0||f<0){var y={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[b.side];t.attr("transform",s(y[0],y[1]))}}}return E.call(j),z&&(L?E.on(".opacity",null):(A=0,M=!0,E.text(v).on("mouseover.opacity",(function(){a.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){a.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))),E.call(u.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?o.call("_guiRestyle",e,y,t,x):o.call("_guiRelayout",e,y,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(j)})).on("input",(function(e){this.text(e||" ").call(u.positionText,_.x,_.y)}))),E.classed("js-placeholder",M),k}}},"GeF/":function(e,t,r){"use strict";var a,n,i,o=r("09xr").mod;function l(e,t,r,a,n,i,o,l){var s=r-e,c=n-e,d=o-n,u=a-t,f=i-t,h=l-i,p=s*h-d*u;if(0===p)return null;var g=(c*h-d*f)/p,m=(c*u-s*f)/p;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:t+u*g}}function s(e,t,r,a,n){var i=a*e+n*t;if(i<0)return a*a+n*n;if(i>r){var o=a-e,l=n-t;return o*o+l*l}var s=a*t-n*e;return s*s/r}t.segmentsIntersect=l,t.segmentDistance=function(e,t,r,a,n,i,o,c){if(l(e,t,r,a,n,i,o,c))return 0;var d=r-e,u=a-t,f=o-n,h=c-i,p=d*d+u*u,g=f*f+h*h,m=Math.min(s(d,u,p,n-e,i-t),s(d,u,p,o-e,c-t),s(f,h,g,e-n,t-i),s(f,h,g,r-n,a-i));return Math.sqrt(m)},t.getTextLocation=function(e,t,r,l){if(e===n&&l===i||(a={},n=e,i=l),a[r])return a[r];var s=e.getPointAtLength(o(r-l/2,t)),c=e.getPointAtLength(o(r+l/2,t)),d=Math.atan((c.y-s.y)/(c.x-s.x)),u=e.getPointAtLength(o(r,t)),f={x:(4*u.x+s.x+c.x)/6,y:(4*u.y+s.y+c.y)/6,theta:d};return a[r]=f,f},t.clearLocationCache=function(){n=null},t.getVisibleSegment=function(e,t,r){var a,n,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,d=e.getTotalLength(),u=d;function f(t){var r=e.getPointAtLength(t);0===t?a=r:t===d&&(n=r);var c=r.x<i?i-r.x:r.x>o?r.x-o:0,u=r.y<l?l-r.y:r.y>s?r.y-s:0;return Math.sqrt(c*c+u*u)}for(var h=f(c);h;){if((c+=h+r)>u)return;h=f(c)}for(h=f(u);h;){if(c>(u-=h+r))return;h=f(u)}return{min:c,max:u,len:u-c,total:d,isClosed:0===c&&u===d&&Math.abs(a.x-n.x)<.1&&Math.abs(a.y-n.y)<.1}},t.findPointOnPath=function(e,t,r,a){for(var n,i,o,l=(a=a||{}).pathLength||e.getTotalLength(),s=a.tolerance||.001,c=a.iterationLimit||30,d=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,u=0,f=0,h=l;u<c;){if(n=(f+h)/2,o=(i=e.getPointAtLength(n))[r]-t,Math.abs(o)<s)return i;d*o>0?h=n:f=n,u++}return i}},GkA6:function(e,t,r){"use strict";var a=r("bljh"),n=r("cOGN").utcFormat,i=r("GbLo"),o=r("/CZE"),l=o.cleanNumber,s=o.ms2DateTime,c=o.dateTime2ms,d=o.ensureNumber,u=o.isArrayOrTypedArray,f=r("6AZA"),h=f.FP_SAFE,p=f.BADNUM,g=f.LOG_CLIP,m=f.ONEWEEK,y=f.ONEDAY,v=f.ONEHOUR,x=f.ONEMIN,b=f.ONESEC,_=r("PBw4"),w=r("0wH6"),k=w.HOUR_PATTERN,T=w.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function M(e){return null!=e}e.exports=function(e,t){t=t||{};var r=e._id||"x",f=r.charAt(0);function S(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var a=e.range[0],n=e.range[1];return.5*(a+n-2*g*Math.abs(a-n))}return p}function L(t,r,a,n){if((n||{}).msUTC&&i(t))return+t;var l=c(t,a||e.calendar);if(l===p){if(!i(t))return p;t=+t;var s=Math.floor(10*o.mod(t+.05,1)),d=Math.round(t-s/10);l=c(new Date(d))+s/10}return l}function C(t,r,a){return s(t,r,a||e.calendar)}function I(t){return e._categories[Math.round(t)]}function D(t){if(M(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return p}function O(t){if(e._categoriesMap)return e._categoriesMap[t]}function z(e){var t=O(e);return void 0!==t?t:i(e)?+e:void 0}function P(e){return i(e)?+e:O(e)}function E(e,t,r){return a.round(r+t*e,2)}function j(e,t,r){return(e-r)/t}var R=function(t){return i(t)?E(t,e._m,e._b):p},N=function(t){return j(t,e._m,e._b)};if(e.rangebreaks){var F="y"===f;R=function(t){if(!i(t))return p;var r=e._rangebreaks.length;if(!r)return E(t,e._m,e._b);var a=F;e.range[0]>e.range[1]&&(a=!a);for(var n=a?-1:1,o=n*t,l=0,s=0;s<r;s++){var c=n*e._rangebreaks[s].min,d=n*e._rangebreaks[s].max;if(o<c)break;if(!(o>d)){l=o<(c+d)/2?s:s+1;break}l=s+1}var u=e._B[l]||0;return isFinite(u)?E(t,e._m2,u):0},N=function(t){var r=e._rangebreaks.length;if(!r)return j(t,e._m,e._b);for(var a=0,n=0;n<r&&!(t<e._rangebreaks[n].pmin);n++)t>e._rangebreaks[n].pmax&&(a=n+1);return j(t,e._m2,e._B[a])}}e.c2l="log"===e.type?S:d,e.l2c="log"===e.type?A:d,e.l2p=R,e.p2l=N,e.c2p="log"===e.type?function(e,t){return R(S(e,t))}:R,e.p2c="log"===e.type?function(e){return A(N(e))}:N,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=d,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=N,e.cleanPos=d):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(l(e),t)},e.r2d=e.r2c=function(e){return A(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=d,e.c2r=S,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(N(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=N,e.cleanPos=d):"date"===e.type?(e.d2r=e.r2d=o.identity,e.d2c=e.r2c=e.d2l=e.r2l=L,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,r,a){return e.l2p(L(t,0,a))},e.p2d=e.p2r=function(e,t,r){return C(N(e),t,r)},e.cleanPos=function(t){return o.cleanDate(t,p,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=D,e.r2d=e.c2d=e.l2d=I,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=P(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=d,e.r2l=P,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return I(N(e))},e.r2p=e.d2p,e.p2r=N,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:d(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=I,e.d2r=e.d2l_noadd=z,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=O,e.l2r=e.c2r=d,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return I(N(e))},e.r2p=e.d2p,e.p2r=N,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:d(e)},e.setupMultiCategory=function(a){var n,i,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var d=t[_.id2name(c)];l=l.concat(d._traceIndices)}var h=[[0,{}],[0,{}]],p=[];for(n=0;n<l.length;n++){var g=a[l[n]];if(f in g){var m=g[f],y=g._length||o.minRowLength(m);if(u(m[0])&&u(m[1]))for(i=0;i<y;i++){var v=m[0][i],x=m[1][i];M(v)&&M(x)&&(p.push([v,x]),v in h[0][1]||(h[0][1][v]=h[0][0]++),x in h[1][1]||(h[1][1][x]=h[1][0]++))}}}for(p.sort((function(e,t){var r=h[0][1],a=r[e[0]]-r[t[0]];if(a)return a;var n=h[1][1];return n[e[1]]-n[t[1]]})),n=0;n<p.length;n++)D(p[n])}),e.fraction2r=function(t){var r=e.r2l(e.range[0]),a=e.r2l(e.range[1]);return e.l2r(r+t*(a-r))},e.r2fraction=function(t){var r=e.r2l(e.range[0]),a=e.r2l(e.range[1]);return(e.r2l(t)-r)/(a-r)},e.cleanRange=function(t,r){r||(r={}),t||(t="range");var a,n,l=o.nestedProperty(e,t).get();if(n=(n="date"===e.type?o.dfltRange(e.calendar):"y"===f?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(n[0]=0),l&&2===l.length)for("date"!==e.type||e.autorange||(l[0]=o.cleanDate(l[0],p,e.calendar),l[1]=o.cleanDate(l[1],p,e.calendar)),a=0;a<2;a++)if("date"===e.type){if(!o.isDateTime(l[a],e.calendar)){e[t]=n;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=o.constrain(e.r2l(l[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!i(l[a])){if(!i(l[1-a])){e[t]=n;break}l[a]=l[1-a]*(a?10:.1)}if(l[a]<-h?l[a]=-h:l[a]>h&&(l[a]=h),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else o.nestedProperty(e,t).set(n)},e.setScale=function(r){var a=t._size;if(e.overlaying){var n=_.getFromId({_fullLayout:t},e.overlaying);e.domain=n.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),d=e.r2l(e[i][1],o),u="y"===f;if((u?(e._offset=a.t+(1-e.domain[1])*a.h,e._length=a.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-d),e._b=-e._m*d):(e._offset=a.l+e.domain[0]*a.w,e._length=a.w*(e.domain[1]-e.domain[0]),e._m=e._length/(d-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,d),Math.max(c,d)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var h=u;c>d&&(h=!h),h&&e._rangebreaks.reverse();var p=h?-1:1;for(e._m2=p*e._length/(Math.abs(d-c)-e._lBreaks),e._B.push(-e._m2*(u?d:c)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-p*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)(s=e._rangebreaks[l]).pmin=R(s.min),s.pmax=R(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){for(var r,a,n,i,s,c=e.rangebreaks||[],d=0;d<c.length;d++){var u=c[d];if(u.enabled)if(u.bounds){var f=u.pattern;switch(a=(r=o.simpleMap(u.bounds,f?l:e.d2c))[0],n=r[1],f){case T:i=(s=new Date(t)).getUTCDay(),a>n&&(n+=7,i<a&&(i+=7));break;case k:i=(s=new Date(t)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),a>n&&(n+=24,i<a&&(i+=24));break;case"":i=t}if(i>=a&&i<n)return p}else for(var h=o.simpleMap(u.values,e.d2c).sort(o.sorterAsc),g=0;g<h.length;g++)if(n=(a=h[g])+u.dvalue,t>=a&&t<n)return p}return t},e.locateBreaks=function(t,r){var a,n,i,s,c=[];if(!e.rangebreaks)return c;var d=e.rangebreaks.slice().sort((function(e,t){return e.pattern===T&&t.pattern===k?-1:t.pattern===T&&e.pattern===k?1:0})),u=function(e,a){if((e=o.constrain(e,t,r))!==(a=o.constrain(a,t,r))){for(var n=!0,i=0;i<c.length;i++){var l=c[i];e<l.max&&a>=l.min&&(e<l.min&&(l.min=e),a>l.max&&(l.max=a),n=!1)}n&&c.push({min:e,max:a})}};for(a=0;a<d.length;a++){var f=d[a];if(f.enabled)if(f.bounds){var h=t,p=r;f.pattern&&(h=Math.floor(h)),i=(n=o.simpleMap(f.bounds,f.pattern?l:e.r2l))[0],s=n[1];var g,_,w=new Date(h);switch(f.pattern){case T:_=m,g=(s-i+(s<i?7:0))*y,h+=i*y-(w.getUTCDay()*y+w.getUTCHours()*v+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case k:_=y,g=(s-i+(s<i?24:0))*v,h+=i*v-(w.getUTCHours()*v+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:h=Math.min(n[0],n[1]),g=_=(p=Math.max(n[0],n[1]))-h}for(var A=h;A<p;A+=_)u(A,A+g)}else for(var M=o.simpleMap(f.values,e.d2c),S=0;S<M.length;S++)u(i=M[S],s=i+f.dvalue)}return c.sort((function(e,t){return e.min-t.min})),c},e.makeCalcdata=function(t,r,a){var n,i,l,s,c=e.type,d="date"===c&&t[r+"calendar"];if(r in t){if(n=t[r],s=t._length||o.minRowLength(n),o.isTypedArray(n)&&("linear"===c||"log"===c)){if(s===n.length)return n;if(n.subarray)return n.subarray(0,s)}if("multicategory"===c)return function(e,t){for(var r=new Array(t),a=0;a<t;a++){var n=(e[0]||[])[a],i=(e[1]||[])[a];r[a]=O([n,i])}return r}(n,s);for(i=new Array(s),l=0;l<s;l++)i[l]=e.d2c(n[l],0,d,a)}else{var u=r+"0"in t?e.d2c(t[r+"0"],0,d):0,f=t["d"+r]?Number(t["d"+r]):1;for(n=t[{x:"y",y:"x"}[r]],s=t._length||n.length,i=new Array(s),l=0;l<s;l++)i[l]=u+l*f}if(e.rangebreaks)for(l=0;l<s;l++)i[l]=e.maskBreaks(i[l]);return i},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&i(e.r2l(t[0]))&&i(e.r2l(t[1]))},e.isPtWithinRange=function(t,r){var a=e.c2l(t[f],null,r),n=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return n<i?n<=a&&a<=i:i<=a&&a<=n},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var r=e._matchGroup;if(r){var a=null,n=null;for(var i in r){var o=t[_.id2name(i)];if(o._categories){a=o._categories,n=o._categoriesMap;break}}a&&n?(e._categories=a,e._categoriesMap=n):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var l=0;l<e._initialCategories.length;l++)D(e._initialCategories[l])},e.sortByInitialCategories=function(){var a=[];if(e._emptyCategories(),e._initialCategories)for(var n=0;n<e._initialCategories.length;n++)D(e._initialCategories[n]);a=a.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(r!==o){var l=t[_.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,a=a.concat(l._traceIndices)}return a};var B=t._d3locale;"date"===e.type&&(e._dateFormat=B?B.timeFormat:n,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=B?B.numberFormat:a.format,delete e._minDtick,delete e._forceTick0}},Gl7E:function(e,t,r){"use strict";e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},Guo4:function(e,t,r){"use strict";var a=r("bljh"),n=r("pcRN"),i=r("Tv4R"),o=r("DzeQ"),l=r("lnYW").makeDragBox,s=r("0wH6").DRAGGERSIZE;t.initInteractions=function(e){var r=e._fullLayout;if(e._context.staticPlot)a.select(e).selectAll(".drag").remove();else if(r._has("cartesian")||r._has("splom")){Object.keys(r._plots||{}).sort((function(e,t){if((r._plots[e].mainplot&&!0)===(r._plots[t].mainplot&&!0)){var a=e.split("y"),n=t.split("y");return a[0]===n[0]?Number(a[1]||1)-Number(n[1]||1):Number(a[0]||1)-Number(n[0]||1)}return r._plots[e].mainplot?1:-1})).forEach((function(t){var a=r._plots[t],o=a.xaxis,c=a.yaxis;if(!a.mainplot){var d=l(e,a,o._offset,c._offset,o._length,c._length,"ns","ew");d.onmousemove=function(r){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&n.hover(e,r,t)},n.hover(e,r,t),e._fullLayout._lasthover=d,e._fullLayout._hoversubplot=t},d.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,a,o._offset-s,c._offset-s,s,s,"n","w"),l(e,a,o._offset+o._length,c._offset-s,s,s,"n","e"),l(e,a,o._offset-s,c._offset+c._length,s,s,"s","w"),l(e,a,o._offset+o._length,c._offset+c._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var u=o._mainLinePosition;"top"===o.side&&(u-=s),l(e,a,o._offset+.1*o._length,u,.8*o._length,s,"","ew"),l(e,a,o._offset,u,.1*o._length,s,"","w"),l(e,a,o._offset+.9*o._length,u,.1*o._length,s,"","e")}if(t===c._mainSubplot){var f=c._mainLinePosition;"right"!==c.side&&(f-=s),l(e,a,f,c._offset+.1*c._length,s,.8*c._length,"ns",""),l(e,a,f,c._offset+.9*c._length,s,.1*c._length,"s",""),l(e,a,f,c._offset,s,.1*c._length,"n","")}}}));var o=r._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,n.hover(e,t,r._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,n.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,r="pan"===t.dragmode?"move":"crosshair";o(t._draggers,r)}},HAuI:function(e,t,r){"use strict";var a=r("/CZE"),n=r("jzia"),i=r("WEQY"),o=r("TGam");e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:a.extendFlat({},n,{yaxis:i})}}},layoutAttributes:r("jzia"),handleDefaults:r("axA2"),calcAutorange:r("TNIG"),draw:r("ix2X"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},HByh:function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4"),i=r("Nx4I"),o=r("B28u"),l=r("V5Np"),s=r("kQMp"),c=r("at2O").getAxisGroup,d=r("+1rr"),u=a.coerceFont;function f(e,t,r,a){var n=t.orientation,i=t[{v:"x",h:"y"}[n]+"axis"],o=c(r,i)+n,l=r._alignmentOpts||{},s=a("alignmentgroup"),d=l[o];d||(d=l[o]={});var u=d[s];u?u.traces.push(t):u=d[s]={traces:[t],alignmentIndex:Object.keys(d).length,offsetGroups:{}};var f=a("offsetgroup"),h=u.offsetGroups,p=h[f];f&&(p||(p=h[f]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}function h(e,t,r,n,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),d=!(!1===o.moduleHasCliponaxis),f=!(!1===o.moduleHasTextangle),h=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,g=Array.isArray(i)||"auto"===i,m=g||"inside"===i,y=g||"outside"===i;if(m||y){var v=u(n,"textfont",r.font),x=a.extendFlat({},v),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,u(n,"insidetextfont",x),p){var _=a.extendFlat({},v);b&&delete _.color,u(n,"pathbar.textfont",_)}y&&u(n,"outsidetextfont",v),l&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),c&&n("constraintext"),d&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}m&&h&&n("insidetextanchor")}e.exports={supplyDefaults:function(e,t,r,c){function u(r,n){return a.coerce(e,t,d,r,n)}if(o(e,t,c,u)){l(e,t,c,u),u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var f=u("textposition");h(e,t,c,u,f,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s(e,t,u,r,c);var p=(t.marker.line||{}).color,g=i.getComponentMethod("errorbars","supplyDefaults");g(e,t,p||n.defaultLine,{axis:"y"}),g(e,t,p||n.defaultLine,{axis:"x",inherit:"y"}),a.coerceSelectionMarkerOpacity(t,u)}else t.visible=!1},crossTraceDefaults:function(e,t){var r;function n(e){return a.coerce(r._input,r,d,e)}if("group"===t.barmode)for(var i=0;i<e.length;i++)"bar"===(r=e[i]).type&&(r._input,f(0,r,t,n))},handleGroupingDefaults:f,handleText:h}},HIIg:function(e,t,r){"use strict";var a=r("kJIm").extendFlat,n=r("kJIm").extendDeep,i=r("yzSc").overrideAll,o=r("mEVB"),l=r("37PH"),s=r("gfA5").attributes,c=r("15jM"),d=r("plED").templatedArray,u=r("uM7j"),f=r("eN+q").FORMAT_LINK,h=o({editType:"plot",colorEditType:"plot"}),p={color:{valType:"color",editType:"plot",role:"info",description:["Sets the background color of the arc."].join(" ")},line:{color:{valType:"color",role:"info",dflt:l.defaultLine,editType:"plot",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},thickness:{valType:"number",role:"info",min:0,max:1,dflt:1,editType:"plot",description:["Sets the thickness of the bar as a fraction of the total thickness of the gauge."].join(" ")},editType:"calc"},g={valType:"info_array",role:"info",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot",description:["Sets the range of this axis."].join(" ")},m=d("step",n({},p,{range:g}));e.exports={mode:{valType:"flaglist",editType:"calc",role:"info",flags:["number","delta","gauge"],dflt:"number",description:["Determines how the value is displayed on the graph.","`number` displays the value numerically in text.","`delta` displays the difference to a reference value in text.","Finally, `gauge` displays the value graphically on an axis."].join(" ")},value:{valType:"number",editType:"calc",role:"info",anim:!0,description:["Sets the number to be displayed."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],role:"info",editType:"plot",description:["Sets the horizontal alignment of the `text` within the box.","Note that this attribute has no effect if an angular gauge is displayed:","in this case, it is always centered"].join(" ")},domain:s({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",role:"info",editType:"plot",description:["Sets the title of this indicator."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],role:"info",editType:"plot",description:["Sets the horizontal alignment of the title.","It defaults to `center` except for bullet charts","for which it defaults to right."].join(" ")},font:a({},h,{description:["Set the font used to display the title"].join(" ")}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets the value formatting rule using d3 formatting mini-language","which is similar to those of Python. See",f].join(" ")},font:a({},h,{description:["Set the font used to display main number"].join(" ")}),prefix:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets a prefix appearing before the number."].join(" ")},suffix:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets a suffix appearing next to the number."].join(" ")},editType:"plot"},delta:{reference:{valType:"number",role:"info",editType:"calc",description:["Sets the reference value to compute the delta.","By default, it is set to the current value."].join(" ")},position:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",dflt:"bottom",editType:"plot",description:["Sets the position of delta with respect to the number."].join(" ")},relative:{valType:"boolean",editType:"plot",role:"info",dflt:!1,description:["Show relative change"].join(" ")},valueformat:{valType:"string",role:"info",editType:"plot",description:["Sets the value formatting rule using d3 formatting mini-language","which is similar to those of Python. See",f].join(" ")},increasing:{symbol:{valType:"string",role:"info",dflt:u.INCREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",role:"info",dflt:u.INCREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},decreasing:{symbol:{valType:"string",role:"info",dflt:u.DECREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",role:"info",dflt:u.DECREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},font:a({},h,{description:["Set the font used to display the delta"].join(" ")}),editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",role:"info",dflt:"angular",values:["angular","bullet"],description:["Set the shape of the gauge"].join(" ")},bar:n({},p,{color:{dflt:"green"},description:["Set the appearance of the gauge's value"].join(" ")}),bgcolor:{valType:"color",role:"info",editType:"plot",description:"Sets the gauge background color."},bordercolor:{valType:"color",dflt:l.defaultLine,role:"info",editType:"plot",description:"Sets the color of the border enclosing the gauge."},borderwidth:{valType:"number",min:0,dflt:1,role:"info",editType:"plot",description:"Sets the width (in px) of the border enclosing the gauge."},axis:i({range:g,visible:a({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:a({},c.ticks,{dflt:"outside"}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({description:"Sets the color bar's tick label font"}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:"plot"},"plot"),steps:m,threshold:{line:{color:a({},p.line.color,{description:["Sets the color of the threshold line."].join(" ")}),width:a({},p.line.width,{dflt:1,description:["Sets the width (in px) of the threshold line."].join(" ")}),editType:"plot"},thickness:a({},p.thickness,{dflt:.85,description:["Sets the thickness of the threshold line as a fraction of the thickness of the gauge."].join(" ")}),value:{valType:"number",editType:"calc",dflt:!1,role:"info",description:["Sets a treshold value drawn as a line."].join(" ")},editType:"plot"},description:"The gauge of the Indicator plot.",editType:"plot"}}},Hbft:function(e,t,r){"use strict";var a=r("/CZE"),n=r("IVx0").hasColorscale,i=r("IVx0").extractOpts;e.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,n){var o=n.container?a.nestedProperty(e,n.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,n.min),(s||void 0===l.max)&&r(o,n.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var d=0;d<c.length;d++)o(s,c[d]);else o(s,c);n(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)o(t[u],{min:"cmin",max:"cmax"})}},HgMN:function(e,t,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"}}},Hqa2:function(e,t,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"}}},I23g:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=r("BkK/"),o=r("s02k").readPaths,l=r("ymS1"),s=r("6Ue+").clearOutlineControllers,c=r("0RW4"),d=r("g9E0"),u=r("plED").arrayEditor,f=r("Tv4R"),h=r("DzeQ"),p=r("2FgJ"),g=r("/cea");function m(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var a=t._plots[r].shapelayer;a&&a.selectAll("path").remove()}for(var n=0;n<t.shapes.length;n++)t.shapes[n].visible&&x(e,n)}function y(e){return!!e._fullLayout._drawing}function v(e){return!e._context.edits.shapePosition}function x(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=g.makeOptionsAndPlotinfo(e,t),s=r.options,x=r.plotinfo;if(s._input&&!1!==s.visible)if("below"!==s.layer)T(e._fullLayout._shapeUpperLayer);else if("paper"===s.xref||"paper"===s.yref)T(e._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)T((x.mainplotinfo||x).shapelayer);else T(e._fullLayout._shapeLowerLayer)}function T(r){var T=_(e,s),A={"data-index":t,"fill-rule":s.fillrule,d:T},M=s.opacity,S=s.fillcolor,L=s.line.width?s.line.color:"rgba(0,0,0,0)",C=s.line.width,I=s.line.dash;C||!0!==s.editable||(C=5,I="solid");var D="Z"!==T[T.length-1],O=v(e)&&s.editable&&e._fullLayout._activeShapeIndex===t;O&&(S=D?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,M=e._fullLayout.activeshape.opacity);var z,P=r.append("path").attr(A).style("opacity",M).call(c.stroke,L).call(c.fill,S).call(d.dashLine,I,C);if(b(P,e,s),(O||e._context.edits.shapePosition)&&(z=u(e.layout,"shapes",s)),O){P.style({cursor:"move"});var E={element:P.node(),plotinfo:x,gd:e,editHelpers:z,isActiveShape:!0},j=o(T,e);l(j,P,E)}else e._context.edits.shapePosition?function(e,t,r,o,l,s){var c,u,m,v,x,k,T,A,M,S,L,C,I,D,O,z,P="pixel"===r.xsizemode,E="pixel"===r.ysizemode,j="line"===r.type,R="path"===r.type,N=s.modifyItem,F=i.getFromId(e,r.xref),B=i.getRefType(r.xref),H=i.getFromId(e,r.yref),V=i.getRefType(r.yref),Z=g.getDataToPixel(e,F,!1,B),G=g.getDataToPixel(e,H,!0,V),U=g.getPixelToData(e,F,!1,B),W=g.getPixelToData(e,H,!0,V),q=j?function(){var e=Math.max(r.line.width,10),a=l.append("g").attr("data-index",o);a.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":e,"stroke-opacity":"0"});var n={"fill-opacity":"0"},i=Math.max(e/2,10);return a.append("circle").attr({"data-line-point":"start-point",cx:P?Z(r.xanchor)+r.x0:Z(r.x0),cy:E?G(r.yanchor)-r.y0:G(r.y0),r:i}).style(n).classed("cursor-grab",!0),a.append("circle").attr({"data-line-point":"end-point",cx:P?Z(r.xanchor)+r.x1:Z(r.x1),cy:E?G(r.yanchor)-r.y1:G(r.y1),r:i}).style(n).classed("cursor-grab",!0),a}():t,Y={element:q.node(),gd:e,prepFn:function(a){if(y(e))return;P&&(x=Z(r.xanchor));E&&(k=G(r.yanchor));"path"===r.type?O=r.path:(c=P?r.x0:Z(r.x0),u=E?r.y0:G(r.y0),m=P?r.x1:Z(r.x1),v=E?r.y1:G(r.y1));c<m?(M=c,I="x0",S=m,D="x1"):(M=m,I="x1",S=c,D="x0");!E&&u<v||E&&u>v?(T=u,L="y0",A=v,C="y1"):(T=v,L="y1",A=u,C="y0");X(a),Q(l,r),function(e,t,r){var a=t.xref,n=t.yref,o=i.getFromId(r,a),l=i.getFromId(r,n),s="";"paper"===a||o.autorange||(s+=a);"paper"===n||l.autorange||(s+=n);d.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}(t,r,e),Y.moveFn="move"===z?J:K,Y.altKey=a.altKey},doneFn:function(){if(y(e))return;h(t),$(l),b(t,e,r),a.call("_guiRelayout",e,s.getUpdateObj())},clickFn:function(){if(y(e))return;$(l)}};function X(r){if(y(e))z=null;else if(j)z="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var a=Y.element.getBoundingClientRect(),n=a.right-a.left,i=a.bottom-a.top,o=r.clientX-a.left,l=r.clientY-a.top,s=!R&&n>10&&i>10&&!r.shiftKey?f.getCursor(o/n,1-l/i):"move";h(t,s),z=s.split("-")[0]}}function J(a,n){if("path"===r.type){var i=function(e){return e},o=i,s=i;P?N("xanchor",r.xanchor=U(x+a)):(o=function(e){return U(Z(e)+a)},F&&"date"===F.type&&(o=g.encodeDate(o))),E?N("yanchor",r.yanchor=W(k+n)):(s=function(e){return W(G(e)+n)},H&&"date"===H.type&&(s=g.encodeDate(s))),N("path",r.path=w(O,o,s))}else P?N("xanchor",r.xanchor=U(x+a)):(N("x0",r.x0=U(c+a)),N("x1",r.x1=U(m+a))),E?N("yanchor",r.yanchor=W(k+n)):(N("y0",r.y0=W(u+n)),N("y1",r.y1=W(v+n)));t.attr("d",_(e,r)),Q(l,r)}function K(a,n){if(R){var i=function(e){return e},o=i,s=i;P?N("xanchor",r.xanchor=U(x+a)):(o=function(e){return U(Z(e)+a)},F&&"date"===F.type&&(o=g.encodeDate(o))),E?N("yanchor",r.yanchor=W(k+n)):(s=function(e){return W(G(e)+n)},H&&"date"===H.type&&(s=g.encodeDate(s))),N("path",r.path=w(O,o,s))}else if(j){if("resize-over-start-point"===z){var d=c+a,f=E?u-n:u+n;N("x0",r.x0=P?d:U(d)),N("y0",r.y0=E?f:W(f))}else if("resize-over-end-point"===z){var h=m+a,p=E?v-n:v+n;N("x1",r.x1=P?h:U(h)),N("y1",r.y1=E?p:W(p))}}else{var y=function(e){return-1!==z.indexOf(e)},b=y("n"),B=y("s"),V=y("w"),q=y("e"),Y=b?T+n:T,X=B?A+n:A,J=V?M+a:M,K=q?S+a:S;E&&(b&&(Y=T-n),B&&(X=A-n)),(!E&&X-Y>10||E&&Y-X>10)&&(N(L,r[L]=E?Y:W(Y)),N(C,r[C]=E?X:W(X))),K-J>10&&(N(I,r[I]=P?J:U(J)),N(D,r[D]=P?K:U(K)))}t.attr("d",_(e,r)),Q(l,r)}function Q(e,t){(P||E)&&function(){var r="path"!==t.type,a=e.selectAll(".visual-cue").data([0]);a.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var i=Z(P?t.xanchor:n.midRange(r?[t.x0,t.x1]:g.extractPathCoords(t.path,p.paramIsX))),o=G(E?t.yanchor:n.midRange(r?[t.y0,t.y1]:g.extractPathCoords(t.path,p.paramIsY)));if(i=g.roundPositionForSharpStrokeRendering(i,1),o=g.roundPositionForSharpStrokeRendering(o,1),P&&E){var l="M"+(i-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";a.attr("d",l)}else if(P){var s="M"+(i-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";a.attr("d",s)}else{var c="M"+(i-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";a.attr("d",c)}}()}function $(e){e.selectAll(".visual-cue").remove()}f.init(Y),q.node().onmousemove=X}(e,P,s,t,r,z):!0===s.editable&&P.style("pointer-events",D||c.opacity(S)*M<=.5?"stroke":"all");P.node().addEventListener("click",(function(){return function(e,t){if(!v(e))return;var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=k,m(e)}}(e,P)}))}}function b(e,t,r){var a=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");d.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}function _(e,t){var r,a,o,l,s,c,d,u,f=t.type,h=i.getRefType(t.xref),m=i.getRefType(t.yref),y=i.getFromId(e,t.xref),v=i.getFromId(e,t.yref),x=e._fullLayout._size;if(y?"domain"===h?a=function(e){return y._offset+y._length*e}:(r=g.shapePositionToRange(y),a=function(e){return y._offset+y.r2p(r(e,!0))}):a=function(e){return x.l+x.w*e},v?"domain"===m?l=function(e){return v._offset+v._length*(1-e)}:(o=g.shapePositionToRange(v),l=function(e){return v._offset+v.r2p(o(e,!0))}):l=function(e){return x.t+x.h*(1-e)},"path"===f)return y&&"date"===y.type&&(a=g.decodeDate(a)),v&&"date"===v.type&&(l=g.decodeDate(l)),function(e,t,r){var a=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return a.replace(p.segmentRE,(function(e){var a=0,c=e.charAt(0),d=p.paramIsX[c],u=p.paramIsY[c],f=p.numParams[c],h=e.substr(1).replace(p.paramRE,(function(e){return d[a]?e="pixel"===i?t(l)+Number(e):t(e):u[a]&&(e="pixel"===o?r(s)-Number(e):r(e)),++a>f&&(e="X"),e}));return a>f&&(h=h.replace(/[\s,]*X.*/,""),n.log("Ignoring extra params in segment "+e)),c+h}))}(t,a,l);if("pixel"===t.xsizemode){var b=a(t.xanchor);s=b+t.x0,c=b+t.x1}else s=a(t.x0),c=a(t.x1);if("pixel"===t.ysizemode){var _=l(t.yanchor);d=_-t.y0,u=_-t.y1}else d=l(t.y0),u=l(t.y1);if("line"===f)return"M"+s+","+d+"L"+c+","+u;if("rect"===f)return"M"+s+","+d+"H"+c+"V"+u+"H"+s+"Z";var w=(s+c)/2,k=(d+u)/2,T=Math.abs(w-s),A=Math.abs(k-d),M="A"+T+","+A,S=w+T+","+k;return"M"+S+M+" 0 1,1 "+(w+","+(k-A))+M+" 0 0,1 "+S+"Z"}function w(e,t,r){return e.replace(p.segmentRE,(function(e){var a=0,n=e.charAt(0),i=p.paramIsX[n],o=p.paramIsY[n],l=p.numParams[n];return n+e.substr(1).replace(p.paramRE,(function(e){return a>=l||(i[a]?e=t(e):o[a]&&(e=r(e)),a++),e}))}))}function k(e){v(e)&&(e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,m(e)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(e){if(!v(e))return;s(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t<r.length){for(var n=[],i=0;i<r.length;i++)i!==t&&n.push(r[i]);delete e._fullLayout._activeShapeIndex,a.call("_guiRelayout",e,{shapes:n})}}}},I4E5:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("0RW4"),o=r("OpmZ"),l=r("EsF5"),s=n.extendDeepAll,c=e.exports={};c.framework=function(e){var t,r,n,i,d,u=new l;function f(r,l){return l&&(d=l),a.select(a.select(d).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),t=t?s(t,r):r,n||(n=o.Axis()),i=o.adapter.plotly().convert(t),n.config(i).render(d),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return n.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return o.adapter.plotly().convert(n.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:n.angularScale(),r:n.radialScale()}},f.setUndoPoint=function(){var e,a,n=this,i=o.util.cloneJson(t);e=i,a=r,u.add({undo:function(){a&&n(a)},redo:function(){n(e)}}),r=o.util.cloneJson(i)},f.undo=function(){u.undo()},f.redo=function(){u.redo()},f},c.fillLayout=function(e){var t=a.select(e).selectAll(".plot-container"),r=t.selectAll(".svg-container"),n=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:i.background,_container:t,_paperdiv:r,_paper:n};e._fullLayout=s(o,e.layout)}},I8wg:function(e,t,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},IBVe:function(e,t,r){"use strict";var a=r("GbLo"),n=r("Nx4I"),i=r("/CZE"),o=r("plED"),l=r("jC0I");e.exports=function(e,t,r,s){var c="error_"+s.axis,d=o.newContainer(t,c),u=e[c]||{};function f(e,t){return i.coerce(u,d,l,e,t)}if(!1!==f("visible",void 0!==u.array||void 0!==u.value||"sqrt"===u.type)){var h=f("type","array"in u?"data":"percent"),p=!0;"sqrt"!==h&&(p=f("symmetric",!(("data"===h?"arrayminus":"valueminus")in u))),"data"===h?(f("array"),f("traceref"),p||(f("arrayminus"),f("tracerefminus"))):"percent"!==h&&"constant"!==h||(f("value"),p||f("valueminus"));var g="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&f(g,!(u.color||a(u.thickness)||a(u.width)));s.inherit&&d[g]||(f("color",r),f("thickness"),f("width",n.traceIs(t,"gl3d")?0:4))}}},IJNW:function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4"),i=r("xMdC").isUnifiedHover;e.exports=function(e,t,r,o){function l(e){o.font[e]||(o.font[e]=t.legend?t.legend.font[e]:t.font[e])}o=o||{},t&&i(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),t.legend?(o.bgcolor||(o.bgcolor=n.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),a.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},IUxZ:function(e,t,r){"use strict";var a=r("3oHU");e.exports=function(e,t){var r,n,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,d=[],u=l[0].trace;if(!a.hasMarkers(u)&&!a.hasText(u))return[];if(!1===t)for(r=0;r<l.length;r++)l[r].selected=0;else for(r=0;r<l.length;r++)n=l[r],i=s.c2p(n.x),o=c.c2p(n.y),null!==n.i&&t.contains([i,o],!1,r,e)?(d.push({pointNumber:n.i,x:s.c2d(n.x),y:c.c2d(n.y)}),n.selected=1):n.selected=0;return d}},IVx0:function(e,t,r){"use strict";var a=r("bljh"),n=r("Zss7"),i=r("GbLo"),o=r("/CZE"),l=r("0RW4"),s=r("SFLx").isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],d=["min","max","mid","auto"];function u(e){var t,r,a,n=e._colorAx,i=n||e,o={};for(r=0;r<c.length;r++)o[a=c[r]]=i[a];if(n)for(t="c",r=0;r<d.length;r++)o[a=d[r]]=i["c"+a];else{var l;for(r=0;r<d.length;r++)((l="c"+(a=d[r]))in i||(l="z"+a)in i)&&(o[a]=i[l]);t=l.charAt(0)}return o._sync=function(e,r){var a=-1!==d.indexOf(e)?t+e:e;i[a]=i["_"+a]=r},o}function f(e){for(var t=u(e),r=t.min,a=t.max,n=t.reversescale?h(t.colorscale):t.colorscale,i=n.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=n[s];o[s]=r+c[0]*(a-r),l[s]=c[1]}return{domain:o,range:l}}function h(e){for(var t=e.length,r=new Array(t),a=t-1,n=0;a>=0;a--,n++){var i=e[a];r[n]=[1-i[0],i[1]]}return r}function p(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,c=new Array(s),d=0;d<s;d++){var u=n(o[d]).toRgb();c[d]=[u.r,u.g,u.b,u.a]}var f,h=a.scale.linear().domain(r).range(c).clamp(!0),p=t.noNumericCheck,m=t.returnArray;return(f=p&&m?h:p?function(e){return g(h(e))}:m?function(e){return i(e)?h(e):n(e).isValid()?e:l.defaultLine}:function(e){return i(e)?g(h(e)):n(e).isValid()?e:l.defaultLine}).domain=h.domain,f.range=function(){return o},f}function g(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return n(t).toRgbString()}e.exports={hasColorscale:function(e,t,r){var a=t?o.nestedProperty(e,t).get()||{}:e,n=a[r||"color"],l=!1;if(o.isArrayOrTypedArray(n))for(var c=0;c<n.length;c++)if(i(n[c])){l=!0;break}return o.isPlainObject(a)&&(l||!0===a.showscale||i(a.cmin)&&i(a.cmax)||s(a.colorscale)||o.isPlainObject(a.colorbar))},extractOpts:u,extractScale:f,flipScale:h,makeColorScaleFunc:p,makeColorScaleFuncFromTrace:function(e,t){return p(f(e),t)}}},Id1X:function(e,t,r){"use strict";e.exports=r("9ldu")},IjzS:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("g9E0"),o=r("A3kh"),l=r("yLjo"),s=r("2oy/").styleOne,c=r("I8wg"),d=r("+1bK"),u=r("aWIO");e.exports=function(e,t,r,f,h){var p=h.barDifY,g=h.width,m=h.height,y=h.viewX,v=h.viewY,x=h.pathSlice,b=h.toMoveInsideSlice,_=h.strTransform,w=h.hasTransition,k=h.handleSlicesExit,T=h.makeUpdateSliceInterpolator,A=h.makeUpdateTextInterpolator,M={},S=e._fullLayout,L=t[0],C=L.trace,I=L.hierarchy,D=g/C._entryDepth,O=d.listPath(r.data,"id"),z=l(I.copy(),[g,m],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(e){var t=O.indexOf(e.data.id);return-1!==t&&(e.x0=D*t,e.x1=D*(t+1),e.y0=p,e.y1=p+m,e.onPathbar=!0,!0)}))).reverse(),(f=f.data(z,d.getPtId)).enter().append("g").classed("pathbar",!0),k(f,!0,M,[g,m],x),f.order();var P=f;w&&(P=P.transition().each("end",(function(){var t=a.select(this);d.setSliceCursor(t,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),P.each((function(l){l._hoverX=y(l.x1-Math.min(g,m)/2),l._hoverY=v(l.y1-m/2);var f=a.select(this),h=n.ensureSingle(f,"path","surface",(function(e){e.style("pointer-events","all")}));w?h.transition().attrTween("d",(function(e){var t=T(e,!0,M,[g,m]);return function(e){return x(t(e))}})):h.attr("d",x),f.call(u,r,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(d.setSliceCursor,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:e._transitioning}),h.call(s,l,C,{hovered:!1}),l._text=(d.getPtLabel(l)||"").split("<br>").join(" ")||"";var p=n.ensureSingle(f,"g","slicetext"),k=n.ensureSingle(p,"text","",(function(e){e.attr("data-notex",1)})),L=n.ensureUniformFontSize(e,d.determineTextFont(C,l,S.font,{onPathbar:!0}));k.text(l._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,L).call(o.convertToTspans,e),l.textBB=i.bBox(k.node()),l.transform=b(l,{fontSize:L.size,onPathbar:!0}),l.transform.fontSize=L.size,w?k.transition().attrTween("transform",(function(e){var t=A(e,!0,M,[g,m]);return function(e){return _(t(e))}})):k.attr("transform",_(l))}))}},IkQw:function(e,t,r){"use strict";var a=r("/CZE"),n=r("kc6j");e.exports=function(e,t,r){var i=!1;function o(r,i){return a.coerce(e,t,n,r,i)}for(var l=0;l<r.length;l++){var s=r[l];if(s.visible&&"waterfall"===s.type){i=!0;break}}i&&(o("waterfallmode"),o("waterfallgap",.2),o("waterfallgroupgap"))}},IvnK:function(e,t,r){"use strict";e.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}},"J+Po":function(e,t,r){"use strict";var a=r("/CZE"),n=r("15jM");e.exports=function(e,t,r,i){var o=a.coerce2(e,t,n,"ticklen"),l=a.coerce2(e,t,n,"tickwidth"),s=a.coerce2(e,t,n,"tickcolor",t.color);r("ticks",i.outerTicks||o||l||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},JU33:function(e,t,r){"use strict";var a=r("BkK/"),n=r("h5fz"),i=r("cU9g"),o=r("QTaS"),l=r("6AZA").BADNUM;function s(e){return e===l?0:e}e.exports=function(e,t){var r,c,d,u,f,h,p=a.getFromId(e,t.xaxis||"x"),g=a.getFromId(e,t.yaxis||"y");"h"===t.orientation?(r=p.makeCalcdata(t,"x"),d=g.makeCalcdata(t,"y"),c=n(t,g,"y",d),h=!!t.yperiodalignment):(r=g.makeCalcdata(t,"y"),d=p.makeCalcdata(t,"x"),c=n(t,p,"x",d),h=!!t.xperiodalignment);var m,y=Math.min(c.length,r.length),v=new Array(y);for(t._base=[],u=0;u<y;u++){r[u]<0&&(r[u]=l);var x=!1;r[u]!==l&&u+1<y&&r[u+1]!==l&&(x=!0),f=v[u]={p:c[u],s:r[u],cNext:x},t._base[u]=-.5*f.s,h&&(v[u].orig_p=d[u]),t.ids&&(f.id=String(t.ids[u])),0===u&&(v[0].vTotal=0),v[0].vTotal+=s(f.s),f.begR=s(f.s)/s(v[0].s)}for(u=0;u<y;u++)(f=v[u]).s!==l&&(f.sumR=f.s/v[0].vTotal,f.difR=void 0!==m?f.s/m:1,m=f.s);return i(v,t),o(v,t),v}},JZU4:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("u3HJ"),o=r("/CZE"),l=o.strTranslate,s=r("BkK/"),c=r("0RW4"),d=r("g9E0"),u=r("pcRN"),f=r("A3kh"),h=r("DzeQ"),p=r("Tv4R"),g=r("plED").arrayEditor,m=r("Wh6P");function y(e,t){var r=e._fullLayout.annotations[t]||{},a=s.getFromId(e,r.xref),n=s.getFromId(e,r.yref);a&&a.setScale(),n&&n.setScale(),x(e,r,t,!1,a,n)}function v(e,t,r,a,n){var i=n[r],o=n[r+"ref"],l=-1!==r.indexOf("y"),c="domain"===s.getRefType(o),d=l?a.h:a.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/d}function x(e,t,r,i,y,x){var b,_,w=e._fullLayout,k=e._fullLayout._size,T=e._context.edits;i?(b="annotation-"+i,_=i+".annotations"):(b="annotation",_="annotations");var A=g(e.layout,_,t),M=A.modifyBase,S=A.modifyItem,L=A.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var C="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var I={x:{},y:{}},D=+t.textangle||0,O=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),z=O.append("g").classed("annotation-text-g",!0),P=T[t.showarrow?"annotationTail":"annotationPosition"],E=t.captureevents||T.annotationText||P,j=z.append("g").style("pointer-events",E?"all":null).call(h,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",W(a.event))}));t.hovertext&&j.on("mouseover",(function(){var r=t.hoverlabel,a=r.font,n=this.getBoundingClientRect(),i=e.getBoundingClientRect();u.loneHover({x0:n.left-i.left,x1:n.right-i.left,y:(n.top+n.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:a.family,fontSize:a.size,fontColor:a.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){u.loneUnhover(w._hoverlayer.node())}));var R=t.borderwidth,N=t.borderpad,F=R+N,B=j.append("rect").attr("class","bg").style("stroke-width",R+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),H=t.width||t.height,V=w._topclips.selectAll("#"+C).data(H?[0]:[]);V.enter().append("clipPath").classed("annclip",!0).attr("id",C).append("rect"),V.exit().remove();var Z=t.font,G=w._meta?o.templateString(t.text,w._meta):t.text,U=j.append("text").classed("annotation-text",!0).text(G);T.annotationText?U.call(f.makeEditable,{delegate:j,gd:e}).call(q).on("edit",(function(r){t.text=r,this.call(q),S("text",r),y&&y.autorange&&M(y._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0),n.call("_guiRelayout",e,L())})):U.call(q)}else a.selectAll("#"+C).remove();function W(e){var a={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(a.subplotId=i),a}function q(r){return r.call(d.font,Z).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(r,e,Y),r}function Y(){var r=U.selectAll("a");1===r.size()&&r.text()===U.text()&&j.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var a=j.select(".annotation-text-math-group"),u=!a.empty(),g=d.bBox((u?a:U).node()),b=g.width,_=g.height,A=t.width||b,E=t.height||_,N=Math.round(A+2*F),Z=Math.round(E+2*F);function G(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var q=!1,Y=["x","y"],X=0;X<Y.length;X++){var J,K,Q,$,ee,te=Y[X],re=t[te+"ref"]||te,ae=t["a"+te+"ref"],ne={x:y,y:x}[te],ie=(D+("x"===te?0:-90))*Math.PI/180,oe=N*Math.cos(ie),le=Z*Math.sin(ie),se=Math.abs(oe)+Math.abs(le),ce=t[te+"anchor"],de=t[te+"shift"]*("x"===te?1:-1),ue=I[te],fe=s.getRefType(re);if(ne&&"domain"!==fe){var he=ne.r2fraction(t[te]);(he<0||he>1)&&(ae===re?((he=ne.r2fraction(t["a"+te]))<0||he>1)&&(q=!0):q=!0),J=ne._offset+ne.r2p(t[te]),$=.5}else{var pe="domain"===fe;"x"===te?(Q=t[te],J=pe?ne._offset+ne._length*Q:J=k.l+k.w*Q):(Q=1-t[te],J=pe?ne._offset+ne._length*Q:J=k.t+k.h*Q),$=t.showarrow?.5:Q}if(t.showarrow){ue.head=J;var ge=t["a"+te];if(ee=oe*G(.5,t.xanchor)-le*G(.5,t.yanchor),ae===re){var me=s.getRefType(ae);"domain"===me?("y"===te&&(ge=1-ge),ue.tail=ne._offset+ne._length*ge):"paper"===me?"y"===te?(ge=1-ge,ue.tail=k.t+k.h*ge):ue.tail=k.l+k.w*ge:ue.tail=ne._offset+ne.r2p(ge),K=ee}else ue.tail=J+ge,K=ee+ge;ue.text=ue.tail+ee;var ye=w["x"===te?"width":"height"];if("paper"===re&&(ue.head=o.constrain(ue.head,1,ye-1)),"pixel"===ae){var ve=-Math.max(ue.tail-3,ue.text),xe=Math.min(ue.tail+3,ue.text)-ye;ve>0?(ue.tail+=ve,ue.text+=ve):xe>0&&(ue.tail-=xe,ue.text-=xe)}ue.tail+=de,ue.head+=de}else K=ee=se*G($,ce),ue.text=J+ee;ue.text+=de,ee+=de,K+=de,t["_"+te+"padplus"]=se/2+K,t["_"+te+"padminus"]=se/2-K,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(q)j.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(A-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(E-_)*("middle"===t.valign?.5:1)),u)a.select("svg").attr({x:F+be-1,y:F+_e}).call(d.setClipUrl,H?C:null,e);else{var we=F+_e-g.top,ke=F+be-g.left;U.call(f.positionText,ke,we).call(d.setClipUrl,H?C:null,e)}V.select("rect").call(d.setRect,F,F,A,E),B.call(d.setRect,R/2,R/2,N-R,Z-R),j.call(d.setTranslate,Math.round(I.x.text-N/2),Math.round(I.y.text-Z/2)),z.attr({transform:"rotate("+D+","+I.x.text+","+I.y.text+")"});var Te,Ae=function(r,a){O.selectAll(".annotation-arrow-g").remove();var s=I.x.head,u=I.y.head,f=I.x.tail+r,h=I.y.tail+a,g=I.x.text+r,b=I.y.text+a,_=o.rotationXYMatrix(D,g,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),C=+B.attr("width"),P=+B.attr("height"),E=g-.5*C,R=E+C,N=b-.5*P,F=N+P,H=[[E,N,E,F],[E,F,R,F],[R,F,R,N],[R,N,E,N]].map(A);if(!H.reduce((function(e,t){return e^!!o.segmentsIntersect(s,u,s+1e6,u+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=o.segmentsIntersect(f,h,s,u,e[0],e[1],e[2],e[3]);t&&(f=t.x,h=t.y)}));var V=t.arrowwidth,Z=t.arrowcolor,G=t.arrowside,U=O.append("g").style({opacity:c.opacity(Z)}).classed("annotation-arrow-g",!0),W=U.append("path").attr("d","M"+f+","+h+"L"+s+","+u).style("stroke-width",V+"px").call(c.stroke,c.rgb(Z));if(m(W,G,t),T.annotationPosition&&W.node().parentNode&&!i){var q=s,Y=u;if(t.standoff){var X=Math.sqrt(Math.pow(s-f,2)+Math.pow(u-h,2));q+=t.standoff*(f-s)/X,Y+=t.standoff*(h-u)/X}var J,K,Q=U.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-q)+","+(h-Y),transform:l(q,Y)}).style("stroke-width",V+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");p.init({element:Q.node(),gd:e,prepFn:function(){var e=d.getTranslate(j);J=e.x,K=e.y,y&&y.autorange&&M(y._name+".autorange",!0),x&&x.autorange&&M(x._name+".autorange",!0)},moveFn:function(e,r){var a=w(J,K),n=a[0]+e,i=a[1]+r;j.call(d.setTranslate,n,i),S("x",v(y,e,"x",k,t)),S("y",v(x,r,"y",k,t)),t.axref===t.xref&&S("ax",v(y,e,"ax",k,t)),t.ayref===t.yref&&S("ay",v(x,r,"ay",k,t)),U.attr("transform",l(e,r)),z.attr({transform:"rotate("+D+","+n+","+i+")"})},doneFn:function(){n.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Ae(0,0),P)p.init({element:j.node(),gd:e,prepFn:function(){Te=z.attr("transform")},moveFn:function(e,r){var a="pointer";if(t.showarrow)t.axref===t.xref?S("ax",v(y,e,"ax",k,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",v(x,r,"ay",k.w,t)):S("ay",t.ay+r),Ae(e,r);else{if(i)return;var n,o;if(y)n=v(y,e,"x",k,t);else{var s=t._xsize/k.w,c=t.x+(t._xshift-t.xshift)/k.w-s/2;n=p.align(c+e/k.w,s,0,1,t.xanchor)}if(x)o=v(x,r,"y",k,t);else{var d=t._ysize/k.h,u=t.y-(t._yshift+t.yshift)/k.h-d/2;o=p.align(u-r/k.h,d,0,1,t.yanchor)}S("x",n),S("y",o),y&&x||(a=p.getCursor(y?.5:n,x?.5:o,t.xanchor,t.yanchor))}z.attr({transform:l(e,r)+Te}),h(j,a)},clickFn:function(r,a){t.captureevents&&e.emit("plotly_clickannotation",W(a))},doneFn:function(){h(j),n.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r<t.annotations.length;r++)t.annotations[r].visible&&y(e,r);return i.previousPromises(e)},drawOne:y,drawRaw:x}},KW7m:function(e,t,r){"use strict";e.exports=function(e,t,r,a,n){var i=(e-r)/(a-r),o=i+t/(a-r),l=(i+o)/2;return"left"===n||"bottom"===n?i:"center"===n||"middle"===n?l:"right"===n||"top"===n?o:i<2/3-l?i:o>4/3-l?o:l}},Kicf:function(e,t,r){"use strict";var a=r("/CZE"),n=r("l9FN"),i=r("0RW4"),o=r("gfA5").defaults,l=r("HByh").handleText,s=r("Gl7E").TEXTPAD,c=r("wlgE"),d=c.hasColorscale,u=c.handleDefaults;e.exports=function(e,t,r,c){function f(r,i){return a.coerce(e,t,n,r,i)}var h=f("labels"),p=f("parents");if(h&&h.length&&p&&p.length){var g=f("values");g&&g.length?f("branchvalues"):f("count"),f("level"),f("maxdepth"),"squarify"===f("tiling.packing")&&f("tiling.squarifyratio"),f("tiling.flip"),f("tiling.pad");var m=f("text");f("texttemplate"),t.texttemplate||f("textinfo",Array.isArray(m)?"text+label":"label"),f("hovertext"),f("hovertemplate");var y=f("pathbar.visible");l(e,t,c,f,"auto",{hasPathbar:y,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),f("textposition");var v=-1!==t.textposition.indexOf("bottom");f("marker.line.width")&&f("marker.line.color",c.paper_bgcolor);var x=f("marker.colors"),b=t._hasColorscale=d(e,"marker","colors")||(e.marker||{}).coloraxis;b?u(e,t,c,f,{prefix:"marker.",cLetter:"c"}):f("marker.depthfade",!(x||[]).length);var _=2*t.textfont.size;f("marker.pad.t",v?_/4:_),f("marker.pad.l",_/4),f("marker.pad.r",_/4),f("marker.pad.b",v?_:_/4),b&&u(e,t,c,f,{prefix:"marker.",cLetter:"c"}),t._hovered={marker:{line:{width:2,color:i.contrast(c.paper_bgcolor)}}},y&&(f("pathbar.thickness",t.pathbar.textfont.size+2*s),f("pathbar.side"),f("pathbar.edgeshape")),f("sort"),f("root.color"),o(t,c,f),t._length=null}else t.visible=!1}},LQ6N:function(e,t,r){"use strict";var a=r("/CZE"),n=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,r){var a,i,o,l,s,c,d,u,f,h,p,g,m,y=0;for(l=0;l<t.length;l++){for(i=(a=t[l])[0],o=a[1],p=e[i][o],h=0,f=0,s=0;s<4;s++)(d=e[i+(c=n[s])[0]])&&void 0!==(u=d[o+c[1]])&&(0===h?g=m=u:(g=Math.min(g,u),m=Math.max(m,u)),f++,h+=u);if(0===f)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=h/f,void 0===p?f<4&&(y=1):(e[i][o]=(1+r)*e[i][o]-r*p,m>g&&(y=Math.max(y,Math.abs(e[i][o]-p)/(m-g))))}return y}e.exports=function(e,t){var r,n=1;for(o(e,t),r=0;r<t.length&&!(t[r][2]<4);r++);for(t=t.slice(r),r=0;r<100&&n>.01;r++)n=o(e,t,i(n));return n>.01&&a.log("interp2d didn't converge quickly",n),e}},LZp3:function(e,t,r){"use strict";var a=r("/CZE"),n=a.isPlainObject,i=r("aSHK"),o=r("u3HJ"),l=r("qHYo"),s=r("plED"),c=r("P/XJ").dfltConfig;function d(e,t){e=a.extendDeep({},e);var r,i,o=Object.keys(e).sort();function l(t,r,a){if(n(r)&&n(t))d(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},a);for(i=0;i<r.length;i++){var l=r[i],c=o.newItem(l)._template;c&&d(c,l)}var u=o.defaultItems();for(i=0;i<u.length;i++)r.push(u[i]._template);for(i=0;i<r.length;i++)delete r[i].templateitemname}}for(r=0;r<o.length;r++){var c=o[r],f=e[c];if(c in t?l(f,t[c],c):t[c]=f,u(c)===c)for(var h in t){var p=u(h);h===p||p!==c||h in e||l(f,t[h],c)}}}function u(e){return e.replace(/[0-9]+$/,"")}function f(e,t,r,i,o){var l=o&&r(o);for(var c in e){var d=e[c],h=g(e,c,i),p=g(e,c,o),m=r(p);if(!m){var y=u(c);y!==c&&(m=r(p=g(e,y,o)))}if((!l||l!==m)&&!(!m||m._noTemplating||"data_array"===m.valType||m.arrayOk&&Array.isArray(d)))if(!m.valType&&n(d))f(d,t,r,h,p);else if(m._isLinkedToArray&&Array.isArray(d))for(var v=!1,x=0,b={},_=0;_<d.length;_++){var w=d[_];if(n(w)){var k=w.name;if(k)b[k]||(f(w,t,r,g(d,x,h),g(d,x,p)),x++,b[k]=1);else if(!v){var T=g(e,s.arrayDefaultKey(c),i),A=g(d,x,h);f(w,t,r,A,g(d,x,p));var M=a.nestedProperty(t,A);a.nestedProperty(t,T).set(M.get()),M.set(null),v=!0}}}else{a.nestedProperty(t,h).set(d)}}}function h(e,t){return i.getLayoutValObject(e,a.nestedProperty({},t).parts)}function p(e,t){return i.getTraceValObject(e,a.nestedProperty({},t).parts)}function g(e,t,r){return r?Array.isArray(e)?r+"["+t+"]":r+"."+t:t}function m(e){for(var t=0;t<e.length;t++)if(n(e[t]))return!0}function y(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}t.makeTemplate=function(e){e=a.isPlainObject(e)?e:a.getGraphDiv(e),e=a.extendDeep({_context:c},{data:e.data,layout:e.layout}),o.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach((function(e){var t={};f(e,t,p.bind(null,e));var r=a.coerce(e,{},l,"type"),n=i.data[r];n||(n=i.data[r]=[]),n.push(t)})),f(r,i.layout,h.bind(null,r)),delete i.layout.template;var s=r.template;if(n(s)){var u,g,m,y,v,x,b=s.layout;n(b)&&d(b,i.layout);var _=s.data;if(n(_)){for(g in i.data)if(m=_[g],Array.isArray(m)){for(x=(v=i.data[g]).length,y=m.length,u=0;u<x;u++)d(m[u%y],v[u]);for(u=x;u<y;u++)v.push(a.extendDeep({},m[u]))}for(g in _)g in i.data||(i.data[g]=a.extendDeep([],_[g]))}}return i},t.validateTemplate=function(e,t){var r=a.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=r.layout||{};n(t)||(t=i.template||{});var l=t.layout,s=t.data,d=[];r.layout=i,r.layout.template=t,o.supplyDefaults(r);var f=r._fullLayout,h=r._fullData,p={};if(n(l)?(!function e(t,r){for(var a in t)if("_"!==a.charAt(0)&&n(t[a])){var i,o=u(a),l=[];for(i=0;i<r.length;i++)l.push(g(t,a,r[i])),o!==a&&l.push(g(t,o,r[i]));for(i=0;i<l.length;i++)p[l[i]]=1;e(t[a],l)}}(f,["layout"]),function e(t,r){for(var a in t)if(-1===a.indexOf("defaults")&&n(t[a])){var i=g(t,a,r);p[i]?e(t[a],i):d.push({code:"unused",path:i})}}(l,"layout")):d.push({code:"layout"}),n(s)){for(var v,x={},b=0;b<h.length;b++){var _=h[b];x[v=_.type]=(x[v]||0)+1,_._fullInput._template||d.push({code:"missing",index:_._fullInput.index,traceType:v})}for(v in s){var w=s[v].length,k=x[v]||0;w>k?d.push({code:"unused",traceType:v,templateCount:w,dataCount:k}):k>w&&d.push({code:"reused",traceType:v,templateCount:w,dataCount:k})}}else d.push({code:"data"});if(function e(t,r){for(var a in t)if("_"!==a.charAt(0)){var i=t[a],o=g(t,a,r);n(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&d.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&m(i)&&e(i,o)}}({data:h,layout:f},""),d.length)return d.map(y)}},LdfS:function(e,t,r){"use strict";var a=r("/CZE"),n=r("e6NF");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}r("sunburstcolorway",t.colorway),r("extendsunburstcolors")}},LfN2:function(e,t,r){"use strict";var a=r("bljh"),n=r("0RW4"),i=r("g9E0"),o=r("/CZE"),l=r("Nx4I"),s=r("k6aH").resizeText,c=r("+1rr"),d=c.textfont,u=c.insidetextfont,f=c.outsidetextfont,h=r("aDMI");function p(e,t,r){i.pointStyle(e.selectAll("path"),t,r),g(e,t,r)}function g(e,t,r){e.selectAll("text").each((function(e){var n=a.select(this),l=o.ensureUniformFontSize(r,m(n,e,t,r));i.font(n,l)}))}function m(e,t,r,a){var n=a._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=_(t,r);i=v(r,t.i,n,o)}else e.classed("bartext-outside")&&(i=x(r,t.i,n));return i}function y(e,t,r){return b(d,e.textfont,t,r)}function v(e,t,r,a){var i=y(e,t,r);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:n.contrast(a),family:i.family,size:i.size}),b(u,e.insidetextfont,t,i)}function x(e,t,r){var a=y(e,t,r);return b(f,e.outsidetextfont,t,a)}function b(e,t,r,a){t=t||{};var n=h.getValue(t.family,r),i=h.getValue(t.size,r),o=h.getValue(t.color,r);return{family:h.coerceString(e.family,n,a.family),size:h.coerceNumber(e.size,i,a.size),color:h.coerceColor(e.color,o,a.color)}}function _(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mc||t.marker.color}e.exports={style:function(e){var t=a.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===n.barmode&&r>1||0===n.bargap&&0===n.bargroupgap&&!e[0].trace.marker.line.width)&&a.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){p(a.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var n,l=a.select(this);if(e.selected){n=o.ensureUniformFontSize(r,m(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(n.color=s),i.font(l,n)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,r)}(r,n,e):(p(r,n,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:v,getOutsideTextFont:x,getBarColor:_,resizeText:s}},Lj1h:function(e,t,r){"use strict";var a=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,n=/^[^\.\[\]]+$/;e.exports=function(e,t){for(;t;){var r=e.match(a);if(r)e=r[1];else{if(!e.match(n))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},M1CZ:function(e,t,r){"use strict";var a=r("bljh");e.exports={circle:{n:0,f:function(e){var t=a.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=a.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=a.round(.4*e,2),r=a.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=a.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,n="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+n+i+n+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+t+","+a.round(e/2,2)+"H"+t+"L0,-"+a.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+a.round(e/2,2)+"H"+t+"L0,"+a.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M"+a.round(e/2,2)+",-"+t+"V"+t+"L-"+a.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=a.round(2*e/Math.sqrt(3),2);return"M-"+a.round(e/2,2)+",-"+t+"V"+t+"L"+a.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=a.round(.6*e,2),r=a.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=a.round(.951*e,2),r=a.round(.588*e,2),n=a.round(-e,2),i=a.round(-.309*e,2);return"M"+t+","+i+"L"+r+","+a.round(.809*e,2)+"H-"+r+"L-"+t+","+i+"L0,"+n+"Z"}},hexagon:{n:14,f:function(e){var t=a.round(e,2),r=a.round(e/2,2),n=a.round(e*Math.sqrt(3)/2,2);return"M"+n+",-"+r+"V"+r+"L0,"+t+"L-"+n+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=a.round(e,2),r=a.round(e/2,2),n=a.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+n+"H"+r+"L"+t+",0L"+r+",-"+n+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=a.round(.924*e,2),r=a.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=a.round(.225*t,2),n=a.round(.951*t,2),i=a.round(.363*t,2),o=a.round(.588*t,2),l=a.round(-t,2),s=a.round(-.309*t,2),c=a.round(.118*t,2),d=a.round(.809*t,2);return"M"+r+","+s+"H"+n+"L"+i+","+c+"L"+o+","+d+"L0,"+a.round(.382*t,2)+"L-"+o+","+d+"L-"+i+","+c+"L-"+n+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=a.round(.66*e,2),r=a.round(.38*e,2),n=a.round(.76*e,2);return"M-"+n+",0l-"+r+",-"+t+"h"+n+"l"+r+",-"+t+"l"+r+","+t+"h"+n+"l-"+r+","+t+"l"+r+","+t+"h-"+n+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+n+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=a.round(e*Math.sqrt(3)*.8,2),r=a.round(.8*e,2),n=a.round(1.6*e,2),i=a.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+n+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=a.round(e*Math.sqrt(3)*.8,2),r=a.round(.8*e,2),n=a.round(1.6*e,2),i=a.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+n+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=a.round(1.1*e,2),r=a.round(2*e,2),n="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+n+"-"+t+","+t+n+t+","+t+n+t+",-"+t+n+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=a.round(1.4*e,2),r=a.round(1.9*e,2),n="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+n+"0,"+t+n+t+",0"+n+"0,-"+t+n+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=a.round(.7*e,2),r=a.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=a.round(1.4*e,2),r=a.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=a.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=a.round(e,2),r=a.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=a.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=a.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=a.round(1.3*e,2),r=a.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=a.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=a.round(1.2*e,2),r=a.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=a.round(e/2,2),r=a.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+t+","+n+"L0,0M"+t+","+n+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+t+",-"+n+"L0,0M"+t+",-"+n+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M"+n+","+t+"L0,0M"+n+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=a.round(1.2*e,2),r=a.round(1.6*e,2),n=a.round(.8*e,2);return"M-"+n+","+t+"L0,0M-"+n+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=a.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=a.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=a.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=a.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=a.round(e,2);return"M0,0L-"+t+","+a.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=a.round(e,2);return"M0,0L-"+t+",-"+a.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=a.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+a.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=a.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+a.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=a.round(2*e,2),r=a.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},MGx7:function(e,t,r){"use strict";e.exports=function(e){return e}},MnPd:function(e,t,r){"use strict";var a=r("I23g");e.exports={moduleType:"component",name:"shapes",layoutAttributes:r("pcxQ"),supplyLayoutDefaults:r("Vn7P"),supplyDrawNewShapeDefaults:r("Cluh"),includeBasePlot:r("N9FU")("shapes"),calcAutorange:r("zvAA"),draw:a.draw,drawOne:a.drawOne}},"N+MO":function(e,t,r){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",role:"info",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",role:"info",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},N9FU:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=r("PBw4");e.exports=function(e){return function(t,r){var o=t[e];if(Array.isArray(o))for(var l=a.subplotsRegistry.cartesian,s=l.idRegex,c=r._subplots,d=c.xaxis,u=c.yaxis,f=c.cartesian,h=r._has("cartesian")||r._has("gl2d"),p=0;p<o.length;p++){var g=o[p];if(n.isPlainObject(g)){var m=i.cleanId(g.xref,"x",!1),y=i.cleanId(g.yref,"y",!1),v=s.x.test(m),x=s.y.test(y);if(v||x){h||n.pushUnique(r._basePlotModules,l);var b=!1;v&&-1===d.indexOf(m)&&(d.push(m),b=!0),x&&-1===u.indexOf(y)&&(u.push(y),b=!0),b&&v&&x&&f.push(m+y)}}}}}},NNjz:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("g9E0"),o=r("6AZA").BADNUM,l=r("x5FY"),s=r("k6aH").clearMinTextSize;function c(e,t,r,a){var n=[],i=[],o=a?t:r,l=a?r:t;return n[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),i[2]=l.c2p(e.nextP0,!0),n[3]=o.c2p(e.nextS1,!0),i[3]=l.c2p(e.nextP1,!0),a?[n,i]:[i,n]}e.exports=function(e,t,r,d){var u=e._fullLayout;s("funnel",u),function(e,t,r,l){var s=t.xaxis,d=t.yaxis;n.makeTraceGroups(l,r,"trace bars").each((function(r){var l=a.select(this),u=r[0].trace,f=n.ensureSingle(l,"g","regions");if(u.connector&&u.connector.visible){var h="h"===u.orientation,p=f.selectAll("g.region").data(n.identity);p.enter().append("g").classed("region",!0),p.exit().remove();var g=p.size();p.each((function(r,l){if(l===g-1||r.cNext){var u=c(r,s,d,h),f=u[0],p=u[1],m="";f[0]!==o&&p[0]!==o&&f[1]!==o&&p[1]!==o&&f[2]!==o&&p[2]!==o&&f[3]!==o&&p[3]!==o&&(m+=h?"M"+f[0]+","+p[1]+"L"+f[2]+","+p[2]+"H"+f[3]+"L"+f[1]+","+p[1]+"Z":"M"+f[1]+","+p[1]+"L"+f[2]+","+p[3]+"V"+p[2]+"L"+f[1]+","+p[0]+"Z"),""===m&&(m="M0,0Z"),n.ensureSingle(a.select(this),"path").attr("d",m).call(i.setClipUrl,t.layerClipId,e)}}))}else f.remove()}))}(e,t,r,d),function(e,t,r,o){var l=t.xaxis,s=t.yaxis;n.makeTraceGroups(o,r,"trace bars").each((function(r){var o=a.select(this),d=r[0].trace,u=n.ensureSingle(o,"g","lines");if(d.connector&&d.connector.visible&&d.connector.line.width){var f="h"===d.orientation,h=u.selectAll("g.line").data(n.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var p=h.size();h.each((function(r,o){if(o===p-1||r.cNext){var d=c(r,l,s,f),u=d[0],h=d[1],g="";void 0!==u[3]&&void 0!==h[3]&&(f?(g+="M"+u[0]+","+h[1]+"L"+u[2]+","+h[2],g+="M"+u[1]+","+h[1]+"L"+u[3]+","+h[2]):(g+="M"+u[1]+","+h[1]+"L"+u[2]+","+h[3],g+="M"+u[1]+","+h[0]+"L"+u[2]+","+h[2])),""===g&&(g="M0,0Z"),n.ensureSingle(a.select(this),"path").attr("d",g).call(i.setClipUrl,t.layerClipId,e)}}))}else u.remove()}))}(e,t,r,d),l.plot(e,t,r,d,{mode:u.funnelmode,norm:u.funnelmode,gap:u.funnelgap,groupgap:u.funnelgroupgap})}},NPlu:function(e,t,r){"use strict";var a=r("/CZE"),n=r("Nx4I"),i=r("plED").arrayEditor;function o(e,t){var r,a,n,i,o,s,c,d=e._fullLayout.annotations,u=[],f=[],h=[],p=(t||[]).length;for(r=0;r<d.length;r++)if(i=(n=d[r]).clicktoshow){for(a=0;a<p;a++)if(s=(o=t[a]).xaxis,c=o.yaxis,s._id===n.xref&&c._id===n.yref&&s.d2r(o.x)===l(n._xclick,s)&&c.d2r(o.y)===l(n._yclick,c)){(n.visible?"onout"===i?f:h:u).push(r);break}a===p&&n.visible&&"onout"===i&&f.push(r)}return{on:u,off:f,explicitOff:h}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}e.exports={hasClickToShow:function(e,t){var r=o(e,t);return r.on.length>0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,d=s.off.concat(s.explicitOff),u={},f=e._fullLayout.annotations;if(!c.length&&!d.length)return;for(r=0;r<c.length;r++)(l=i(e.layout,"annotations",f[c[r]])).modifyItem("visible",!0),a.extendFlat(u,l.getUpdateObj());for(r=0;r<d.length;r++)(l=i(e.layout,"annotations",f[d[r]])).modifyItem("visible",!1),a.extendFlat(u,l.getUpdateObj());return n.call("update",e,{},u)}}},NRvR:function(e,t,r){"use strict";var a=r("GbLo"),n=r("9rBw");e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,d=e._fullLayout.annotations,u=t._id.charAt(0),f=0;f<d.length;f++)s=d[f],c="annotations["+f+"].",s[u+"ref"]===t._id&&h(u),s["a"+u+"ref"]===t._id&&h("a"+u);function h(e){var r=s[e],l=null;l=o?n(r,t.range):Math.pow(10,r),a(l)||(l=null),i(c+e,l)}}},Nurt:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("g9E0"),o=r("6AZA").BADNUM,l=r("x5FY"),s=r("k6aH").clearMinTextSize;e.exports=function(e,t,r,c){var d=e._fullLayout;s("waterfall",d),l.plot(e,t,r,c,{mode:d.waterfallmode,norm:d.waterfallmode,gap:d.waterfallgap,groupgap:d.waterfallgroupgap}),function(e,t,r,l){var s=t.xaxis,c=t.yaxis;n.makeTraceGroups(l,r,"trace bars").each((function(r){var l=a.select(this),d=r[0].trace,u=n.ensureSingle(l,"g","lines");if(d.connector&&d.connector.visible){var f="h"===d.orientation,h=d.connector.mode,p=u.selectAll("g.line").data(n.identity);p.enter().append("g").classed("line",!0),p.exit().remove();var g=p.size();p.each((function(r,l){if(l===g-1||r.cNext){var d=function(e,t,r,a){var n=[],i=[],o=a?t:r,l=a?r:t;return n[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),i[2]=l.c2p(e.nextP0,!0),a?[n,i]:[i,n]}(r,s,c,f),u=d[0],p=d[1],m="";u[0]!==o&&p[0]!==o&&u[1]!==o&&p[1]!==o&&("spanning"===h&&!r.isSum&&l>0&&(m+=f?"M"+u[0]+","+p[1]+"V"+p[0]:"M"+u[1]+","+p[0]+"H"+u[0]),"between"!==h&&(r.isSum||l<g-1)&&(m+=f?"M"+u[1]+","+p[0]+"V"+p[1]:"M"+u[0]+","+p[1]+"H"+u[1]),u[2]!==o&&p[2]!==o&&(m+=f?"M"+u[1]+","+p[1]+"V"+p[2]:"M"+u[1]+","+p[1]+"H"+u[2])),""===m&&(m="M0,0Z"),n.ensureSingle(a.select(this),"path").attr("d",m).call(i.setClipUrl,t.layerClipId,e)}}))}else u.remove()}))}(e,t,r,c)}},Nx4I:function(e,t,r){"use strict";var a=r("rhNM"),n=r("t3iM"),i=r("Whu6"),o=r("E4V0"),l=r("G4gu").addStyleRule,s=r("kJIm"),c=r("qHYo"),d=r("poX/"),u=s.extendFlat,f=s.extendDeepAll;function h(e){var r=e.name,n=e.categories,i=e.meta;if(t.modules[r])a.log("Type "+r+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var r=e.name;if(t.subplotsRegistry[r])return void a.log("Plot type "+r+" already registered.");for(var n in y(e),t.subplotsRegistry[r]=e,t.componentsRegistry)b(n,e.name)}(e.basePlotModule);for(var o={},s=0;s<n.length;s++)o[n[s]]=!0,t.allCategories[n[s]]=!0;for(var c in t.modules[r]={_module:e,categories:o},i&&Object.keys(i).length&&(t.modules[r].meta=i),t.allTypes.push(r),t.componentsRegistry)v(c,r);e.layoutAttributes&&u(t.traceLayoutAttributes,e.layoutAttributes);var d=e.basePlotModule,f=d.name;if("mapbox"===f){var h=d.constants.styleRules;for(var p in h)l(".js-plotly-plot .plotly .mapboxgl-"+p,h[p])}"geo"!==f&&"mapbox"!==f||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function p(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");var r=e.name;for(var a in t.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,r),y(e)),t.modules)v(r,a);for(var n in t.subplotsRegistry)b(r,n);for(var o in t.transformsRegistry)x(r,o);e.schema&&e.schema.layout&&f(d,e.schema.layout)}function g(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,n="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!n&&!i)throw new Error(r+" is missing a *transform* or *calcTransform* method.");for(var l in n&&i&&a.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),o(e.attributes)||a.log(r+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&a.log(r+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)x(l,e.name)}function m(e){var r=e.name,a=r.split("-")[0],n=e.dictionary,i=e.format,o=n&&Object.keys(n).length,l=i&&Object.keys(i).length,s=t.localeRegistry,c=s[r];if(c||(s[r]=c={}),a!==r){var d=s[a];d||(s[a]=d={}),o&&d.dictionary===c.dictionary&&(d.dictionary=n),l&&d.format===c.format&&(d.format=i)}o&&(c.dictionary=n),l&&(c.format=i)}function y(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var a=0;a<r.length;a++)i(t.layoutArrayRegexes,r[a])}}function v(e,r){var a=t.componentsRegistry[e].schema;if(a&&a.traces){var n=a.traces[r];n&&f(t.modules[r]._module.attributes,n)}}function x(e,r){var a=t.componentsRegistry[e].schema;if(a&&a.transforms){var n=a.transforms[r];n&&f(t.transformsRegistry[r].attributes,n)}}function b(e,r){var a=t.componentsRegistry[e].schema;if(a&&a.subplots){var n=t.subplotsRegistry[r],i=n.layoutAttributes,o="subplot"===n.attr?n.name:n.attr;Array.isArray(o)&&(o=o[0]);var l=a.subplots[o];i&&l&&f(i,l)}}function _(e){return"object"==typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var r=0;r<e.length;r++){var a=e[r];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":h(a);break;case"transform":g(a);break;case"component":p(a);break;case"locale":m(a);break;case"apiMethod":var n=a.name;t.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var r=t.modules[_(e)];return!!r&&r._module},t.traceIs=function(e,r){if("various"===(e=_(e)))return!1;var n=t.modules[e];return n||(e&&"area"!==e&&a.log("Unrecognized trace type "+e+"."),n=t.modules[c.type.dflt]),!!n.categories[r]},t.getTransformIndices=function(e,t){for(var r=[],a=e.transforms||[],n=0;n<a.length;n++)a[n].type===t&&r.push(n);return r},t.hasTransform=function(e,t){for(var r=e.transforms||[],a=0;a<r.length;a++)if(r[a].type===t)return!0;return!1},t.getComponentMethod=function(e,r){var a=t.componentsRegistry[e];return a&&a[r]||n},t.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,r)}},OAL3:function(e,t,r){"use strict";var a=r("0RW4"),n=r("/CZE").isArrayOrTypedArray;e.exports=function(e,t,r,i){var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!n(l)?o=l:s&&!n(s)&&(o=s)}i("fillcolor",a.addOpacity((t.line||{}).color||o||r,.5))}},ORvi:function(e,t,r){"use strict";var a=r("/CZE"),n=r("pcRN"),i=r("Nx4I"),o=r("/u34"),l=r("0RW4"),s=a.fillText;e.exports=function(e,t,r,c){var d=e.cd,u=d[0].trace,f=e.xa,h=e.ya,p=f.c2p(t),g=h.c2p(r),m=[p,g],y=u.hoveron||"",v=-1!==u.mode.indexOf("markers")?3:.5;if(-1!==y.indexOf("points")){var x=function(e){var t=Math.max(v,e.mrc||0),r=f.c2p(e.x)-p,a=h.c2p(e.y)-g;return Math.max(Math.sqrt(r*r+a*a)-t,1-v/t)},b=n.getDistanceFunction(c,(function(e){var t=Math.max(3,e.mrc||0),r=1-1/t,a=Math.abs(f.c2p(e.x)-p);return a<t?r*a/t:a-t+r}),(function(e){var t=Math.max(3,e.mrc||0),r=1-1/t,a=Math.abs(h.c2p(e.y)-g);return a<t?r*a/t:a-t+r}),x);if(n.getClosest(d,b,e),!1!==e.index){var _=d[e.index],w=f.c2p(_.x,!0),k=h.c2p(_.y,!0),T=_.mrc||1;e.index=_.i;var A=d[0].t.orientation,M=A&&(_.sNorm||_.s),S="h"===A?M:void 0!==_.orig_x?_.orig_x:_.x,L="v"===A?M:void 0!==_.orig_y?_.orig_y:_.y;return a.extendFlat(e,{color:o(u,_),x0:w-T,x1:w+T,xLabelVal:S,y0:k-T,y1:k+T,yLabelVal:L,spikeDistance:x(_),hovertemplate:u.hovertemplate}),s(_,u,e),i.getComponentMethod("errorbars","hoverInfo")(_,u,e),[e]}}if(-1!==y.indexOf("fills")&&u._polygons){var C,I,D,O,z,P,E,j,R,N=u._polygons,F=[],B=!1,H=1/0,V=-1/0,Z=1/0,G=-1/0;for(C=0;C<N.length;C++)(D=N[C]).contains(m)&&(B=!B,F.push(D),Z=Math.min(Z,D.ymin),G=Math.max(G,D.ymax));if(B){var U=((Z=Math.max(Z,0))+(G=Math.min(G,h._length)))/2;for(C=0;C<F.length;C++)for(O=F[C].pts,I=1;I<O.length;I++)(j=O[I-1][1])>U!=(R=O[I][1])>=U&&(P=O[I-1][0],E=O[I][0],R-j&&(z=P+(E-P)*(U-j)/(R-j),H=Math.min(H,z),V=Math.max(V,z)));H=Math.max(H,0),V=Math.min(V,f._length);var W=l.defaultLine;return l.opacity(u.fillcolor)?W=u.fillcolor:l.opacity((u.line||{}).color)&&(W=u.line.color),a.extendFlat(e,{distance:e.maxHoverDistance,x0:H,x1:V,y0:U,y1:U,color:W,hovertemplate:!1}),delete e.index,u.text&&!Array.isArray(u.text)?e.text=String(u.text):e.text=u.name,[e]}}}},OTZx:function(e,t,r){"use strict";var a=r("hriN");e.exports={calc:function(e,t){return a.calc(e,t)},crossTraceCalc:function(e){a.crossTraceCalc(e,{type:"funnelarea"})}}},OpmZ:function(e,t,r){var a=r("bljh"),n=r("/CZE").extendDeepAll,i=r("Y9zF").MID_SHIFT,o=e.exports={version:"0.2.2"};o.Axis=function(){var e,t,r,l,s={data:[],layout:{}},c={},d={},u=a.dispatch("hover"),f={};return f.render=function(c){return function(c){t=c||t;var u=s.data,f=s.layout;("string"==typeof t||t.nodeName)&&(t=a.select(t)),t.datum(u).each((function(t,s){var c=t.slice();d={data:o.util.cloneJson(c),layout:o.util.cloneJson(f)};var u=0;c.forEach((function(e,t){e.color||(e.color=f.defaultColorRange[u],u=(u+1)%f.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:a.rgb(e.color).darker().toString()),d.data[t].color=e.color,d.data[t].strokeColor=e.strokeColor,d.data[t].strokeDash=e.strokeDash,d.data[t].strokeSize=e.strokeSize}));var h=c.filter((function(e,t){var r=e.visible;return void 0===r||!0===r})),p=!1,g=h.map((function(e,t){return p=p||void 0!==e.groupId,e}));if(p){var m=a.nest().key((function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"})).entries(g),y=[],v=m.map((function(e,t){if("unstacked"===e.key)return e.values;var r=e.values[0].r.map((function(e,t){return 0}));return e.values.forEach((function(e,t,a){e.yStack=[r],y.push(r),r=o.util.sumArrays(e.r,r)})),e.values}));h=a.merge(v)}h.forEach((function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]}));var x=Math.min(f.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2;x=Math.max(10,x);var b,_=[f.margin.left+x,f.margin.top+x];p?b=[0,a.max(o.util.sumArrays(o.util.arrayLast(h).r[0],o.util.arrayLast(y)))]:b=a.extent(o.util.flattenArray(h.map((function(e,t){return e.r}))));f.radialAxis.domain!=o.DATAEXTENT&&(b[0]=0),r=a.scale.linear().domain(f.radialAxis.domain!=o.DATAEXTENT&&f.radialAxis.domain?f.radialAxis.domain:b).range([0,x]),d.layout.radialAxis.domain=r.domain();var w,k=o.util.flattenArray(h.map((function(e,t){return e.t}))),T="string"==typeof k[0];T&&(k=o.util.deduplicate(k),w=k.slice(),k=a.range(k.length),h=h.map((function(e,t){var r=e;return e.t=[k],p&&(r.yStack=e.yStack),r})));var A=h.filter((function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry})).length===h.length,M=null===f.needsEndSpacing?T||!A:f.needsEndSpacing,S=f.angularAxis.domain&&f.angularAxis.domain!=o.DATAEXTENT&&!T&&f.angularAxis.domain[0]>=0?f.angularAxis.domain:a.extent(k),L=Math.abs(k[1]-k[0]);A&&!T&&(L=0);var C=S.slice();M&&T&&(C[1]+=L);var I=f.angularAxis.ticksCount||4;I>8&&(I=I/(I/8)+I%8),f.angularAxis.ticksStep&&(I=(C[1]-C[0])/I);var D=f.angularAxis.ticksStep||(C[1]-C[0])/(I*(f.minorTicks+1));w&&(D=Math.max(Math.round(D),1)),C[2]||(C[2]=D);var O=a.range.apply(this,C);if(O=O.map((function(e,t){return parseFloat(e.toPrecision(12))})),l=a.scale.linear().domain(C.slice(0,2)).range("clockwise"===f.direction?[0,360]:[360,0]),d.layout.angularAxis.domain=l.domain(),d.layout.angularAxis.endPadding=M?L:0,void 0===(e=a.select(this).select("svg.chart-root"))||e.empty()){var z=(new DOMParser).parseFromString("<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>","application/xml"),P=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));e=a.select(P)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var E,j=e.select(".chart-group"),R={fill:"none",stroke:f.tickColor},N={"font-size":f.font.size,"font-family":f.font.family,fill:f.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+f.font.outlineColor})).join(",")};if(f.showLegend){E=e.select(".legend-group").attr({transform:"translate("+[x,f.margin.top]+")"}).style({display:"block"});var F=h.map((function(e,t){var r=o.util.cloneJson(e);return r.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",r.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,r.color="LinePlot"===e.geometry?e.strokeColor:e.color,r}));o.Legend().config({data:h.map((function(e,t){return e.name||"Element"+t})),legendConfig:n({},o.Legend.defaultConfig().legendConfig,{container:E,elements:F,reverseOrder:f.legend.reverseOrder})})();var B=E.node().getBBox();x=Math.min(f.width-B.width-f.margin.left-f.margin.right,f.height-f.margin.top-f.margin.bottom)/2,x=Math.max(10,x),_=[f.margin.left+x,f.margin.top+x],r.range([0,x]),d.layout.radialAxis.domain=r.domain(),E.attr("transform","translate("+[_[0]+x,_[1]-x]+")")}else E=e.select(".legend-group").style({display:"none"});e.attr({width:f.width,height:f.height}).style({opacity:f.opacity}),j.attr("transform","translate("+_+")").style({cursor:"crosshair"});var H=[(f.width-(f.margin.left+f.margin.right+2*x+(B?B.width:0)))/2,(f.height-(f.margin.top+f.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(".outer-group").attr("transform","translate("+H+")"),f.title&&f.title.text){var V=e.select("g.title-group text").style(N).text(f.title.text),Z=V.node().getBBox();V.attr({x:_[0]-Z.width/2,y:_[1]-x-20})}var G=e.select(".radial.axis-group");if(f.radialAxis.gridLinesVisible){var U=G.selectAll("circle.grid-circle").data(r.ticks(5));U.enter().append("circle").attr({class:"grid-circle"}).style(R),U.attr("r",r),U.exit().remove()}G.select("circle.outside-circle").attr({r:x}).style(R);var W=e.select("circle.background-circle").attr({r:x}).style({fill:f.backgroundColor,stroke:f.stroke});function q(e,t){return l(e)%360+f.orientation}if(f.radialAxis.visible){var Y=a.svg.axis().scale(r).ticks(5).tickSize(5);G.call(Y).attr({transform:"rotate("+f.radialAxis.orientation+")"}),G.selectAll(".domain").style(R),G.selectAll("g>text").text((function(e,t){return this.textContent+f.radialAxis.ticksSuffix})).style(N).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===f.radialAxis.tickOrientation?"rotate("+-f.radialAxis.orientation+") translate("+[0,N["font-size"]]+")":"translate("+[0,N["font-size"]]+")"}}),G.selectAll("g>line").style({stroke:"black"})}var X=e.select(".angular.axis-group").selectAll("g.angular-tick").data(O),J=X.enter().append("g").classed("angular-tick",!0);X.attr({transform:function(e,t){return"rotate("+q(e)+")"}}).style({display:f.angularAxis.visible?"block":"none"}),X.exit().remove(),J.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(f.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(f.minorTicks+1)==0)})).style(R),J.selectAll(".minor").style({stroke:f.minorTickColor}),X.select("line.grid-line").attr({x1:f.tickLength?x-f.tickLength:0,x2:x}).style({display:f.angularAxis.gridLinesVisible?"block":"none"}),J.append("text").classed("axis-text",!0).style(N);var K=X.select("text.axis-text").attr({x:x+f.labelOffset,dy:i+"em",transform:function(e,t){var r=q(e),a=x+f.labelOffset,n=f.angularAxis.tickOrientation;return"horizontal"==n?"rotate("+-r+" "+a+" 0)":"radial"==n?r<270&&r>90?"rotate(180 "+a+" 0)":null:"rotate("+(r<=180&&r>0?-90:90)+" "+a+" 0)"}}).style({"text-anchor":"middle",display:f.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(f.minorTicks+1)!=0?"":w?w[e]+f.angularAxis.ticksSuffix:e+f.angularAxis.ticksSuffix})).style(N);f.angularAxis.rewriteTicks&&K.text((function(e,t){return t%(f.minorTicks+1)!=0?"":f.angularAxis.rewriteTicks(this.textContent,t)}));var Q=a.max(j.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));E.attr({transform:"translate("+[x+Q,f.margin.top]+")"});var $=e.select("g.geometry-group").selectAll("g").size()>0,ee=e.select("g.geometry-group").selectAll("g.geometry").data(h);if(ee.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),ee.exit().remove(),h[0]||$){var te=[];h.forEach((function(e,t){var a={};a.radialScale=r,a.angularScale=l,a.container=ee.filter((function(e,r){return r==t})),a.geometry=e.geometry,a.orientation=f.orientation,a.direction=f.direction,a.index=t,te.push({data:e,geometryConfig:a})}));var re=a.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(te),ae=[];re.forEach((function(e,t){"unstacked"===e.key?ae=ae.concat(e.values.map((function(e,t){return[e]}))):ae.push(e.values)})),ae.forEach((function(e,t){var r;r=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var a=e.map((function(e,t){return n(o[r].defaultConfig(),e)}));o[r]().config(a)()}))}var ne,ie,oe=e.select(".guides-group"),le=e.select(".tooltips-group"),se=o.tooltipPanel().config({container:le,fontSize:8})(),ce=o.tooltipPanel().config({container:le,fontSize:8})(),de=o.tooltipPanel().config({container:le,hasTick:!0})();if(!T){var ue=oe.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});j.on("mousemove.angular-guide",(function(e,t){var r=o.util.getMousePos(W).angle;ue.attr({x2:-x,transform:"rotate("+r+")"}).style({opacity:.5});var a=(r+180+360-f.orientation)%360;ne=l.invert(a);var n=o.util.convertToCartesian(x+12,r+180);se.text(o.util.round(ne)).move([n[0]+_[0],n[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){oe.select("line").style({opacity:0})}))}var fe=oe.select("circle").style({stroke:"grey",fill:"none"});j.on("mousemove.radial-guide",(function(e,t){var a=o.util.getMousePos(W).radius;fe.attr({r:a}).style({opacity:.5}),ie=r.invert(o.util.getMousePos(W).radius);var n=o.util.convertToCartesian(a,f.radialAxis.orientation);ce.text(o.util.round(ie)).move([n[0]+_[0],n[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){fe.style({opacity:0}),de.hide(),se.hide(),ce.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,r){var n=a.select(this),i=this.style.fill,l="black",s=this.style.opacity||1;if(n.attr({"data-opacity":s}),i&&"none"!==i){n.attr({"data-fill":i}),l=a.hsl(i).darker().toString(),n.style({fill:l,opacity:1});var c={t:o.util.round(t[0]),r:o.util.round(t[1])};T&&(c.t=w[t[0]]);var d="t: "+c.t+", r: "+c.r,u=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[u.left+u.width/2-H[0]-f.left,u.top+u.height/2-H[1]-f.top];de.config({color:l}).text(d),de.move(h)}else i=this.style.stroke||"black",n.attr({"data-stroke":i}),l=a.hsl(i).darker().toString(),n.style({stroke:l,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=a.event.which)return!1;a.select(this).attr("data-fill")&&de.show()})).on("mouseout.tooltip",(function(e,t){de.hide();var r=a.select(this),n=r.attr("data-fill");n?r.style({fill:n,opacity:r.attr("data-opacity")}):r.style({stroke:r.attr("data-stroke"),opacity:r.attr("data-opacity")})}))}))}(c),this},f.config=function(e){if(!arguments.length)return s;var t=o.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),n(s.data[t],o.Axis.defaultConfig().data[0]),n(s.data[t],e)})),n(s.layout,o.Axis.defaultConfig().layout),n(s.layout,t.layout),this},f.getLiveConfig=function(){return d},f.getinputConfig=function(){return c},f.radialScale=function(e){return r},f.angularScale=function(e){return l},f.svg=function(){return e},a.rebind(f,u,"on"),f},o.Axis.defaultConfig=function(e,t){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:a.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(e,t){for(var r in e)r in t&&(t[r]=e[r])},o.util._extend=function(e,t){for(var r in e)t[r]=e[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(e,t){var r=t||6;return a.range(0,360+r,r).map((function(t,r){var a=t*Math.PI/180;return[t,e(a)]}))},o.util.dataFromEquation=function(e,t,r){var n=t||6,i=[],o=[];a.range(0,360+n,n).forEach((function(t,r){var a=t*Math.PI/180,n=e(a);i.push(t),o.push(n)}));var l={t:i,r:o};return r&&(l.name=r),l},o.util.ensureArray=function(e,t){if(void 0===e)return null;var r=[].concat(e);return a.range(t).map((function(e,t){return r[t]||r[0]}))},o.util.fillArrays=function(e,t,r){return t.forEach((function(t,a){e[t]=o.util.ensureArray(e[t],r)})),e},o.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},o.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var r=t.shift();return e[r]&&(!t.length||objHasKeys(e[r],t))},o.util.sumArrays=function(e,t){return a.zip(e,t).map((function(e,t){return a.sum(e)}))},o.util.arrayLast=function(e){return e[e.length-1]},o.util.arrayEqual=function(e,t){for(var r=Math.max(e.length,t.length,1);r-- >=0&&e[r]===t[r];);return-2===r},o.util.flattenArray=function(e){for(var t=[];!o.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},o.util.deduplicate=function(e){return e.filter((function(e,t,r){return r.indexOf(e)==t}))},o.util.convertToCartesian=function(e,t){var r=t*Math.PI/180;return[e*Math.cos(r),e*Math.sin(r)]},o.util.round=function(e,t){var r=t||2,a=Math.pow(10,r);return Math.round(e*a)/a},o.util.getMousePos=function(e){var t=a.mouse(e.node()),r=t[0],n=t[1],i={};return i.x=r,i.y=n,i.pos=t,i.angle=180*(Math.atan2(n,r)+Math.PI)/Math.PI,i.radius=Math.sqrt(r*r+n*n),i},o.util.duplicatesCount=function(e){for(var t,r={},a={},n=0,i=e.length;n<i;n++)(t=e[n])in r?(r[t]++,a[t]=r[t]):r[t]=1;return a},o.util.duplicates=function(e){return Object.keys(o.util.duplicatesCount(e))},o.util.translator=function(e,t,r,a){if(a){var n=r.slice();r=t,t=n}var i=t.reduce((function(e,t){if(void 0!==e)return e[t]}),e);void 0!==i&&(t.reduce((function(e,r,a){if(void 0!==e)return a===t.length-1&&delete e[r],e[r]}),e),r.reduce((function(e,t,a){return void 0===e[t]&&(e[t]={}),a===r.length-1&&(e[t]=i),e[t]}),e))},o.PolyChart=function(){var e=[o.PolyChart.defaultConfig()],t=a.dispatch("hover"),r={solid:"none",dash:[5,2],dot:[2,5]};function i(){var t=e[0].geometryConfig,n=t.container;"string"==typeof n&&(n=a.select(n)),n.datum(e).each((function(e,n){var i=!!e[0].data.yStack,o=e.map((function(e,t){return i?a.zip(e.data.t[0],e.data.r[0],e.data.yStack[0]):a.zip(e.data.t[0],e.data.r[0])})),l=t.angularScale,s=t.radialScale.domain()[0],c={bar:function(r,n,i){var o=e[i].data,s=t.radialScale(r[1])-t.radialScale(0),c=t.radialScale(r[2]||0),d=o.barWidth;a.select(this).attr({class:"mark bar",d:"M"+[[s+c,-d/2],[s+c,d/2],[c,d/2],[c,-d/2]].join("L")+"Z",transform:function(e,r){return"rotate("+(t.orientation+l(e[0]))+")"}})}};c.dot=function(r,n,i){var o=r[2]?[r[0],r[1]+r[2]]:r,l=a.svg.symbol().size(e[i].data.dotSize).type(e[i].data.dotType)(r,n);a.select(this).attr({class:"mark dot",d:l,transform:function(e,r){var a,n,i,l=(a=function(e,r){var a=t.radialScale(e[1]),n=(t.angularScale(e[0])+t.orientation)*Math.PI/180;return{r:a,t:n}}(o),n=a.r*Math.cos(a.t),i=a.r*Math.sin(a.t),{x:n,y:i});return"translate("+[l.x,l.y]+")"}})};var d=a.svg.line.radial().interpolate(e[0].data.lineInterpolation).radius((function(e){return t.radialScale(e[1])})).angle((function(e){return t.angularScale(e[0])*Math.PI/180}));c.line=function(r,n,i){var l=r[2]?o[i].map((function(e,t){return[e[0],e[1]+e[2]]})):o[i];if(a.select(this).each(c.dot).style({opacity:function(t,r){return+e[i].data.dotVisible},fill:p.stroke(r,n,i)}).attr({class:"mark dot"}),!(n>0)){var s=a.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:d(l),transform:function(e,r){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(r,n,i)},"fill-opacity":0,stroke:function(e,t){return p.stroke(r,n,i)},"stroke-width":function(e,t){return p["stroke-width"](r,n,i)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](r,n,i)},opacity:function(e,t){return p.opacity(r,n,i)},display:function(e,t){return p.display(r,n,i)}})}};var u=t.angularScale.range(),f=Math.abs(u[1]-u[0])/o[0].length*Math.PI/180,h=a.svg.arc().startAngle((function(e){return-f/2})).endAngle((function(e){return f/2})).innerRadius((function(e){return t.radialScale(s+(e[2]||0))})).outerRadius((function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])}));c.arc=function(e,r,n){a.select(this).attr({class:"mark arc",d:h,transform:function(e,r){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var p={fill:function(t,r,a){return e[a].data.color},stroke:function(t,r,a){return e[a].data.strokeColor},"stroke-width":function(t,r,a){return e[a].data.strokeSize+"px"},"stroke-dasharray":function(t,a,n){return r[e[n].data.strokeDash]},opacity:function(t,r,a){return e[a].data.opacity},display:function(t,r,a){return void 0===e[a].data.visible||e[a].data.visible?"block":"none"}},g=a.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var m=g.selectAll("path.mark").data((function(e,t){return e}));m.enter().append("path").attr({class:"mark"}),m.style(p).each(c[t.geometryType]),m.exit().remove(),g.exit().remove()}))}return i.config=function(t){return arguments.length?(t.forEach((function(t,r){e[r]||(e[r]={}),n(e[r],o.PolyChart.defaultConfig()),n(e[r],t)})),this):e},i.getColorScale=function(){},a.rebind(i,t,"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:a.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 e=o.Legend.defaultConfig(),t=a.dispatch("hover");function r(){var t=e.legendConfig,i=e.data.map((function(e,r){return[].concat(e).map((function(e,a){var i=n({},t.elements[r]);return i.name=e,i.color=[].concat(t.elements[r].color)[a],i}))})),o=a.merge(i);o=o.filter((function(e,r){return t.elements[r]&&(t.elements[r].visibleInLegend||void 0===t.elements[r].visibleInLegend)})),t.reverseOrder&&(o=o.reverse());var l=t.container;("string"==typeof l||l.nodeName)&&(l=a.select(l));var s=o.map((function(e,t){return e.color})),c=t.fontSize,d=null==t.isContinuous?"number"==typeof o[0]:t.isContinuous,u=d?t.height:c*o.length,f=l.classed("legend-group",!0).selectAll("svg").data([0]),h=f.enter().append("svg").attr({width:300,height:u+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var p=a.range(o.length),g=a.scale[d?"linear":"ordinal"]().domain(p).range(s),m=a.scale[d?"linear":"ordinal"]().domain(p)[d?"range":"rangePoints"]([0,u]);if(d){var y=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);y.enter().append("stop"),y.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var v=f.select(".legend-marks").selectAll("path.legend-mark").data(o);v.enter().append("path").classed("legend-mark",!0),v.attr({transform:function(e,t){return"translate("+[c/2,m(t)+c/2]+")"},d:function(e,t){var r,n,i,o=e.symbol;return i=3*(n=c),"line"===(r=o)?"M"+[[-n/2,-n/12],[n/2,-n/12],[n/2,n/12],[-n/2,n/12]]+"Z":-1!=a.svg.symbolTypes.indexOf(r)?a.svg.symbol().type(r).size(i)():a.svg.symbol().type("square").size(i)()},fill:function(e,t){return g(t)}}),v.exit().remove()}var x=a.svg.axis().scale(m).orient("right"),b=f.select("g.legend-axis").attr({transform:"translate("+[d?t.colorBandWidth:c,c/2]+")"}).call(x);return b.selectAll(".domain").style({fill:"none",stroke:"none"}),b.selectAll("line").style({fill:"none",stroke:d?t.textColor:"none"}),b.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return o[t].name})),r}return r.config=function(t){return arguments.length?(n(e,t),this):e},a.rebind(r,t,"on"),r},o.Legend.defaultConfig=function(e,t){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 e,t,r,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+o.tooltipPanel.uid++,s=10,c=function(){var a=(e=i.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return r=a.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=a.append("text").attr({dx:i.padding+s,dy:.3*+i.fontSize}),c};return c.text=function(n){var o=a.hsl(i.color).l,l=o>=.5?"#aaa":"white",d=o>=.5?"black":"white",u=n||"";t.style({fill:d,"font-size":i.fontSize+"px"}).text(u);var f=i.padding,h=t.node().getBBox(),p={fill:i.color,stroke:l,"stroke-width":"2px"},g=h.width+2*f+s,m=h.height+2*f;return r.attr({d:"M"+[[s,-m/2],[s,-m/4],[i.hasTick?0:s,0],[s,m/4],[s,m/2],[g,m/2],[g,-m/2]].join("L")+"Z"}).style(p),e.attr({transform:"translate("+[s,-m/2+2*f]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return n(i,e),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var e={convert:function(e,t){var r={};if(e.data&&(r.data=e.data.map((function(e,r){var a=n({},e);return[[a,["marker","color"],["color"]],[a,["marker","opacity"],["opacity"]],[a,["marker","line","color"],["strokeColor"]],[a,["marker","line","dash"],["strokeDash"]],[a,["marker","line","width"],["strokeSize"]],[a,["marker","symbol"],["dotType"]],[a,["marker","size"],["dotSize"]],[a,["marker","barWidth"],["barWidth"]],[a,["line","interpolation"],["lineInterpolation"]],[a,["showlegend"],["visibleInLegend"]]].forEach((function(e,r){o.util.translator.apply(null,e.concat(t))})),t||delete a.marker,t&&delete a.groupId,t?("LinePlot"===a.geometry?(a.type="scatter",!0===a.dotVisible?(delete a.dotVisible,a.mode="lines+markers"):a.mode="lines"):"DotPlot"===a.geometry?(a.type="scatter",a.mode="markers"):"AreaChart"===a.geometry?a.type="area":"BarChart"===a.geometry&&(a.type="bar"),delete a.geometry):("scatter"===a.type?"lines"===a.mode?a.geometry="LinePlot":"markers"===a.mode?a.geometry="DotPlot":"lines+markers"===a.mode&&(a.geometry="LinePlot",a.dotVisible=!0):"area"===a.type?a.geometry="AreaChart":"bar"===a.type&&(a.geometry="BarChart"),delete a.mode,delete a.type),a})),!t&&e.layout&&"stack"===e.layout.barmode)){var i=o.util.duplicates(r.data.map((function(e,t){return e.geometry})));r.data.forEach((function(e,t){var a=i.indexOf(e.geometry);-1!=a&&(r.data[t].groupId=a)}))}if(e.layout){var l=n({},e.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(e,r){o.util.translator.apply(null,e.concat(t))})),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==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&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],d={};a.entries(l.margin).forEach((function(e,t){d[c[s.indexOf(e.key)]]=e.value})),l.margin=d}t&&(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 e}},Opyf:function(e,t,r){"use strict";var a=r("DOzC").setGroupPositions;e.exports=function(e,t){var r,n,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=t.xaxis,c=t.yaxis,d=[],u=[],f=[];for(n=0;n<o.length;n++){var h=o[n],p="h"===h.orientation;!0===h.visible&&h.xaxis===s._id&&h.yaxis===c._id&&"funnel"===h.type&&(r=l[n],p?f.push(r):u.push(r),d.push(r))}var g={mode:i.funnelmode,norm:i.funnelnorm,gap:i.funnelgap,groupgap:i.funnelgroupgap};for(a(e,s,c,u,g),a(e,c,s,f,g),n=0;n<d.length;n++){r=d[n];for(var m=0;m<r.length;m++)m+1<r.length&&(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},OqjQ:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("IVx0").extractOpts;e.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,c=r.containerStr,d=c?n.nestedProperty(t,c).get():t,u=i(d),f=!1!==u.auto,h=u.min,p=u.max,g=u.mid,m=function(){return n.aggNums(Math.min,null,s)},y=function(){return n.aggNums(Math.max,null,s)};(void 0===h?h=m():f&&(h=d._colorAx&&a(h)?Math.min(h,m()):m()),void 0===p?p=y():f&&(p=d._colorAx&&a(p)?Math.max(p,y()):y()),f&&void 0!==g&&(p-g>g-h?h=g-(p-g):p-g<g-h&&(p=g+(g-h))),h===p&&(h-=.5,p+=.5),u._sync("min",h),u._sync("max",p),u.autocolorscale)&&(o=h*p<0?l.colorscale.diverging:h>=0?l.colorscale.sequential:l.colorscale.sequentialminus,u._sync("colorscale",o))}},OyTQ:function(e,t,r){"use strict";var a=r("4htA"),n=a.drawMode,i=a.openMode,o=r("UtjE"),l=o.i000,s=o.i090,c=o.i180,d=o.i270,u=o.cos45,f=o.sin45,h=r("rDM+"),p=h.p2r,g=h.r2p,m=r("6Ue+").clearSelect,y=r("s02k"),v=y.readPaths,x=y.writePaths,b=y.ellipseOver;e.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var a=r.getAttribute("d"),o=t.gd,h=o._fullLayout.newshape,y=t.plotinfo,_=y.xaxis,w=y.yaxis,k=!!y.domain||!y.xaxis,T=!!y.domain||!y.yaxis,A=t.isActiveShape,M=t.dragmode,S=(o.layout||{}).shapes||[];if(!n(M)&&void 0!==A){var L=o._fullLayout._activeShapeIndex;if(L<S.length)switch(o._fullLayout.shapes[L].type){case"rect":M="drawrect";break;case"circle":M="drawcircle";break;case"line":M="drawline";break;case"path":var C=S[L].path||"";M="Z"===C[C.length-1]?"drawclosedpath":"drawopenpath"}}var I,D=i(M),O=v(a,o,y,A),z={editable:!0,xref:k?"paper":_._id,yref:T?"paper":w._id,layer:h.layer,opacity:h.opacity,line:{color:h.line.color,width:h.line.width,dash:h.line.dash}};if(D||(z.fillcolor=h.fillcolor,z.fillrule=h.fillrule),1===O.length&&(I=O[0]),I&&"drawrect"===M)z.type="rect",z.x0=I[0][1],z.y0=I[0][2],z.x1=I[2][1],z.y1=I[2][2];else if(I&&"drawline"===M)z.type="line",z.x0=I[0][1],z.y0=I[0][2],z.x1=I[1][1],z.y1=I[1][2];else if(I&&"drawcircle"===M){z.type="circle";var P=I[l][1],E=I[s][1],j=I[c][1],R=I[d][1],N=I[l][2],F=I[s][2],B=I[c][2],H=I[d][2],V=y.xaxis&&("date"===y.xaxis.type||"log"===y.xaxis.type),Z=y.yaxis&&("date"===y.yaxis.type||"log"===y.yaxis.type);V&&(P=g(y.xaxis,P),E=g(y.xaxis,E),j=g(y.xaxis,j),R=g(y.xaxis,R)),Z&&(N=g(y.yaxis,N),F=g(y.yaxis,F),B=g(y.yaxis,B),H=g(y.yaxis,H));var G=(E+R)/2,U=(N+B)/2,W=b({x0:G,y0:U,x1:G+(R-E+j-P)/2*u,y1:U+(H-F+B-N)/2*f});V&&(W.x0=p(y.xaxis,W.x0),W.x1=p(y.xaxis,W.x1)),Z&&(W.y0=p(y.yaxis,W.y0),W.y1=p(y.yaxis,W.y1)),z.x0=W.x0,z.y0=W.y0,z.x1=W.x1,z.y1=W.y1}else z.type="path",_&&w&&function(e,t,r){var a="date"===t.type,n="date"===r.type;if(!a&&!n)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)a&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),n&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"))}(O,_,w),z.path=x(O),I=null;m(o);for(var q=t.editHelpers,Y=(q||{}).modifyItem,X=[],J=0;J<S.length;J++){var K=o._fullLayout.shapes[J];if(X[J]=K._input,void 0!==A&&J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case"line":case"rect":case"circle":Y("x0",Q.x0),Y("x1",Q.x1),Y("y0",Q.y0),Y("y1",Q.y1);break;case"path":Y("path",Q.path)}}}return void 0===A?(X.push(z),X):q?q.getUpdateObj():{}}}}},"P/XJ":function(e,t,r){"use strict";var a={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v2, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},n={};!function e(t,r){for(var a in t){var n=t[a];n.valType?r[a]=n.dflt:(r[a]||(r[a]={}),e(n,r[a]))}}(a,n),e.exports={configAttributes:a,dfltConfig:n}},"P/f8":function(e,t,r){"use strict";e.exports={xaxis:{valType:"subplotid",role:"info",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",role:"info",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}},P7Iz:function(e,t,r){"use strict";var a=r("/CZE"),n=r("u3HJ"),i=r("aSHK"),o=r("P/XJ").dfltConfig,l=a.isPlainObject,s=Array.isArray,c=a.isArrayOrTypedArray;function d(e,t,r,n,i,o){o=o||[];for(var u=Object.keys(e),f=0;f<u.length;f++){var h=u[f];if("transforms"!==h){var y=o.slice();y.push(h);var v=e[h],x=t[h],b=m(r,h),_=(b||{}).valType,w="info_array"===_,k="colorscale"===_,T=(b||{}).items;if(g(r,h))if(l(v)&&l(x)&&"any"!==_)d(v,x,b,n,i,y);else if(w&&s(v)){v.length>x.length&&n.push(p("unused",i,y.concat(x.length)));var A,M,S,L,C,I=x.length,D=Array.isArray(T);if(D&&(I=Math.min(I,T.length)),2===b.dimensions)for(M=0;M<I;M++)if(s(v[M])){v[M].length>x[M].length&&n.push(p("unused",i,y.concat(M,x[M].length)));var O=x[M].length;for(A=0;A<(D?Math.min(O,T[M].length):O);A++)S=D?T[M][A]:T,L=v[M][A],C=x[M][A],a.validate(L,S)?C!==L&&C!==+L&&n.push(p("dynamic",i,y.concat(M,A),L,C)):n.push(p("value",i,y.concat(M,A),L))}else n.push(p("array",i,y.concat(M),v[M]));else for(M=0;M<I;M++)S=D?T[M]:T,L=v[M],C=x[M],a.validate(L,S)?C!==L&&C!==+L&&n.push(p("dynamic",i,y.concat(M),L,C)):n.push(p("value",i,y.concat(M),L))}else if(b.items&&!w&&s(v)){var z,P,E=T[Object.keys(T)[0]],j=[];for(z=0;z<x.length;z++){var R=x[z]._index||z;if((P=y.slice()).push(R),l(v[R])&&l(x[z])){j.push(R);var N=v[R],F=x[z];l(N)&&!1!==N.visible&&!1===F.visible?n.push(p("invisible",i,P)):d(N,F,E,n,i,P)}}for(z=0;z<v.length;z++)(P=y.slice()).push(z),l(v[z])?-1===j.indexOf(z)&&n.push(p("unused",i,P)):n.push(p("object",i,P,v[z]))}else!l(v)&&l(x)?n.push(p("object",i,y,v)):c(v)||!c(x)||w||k?h in t?a.validate(v,b)?"enumerated"===b.valType&&(b.coerceNumber&&v!==+x||v!==x)&&n.push(p("dynamic",i,y,v,x)):n.push(p("value",i,y,v)):n.push(p("unused",i,y,v)):n.push(p("array",i,y,v));else n.push(p("schema",i,y))}}return n}function u(e,t){for(var r=e.layout.layoutAttributes,n=0;n<t.length;n++){var i=t[n],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?a.extendFlat(r[o.attributes.subplot.dflt],l):a.extendFlat(r,l))}return r}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var r,c,f=i.get(),h=[],g={_context:a.extendFlat({},o)};s(e)?(g.data=a.extendDeep([],e),r=e):(g.data=[],r=[],h.push(p("array","data"))),l(t)?(g.layout=a.extendDeep({},t),c=t):(g.layout={},c={},arguments.length>1&&h.push(p("object","layout"))),n.supplyDefaults(g);for(var m=g._fullData,y=r.length,v=0;v<y;v++){var x=r[v],b=["data",v];if(l(x)){var _=m[v],w=_.type,k=f.traces[w].attributes;k.type={valType:"enumerated",values:[w]},!1===_.visible&&!1!==x.visible&&h.push(p("invisible",b)),d(x,_,k,h,b);var T=x.transforms,A=_.transforms;if(T){s(T)||h.push(p("array",b,["transforms"])),b.push("transforms");for(var M=0;M<T.length;M++){var S=["transforms",M],L=T[M].type;if(l(T[M])){var C=f.transforms[L]?f.transforms[L].attributes:{};C.type={valType:"enumerated",values:Object.keys(f.transforms)},d(T[M],A[M],C,h,b,S)}else h.push(p("object",b,S))}}}else h.push(p("object",b))}var I=g._fullLayout,D=u(f,m);return d(c,I,D,h,"layout"),0===h.length?void 0:h};var f={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":h(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":h(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return h(e)+"key "+t+" is not part of the schema"},unused:function(e,t,r){var a=l(r)?"container":"key";return h(e)+a+" "+t+" did not get coerced"},dynamic:function(e,t,r,a){return[h(e)+"key",t,"(set to '"+r+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?h(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,r){return[h(e)+"key "+t,"is set to an invalid value ("+r+")"].join(" ")}};function h(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function p(e,t,r,n,i){var o,l;r=r||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",r=0;r<e.length;r++){var a=e[r];"number"==typeof a?t=t.substr(0,t.length-1)+"["+a+"]":t+=a,r<e.length-1&&(t+=".")}return t}(r),d=f[e](t,c,n,i);return a.log(d),{code:e,container:o,trace:l,path:r,astr:c,msg:d}}function g(e,t){var r=v(t),a=r.keyMinusId,n=r.id;return!!(a in e&&e[a]._isSubplotObj&&n)||t in e}function m(e,t){return t in e?e[t]:e[v(t).keyMinusId]}var y=a.counterRegex("([a-z]+)");function v(e){var t=e.match(y);return{keyMinusId:t&&t[1],id:t&&t[2]}}},PBw4:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("0wH6");function i(e,t){if(t&&t.length)for(var r=0;r<t.length;r++)if(t[r][e])return!0;return!1}t.id2name=function(e){if("string"==typeof e&&e.match(n.AX_ID_PATTERN)){var t=e.split(" ")[0].substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(n.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t,r){var a=/( domain)$/.test(e);if("string"==typeof e&&e.match(n.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!a||r)){var i=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(a&&r?" domain":"")}},t.list=function(e,r,a){var n=e._fullLayout;if(!n)return[];var i,o=t.listIds(e,r),l=new Array(o.length);for(i=0;i<o.length;i++){var s=o[i];l[i]=n[s.charAt(0)+"axis"+s.substr(1)]}if(!a){var c=n._subplots.gl3d||[];for(i=0;i<c.length;i++){var d=n[c[i]];r?l.push(d[r+"axis"]):l.push(d.xaxis,d.yaxis,d.zaxis)}}return l},t.listIds=function(e,t){var r=e._fullLayout;if(!r)return[];var a=r._subplots;return t?a[t+"axis"]:a.xaxis.concat(a.yaxis)},t.getFromId=function(e,r,a){var n=e._fullLayout;return r=void 0===r||"string"!=typeof r?r:r.replace(" domain",""),"x"===a?r=r.replace(/y[0-9]*/,""):"y"===a&&(r=r.replace(/x[0-9]*/,"")),n[t.id2name(r)]},t.getFromTrace=function(e,r,n){var i=e._fullLayout,o=null;if(a.traceIs(r,"gl3d")){var l=r.scene;"scene"===l.substr(0,5)&&(o=i[l][n+"axis"])}else o=t.getFromId(e,r[n+"axis"]||n);return o},t.idSort=function(e,t){var r=e.charAt(0),a=t.charAt(0);return r!==a?r>a?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},t.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},PDHv:function(e,t,r){"use strict";function a(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,r=e.symmetric;if("data"===t){var n=e.array||[];if(r)return function(e,t){var r=+n[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+n[t],a=+i[t];return isNaN(r)&&isNaN(a)?[NaN,NaN]:[a||0,r||0]}}var o=a(t,e.value),l=a(t,e.valueminus);return r||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},PS76:function(e,t,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:"◄",right:"►",up:"▲",down:"▼"}}},PTBI:function(e,t,r){"use strict";e.exports=r("Xo+u")},Po4l:function(e,t,r){"use strict";e.exports={treemapcolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default treemap slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendtreemapcolors`."].join(" ")},extendtreemapcolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the treemap slice colors (whether given by `treemapcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},Pqs8:function(e,t,r){"use strict";e.exports=r("d655")},Pv7J:function(e,t,r){"use strict";e.exports=r("oYsm")},Q1hF:function(e,t,r){"use strict";var a=r("avjU").isArrayOrTypedArray,n=r("E4V0");e.exports=function e(t,r){for(var i in r){var o=r[i],l=t[i];if(l!==o)if("_"===i.charAt(0)||"function"==typeof o){if(i in t)continue;t[i]=o}else if(a(o)&&a(l)&&n(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),c=0;c<s;c++)l[c]!==o[c]&&n(o[c])&&n(l[c])&&e(l[c],o[c])}else n(o)&&n(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},Q9kw:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("u3HJ"),o=r("Nx4I"),l=r("h0EB"),s=r("Tv4R"),c=r("g9E0"),d=r("0RW4"),u=r("A3kh"),f=r("hN+Y"),h=r("uvVx"),p=r("Y9zF"),g=p.LINE_SPACING,m=p.FROM_TL,y=p.FROM_BR,v=r("8o4k"),x=r("7ncg"),b=r("efHY");function _(e,t,r,a,n){var i=r.data()[0][0].trace,s={event:n,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};if(i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s))if(1===a)t._clickTimeout=setTimeout((function(){f(r,e,a)}),e._context.doubleClickDelay);else if(2===a){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&f(r,e,a)}}function w(e,t,r){var a,i=e.data()[0][0],l=i.trace,s=o.traceIs(l,"pie-like"),d=l.index,f=r._main&&t._context.edits.legendText&&!s,p=r._maxNameLength;r.entries?a=i.text:(a=s?i.label:l.name,l._meta&&(a=n.templateString(a,l._meta)));var g=n.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").call(c.font,r.font).text(f?k(a,p):a);var m=r.itemwidth+2*h.itemGap;u.positionText(g,m,0),f?g.call(u.makeEditable,{gd:t,text:a}).call(A,e,t,r).on("edit",(function(a){this.text(k(a,p)).call(A,e,t,r);var l=i.trace._fullInput||{},s={};if(o.hasTransform(l,"groupby")){var c=o.getTransformIndices(l,"groupby"),u=c[c.length-1],f=n.keyedContainer(l,"transforms["+u+"].styles","target","value.name");f.set(i.trace._group,a),s=f.constructUpdate()}else s.name=a;return o.call("_guiRestyle",t,s,d)})):A(g,e,t,r)}function k(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var a=r-(e=e||"").length;a>0;a--)e+=" ";return e}function T(e,t){var r,i=t._context.doubleClickDelay,o=1,l=n.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(d.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTime<i?o+=1:(o=1,t._legendMouseDownTime=r)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var r=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>i&&(o=Math.max(o-1,1)),_(t,r,e,o,a.event)}})))}function A(e,t,r,a){a._main||e.attr("data-notex",!0),u.convertToTspans(e,r,(function(){!function(e,t,r){var a=e.data()[0][0];if(r._main&&a&&!a.trace.showlegend)return void e.remove();var n=e.select("g[class*=math-group]"),i=n.node();r||(r=t._fullLayout.legend);var o,l,s=r.borderwidth,d=(a?r:r.title).font.size*g;if(i){var f=c.bBox(i);o=f.height,l=f.width,a?c.setTranslate(n,0,.25*o):c.setTranslate(n,s,.75*o+s)}else{var p=e.select(a?".legendtext":".legendtitletext"),m=u.lineCount(p),y=p.node();o=d*m,l=y?c.bBox(y).width:0;var v=d*((m-1)/2-.3);if(a){var x=r.itemwidth+2*h.itemGap;u.positionText(p,x,-v)}else u.positionText(p,h.titlePad+s,d+s)}a?(a.lineHeight=d,a.height=Math.max(o,16)+3,a.width=l):(r._titleWidth=l,r._titleHeight=o)}(t,r,a)}))}function M(e){return n.isRightAnchor(e)?"right":n.isCenterAnchor(e)?"center":"left"}function S(e){return n.isBottomAnchor(e)?"bottom":n.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){var r,l=e._fullLayout,u="legend"+l._uid;if(t?(r=t.layer,u+="-hover"):((t=l.legend||{})._main=!0,r=l._infolayer),r){var f;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;f=l.showlegend&&v(e.calcdata,t)}else{if(!t.entries)return;f=v(t.entries,t)}var p=l.hiddenlabels||[];if(t._main&&(!l.showlegend||!f.length))return r.selectAll(".legend").remove(),l._topdefs.select("#"+u).remove(),i.autoMargin(e,"legend");var g=n.ensureSingle(r,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),k=n.ensureSingleById(l._topdefs,"clipPath",u,(function(e){e.append("rect")})),L=n.ensureSingle(g,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));L.call(d.stroke,t.bordercolor).call(d.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=n.ensureSingle(g,"g","scrollbox"),I=t.title;if(t._titleWidth=0,t._titleHeight=0,I.text){var D=n.ensureSingle(C,"text","legendtitletext");D.attr("text-anchor","start").call(c.font,I.font).text(I.text),A(D,C,e,t)}else C.selectAll(".legendtitletext").remove();var O=n.ensureSingle(g,"rect","scrollbar",(function(e){e.attr(h.scrollBarEnterAttrs).call(d.fill,h.scrollBarColor)})),z=C.selectAll("g.groups").data(f);z.enter().append("g").attr("class","groups"),z.exit().remove();var P=z.selectAll("g.traces").data(n.identity);P.enter().append("g").attr("class","traces"),P.exit().remove(),P.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){a.select(this).call(w,e,t)})).call(x,e,t).each((function(){t._main&&a.select(this).call(T,e)})),n.syncOrAsync([i.previousPromises,function(){return function(e,t,r,n){var i=e._fullLayout;n||(n=i.legend);var o=i._size,l=b.isVertical(n),s=b.isGrouped(n),d=n.borderwidth,u=2*d,f=h.itemGap,p=n.itemwidth+2*f,g=2*(d+f),m=S(n),y=n.y<0||0===n.y&&"top"===m,v=n.y>1||1===n.y&&"bottom"===m;n._maxHeight=Math.max(y||v?i.height/2:o.h,30);var x=0;n._width=0,n._height=0;var _=function(e){var t=0,r=0,a=e.title.side;a&&(-1!==a.indexOf("left")&&(t=e._titleWidth),-1!==a.indexOf("top")&&(r=e._titleHeight));return[t,r]}(n);if(l)r.each((function(e){var t=e[0].height;c.setTranslate(this,d+_[0],d+_[1]+n._height+t/2+f),n._height+=t,n._width=Math.max(n._width,e[0].width)})),x=p+n._width,n._width+=f+p+u,n._height+=g,s&&(t.each((function(e,t){c.setTranslate(this,0,t*n.tracegroupgap)})),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var w=M(n),k=n.x<0||0===n.x&&"right"===w,T=n.x>1||1===n.x&&"left"===w,A=v||y,L=i.width/2;n._maxWidth=Math.max(k?A&&"left"===w?o.l+o.w:L:T?A&&"right"===w?o.r+o.w:L:o.w,2*p);var C=0,I=0;r.each((function(e){var t=e[0].width+p;C=Math.max(C,t),I+=t})),x=null;var D=0;if(s){var O=0,z=0,P=0;t.each((function(){var e=0,t=0;a.select(this).selectAll("g.traces").each((function(r){var a=r[0].height;c.setTranslate(this,_[0],_[1]+d+f+a/2+t),t+=a,e=Math.max(e,p+r[0].width)})),O=Math.max(O,t);var r=e+f;r+d+z>n._maxWidth&&(D=Math.max(D,z),z=0,P+=O+n.tracegroupgap,O=t),c.setTranslate(this,z,P),z+=r})),n._width=Math.max(D,z)+d,n._height=P+O+g}else{var E=r.size(),j=I+u+(E-1)*f<n._maxWidth,R=0,N=0,F=0,B=0;r.each((function(e){var t=e[0].height,r=p+e[0].width,a=(j?r:C)+f;a+d+N-f>=n._maxWidth&&(D=Math.max(D,B),N=0,F+=R,n._height+=R,R=0),c.setTranslate(this,_[0]+d+N,_[1]+d+F+t/2+f),B=N+r+f,N+=a,R=Math.max(R,t)})),j?(n._width=N+u,n._height=R+g):(n._width=Math.max(D,B)+u,n._height+=R+g)}}n._width=Math.ceil(Math.max(n._width+_[0],n._titleWidth+2*(d+h.titlePad))),n._height=Math.ceil(Math.max(n._height+_[1],n._titleHeight+2*(d+h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var H=e._context.edits,V=H.legendText||H.legendPosition;r.each((function(e){var t=a.select(this).select(".legendtoggle"),r=e[0].height,n=V?p:x||p+e[0].width;l||(n+=f/2),c.setRect(t,0,-r/2,n,r)}))}(e,z,P,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,r=M(t),a=S(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*m[r],r:t._width*y[r],b:t._effHeight*y[a],t:t._effHeight*m[a]})}(e)){var d,f,p,v,x=l._size,b=t.borderwidth,w=x.l+x.w*t.x-m[M(t)]*t._width,T=x.t+x.h*(1-t.y)-m[S(t)]*t._effHeight;if(t._main&&l.margin.autoexpand){var A=w,I=T;w=n.constrain(w,0,l.width-t._width),T=n.constrain(T,0,l.height-t._effHeight),w!==A&&n.log("Constrain legend.x to make legend fit inside graph"),T!==I&&n.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&c.setTranslate(g,w,T),O.on(".drag",null),g.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var D=t._effHeight;t._main||(D=t._height),L.attr({width:t._width-b,height:D-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),k.select("rect").attr({width:t._width-2*b,height:D-2*b,x:b,y:b}),c.setClipUrl(C,u,e),c.setRect(O,0,0,0,0),delete t._scrollY}else{var z,P,E,j=Math.max(h.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),R=t._effHeight-j-2*h.scrollBarMargin,N=t._height-t._effHeight,F=R/N,B=Math.min(t._scrollY||0,N);L.attr({width:t._width-2*b+h.scrollBarWidth+h.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),k.select("rect").attr({width:t._width-2*b+h.scrollBarWidth+h.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+B}),c.setClipUrl(C,u,e),Z(B,j,F),g.on("wheel",(function(){Z(B=n.constrain(t._scrollY+a.event.deltaY/R*N,0,N),j,F),0!==B&&B!==N&&a.event.preventDefault()}));var H=a.behavior.drag().on("dragstart",(function(){var e=a.event.sourceEvent;z="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,E=B})).on("drag",(function(){var e=a.event.sourceEvent;2===e.buttons||e.ctrlKey||(P="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,Z(B=function(e,t,r){var a=(r-t)/F+e;return n.constrain(a,0,N)}(E,z,P),j,F))}));O.call(H);var V=a.behavior.drag().on("dragstart",(function(){var e=a.event.sourceEvent;"touchstart"===e.type&&(z=e.changedTouches[0].clientY,E=B)})).on("drag",(function(){var e=a.event.sourceEvent;"touchmove"===e.type&&(P=e.changedTouches[0].clientY,Z(B=function(e,t,r){var a=(t-r)/F+e;return n.constrain(a,0,N)}(E,z,P),j,F))}));C.call(V)}if(e._context.edits.legendPosition)g.classed("cursor-move",!0),s.init({element:g.node(),gd:e,prepFn:function(){var e=c.getTranslate(g);p=e.x,v=e.y},moveFn:function(e,r){var a=p+e,n=v+r;c.setTranslate(g,a,n),d=s.align(a,0,x.l,x.l+x.w,t.xanchor),f=s.align(n,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==d&&void 0!==f&&o.call("_guiRelayout",e,{"legend.x":d,"legend.y":f})},clickFn:function(t,a){var n=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return a.clientX>=e.left&&a.clientX<=e.right&&a.clientY>=e.top&&a.clientY<=e.bottom}));n.size()>0&&_(e,g,n,t,a)}})}function Z(r,a,n){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(O,t._width,h.scrollBarMargin+r*n,h.scrollBarWidth,a),k.select("rect").attr("y",b+r)}}],e)}}},QTaS:function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e,t){a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(e,t)}},QYPY:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("cIkR"),o=r("jyrE"),l=r("SFLx").isValid,s=r("Nx4I").traceIs;function c(e,t){var r=t.slice(0,t.length-1);return t?n.nestedProperty(e,r).get()||{}:e}e.exports=function e(t,r,d,u,f){var h=f.prefix,p=f.cLetter,g="_module"in r,m=c(t,h),y=c(r,h),v=c(r._template||{},h)||{},x=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,d,u,f)};if(g){var b=d._colorAxes||{},_=u(h+"coloraxis");if(_){var w=s(r,"contour")&&n.nestedProperty(r,"contours.coloring").get()||"heatmap",k=b[_];return void(k?(k[2].push(x),k[0]!==w&&(k[0]=!1,n.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[_]=[w,r,[x]])}}var T=m[p+"min"],A=m[p+"max"],M=a(T)&&a(A)&&T<A;u(h+p+"auto",!M)?u(h+p+"mid"):(u(h+p+"min"),u(h+p+"max"));var S,L,C=m.colorscale,I=v.colorscale;(void 0!==C&&(S=!l(C)),void 0!==I&&(S=!l(I)),u(h+"autocolorscale",S),u(h+"colorscale"),u(h+"reversescale"),"marker.line."!==h)&&(h&&g&&(L=i(m)),u(h+"showscale",L)&&(h&&v&&(y._template=v),o(m,y,d)))}},QeBV:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("Nx4I");function o(e,t){var r=t(e);return"scaled"===(r?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),r}e.exports=function(e,t,r,l,s,c){var d,u,f=r("z");if(s=s||"x",c=c||"y",void 0===f||!f.length)return 0;if(n.isArray1D(e.z)){d=r(s),u=r(c);var h=n.minRowLength(d),p=n.minRowLength(u);if(0===h||0===p)return 0;t._length=Math.min(h,p,f.length)}else{if(d=o(s,r),u=o(c,r),!function(e){for(var t,r=!0,i=!1,o=!1,l=0;l<e.length;l++){if(t=e[l],!n.isArrayOrTypedArray(t)){r=!1;break}t.length>0&&(i=!0);for(var s=0;s<t.length;s++)if(a(t[s])){o=!0;break}}return r&&i&&o}(f))return 0;r("transpose"),t._length=null}return"heatmapgl"===e.type||"contourgl"===e.type||i.getComponentMethod("calendars","handleTraceDefaults")(e,t,[s,c],l),!0}},QkhT:function(e,t,r){"use strict";var a=r("Nx4I");t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){var t=e._fullLayout||{};!(t._has&&t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r||a.getComponentMethod("colorbar","draw")(e)}},t.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},t.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var n=window.URL||window.webkitURL;t.createObjectURL=function(e){return n.createObjectURL(e)},t.revokeObjectURL=function(e){return n.revokeObjectURL(e)},t.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=function(e){for(var t=e.length,r=new ArrayBuffer(t),a=new Uint8Array(r),n=0;n<t;n++)a[n]=e.charCodeAt(n);return r}(window.atob(e));return new window.Blob([r],{type:"image/"+t})},t.octetStream=function(e){document.location.href="data:application/octet-stream"+e},t.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,t.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},QkuE:function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;a.mergeArray(t.text,e,"tx"),a.mergeArray(t.hovertext,e,"htx");var n=t.marker;if(n){a.mergeArray(n.opacity,e,"mo",!0),a.mergeArray(n.color,e,"mc");var i=n.line;i&&(a.mergeArray(i.color,e,"mlc"),a.mergeArrayCastPositive(i.width,e,"mlw"))}}},QtxG:function(e,t,r){"use strict";var a=r("mEVB"),n=r("37PH"),i=r("kJIm").extendFlat,o=r("yzSc").overrideAll,l=r("grU7"),s=r("plED").templatedArray,c=s("button",{visible:{valType:"boolean",role:"info",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:i(l({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:a({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:n.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},QySe:function(e,t,r){"use strict";var a=r("cLT0");function n(e,t,r,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=r,e.splice(t,0,l),t&&r===e[t-1][o]){var s=e[t-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=function(e,t,r,a){var n=e[t-1],i=e[t+1];return i?n?n.s+(i.s-n.s)*(r-n[a])/(i[a]-n[a]):i.s:n.s}(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}e.exports=function(e,t){var r=t.xaxis,i=t.yaxis,o=r._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,d,u,f,h,p,g,m,y,v,x,b,_,w,k=e.calcdata;for(var T in l){var A=(y=l[T]).traceIndices;if(A.length){for(v="interpolate"===y.stackgaps,x=y.groupnorm,"v"===y.orientation?(b="x",_="y"):(b="y",_="x"),w=new Array(A.length),s=0;s<w.length;s++)w[s]=!1;h=k[A[0]];var M=new Array(h.length);for(s=0;s<h.length;s++)M[s]=h[s][b];for(s=1;s<A.length;s++){for(f=k[A[s]],c=d=0;c<f.length;c++){for(p=f[c][b];p>M[d]&&d<M.length;d++)n(f,c,M[d],s,w,v,b),c++;if(p!==M[d]){for(u=0;u<s;u++)n(k[A[u]],d,p,u,w,v,b);M.splice(d,0,p)}d++}for(;d<M.length;d++)n(f,c,M[d],s,w,v,b),c++}var S=M.length;for(c=0;c<h.length;c++){for(g=h[c][_]=h[c].s,s=1;s<A.length;s++)(f=k[A[s]])[0].trace._rawLength=f[0].trace._length,f[0].trace._length=S,g+=f[c].s,f[c][_]=g;if(x)for(m=("fraction"===x?g:g/100)||1,s=0;s<A.length;s++){var L=k[A[s]][c];L[_]/=m,L.sNorm=L.s/m}}for(s=0;s<A.length;s++){var C=(f=k[A[s]])[0].trace,I=a.calcMarkerSize(C,C._rawLength),D=Array.isArray(I);if(I&&w[s]||D){var O=I;for(I=new Array(S),c=0;c<S;c++)I[c]=f[c].gap?0:D?O[f[c].i]:O}var z=new Array(S),P=new Array(S);for(c=0;c<S;c++)z[c]=f[c].x,P[c]=f[c].y;a.calcAxisExpansion(e,C,r,i,z,P,I),f[0].t.orientation=y.orientation}}}}}},R0av:function(e,t,r){"use strict";e.exports=r("SLue")},"RC9+":function(e,t,r){"use strict";var a=r("teMc");t.plot=a.plot,t.newPlot=a.newPlot,t.restyle=a.restyle,t.relayout=a.relayout,t.redraw=a.redraw,t.update=a.update,t._guiRestyle=a._guiRestyle,t._guiRelayout=a._guiRelayout,t._guiUpdate=a._guiUpdate,t._storeDirectGUIEdit=a._storeDirectGUIEdit,t.react=a.react,t.extendTraces=a.extendTraces,t.prependTraces=a.prependTraces,t.addTraces=a.addTraces,t.deleteTraces=a.deleteTraces,t.moveTraces=a.moveTraces,t.purge=a.purge,t.addFrames=a.addFrames,t.deleteFrames=a.deleteFrames,t.animate=a.animate,t.setPlotConfig=a.setPlotConfig,t.toImage=r("oois"),t.validate=r("P7Iz"),t.downloadImage=r("rZH/");var n=r("LZp3");t.makeTemplate=n.makeTemplate,t.validateTemplate=n.validateTemplate},RFwu:function(e,t,r){"use strict";e.exports={axisRefDescription:function(e,t,r){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",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). 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",t,"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",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},Rpvy:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE");function i(e,t,r){var a,i,o,l=!1;if("data"===t.type)a=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;a=e._fullLayout}return i=n.nestedProperty(a,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function o(e,t){var r=[],a=t[0],i={};if("string"==typeof a)i[a]=t[1];else{if(!n.isPlainObject(a))return r;i=a}return s(i,(function(e,t,a){r.push({type:"layout",prop:e,value:a})}),"",0),r}function l(e,t){var r,a,i,o,l=[];if(a=t[0],i=t[1],r=t[2],o={},"string"==typeof a)o[a]=i;else{if(!n.isPlainObject(a))return l;o=a,void 0===r&&(r=i)}return void 0===r&&(r=null),s(o,(function(t,a,n){var i,o;if(Array.isArray(n)){o=n.slice();var s=Math.min(o.length,e.data.length);r&&(s=Math.min(s,r.length)),i=[];for(var c=0;c<s;c++)i[c]=r?r[c]:c}else o=n,i=r?r.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var d=o;o=[];for(var u=0;u<i.length;u++)o[u]=d}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})}),"",0),l}function s(e,t,r,a){Object.keys(e).forEach((function(i){var o=e[i];if("_"!==i[0]){var l=r+(a>0?".":"")+i;n.isPlainObject(o)?s(o,t,l,a+1):t(l,i,o)}}))}t.manageCommandObserver=function(e,r,a,o){var l={},s=!0;r&&r._commandObserver&&(l=r._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,a,l.lookupTable);if(r&&r._commandObserver){if(c)return l;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var d=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u<d.length;u++)e._internalOn(d[u],l.check);l.remove=function(){for(var t=0;t<d.length;t++)e._removeInternalListener(d[t],l.check)}}else n.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},r&&(r._commandObserver=l),l},t.hasSimpleAPICommandBindings=function(e,r,a){var n,i,o=r.length;for(n=0;n<o;n++){var l,s=r[n],c=s.method,d=s.args;if(Array.isArray(d)||(d=[]),!c)return!1;var u=t.computeAPICommandBindings(e,c,d);if(1!==u.length)return!1;if(i){if((l=u[0]).type!==i.type)return!1;if(l.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var f=0;f<i.traces.length;f++)if(i.traces[f]!==l.traces[f])return!1}else if(l.prop!==i.prop)return!1}else i=u[0],Array.isArray(i.traces)&&i.traces.sort();var h=(l=u[0]).value;if(Array.isArray(h)){if(1!==h.length)return!1;h=h[0]}a&&(a[h]=n)}return i},t.executeAPICommand=function(e,t,r){if("skip"===t)return Promise.resolve();var i=a.apiMethodRegistry[t],o=[e];Array.isArray(r)||(r=[]);for(var l=0;l<r.length;l++)o.push(r[l]);return i.apply(null,o).catch((function(e){return n.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},t.computeAPICommandBindings=function(e,t,r){var a;switch(Array.isArray(r)||(r=[]),t){case"restyle":a=l(e,r);break;case"relayout":a=o(e,r);break;case"update":a=l(e,[r[0],r[2]]).concat(o(e,[r[1]]));break;case"animate":a=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,r);break;default:a=[]}return a}},S2oI:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("5azm"),o=r("1y5b");function l(e,t,r){function i(r,n){return a.coerce(e,t,o,r,n)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:r},c=["x","y"],d=0;d<2;d++){var u=c[d],f=n.coerceRef(e,t,s,u,"paper",void 0);if("paper"!==f)n.getFromId(s,f)._imgIndices.push(t._index);n.coercePosition(t,s,i,f,u,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},SFLx:function(e,t,r){"use strict";var a=r("Zss7"),n={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)"]]},i=n.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var r=0;r<e.length;r++){var n=e[r];if(2!==n.length||+n[0]<t||!a(n[1]).isValid())return!1;t=+n[0]}return!0}e.exports={scales:n,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function r(){try{e=n[e]||JSON.parse(e)}catch(r){e=t}}return"string"==typeof e&&(r(),"string"==typeof e&&r()),o(e)?e:t},isValid:function(e){return void 0!==n[e]||o(e)}}},SLue:function(e,t,r){"use strict";e.exports={attributes:r("kZ5o"),supplyDefaults:r("qc20").supplyDefaults,supplyLayoutDefaults:r("VrRz"),layoutAttributes:r("eNjM"),calc:r("hriN").calc,crossTraceCalc:r("hriN").crossTraceCalc,plot:r("wK8V").plot,style:r("culP"),styleOne:r("pwgW"),moduleType:"trace",name:"pie",basePlotModule:r("a18v"),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}},SbTw:function(e,t,r){"use strict";e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},SqgR:function(e,t,r){"use strict";var a=r("/CZE"),n=r("Po4l");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}r("treemapcolorway",t.colorway),r("extendtreemapcolors")}},TGam:function(e,t,r){"use strict";var a=r("PBw4"),n=r("A3kh"),i=r("IvnK"),o=r("Y9zF").LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}t.isVisible=s,t.makeData=function(e){var t=a.list({_fullLayout:e},"x",!0),r=e.margin,n=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){n.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=n},t.autoMarginOpts=function(e,t){var r=e._fullLayout,a=t[l],s=t._id.charAt(0),c=0,d=0;"bottom"===t.side&&(c=t._depth,t.title.text!==r._dfltTitle[s]&&(d=1.5*t.title.font.size+10+a._offsetShift,d+=(t.title.text.match(n.BR_TAG_ALL)||[]).length*t.title.font.size*o));return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:a._height+c+Math.max(r.margin.b,d),pad:i.extraPad+2*a._offsetShift}}},TNIG:function(e,t,r){"use strict";var a=r("PBw4").list,n=r("zlYT").getAutoRange,i=r("IvnK");e.exports=function(e){for(var t=a(e,"x",!0),r=0;r<t.length;r++){var o=t[r],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=n(e,o))}}},Tr0U:function(e,t,r){"use strict";var a=r("/CZE"),n=r("+qE3").EventEmitter,i=r("QkhT");e.exports=function(e){var t=e.emitter||new n,r=new Promise((function(n,o){var l=window.Image,s=e.svg,c=e.format||"png";if(a.isIE()&&"svg"!==c){var d=new Error(i.MSG_IE_BAD_FORMAT);return o(d),e.promise?r:t.emit("error",d)}var u,f,h=e.canvas,p=e.scale||1,g=e.width||300,m=e.height||150,y=p*g,v=p*m,x=h.getContext("2d"),b=new l;"svg"===c||a.isIE9orBelow()||a.isSafari()?f=i.encodeSVG(s):(u=i.createBlob(s,"svg"),f=i.createObjectURL(u)),h.width=y,h.height=v,b.onload=function(){var r;switch(u=null,i.revokeObjectURL(f),"svg"!==c&&x.drawImage(b,0,0,y,v),c){case"jpeg":r=h.toDataURL("image/jpeg");break;case"png":r=h.toDataURL("image/png");break;case"webp":r=h.toDataURL("image/webp");break;case"svg":r=f;break;default:var a="Image format is not jpeg, png, svg or webp.";if(o(new Error(a)),!e.promise)return t.emit("error",a)}n(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(u=null,i.revokeObjectURL(f),o(r),!e.promise)return t.emit("error",r)},b.src=f}));return e.promise?r:t}},Tv4R:function(e,t,r){"use strict";var a=r("i5jP"),n=r("LI1c"),i=r("FHfC"),o=r("/CZE").removeElement,l=r("0wH6"),s=e.exports={};s.align=r("KW7m"),s.getCursor=r("E6Qf");var c=r("hVte");function d(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function u(e){return a(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,a,c,f,h,p,g,m=e.gd,y=1,v=m._context.doubleClickDelay,x=e.element;m._mouseDownTime||(m._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=e.clampFn||function(e,t,r){return Math.abs(e)<r&&(e=0),Math.abs(t)<r&&(t=0),[e,t]};function _(i){m._dragged=!1,m._dragging=!0;var o=u(i);t=o[0],r=o[1],p=i.target,h=i,g=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=r),(a=(new Date).getTime())-m._mouseDownTime<v?y+=1:(y=1,m._mouseDownTime=a),e.prepFn&&e.prepFn(i,t,r),n&&!g?(f=d()).style.cursor=window.getComputedStyle(x).cursor:n||(f=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(a){a.preventDefault();var n=u(a),i=e.minDrag||l.MINDRAG,o=b(n[0]-t,n[1]-r,i),c=o[0],d=o[1];(c||d)&&(m._dragged=!0,s.unhover(m)),m._dragged&&e.moveFn&&!g&&(m._dragdata={element:x,dx:c,dy:d},e.moveFn(c,d))}function k(t){if(delete m._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),n?o(f):c&&(f.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime>v&&(y=Math.max(y-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(y,h),!g){var r;try{r=new MouseEvent("click",t)}catch(e){var a=u(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,a[0],a[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},s.coverSlip=d},UAgb:function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4").contrast,i=r("15jM"),o=r("5azm");function l(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(r){return e[r]===e[t[0]]}))||1===t.length)return e[t[0]]}function s(e,t){function r(r,n){return a.coerce(e,t,i.tickformatstops,r,n)}r("enabled")&&(r("dtickrange"),r("value"))}e.exports=function(e,t,r,c,d,u){u&&1!==u.pass||function(e,t,r,a,n){var i=l(e);r("tickprefix")&&r("showtickprefix",i);r("ticksuffix",n.tickSuffixDflt)&&r("showticksuffix",i)}(e,0,r,0,d),u&&2!==u.pass||function(e,t,r,c,d){var u=l(e);r("tickprefix")&&r("showtickprefix",u);r("ticksuffix",d.tickSuffixDflt)&&r("showticksuffix",u);if(r("showticklabels")){var f=d.font||{},h=t.color,p=-1!==(t.ticklabelposition||"").indexOf("inside")?n(d.bgColor):h&&h!==i.color.dflt?h:f.color;if(a.coerceFont(r,"tickfont",{family:f.family,size:f.size,color:p}),r("tickangle"),"category"!==c){var g=r("tickformat");o(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),t.tickformatstops.length||delete t.tickformatstops,g||"date"===c||(r("showexponent",u),r("exponentformat"),r("minexponent"),r("separatethousands"))}}}(e,t,r,c,d)}},UEdZ:function(e,t,r){"use strict";var a=r("0RW4"),n=r("IVx0").hasColorscale,i=r("QYPY"),o=r("3oHU");e.exports=function(e,t,r,l,s,c){var d=o.isBubble(e),u=(e.line||{}).color;(c=c||{},u&&(r=u),s("marker.symbol"),s("marker.opacity",d?.7:1),s("marker.size"),s("marker.color",r),n(e,"marker")&&i(e,t,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",u&&!Array.isArray(u)&&t.marker.color!==u?u:d?a.background:a.defaultLine),n(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",d?1:0)),d&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},UtjE:function(e,t,r){"use strict";e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},UuhF:function(e,t,r){"use strict";var a=r("bljh"),n=r("g9E0"),i=r("Nx4I");function o(e,t,r){n.pointStyle(e.selectAll("path.point"),t,r)}function l(e,t,r){n.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=a.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(a.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(a.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(n.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(n.fillGroupStyle),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?(n.selectedPointStyle(r.selectAll("path.point"),a),n.selectedTextStyle(r.selectAll("text"),a)):(o(r,a,e),l(r,a,e))}}},V5Np:function(e,t,r){"use strict";var a=r("/CZE").dateTick0,n=r("6AZA").ONEWEEK;function i(e,t){return a(t,e%n==0?1:0)}e.exports=function(e,t,r,a,n){if(n||(n={x:!0,y:!0}),n.x){var o=a("xperiod");o&&(a("xperiod0",i(o,t.xcalendar)),a("xperiodalignment"))}if(n.y){var l=a("yperiod");l&&(a("yperiod0",i(l,t.ycalendar)),a("yperiodalignment"))}}},V9qq:function(e,t,r){"use strict";var a=r("bljh"),n=r("+1bK"),i=r("/CZE"),o=r("Gl7E").TEXTPAD,l=r("x5FY").toMoveInsideBar,s=r("k6aH"),c=s.recordMinTextSize,d=s.clearMinTextSize,u=r("LfN2").resizeText,f=r("I8wg"),h=r("v7ZX"),p=r("IjzS");function g(e){return n.isHierarchyRoot(e)?"":n.getPtId(e)}function m(e,t,r,s){var d=e._fullLayout,u=t[0],m=u.trace,y=u.hierarchy,v=n.findEntryWithLevel(y,m.level),x=a.select(r),b=x.selectAll("g.pathbar"),_=x.selectAll("g.slice");if(!v)return b.remove(),void _.remove();var w=n.isHierarchyRoot(v),k=!d.uniformtext.mode&&n.hasTransition(s),T=n.getMaxDepth(m),A=d._size,M=m.domain,S=A.w*(M.x[1]-M.x[0]),L=A.h*(M.y[1]-M.y[0]),C=S,I=m.pathbar.thickness,D=m.marker.line.width+f.gapWithPathbar,O=m.pathbar.visible?m.pathbar.side.indexOf("bottom")>-1?L+D:-(I+D):0,z={x0:C,x1:C,y0:O,y1:O+I},P=function(e,t,r){var a=m.tiling.pad,n=function(e){return e-a<=t.x0},i=function(e){return e+a>=t.x1},o=function(e){return e-a<=t.y0},l=function(e){return e+a>=t.y1};return{x0:n(e.x0-a)?0:i(e.x0-a)?r[0]:e.x0,x1:n(e.x1+a)?0:i(e.x1+a)?r[0]:e.x1,y0:o(e.y0-a)?0:l(e.y0-a)?r[1]:e.y0,y1:o(e.y1+a)?0:l(e.y1+a)?r[1]:e.y1}},E=null,j={},R={},N=null,F=function(e,t){return t?j[g(e)]:R[g(e)]},B=function(e,t,r,a){if(t)return j[g(y)]||z;var n=R[m.level]||r;return function(e){return e.data.depth-v.data.depth<T}(e)?P(e,n,a):{}};u.hasMultipleRoots&&w&&T++,m._maxDepth=T,m._backgroundColor=d.paper_bgcolor,m._entryDepth=v.data.depth,m._atRootLevel=w;var H=-S/2+A.l+A.w*(M.x[1]+M.x[0])/2,V=-L/2+A.t+A.h*(1-(M.y[1]+M.y[0])/2),Z=function(e){return H+e},G=function(e){return V+e},U=G(0),W=Z(0),q=function(e){return W+e},Y=function(e){return U+e};function X(e,t){return e+","+t}var J=q(0),K=function(e){e.x=Math.max(J,e.x)},Q=m.pathbar.edgeshape,$=function(e,t){var r=e.x0,a=e.x1,n=e.y0,i=e.y1,s=e.textBB,u=function(e){return-1!==m.textposition.indexOf(e)},f=u("bottom"),h=u("top")||t.isHeader&&!f?"start":f?"end":"middle",p=u("right"),g=u("left")||t.onPathbar?-1:p?1:0,y=m.marker.pad;if(t.isHeader){if((r+=y.l-o)>=(a-=y.r-o)){var v=(r+a)/2;r=v,a=v}var x;f?n<(x=i-y.b)&&x<i&&(n=x):n<(x=n+y.t)&&x<i&&(i=x)}var b=l(r,a,n,i,s,{isHorizontal:!1,constrained:!0,angle:0,anchor:h,leftToRight:g});return b.fontSize=t.fontSize,b.targetX=Z(b.targetX),b.targetY=G(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==a&&n!==i&&c(m.type,b,d),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},ee=function(e,t){for(var r,a=0,n=e;!r&&a<T;)a++,(n=n.parent)?r=F(n,t):a=T;return r||{}},te=function(e,t,r,n){var o,l=F(e,t);if(l)o=l;else if(t)o=z;else if(E)if(e.parent){var s=N||r;s&&!t?o=P(e,s,n):(o={},i.extendFlat(o,ee(e,t)))}else o=e;else o={};return a.interpolate(o,{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})},re=function(e,t,r,o){var l=F(e,t),s={},u=B(e,t,r,o);i.extendFlat(s,{transform:$({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:e.textBB,_text:e._text},{isHeader:n.isHeader(e,m)})}),l?s=l:e.parent&&i.extendFlat(s,ee(e,t));var f=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(m.type,f,d),a.interpolate(s,{transform:{scale:f.scale,rotate:f.rotate,textX:f.textX,textY:f.textY,anchorX:f.anchorX,anchorY:f.anchorY,targetX:f.targetX,targetY:f.targetY}})},ae=function(e,t,r,n,i){var o=n[0],l=n[1];k?e.exit().transition().each((function(){var e=a.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var r=function(e,t,r,n){var i,o=F(e,t);if(t)i=z;else{var l=F(v,t);i=l?P(e,l,n):{}}return a.interpolate(o,i)}(e,t,0,[o,l]);return function(e){return i(r(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():e.exit().remove()},ne=function(e){var t=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(m.type,t,d),i.getTextTransform({textX:t.textX,textY:t.textY,anchorX:t.anchorX,anchorY:t.anchorY,targetX:t.targetX,targetY:t.targetY,scale:t.scale,rotate:t.rotate})};k&&(b.each((function(e){j[g(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(j[g(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate})})),_.each((function(e){R[g(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(R[g(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate}),!E&&n.isEntry(e)&&(E=e)}))),N=h(e,t,v,_,{width:S,height:L,viewX:Z,viewY:G,pathSlice:function(e){var t=Z(e.x0),r=Z(e.x1),a=G(e.y0),n=G(e.y1),i=r-t,o=n-a;if(!i||!o)return"";return"M"+X(t,a+0)+"L"+X(r-0,a)+"L"+X(r,n-0)+"L"+X(t+0,n)+"Z"},toMoveInsideSlice:$,prevEntry:E,makeUpdateSliceInterpolator:te,makeUpdateTextInterpolator:re,handleSlicesExit:ae,hasTransition:k,strTransform:ne}),m.pathbar.visible?p(e,t,v,b,{barDifY:O,width:C,height:I,viewX:q,viewY:Y,pathSlice:function(e){var t=q(Math.max(Math.min(e.x0,e.x0),0)),r=q(Math.min(Math.max(e.x1,e.x1),C)),a=Y(e.y0),n=Y(e.y1),i=I/2,o={},l={};o.x=t,l.x=r,o.y=l.y=(a+n)/2;var s={x:t,y:a},c={x:r,y:a},d={x:r,y:n},u={x:t,y:n};return">"===Q?(s.x-=i,c.x-=i,d.x-=i,u.x-=i):"/"===Q?(d.x-=i,u.x-=i,o.x-=i/2,l.x-=i/2):"\\"===Q?(s.x-=i,c.x-=i,o.x-=i/2,l.x-=i/2):"<"===Q&&(o.x-=i,l.x-=i),K(s),K(u),K(o),K(c),K(d),K(l),"M"+X(s.x,s.y)+"L"+X(c.x,c.y)+"L"+X(l.x,l.y)+"L"+X(d.x,d.y)+"L"+X(u.x,u.y)+"L"+X(o.x,o.y)+"Z"},toMoveInsideSlice:$,makeUpdateSliceInterpolator:te,makeUpdateTextInterpolator:re,handleSlicesExit:ae,hasTransition:k,strTransform:ne}):b.remove()}e.exports=function(e,t,r,i){var o,l,s=e._fullLayout,c=s._treemaplayer,f=!r;(d("treemap",s),(o=c.selectAll("g.trace.treemap").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("treemap",!0),o.order(),!s.uniformtext.mode&&n.hasTransition(r))?(i&&(l=i()),a.transition().duration(r.duration).ease(r.easing).each("end",(function(){l&&l()})).each("interrupt",(function(){l&&l()})).each((function(){c.selectAll("g.trace").each((function(t){m(e,t,this,r)}))}))):(o.each((function(t){m(e,t,this,r)})),s.uniformtext.mode&&u(e,s._treemaplayer.selectAll(".trace"),"treemap"));f&&o.exit().remove()}},VNna:function(e,t,r){"use strict";var a=r("/CZE"),n=r("kn30");e.exports=function(e,t,r){function i(r,i){return void 0!==t[r]?t[r]:a.coerce(e,t,n,r,i)}var o,l=i("clickmode");return t._has("cartesian")?l.indexOf("select")>-1?o="closest":(t._isHoriz=function(e,t){for(var r=t._scatterStackOpts||{},a=0;a<e.length;a++){var n=e[a],i=n.xaxis+n.yaxis,o=(r[i]||{})[n.stackgroup]||{};if("h"!==n.orientation&&"h"!==o.orientation)return!1}return!0}(r,t),o=t._isHoriz?"y":"x"):o="closest",i("hovermode",o)}},VQYE:function(e,t,r){"use strict";(e.exports=r("OpmZ")).manager=r("I4E5")},VTo0:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("g9E0"),o=r("3oHU");e.exports=function(e,t,r,l){var s=r.xaxis,c=r.yaxis,d=l&&l.duration>0;t.each((function(t){var u,f=t[0].trace,h=f.error_x||{},p=f.error_y||{};f.ids&&(u=function(e){return e.id});var g=o.hasMarkers(f)&&f.marker.maxdisplayed>0;p.visible||h.visible||(t=[]);var m=a.select(this).selectAll("g.errorbar").data(t,u);if(m.exit().remove(),t.length){h.visible||m.selectAll("path.xerror").remove(),p.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var y=m.enter().append("g").classed("errorbar",!0);d&&y.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(m,r.layerClipId,e),m.each((function(e){var t=a.select(this),r=function(e,t,r){var a={x:t.c2p(e.x),y:r.c2p(e.y)};void 0!==e.yh&&(a.yh=r.c2p(e.yh),a.ys=r.c2p(e.ys),n(a.ys)||(a.noYS=!0,a.ys=r.c2p(e.ys,!0)));void 0!==e.xh&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),n(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0)));return a}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(p.visible&&n(r.x)&&n(r.yh)&&n(r.ys)){var u=p.width;i="M"+(r.x-u)+","+r.yh+"h"+2*u+"m-"+u+",0V"+r.ys,r.noYS||(i+="m-"+u+",0h"+2*u),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):d&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var f=t.select("path.xerror");if(h.visible&&n(r.y)&&n(r.xh)&&n(r.xs)){var m=(h.copy_ystyle?p:h).width;i="M"+r.xh+","+(r.y-m)+"v"+2*m+"m0,-"+m+"H"+r.xs,r.noXS||(i+="m0,-"+m+"v"+2*m),!f.size()?f=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):d&&(f=f.transition().duration(l.duration).ease(l.easing)),f.attr("d",i)}else f.remove()}}))}}))}},VWeM:function(e,t,r){"use strict";e.exports=function(e){for(var t={},r=[],a=0,n=0;n<e.length;n++){var i=e[n];1!==t[i]&&(t[i]=1,r[a++]=i)}return r}},VeuS:function(e,t,r){"use strict";e.exports={eventDataKeys:["initial","delta","final"]}},Vn7P:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("5azm"),o=r("pcxQ"),l=r("/cea");function s(e,t,r){function i(r,n){return a.coerce(e,t,o,r,n)}if(i("visible")){var s=i("path"),c=i("type",s?"path":"rect");"path"!==t.type&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var d=i("xsizemode"),u=i("ysizemode"),f=["x","y"],h=0;h<2;h++){var p,g,m,y=f[h],v=y+"anchor",x="x"===y?d:u,b={_fullLayout:r},_=n.coerceRef(e,t,b,y,void 0,"paper");if("range"===n.getRefType(_)?((p=n.getFromId(b,_))._shapeIndices.push(t._index),m=l.rangeToShapePosition(p),g=l.shapePositionToRange(p)):g=m=a.identity,"path"!==c){var w=y+"0",k=y+"1",T=e[w],A=e[k];e[w]=g(e[w],!0),e[k]=g(e[k],!0),"pixel"===x?(i(w,0),i(k,10)):(n.coercePosition(t,b,i,_,w,.25),n.coercePosition(t,b,i,_,k,.75)),t[w]=m(t[w]),t[k]=m(t[k]),e[w]=T,e[k]=A}if("pixel"===x){var M=e[v];e[v]=g(e[v],!0),n.coercePosition(t,b,i,_,v,.25),t[v]=m(t[v]),e[v]=M}}"path"===c?i("path"):a.noneOrAll(e,t,["x0","x1","y0","y1"])}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},VrRz:function(e,t,r){"use strict";var a=r("/CZE"),n=r("eNjM");e.exports=function(e,t){function r(r,i){return a.coerce(e,t,n,r,i)}r("hiddenlabels"),r("piecolorway",t.colorway),r("extendpiecolors")}},"W+yT":function(e,t,r){"use strict";e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"initial"in t&&(e.initial=t.initial),"delta"in t&&(e.delta=t.delta),"final"in t&&(e.final=t.final),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},W0H3:function(e,t,r){"use strict";t.version="1.58.5"},W2jp:function(e,t,r){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",role:"info",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",role:"info",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,role:"info",description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",role:"info",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",role:"info",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},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"],role:"info",editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",role:"info",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},WEQY:function(e,t,r){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",role:"style",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",role:"style",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}},WRPy:function(e,t,r){"use strict";var a=r("6AZA"),n=a.ONEAVGYEAR,i=a.ONEAVGMONTH,o=a.ONEDAY,l=a.ONEHOUR,s=a.ONEMIN,c=a.ONESEC,d=r("BkK/").tickIncrement;function u(e,t,r,a){if(e*t<=0)return 1/0;for(var n=Math.abs(t-e),i="date"===r.type,o=f(n,i),l=0;l<10;l++){var s=f(80*o,i);if(o===s)break;if(!h(s,e,t,i,r,a))break;o=s}return o}function f(e,t){return t&&e>c?e>o?e>1.1*n?n:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function h(e,t,r,a,i,l){if(a&&e>o){var s=p(t,i,l),c=p(r,i,l),d=e===n?0:1;return s[d]!==c[d]}return Math.floor(r/e)-Math.floor(t/e)>.1}function p(e,t,r){var a=t.c2d(e,n,r).split("-");return""===a[0]&&(a.unshift(),a[0]="-"+a[0]),a}e.exports=function(e,t,r,a,i){var l,s,c=-1.1*t,f=-.1*t,h=e-f,p=r[0],g=r[1],m=Math.min(u(p+f,p+h,a,i),u(g+f,g+h,a,i)),y=Math.min(u(p+c,p+f,a,i),u(g+c,g+f,a,i));if(m>y&&y<Math.abs(g-p)/4e3?(l=m,s=!1):(l=Math.min(m,y),s=!0),"date"===a.type&&l>o){var v=l===n?1:6,x=l===n?"M12":"M1";return function(t,r){var o=a.c2d(t,n,i),l=o.indexOf("-",v);l>0&&(o=o.substr(0,l));var c=a.d2c(o,0,i);if(c<t){var u=d(c,x,!1,i);(c+u)/2<t+e&&(c=u)}return r&&s?d(c,x,!0,i):c}}return function(t,r){var a=l*Math.round(t/l);return a+l/10<t&&a+.9*l<t+e&&(a+=l),r&&s&&(a-=l),a}}},Wb4T:function(e,t,r){"use strict";var a=r("/CZE").isArrayOrTypedArray,n=r("IVx0").hasColorscale,i=r("QYPY");e.exports=function(e,t,r,o,l,s){var c=(e.marker||{}).color;(l("line.color",r),n(e,"line"))?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!a(c)&&c||r);l("line.width"),(s||{}).noDash||l("line.dash")}},WeBh:function(e,t,r){"use strict";var a=r("/CZE");function n(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}t.formatPiePercent=function(e,t){var r=n((100*e).toPrecision(3));return a.numSeparate(r,t)+"%"},t.formatPieValue=function(e,t){var r=n(e.toPrecision(10));return a.numSeparate(r,t)},t.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r<t.length;r++){var a=e[t[r]];if(a||0===a||""===a)return a}},t.castOption=function(e,r){return Array.isArray(e)?t.getFirstFilled(e,r):e||void 0},t.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},Wh6P:function(e,t,r){"use strict";var a=r("bljh"),n=r("0RW4"),i=r("qTWP"),o=r("/CZE"),l=o.strScale,s=o.strRotate,c=o.strTranslate;e.exports=function(e,t,r){var o,d,u,f,h=e.node(),p=i[r.arrowhead||0],g=i[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),y=(r.arrowwidth||1)*(r.startarrowsize||1),v=t.indexOf("start")>=0,x=t.indexOf("end")>=0,b=p.backoff*m+r.standoff,_=g.backoff*y+r.startstandoff;if("line"===h.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},d={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-d.x,k=o.y-d.y;if(f=(u=Math.atan2(k,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+k*k))return void P();if(b){if(b*b>w*w+k*k)return void P();var T=b*Math.cos(u),A=b*Math.sin(u);d.x+=T,d.y+=A,e.attr({x2:d.x,y2:d.y})}if(_){if(_*_>w*w+k*k)return void P();var M=_*Math.cos(u),S=_*Math.sin(u);o.x-=M,o.y-=S,e.attr({x1:o.x,y1:o.y})}}else if("path"===h.nodeName){var L=h.getTotalLength(),C="";if(L<b+_)return void P();var I=h.getPointAtLength(0),D=h.getPointAtLength(.1);u=Math.atan2(I.y-D.y,I.x-D.x),o=h.getPointAtLength(Math.min(_,L)),C="0px,"+_+"px,";var O=h.getPointAtLength(L),z=h.getPointAtLength(L-.1);f=Math.atan2(O.y-z.y,O.x-z.x),d=h.getPointAtLength(Math.max(0,L-b)),C+=L-(C?_+b:b)+"px,"+L+"px",e.style("stroke-dasharray",C)}function P(){e.style("stroke-dasharray","0px,100px")}function E(t,i,o,d){t.path&&(t.noRotate&&(o=0),a.select(h.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:c(i.x,i.y)+s(180*o/Math.PI)+l(d)}).style({fill:n.rgb(r.arrowcolor),"stroke-width":0}))}v&&E(g,o,u,y),x&&E(p,d,f,m)}},Whu6:function(e,t,r){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),a=0;a<e.length;a++)if(e[a]instanceof RegExp&&e[a].toString()===r)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},"WtF/":function(e,t,r){"use strict";e.exports={calc:function(e,t){var r=[],a=t.value;"number"!=typeof t._lastValue&&(t._lastValue=t.value);var n=t._lastValue,i=n;return t._hasDelta&&"number"==typeof t.delta.reference&&(i=t.delta.reference),r[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},r}}},"Xe/Q":function(e,t,r){"use strict";var a=r("dNZO"),n=/^\w*$/;e.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};t&&t.length?(s=a(e,t),l=s.get()):l=e,t=t||"";var d={};if(l)for(o=0;o<l.length;o++)d[l[o][r]]=o;var u=n.test(i),f={set:function(e,t){var n=null===t?4:0;if(!l){if(!s||4===n)return;l=[],s.set(l)}var o=d[e];if(void 0===o){if(4===n)return;n|=3,o=l.length,d[e]=o}else t!==(u?l[o][i]:a(l[o],i).get())&&(n|=2);var h=l[o]=l[o]||{};return h[r]=e,u?h[i]=t:a(h,i).set(t),null!==t&&(n&=-5),c[o]=c[o]|n,f},get:function(e){if(l){var t=d[e];return void 0===t?void 0:u?l[t][i]:a(l[t],i).get()}},rename:function(e,t){var a=d[e];return void 0===a||(c[a]=1|c[a],d[t]=a,delete d[e],l[a][r]=t),f},remove:function(e){var t=d[e];if(void 0===t)return f;var n=l[t];if(Object.keys(n).length>2)return c[t]=2|c[t],f.set(e,null);if(u){for(o=t;o<l.length;o++)c[o]=3|c[o];for(o=t;o<l.length;o++)d[l[o][r]]--;l.splice(t,1),delete d[e]}else a(n,i).set(null),c[t]=6|c[t];return f},constructUpdate:function(){for(var e,n,o={},s=Object.keys(c),d=0;d<s.length;d++)n=s[d],e=t+"["+n+"]",l[n]?(1&c[n]&&(o[e+"."+r]=l[n][r]),2&c[n]&&(o[e+"."+i]=u?4&c[n]?null:l[n][i]:4&c[n]?null:a(l[n],i).get())):o[e]=null;return o}};return f}},"Xo+u":function(e,t,r){"use strict";var a=r("3oHU");e.exports={hasLines:a.hasLines,hasMarkers:a.hasMarkers,hasText:a.hasText,isBubble:a.isBubble,attributes:r("EHyX"),supplyDefaults:r("DrdO"),crossTraceDefaults:r("AySM"),calc:r("cLT0").calc,crossTraceCalc:r("QySe"),arraysToCalcdata:r("EGun"),plot:r("8RjX"),colorbar:r("88/Y"),formatLabels:r("fpYS"),style:r("UuhF").style,styleOnSelect:r("UuhF").styleOnSelect,hoverPoints:r("ORvi"),selectPoints:r("IUxZ"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r("kc20"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}},Y9zF:function(e,t,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"}}},YXRs:function(e,t,r){"use strict";var a=r("GbLo"),n=r("9rBw");e.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,d=e._fullLayout.images,u=t._id.charAt(0),f=0;f<d.length;f++)if(c="images["+f+"].",(s=d[f])[u+"ref"]===t._id){var h=s[u],p=s["size"+u],g=null,m=null;if(o){g=n(h,t.range);var y=p/Math.pow(10,g)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else m=(g=Math.pow(10,h))*(Math.pow(10,p/2)-Math.pow(10,-p/2));a(g)?a(m)||(m=null):(g=null,m=null),i(c+u,g),i(c+"size"+u,m)}}},Z8TU:function(e,t,r){"use strict";var a=r("15jM"),n=r("mEVB"),i=r("kJIm").extendFlat,o=r("yzSc").overrideAll;e.exports=o({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],role:"style",dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",role:"style",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",dflt:1.02,min:-2,max:3,role:"style",description:["Sets the x position of the color bar (in plot fraction)."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"style",description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar."].join(" ")},xpad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",role:"style",dflt:.5,min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction)."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],role:"style",dflt:"middle",description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar."].join(" ")},ypad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:a.linecolor,outlinewidth:a.linewidth,bordercolor:a.linecolor,borderwidth:{valType:"number",role:"style",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:a.tickmode,nticks:a.nticks,tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:i({},a.ticks,{dflt:""}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside bottom","inside bottom"],dflt:"outside",role:"info",description:["Determines where tick labels are drawn."].join(" ")},ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,tickfont:n({description:"Sets the color bar's tick label font"}),tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,tickprefix:a.tickprefix,showtickprefix:a.showtickprefix,ticksuffix:a.ticksuffix,showticksuffix:a.showticksuffix,separatethousands:a.separatethousands,exponentformat:a.exponentformat,minexponent:a.minexponent,showexponent:a.showexponent,title:{text:{valType:"string",role:"info",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:n({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],role:"style",dflt:"top",description:["Determines the location of color bar's title","with respect to the color bar.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",role:"info",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:n({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],role:"style",dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")},ZDyq:function(e,t,r){"use strict";var a=r("u3HJ");t.name="indicator",t.plot=function(e,r,n,i){a.plotBasePlot(t.name,e,r,n,i)},t.clean=function(e,r,n,i){a.cleanBasePlot(t.name,e,r,n,i)}},Zhzs:function(e,t,r){"use strict";var a,n,i=r("cOGN").timeFormat,o=r("GbLo"),l=r("rhNM"),s=r("09xr").mod,c=r("6AZA"),d=c.BADNUM,u=c.ONEDAY,f=c.ONEHOUR,h=c.ONEMIN,p=c.ONESEC,g=c.EPOCHJD,m=r("Nx4I"),y=r("cOGN").utcFormat,v=/^\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,x=/^\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,b=(new Date).getFullYear()-70;function _(e){return e&&m.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,r){var a=function(e,t){return _(e)?t?m.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:m.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(e,!!r);if(r<2)return a;var n=t.dateTime2ms(a,e);return n+=u*(r-1),t.ms2DateTime(n,0,e)},t.dfltRange=function(e){return _(e)?m.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,r){if(t.isJSDate(e)){var i=e.getTimezoneOffset()*h,o=(e.getUTCMinutes()-e.getMinutes())*h+(e.getUTCSeconds()-e.getSeconds())*p+(e.getUTCMilliseconds()-e.getMilliseconds());if(o){var l=3*h;i=i-l/2+s(o-i+l/2,l)}return(e=Number(e)-i)>=a&&e<=n?e:d}if("string"!=typeof e&&"number"!=typeof e)return d;e=String(e);var c=_(r),y=e.charAt(0);!c||"G"!==y&&"g"!==y||(e=e.substr(1),r="");var w=c&&"chinese"===r.substr(0,7),k=e.match(w?x:v);if(!k)return d;var T=k[1],A=k[3]||"1",M=Number(k[5]||1),S=Number(k[7]||0),L=Number(k[9]||0),C=Number(k[11]||0);if(c){if(2===T.length)return d;var I;T=Number(T);try{var D=m.getComponentMethod("calendars","getCal")(r);if(w){var O="i"===A.charAt(A.length-1);A=parseInt(A,10),I=D.newDate(T,D.toMonthIndex(T,A,O),M)}else I=D.newDate(T,Number(A),M)}catch(e){return d}return I?(I.toJD()-g)*u+S*f+L*h+C*p:d}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),A-=1;var z=new Date(Date.UTC(2e3,A,M,S,L));return z.setUTCFullYear(T),z.getUTCMonth()!==A||z.getUTCDate()!==M?d:z.getTime()+C*p},a=t.MIN_MS=t.dateTime2ms("-9999"),n=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==d};var k=90*u,T=3*f,A=5*h;function M(e,t,r,a,n){if((t||r||a||n)&&(e+=" "+w(t,2)+":"+w(r,2),(a||n)&&(e+=":"+w(a,2),n))){for(var i=4;n%10==0;)i-=1,n/=10;e+="."+w(n,i)}return e}t.ms2DateTime=function(e,t,r){if("number"!=typeof e||!(e>=a&&e<=n))return d;t||(t=0);var i,o,l,c,v,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var S=Math.floor(w/u)+g,L=Math.floor(s(e,u));try{i=m.getComponentMethod("calendars","getCal")(r).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){i=y("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=t<k?Math.floor(L/f):0,l=t<k?Math.floor(L%f/h):0,c=t<T?Math.floor(L%h/p):0,v=t<A?L%p*10+b:0}else x=new Date(w),i=y("%Y-%m-%d")(x),o=t<k?x.getUTCHours():0,l=t<k?x.getUTCMinutes():0,c=t<T?x.getUTCSeconds():0,v=t<A?10*x.getUTCMilliseconds()+b:0;return M(i,o,l,c,v)},t.ms2DateTimeLocal=function(e){if(!(e>=a+u&&e<=n-u))return d;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return M(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},t.cleanDate=function(e,r,a){if(e===d)return r;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(a))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==r)return r}else if(!t.isDateTime(e,a))return l.error("unrecognized date",e),r;return e};var S=/%\d?f/g;function L(e,t,r,a){e=e.replace(S,(function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var n=new Date(Math.floor(t+.05));if(_(a))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,a)}catch(e){return"Invalid"}return r(e)(n)}var C=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,r,a,n,i){if(n=_(n)&&n,!t)if("y"===r)t=i.year;else if("m"===r)t=i.month;else{if("d"!==r)return function(e,t){var r=s(e+.05,u),a=w(Math.floor(r/f),2)+":"+w(s(Math.floor(r/h),60),2);if("M"!==t){o(t)||(t=0);var n=(100+Math.min(s(e/p,60),C[t])).toFixed(t).substr(1);t>0&&(n=n.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+n}return a}(e,r)+"\n"+L(i.dayMonthYear,e,a,n);t=i.dayMonth+"\n"+i.year}return L(t,e,a,n)};var I=3*u;t.incrementMonth=function(e,t,r){r=_(r)&&r;var a=s(e,u);if(e=Math.round(e-a),r)try{var n=Math.round(e/u)+g,i=m.getComponentMethod("calendars","getCal")(r),o=i.fromJD(n);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-g)*u+a}catch(t){l.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+I);return c.setUTCMonth(c.getUTCMonth()+t)+a-I},t.findExactDates=function(e,t){for(var r,a,n=0,i=0,l=0,s=0,c=_(t)&&m.getComponentMethod("calendars","getCal")(t),d=0;d<e.length;d++)if(a=e[d],o(a)){if(!(a%u))if(c)try{1===(r=c.fromJD(a/u+g)).day()?1===r.month()?n++:i++:l++}catch(e){}else 1===(r=new Date(a)).getUTCDate()?0===r.getUTCMonth()?n++:i++:l++}else s++;l+=i+=n;var f=e.length-s;return{exactYears:n/f,exactMonths:i/f,exactDays:l/f}}},ZnKQ:function(e,t,r){"use strict";var a=r("GbLo"),n=r("Zss7"),i=r("qHYo"),o=r("SFLx"),l=r("cqRZ").DESELECTDIM,s=r("dNZO"),c=r("BVrX").counter,d=r("09xr").modHalf,u=r("avjU").isArrayOrTypedArray;function f(e,r){var a=t.valObjectMeta[r.valType];if(r.arrayOk&&u(e))return!0;if(a.validateFunction)return a.validateFunction(e,r);var n={},i=n,o={set:function(e){i=e}};return a.coerceFunction(e,o,n,r),i!==n}t.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){u(e)?t.set(e):void 0!==r&&t.set(r)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,r,a){a.coerceNumber&&(e=+e),-1===a.values.indexOf(e)?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,a=0;a<r.length;a++){var n=String(r[a]);if("/"===n.charAt(0)&&"/"===n.charAt(n.length-1)){if(new RegExp(n.substr(1,n.length-2)).test(e))return!0}else if(e===r[a])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){!0===e||!1===e?t.set(e):t.set(r)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,n){!a(e)||void 0!==n.min&&e<n.min||void 0!==n.max&&e>n.max?t.set(r):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,n){e%1||!a(e)||void 0!==n.min&&e<n.min||void 0!==n.max&&e>n.max?t.set(r):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,r,a){if("string"!=typeof e){var n="number"==typeof e;!0!==a.strict&&n?t.set(String(e)):t.set(r)}else a.noBlank&&!e?t.set(r):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){n(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return n(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(o.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):a(e)?t.set(d(+e,360)):t.set(r)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,r,a){var n=a.regex||c(r);"string"==typeof e&&n.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"==typeof e&&!!c(r).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,r,a){if("string"==typeof e)if(-1===(a.extras||[]).indexOf(e)){for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];-1===a.flags.indexOf(o)||n.indexOf(o)<i?n.splice(i,1):i++}n.length?t.set(n.join("+")):t.set(r)}else t.set(e);else t.set(r)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,r){void 0===e?t.set(r):t.set(e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(e,r,a,n){function i(e,r,a){var n,i={set:function(e){n=e}};return void 0===a&&(a=r.dflt),t.valObjectMeta[r.valType].coerceFunction(e,i,a,r),n}var o=2===n.dimensions||"1-2"===n.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,c,d,u,f,h=n.items,p=[],g=Array.isArray(h),m=g&&o&&Array.isArray(h[0]),y=o&&g&&!m,v=g&&!y?h.length:e.length;if(a=Array.isArray(a)?a:[],o)for(l=0;l<v;l++)for(p[l]=[],c=Array.isArray(e[l])?e[l]:[],u=y?h.length:g?h[l].length:c.length,s=0;s<u;s++)d=y?h[s]:g?h[l][s]:h,void 0!==(f=i(c[s],d,(a[l]||[])[s]))&&(p[l][s]=f);else for(l=0;l<v;l++)void 0!==(f=i(e[l],g?h[l]:h,a[l]))&&(p[l]=f);r.set(p)}else r.set(a)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var r=t.items,a=Array.isArray(r),n=2===t.dimensions;if(!t.freeLength&&e.length!==r.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!Array.isArray(e[i])||!t.freeLength&&e[i].length!==r[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!f(e[i][o],a?r[i][o]:r))return!1}else if(!f(e[i],a?r[i]:r))return!1;return!0}}},t.coerce=function(e,r,a,n,i){var o=s(a,n).get(),l=s(e,n),c=s(r,n),d=l.get(),h=r._template;if(void 0===d&&h&&(d=s(h,n).get(),h=0),void 0===i&&(i=o.dflt),o.arrayOk&&u(d))return c.set(d),d;var p=t.valObjectMeta[o.valType].coerceFunction;p(d,c,i,o);var g=c.get();return h&&g===i&&!f(d,o)&&(p(d=s(h,n).get(),c,i,o),g=c.get()),g},t.coerce2=function(e,r,a,n,i){var o=s(e,n),l=t.coerce(e,r,a,n,i),c=o.get();return null!=c&&l},t.coerceFont=function(e,t,r){var a={};return r=r||{},a.family=e(t+".family",r.family),a.size=e(t+".size",r.size),a.color=e(t+".color",r.color),a},t.coerceHoverinfo=function(e,r,a){var n,o=r._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===a._dataLength){var c="all"===s.dflt?s.flags.slice():s.dflt.split("+");c.splice(c.indexOf("name"),1),n=c.join("+")}return t.coerce(e,r,l,"hoverinfo",n)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var r,a,n=e.marker.opacity;if(void 0!==n)u(n)||e.selected||e.unselected||(r=n,a=l*n),t("selected.marker.opacity",r),t("unselected.marker.opacity",a)}},t.validate=f},a18v:function(e,t,r){"use strict";var a=r("u3HJ");t.name="pie",t.plot=function(e,r,n,i){a.plotBasePlot(t.name,e,r,n,i)},t.clean=function(e,r,n,i){a.cleanBasePlot(t.name,e,r,n,i)}},a3ij:function(e,t,r){"use strict";var a=["orientation","groupnorm","stackgaps"];e.exports=function(e,t,r,n){var i=r._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],d=!1;c?c.traces.push(t):(c=s[o]={traceIndices:[],traces:[t]},d=!0);for(var u={orientation:t.x&&!t.y?"h":"v"},f=0;f<a.length;f++){var h=a[f],p=h+"Found";if(!c[p]){var g=void 0!==e[h],m="orientation"===h;if((g||d)&&(c[h]=n(h,u[h]),m&&(c.fillDflt="h"===c[h]?"tonextx":"tonexty"),g&&(c[p]=!0,!d&&(delete c.traces[0][h],m))))for(var y=0;y<c.traces.length-1;y++){var v=c.traces[y];v._input.fill!==v.fill&&(v.fill=c.fillDflt)}}}return c}}},aDMI:function(e,t,r){"use strict";var a=r("GbLo"),n=r("Zss7"),i=r("/CZE").isArrayOrTypedArray;t.coerceString=function(e,t,r){if("string"==typeof t){if(t||!e.noBlank)return t}else if(("number"==typeof t||!0===t)&&!e.strict)return String(t);return void 0!==r?r:e.dflt},t.coerceNumber=function(e,t,r){if(a(t)){t=+t;var n=e.min,i=e.max;if(!(void 0!==n&&t<n||void 0!==i&&t>i))return t}return void 0!==r?r:e.dflt},t.coerceColor=function(e,t,r){return n(t).isValid()?t:void 0!==r?r:e.dflt},t.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},t.getValue=function(e,t){var r;return Array.isArray(e)?t<e.length&&(r=e[t]):r=e,r},t.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:i(e.marker.line.width)?0:e.marker.line.width}},aSHK:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE"),i=r("qHYo"),o=r("poX/"),l=r("qcty"),s=r("W2jp"),c=r("P/XJ").configAttributes,d=r("+gYs"),u=r("t7il"),f=r("yzSc"),h=n.extendFlat,p=n.extendDeepAll,g=n.isPlainObject,m=n.isArrayOrTypedArray,y=n.nestedProperty,v=n.valObjectMeta,x=["_isSubplotObj","_isLinkedToArray","_arrayAttrRegexps","_deprecated"];function b(e,t,r){if(!e)return!1;if(e._isLinkedToArray)if(_(t[r]))r++;else if(r<t.length)return!1;for(;r<t.length;r++){var a=e[t[r]];if(!g(a))break;if(e=a,r===t.length-1)break;if(e._isLinkedToArray){if(!_(t[++r]))return!1}else if("info_array"===e.valType){var n=t[++r];if(!_(n))return!1;var i=e.items;if(Array.isArray(i)){if(n>=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!_(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,r={};for(e in p(r,o),a.subplotsRegistry){if((t=a.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n<t.attr.length;n++)A(r,t,t.attr[n]);else A(r,t,"subplot"===t.attr?t.name:t.attr)}for(e in r=function(e){return h(e,{radialaxis:u.radialaxis,angularaxis:u.angularaxis}),h(e,u.layout),e}(r),a.componentsRegistry){var i=(t=a.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var s in l.xaxis)delete r.yaxis[s]}else"colorscale"===t.name?p(r,t.layoutAttributes):t.layoutAttributes&&M(r,t.layoutAttributes,t.name)}return{layoutAttributes:T(r)}}function k(){var e={frames:p({},l)};return T(e),e.frames}function T(e){return function(e){function r(e){return{valType:"string",role:"info",description:["Sets the source reference on Chart Studio Cloud for ",e,"."].join(" "),editType:"none"}}t.crawl(e,(function(e,a,n){t.isValObject(e)?"data_array"===e.valType?(e.role="data",n[a+"src"]=r(a)):!0===e.arrayOk&&(n[a+"src"]=r(a)):g(e)&&(e.role="object")}))}(e),function(e){t.crawl(e,(function(e,t,r){if(e){var a=e._isLinkedToArray;a&&(delete e._isLinkedToArray,r[t]={items:{}},r[t].items[a]=e,r[t].role="object")}}))}(e),function(e){!function e(t){for(var r in t)if(g(t[r]))e(t[r]);else if(Array.isArray(t[r]))for(var a=0;a<t[r].length;a++)e(t[r][a]);else t[r]instanceof RegExp&&(t[r]=t[r].toString())}(e)}(e),e}function A(e,t,r){var a=y(e,r),n=p({},t.layoutAttributes);n._isSubplotObj=!0,a.set(n)}function M(e,t,r){var a=y(e,r);a.set(p(a.get()||{},t))}t.IS_SUBPLOT_OBJ="_isSubplotObj",t.IS_LINKED_TO_ARRAY="_isLinkedToArray",t.DEPRECATED="_deprecated",t.UNDERSCORE_ATTRS=x,t.get=function(){var e={};a.allTypes.concat("area").forEach((function(r){e[r]=function(e){var r,n;"area"===e?(r={attributes:d},n={}):(r=a.modules[e]._module,n=r.basePlotModule);var o={type:null},l=p({},i),s=p({},r.attributes);t.crawl(s,(function(e,t,r,a,n){y(l,n).set(void 0),void 0===e&&y(s,n).set(void 0)})),p(o,l),a.traceIs(e,"noOpacity")&&delete o.opacity;a.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup);a.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel);r.selectPoints||delete o.selectedpoints;p(o,s),n.attributes&&p(o,n.attributes);o.type=e;var c={meta:r.meta||{},categories:r.categories||{},animatable:Boolean(r.animatable),type:e,attributes:T(o)};if(r.layoutAttributes){var u={};p(u,r.layoutAttributes),c.layoutAttributes=T(u)}r.animatable||t.crawl(c,(function(e){t.isValObject(e)&&"anim"in e&&delete e.anim}));return c}(r)}));var r={};return Object.keys(a.transformsRegistry).forEach((function(e){r[e]=function(e){var t=a.transformsRegistry[e],r=p({},t.attributes);return Object.keys(a.componentsRegistry).forEach((function(t){var n=a.componentsRegistry[t];n.schema&&n.schema.transforms&&n.schema.transforms[e]&&Object.keys(n.schema.transforms[e]).forEach((function(t){M(r,n.schema.transforms[e][t],t)}))})),{attributes:T(r)}}(e)})),{defs:{valObjects:v,metaKeys:x.concat(["description","role","editType","impliedEdits"]),editType:{traces:f.traces,layout:f.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:e,layout:w(),transforms:r,frames:k(),animation:T(s),config:T(c)}},t.crawl=function(e,r,a,n){var i=a||0;n=n||"",Object.keys(e).forEach((function(a){var o=e[a];if(-1===x.indexOf(a)){var l=(n?n+".":"")+a;r(o,a,e,i,l),t.isValObject(o)||g(o)&&"impliedEdits"!==a&&t.crawl(o,r,i+1,l)}}))},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var r,a,n=[],o=[],l=[];function s(e,t,i,s){o=o.slice(0,s).concat([t]),l=l.slice(0,s).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===o[s-1]&&("ticktext"===t||"tickvals"===t))&&function e(t,r,i){var s=t[o[r]],c=i+o[r];if(r===o.length-1)m(s)&&n.push(a+c);else if(l[r]){if(Array.isArray(s))for(var d=0;d<s.length;d++)g(s[d])&&e(s[d],r+1,c+"["+d+"].")}else g(s)&&e(s,r+1,c+".")}(r,0,"")}r=e,a="",t.crawl(i,s),e._module&&e._module.attributes&&t.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var d=0;d<c.length;d++){var u=c[d],f=u._module;f&&(a="transforms["+d+"].",r=u,t.crawl(f.attributes,s))}return n},t.getTraceValObject=function(e,t){var r,n,o=t[0],l=1;if("transforms"===o){if(1===t.length)return i.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var c=t[1];if(!_(c)||c>=s.length)return!1;n=(r=(a.transformsRegistry[s[c].type]||{}).attributes)&&r[t[2]],l=3}else if("area"===e.type)n=d[o];else{var u=e._module;if(u||(u=(a.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(n=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(n=f.attributes[o])}n||(n=i[o])}return b(n,t,l)},t.getLayoutValObject=function(e,t){return b(function(e,t){var r,n,i,l,s=e._basePlotModules;if(s){var c;for(r=0;r<s.length;r++){if((i=s[r]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var d=i.baseLayoutAttrOverrides;if(d&&t in d)return d[t]}if(c)return c}var f=e._modules;if(f)for(r=0;r<f.length;r++)if((l=f[r].layoutAttributes)&&t in l)return l[t];for(n in a.componentsRegistry){if("colorscale"===(i=a.componentsRegistry[n]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}if(t in o)return o[t];if("radialaxis"===t||"angularaxis"===t)return u[t];return u.layout[t]||!1}(e,t[0]),t,1)}},aWIO:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("xMdC").appendArrayPointValue,o=r("pcRN"),l=r("/CZE"),s=r("h0EB"),c=r("+1bK"),d=r("WeBh").formatPieValue;function u(e,t,r){for(var a=e.data.data,n={curveNumber:t.index,pointNumber:a.i,data:t._input,fullData:t},o=0;o<r.length;o++){var l=r[o];l in e&&(n[l]=e[l])}return"parentString"in e&&!c.isHierarchyRoot(e)&&(n.parent=e.parentString),i(n,t,a.i),n}e.exports=function(e,t,r,i,f){var h=i[0],p=h.trace,g=h.hierarchy,m="sunburst"===p.type,y="treemap"===p.type;"_hasHoverLabel"in p||(p._hasHoverLabel=!1),"_hasHoverEvent"in p||(p._hasHoverEvent=!1);e.on("mouseover",(function(n){var i=r._fullLayout;if(!r._dragging&&!1!==i.hovermode){var s=r._fullData[p.index],v=n.data.data,x=v.i,b=c.isHierarchyRoot(n),_=c.getParent(g,n),w=c.getValue(n),k=function(e){return l.castOption(s,x,e)},T=k("hovertemplate"),A=o.castHoverinfo(s,i,x),M=i.separators;if(T||A&&"none"!==A&&"skip"!==A){var S,L;m&&(S=h.cx+n.pxmid[0]*(1-n.rInscribed),L=h.cy+n.pxmid[1]*(1-n.rInscribed)),y&&(S=n._hoverX,L=n._hoverY);var C,I={},D=[],O=[],z=function(e){return-1!==D.indexOf(e)};A&&(D="all"===A?s._module.attributes.hoverinfo.flags:A.split("+")),I.label=v.label,z("label")&&I.label&&O.push(I.label),v.hasOwnProperty("v")&&(I.value=v.v,I.valueLabel=d(I.value,M),z("value")&&O.push(I.valueLabel)),I.currentPath=n.currentPath=c.getPath(n.data),z("current path")&&!b&&O.push(I.currentPath);var P=[],E=function(){-1===P.indexOf(C)&&(O.push(C),P.push(C))};I.percentParent=n.percentParent=w/c.getValue(_),I.parent=n.parentString=c.getPtLabel(_),z("percent parent")&&(C=c.formatPercent(I.percentParent,M)+" of "+I.parent,E()),I.percentEntry=n.percentEntry=w/c.getValue(t),I.entry=n.entry=c.getPtLabel(t),!z("percent entry")||b||n.onPathbar||(C=c.formatPercent(I.percentEntry,M)+" of "+I.entry,E()),I.percentRoot=n.percentRoot=w/c.getValue(g),I.root=n.root=c.getPtLabel(g),z("percent root")&&!b&&(C=c.formatPercent(I.percentRoot,M)+" of "+I.root,E()),I.text=k("hovertext")||k("text"),z("text")&&(C=I.text,l.isValidTextValue(C)&&O.push(C));var j={trace:s,y:L,text:O.join("<br>"),name:T||z("name")?s.name:void 0,color:k("hoverlabel.bgcolor")||v.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:T,hovertemplateLabels:I,eventData:[u(n,s,f.eventDataKeys)]};m&&(j.x0=S-n.rInscribed*n.rpx1,j.x1=S+n.rInscribed*n.rpx1,j.idealAlign=n.pxmid[0]<0?"left":"right"),y&&(j.x=S,j.idealAlign=S<0?"left":"right"),o.loneHover(j,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r}),p._hasHoverLabel=!0}if(y){var R=e.select("path.surface");f.styleOne(R,n,s,{hovered:!0})}p._hasHoverEvent=!0,r.emit("plotly_hover",{points:[u(n,s,f.eventDataKeys)],event:a.event})}})),e.on("mouseout",(function(t){var n=r._fullLayout,i=r._fullData[p.index],l=a.select(this).datum();if(p._hasHoverEvent&&(t.originalEvent=a.event,r.emit("plotly_unhover",{points:[u(l,i,f.eventDataKeys)],event:a.event}),p._hasHoverEvent=!1),p._hasHoverLabel&&(o.loneUnhover(n._hoverlayer.node()),p._hasHoverLabel=!1),y){var s=e.select("path.surface");f.styleOne(s,l,i,{hovered:!1})}})),e.on("click",(function(e){var t=r._fullLayout,i=r._fullData[p.index],l=m&&(c.isHierarchyRoot(e)||c.isLeaf(e)),d=c.getPtId(e),h=c.isEntry(e)?c.findEntryWithChild(g,d):c.findEntryWithLevel(g,d),y=c.getPtId(h),v={points:[u(e,i,f.eventDataKeys)],event:a.event};l||(v.nextLevel=y);var x=s.triggerHandler(r,"plotly_"+p.type+"click",v);if(!1!==x&&t.hovermode&&(r._hoverdata=[u(e,i,f.eventDataKeys)],o.click(r,a.event)),!l&&!1!==x&&!r._dragging&&!r._transitioning){n.call("_storeDirectGUIEdit",i,t._tracePreGUI[i.uid],{level:i.level});var b={data:[{level:y}],traces:[p.index]},_={frame:{redraw:!1,duration:f.transitionTime},transition:{duration:f.transitionTime,easing:f.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(t._hoverlayer.node()),n.call("animate",r,b,_)}}))}},at2O:function(e,t,r){"use strict";var a=r("/CZE"),n=r("zlYT"),i=r("PBw4").id2name,o=r("15jM"),l=r("l1mV"),s=r("GkA6"),c=r("6AZA").ALMOST_EQUAL,d=r("Y9zF").FROM_BL;function u(e,t,r){var n=r.axIds,l=r.layoutOut,s=r.hasImage,c=l._axisConstraintGroups,d=l._axisMatchGroups,u=t._id,g=u.charAt(0),m=((l._splomAxes||{})[g]||{})[u]||{},y=t._id,v="x"===y.charAt(0);function x(r,n){return a.coerce(e,t,o,r,n)}t._matchGroup=null,t._constraintGroup=null,x("constrain",s?"domain":"range"),a.coerce(e,t,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var b,_,w=t.type,k=[];for(b=0;b<n.length;b++){if((_=n[b])!==y)l[i(_)].type===w&&k.push(_)}var T=h(c,y);if(T){var A=[];for(b=0;b<k.length;b++)T[_=k[b]]||A.push(_);k=A}var M,S,L=k.length;L&&(e.matches||m.matches)&&(M=a.coerce(e,t,{matches:{valType:"enumerated",values:k,dflt:-1!==k.indexOf(m.matches)?m.matches:void 0}},"matches"));var C=s&&!v?t.anchor:void 0;if(L&&!M&&(e.scaleanchor||C)&&(S=a.coerce(e,t,{scaleanchor:{valType:"enumerated",values:k}},"scaleanchor",C)),M){t._matchGroup=p(d,y,M,1);var I=l[i(M)],D=f(l,t)/f(l,I);v!==("x"===M.charAt(0))&&(D=(v?"x":"y")+D),p(c,y,M,D)}else e.matches&&-1!==n.indexOf(e.matches)&&a.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(S){var O=x("scaleratio");O||(O=t.scaleratio=1),p(c,y,S,O)}else e.scaleanchor&&-1!==n.indexOf(e.scaleanchor)&&a.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function f(e,t){var r=t.domain;return r||(r=e[i(t.overlaying)].domain),r[1]-r[0]}function h(e,t){for(var r=0;r<e.length;r++)if(e[r][t])return e[r];return null}function p(e,t,r,a){var n,i,o,l,s,c=h(e,t);null===c?((c={})[t]=1,s=e.length,e.push(c)):s=e.indexOf(c);var d=Object.keys(c);for(n=0;n<e.length;n++)if(o=e[n],n!==s&&o[r]){var u=o[r];for(i=0;i<d.length;i++)o[l=d[i]]=g(u,g(a,c[l]));return void e.splice(s,1)}if(1!==a)for(i=0;i<d.length;i++){var f=d[i];c[f]=g(a,c[f])}c[r]=1}function g(e,t){var r,a,n="",i="";"string"==typeof e&&(r=(n=e.match(/^[xy]*/)[0]).length,e=+e.substr(r)),"string"==typeof t&&(a=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(a));var o=e*t;return r||a?r&&a&&n.charAt(0)!==i.charAt(0)?r===a?o:(r>a?n.substr(a):i.substr(r))+o:n+i+e*t:o}function m(e,t){for(var r=t._size,a=r.h/r.w,n={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if("string"==typeof s){var c=s.match(/^[xy]*/)[0],d=c.length;s=+s.substr(d);for(var u="y"===c.charAt(0)?a:1/a,f=0;f<d;f++)s*=u}n[l]=s}return n}function y(e,t){var r=e._inputDomain,a=d[e.constraintoward],n=r[0]+(r[1]-r[0])*a;e.domain=e._input.domain=[n+(r[0]-n)/t,n+(r[1]-n)/t],e.setScale()}t.handleDefaults=function(e,t,r){var n,o,l,c,d,f,h,p,g=r.axIds,m=r.axHasImage,y=t._axisConstraintGroups=[],v=t._axisMatchGroups=[];for(n=0;n<g.length;n++)u(d=e[c=i(g[n])],f=t[c],{axIds:g,layoutOut:t,hasImage:m[c]});function x(e,r){for(n=0;n<e.length;n++)for(l in o=e[n])t[i(l)][r]=o}for(x(v,"_matchGroup"),n=0;n<y.length;n++)for(l in o=y[n])if((f=t[i(l)]).fixedrange){for(var b in o){var _=i(b);!1===(e[_]||{}).fixedrange&&a.warn("fixedrange was specified as false for axis "+_+" but was overridden because another axis in its constraint group has fixedrange true"),t[_].fixedrange=!0}break}for(n=0;n<y.length;){for(l in o=y[n]){(f=t[i(l)])._matchGroup&&Object.keys(f._matchGroup).length===Object.keys(o).length&&(y.splice(n,1),n--);break}n++}x(y,"_constraintGroup");var w=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],k=!1,T=!1;function A(){p=f[h],"rangebreaks"===h&&(T=f._hasDayOfWeekBreaks)}for(n=0;n<v.length;n++){o=v[n];for(var M=0;M<w.length;M++){var S;for(l in h=w[M],p=null,o)if(d=e[c=i(l)],f=t[c],h in f){if(!f.matches&&(S=f,h in d)){A();break}null===p&&h in d&&A()}if("range"===h&&p&&(k=!0),"autorange"===h&&null===p&&k&&(p=!1),null===p&&h in S&&(p=S[h]),null!==p)for(l in o)(f=t[i(l)])[h]="range"===h?p.slice():p,"rangebreaks"===h&&(f._hasDayOfWeekBreaks=T,s(f,t))}}},t.enforce=function(e){var t,r,a,o,s,d,u,f,h=e._fullLayout,p=h._axisConstraintGroups||[];for(t=0;t<p.length;t++){a=m(p[t],h);var g=Object.keys(a),v=1/0,x=0,b=1/0,_={},w={},k=!1;for(r=0;r<g.length;r++)w[o=g[r]]=s=h[i(o)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),_[o]=d=Math.abs(s._m)/a[o],v=Math.min(v,d),"domain"!==s.constrain&&s._constraintShrinkable||(b=Math.min(b,d)),delete s._constraintShrinkable,x=Math.max(x,d),"domain"===s.constrain&&(k=!0);if(!(v>c*x)||k)for(r=0;r<g.length;r++)if(d=_[o=g[r]],u=(s=w[o]).constrain,d!==b||"domain"===u)if(f=d/b,"range"===u)l(s,f);else{var T=s._inputDomain,A=(s.domain[1]-s.domain[0])/(T[1]-T[0]),M=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if((f/=A)*M<1){s.domain=s._input.domain=T.slice(),l(s,f);continue}if(M<1&&(s.range=s._input.range=s._inputRange.slice(),f*=M),s.autorange){var S=s.r2l(s.range[0]),L=s.r2l(s.range[1]),C=(S+L)/2,I=C,D=C,O=Math.abs(L-C),z=C-O*f*1.0001,P=C+O*f*1.0001,E=n.makePadFn(h,s,0),j=n.makePadFn(h,s,1);y(s,f);var R,N,F=Math.abs(s._m),B=n.concatExtremes(e,s),H=B.min,V=B.max;for(N=0;N<H.length;N++)(R=H[N].val-E(H[N])/F)>z&&R<I&&(I=R);for(N=0;N<V.length;N++)(R=V[N].val+j(V[N])/F)<P&&R>D&&(D=R);f/=(D-I)/(2*O),I=s.l2r(I),D=s.l2r(D),s.range=s._input.range=S<L?[I,D]:[D,I]}y(s,f)}}},t.getAxisGroup=function(e,t){for(var r=e._axisMatchGroups,a=0;a<r.length;a++){if(r[a][t])return"g"+a}return t},t.clean=function(e,t){if(t._inputDomain){for(var r=!1,a=t._id,n=e._fullLayout._axisConstraintGroups,i=0;i<n.length;i++)if(n[i][a]){r=!0;break}r&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},avjU:function(e,t,r){"use strict";var a=Array.isArray,n="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},i="undefined"==typeof DataView?function(){}:DataView;function o(e){return n.isView(e)&&!(e instanceof i)}function l(e){return a(e)||o(e)}function s(e,t,r){if(l(e)){if(l(e[0])){for(var a=r,n=0;n<e.length;n++)a=t(a,e[n].length);return a}return e.length}return 0}t.isTypedArray=o,t.isArrayOrTypedArray=l,t.isArray1D=function(e){return!l(e[0])},t.ensureArray=function(e,t){return a(e)||(e=[]),e.length=t,e},t.concat=function(){var e,t,r,n,i,o,l,s,c=[],d=!0,u=0;for(r=0;r<arguments.length;r++)(o=(n=arguments[r]).length)&&(t?c.push(n):(t=n,i=o),a(n)?e=!1:(d=!1,u?e!==n.constructor&&(e=!1):e=n.constructor),u+=o);if(!u)return[];if(!c.length)return t;if(d)return t.concat.apply(t,c);if(e){for((l=new e(u)).set(t),r=0;r<c.length;r++)n=c[r],l.set(n,i),i+=n.length;return l}for(l=new Array(u),s=0;s<t.length;s++)l[s]=t[s];for(r=0;r<c.length;r++){for(n=c[r],s=0;s<n.length;s++)l[i+s]=n[s];i+=s}return l},t.maxRowLength=function(e){return s(e,Math.max,0)},t.minRowLength=function(e){return s(e,Math.min,1/0)}},axA2:function(e,t,r){"use strict";var a=r("/CZE"),n=r("plED"),i=r("PBw4"),o=r("jzia"),l=r("WEQY");e.exports=function(e,t,r){var s=e[r],c=t[r];if(s.rangeslider||t._requestRangeslider[c._id]){a.isPlainObject(s.rangeslider)||(s.rangeslider={});var d,u,f=s.rangeslider,h=n.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(f.range)),_("range");var p=t._subplots;if(p)for(var g=p.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(r)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),m=a.simpleMap(g,i.id2name),y=0;y<m.length;y++){var v=m[y];d=f[v]||{},u=n.newContainer(h,v,"yaxis");var x,b=t[v];d.range&&b.isValidRange(d.range)&&(x="fixed"),"match"!==w("rangemode",x)&&w("range",b.range.slice())}h._input=f}}function _(e,t){return a.coerce(f,h,o,e,t)}function w(e,t){return a.coerce(d,u,l,e,t)}}},b5aN:function(e,t,r){"use strict";e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},b8PE:function(e,t,r){"use strict";function a(e){return!0===e.visible}function n(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var t,r=(t=e,Array.isArray(t)&&Array.isArray(t[0])&&t[0][0]&&t[0][0].trace?n:a),i=[],o=0;o<e.length;o++){var l=e[o];r(l)&&i.push(l)}return i}},bFr3:function(e,t,r){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},bKUU:function(e,t,r){"use strict";e.exports=r("iauE")},bQo4:function(e,t,r){"use strict";e.exports=r("x8K2")},bcxm:function(e,t,r){"use strict";var a=r("GbLo");e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return a(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var o=n[t];return a(o)&&(o=Number(o),r[e]+=o,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(a(i)){if(i=Number(i),!a(r[e]))return r[e]=i,i;if(r[e]>i){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,n){var i=n[t];if(a(i)){if(i=Number(i),!a(r[e]))return r[e]=i,i;if(r[e]<i){var o=i-r[e];return r[e]=i,o}}return 0}}},bkDJ:function(e,t,r){"use strict";var a=r("09xr"),n=a.mod,i=a.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function d(e,t){if(s(t))return!0;var r,a;t[0]<t[1]?(r=t[0],a=t[1]):(r=t[1],a=t[0]),(r=n(r,l))>(a=n(a,l))&&(a+=l);var i=n(e,l),o=i+l;return i>=r&&i<=a||o>=r&&o<=a}function u(e,t,r,a,n,i,c){n=n||0,i=i||0;var d,u,f,h,p,g=s([r,a]);function m(e,t){return[e*Math.cos(t)+n,i-e*Math.sin(t)]}g?(d=0,u=o,f=l):r<a?(d=r,f=a):(d=a,f=r),e<t?(h=e,p=t):(h=t,p=e);var y,v=Math.abs(f-d)<=o?0:1;function x(e,t,r){return"A"+[e,e]+" "+[0,v,r]+" "+m(e,t)}return g?y=null===h?"M"+m(p,d)+x(p,u,0)+x(p,f,0)+"Z":"M"+m(h,d)+x(h,u,0)+x(h,f,0)+"ZM"+m(p,d)+x(p,u,1)+x(p,f,1)+"Z":null===h?(y="M"+m(p,d)+x(p,f,0),c&&(y+="L0,0Z")):y="M"+m(h,d)+"L"+m(p,d)+x(p,f,0)+"L"+m(h,f)+x(h,d,1)+"Z",y}e.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:s,isAngleInsideSector:d,isPtInsideSector:function(e,t,r,a){return!!d(t,a)&&(r[0]<r[1]?(n=r[0],i=r[1]):(n=r[1],i=r[0]),e>=n&&e<=i);var n,i},pathArc:function(e,t,r,a,n){return u(null,e,t,r,a,n,0)},pathSector:function(e,t,r,a,n){return u(null,e,t,r,a,n,1)},pathAnnulus:function(e,t,r,a,n,i){return u(e,t,r,a,n,i,1)}}},c5s0:function(e,t,r){"use strict";var a=r("/CZE"),n=r("plED"),i=r("DdeV"),o=r("QYPY");e.exports=function(e,t){function r(r,n){return a.coerce(e,t,i,r,n)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var l,s,c=t._colorAxes;function d(e,t){return a.coerce(l,s,i.coloraxis,e,t)}for(var u in c){var f=c[u];if(f[0])l=e[u]||{},(s=n.newContainer(t,u,"coloraxis"))._name=u,o(l,s,t,d,{prefix:"",cLetter:"c"});else{for(var h=0;h<f[2].length;h++)f[2][h]();delete t._colorAxes[u]}}}},c8nr:function(e,t,r){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},cADB:function(e,t,r){"use strict";function a(e,t,r,a,n){var i=t.c2p(a?e.s0:e.p0,!0),o=t.c2p(a?e.s1:e.p1,!0),l=r.c2p(a?e.p0:e.s0,!0),s=r.c2p(a?e.p1:e.s1,!0);return n?[(i+o)/2,(l+s)/2]:a?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(e,t){var r,n=e.cd,i=e.xaxis,o=e.yaxis,l=n[0].trace,s="funnel"===l.type,c="h"===l.orientation,d=[];if(!1===t)for(r=0;r<n.length;r++)n[r].selected=0;else for(r=0;r<n.length;r++){var u=n[r],f="ct"in u?u.ct:a(u,i,o,c,s);t.contains(f,!1,r,e)?(d.push({pointNumber:r,x:i.c2d(u.x),y:o.c2d(u.y)}),u.selected=1):u.selected=0}return d}},cIkR:function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e){return a.isPlainObject(e.colorbar)}},cLT0:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("BkK/"),o=r("h5fz"),l=r("6AZA").BADNUM,s=r("3oHU"),c=r("Cb1W"),d=r("EGun"),u=r("QTaS");function f(e,t,r,a,n,o,l){var c=t._length,d=e._fullLayout,u=r._id,f=a._id,h=d._firstScatter[g(t)]===t.uid,p=(m(t,d,r,a)||{}).orientation,y=t.fill;r._minDtick=0,a._minDtick=0;var v={padded:!0},x={padded:!0};l&&(v.ppad=x.ppad=l);var b=c<2||n[0]!==n[c-1]||o[0]!==o[c-1];b&&("tozerox"===y||"tonextx"===y&&(h||"h"===p))?v.tozero=!0:(t.error_y||{}).visible||"tonexty"!==y&&"tozeroy"!==y&&(s.hasMarkers(t)||s.hasText(t))||(v.padded=!1,v.ppad=0),b&&("tozeroy"===y||"tonexty"===y&&(h||"v"===p))?x.tozero=!0:"tonextx"!==y&&"tozerox"!==y||(x.padded=!1),u&&(t._extremes[u]=i.findExtremes(r,n,v)),f&&(t._extremes[f]=i.findExtremes(a,o,x))}function h(e,t){if(s.hasMarkers(e)){var r,a=e.marker,o=1.6*(e.marker.sizeref||1);if(r="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},n.isArrayOrTypedArray(a.size)){var l={type:"linear"};i.setConvert(l);for(var c=l.makeCalcdata(e.marker,"size"),d=new Array(t),u=0;u<t;u++)d[u]=r(c[u]);return d}return r(a.size)}}function p(e,t){var r=g(t),a=e._firstScatter;a[r]||(a[r]=t.uid)}function g(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function m(e,t,r,a){var n=e.stackgroup;if(n){var i=t._scatterStackOpts[r._id+a._id][n],o="v"===i.orientation?a:r;return"linear"===o.type||"log"===o.type?i:void 0}}e.exports={calc:function(e,t){var r,s,g,y,v,x,b=e._fullLayout,_=i.getFromId(e,t.xaxis||"x"),w=i.getFromId(e,t.yaxis||"y"),k=_.makeCalcdata(t,"x"),T=w.makeCalcdata(t,"y"),A=o(t,_,"x",k),M=o(t,w,"y",T),S=t._length,L=new Array(S),C=t.ids,I=m(t,b,_,w),D=!1;p(b,t);var O,z="x",P="y";I?(n.pushUnique(I.traceIndices,t._expandedIndex),(r="v"===I.orientation)?(P="s",O="x"):(z="s",O="y"),v="interpolate"===I.stackgaps):f(e,t,_,w,A,M,h(t,S));var E=!!t.xperiodalignment,j=!!t.yperiodalignment;for(s=0;s<S;s++){var R=L[s]={},N=a(A[s]),F=a(M[s]);N&&F?(R[z]=A[s],R[P]=M[s],E&&(R.orig_x=k[s]),j&&(R.orig_y=T[s])):I&&(r?N:F)?(R[O]=r?A[s]:M[s],R.gap=!0,v?(R.s=l,D=!0):R.s=0):R[z]=R[P]=l,C&&(R.id=String(C[s]))}if(d(L,t),c(e,t),u(L,t),I){for(s=0;s<L.length;)L[s][O]===l?L.splice(s,1):s++;if(n.sort(L,(function(e,t){return e[O]-t[O]||e.i-t.i})),D){for(s=0;s<L.length-1&&L[s].gap;)s++;for((x=L[s].s)||(x=L[s].s=0),g=0;g<s;g++)L[g].s=x;for(y=L.length-1;y>s&&L[y].gap;)y--;for(x=L[y].s,g=L.length-1;g>y;g--)L[g].s=x;for(;s<y;)if(L[++s].gap){for(g=s+1;L[g].gap;)g++;for(var B=L[s-1][O],H=L[s-1].s,V=(L[g].s-H)/(L[g][O]-B);s<g;)L[s].s=H+(L[s][O]-B)*V,s++}}}return L},calcMarkerSize:h,calcAxisExpansion:f,setFirstScatter:p,getStackOpts:m}},cPlZ:function(e,t,r){"use strict";var a=r("JZU4"),n=r("NPlu");e.exports={moduleType:"component",name:"annotations",layoutAttributes:r("u0qo"),supplyLayoutDefaults:r("u1sj"),includeBasePlot:r("N9FU")("annotations"),calcAutorange:r("zYTo"),draw:a.draw,drawOne:a.drawOne,drawRaw:a.drawRaw,hasClickToShow:n.hasClickToShow,onClick:n.onClick,convertCoords:r("NRvR")}},cRi9:function(e,t,r){"use strict";var a=r("GbLo"),n=r("Nx4I"),i=r("/CZE"),o=r("5azm"),l=r("15jM"),s=r("2S8E"),c=r("J+Po"),d=r("UAgb"),u=r("0YvE"),f=r("dDsA"),h=r("GkA6"),p=r("0wH6").WEEKDAY_PATTERN,g=r("0wH6").HOUR_PATTERN;function m(e,t,r){function n(r,a){return i.coerce(e,t,l.rangebreaks,r,a)}if(n("enabled")){var o=n("bounds");if(o&&o.length>=2){var s,c,d="";if(2===o.length)for(s=0;s<2;s++)if(c=v(o[s])){d=p;break}var u=n("pattern",d);if(u===p)for(s=0;s<2;s++)(c=v(o[s]))&&(t.bounds[s]=o[s]=c-1);if(u)for(s=0;s<2;s++)switch(c=o[s],u){case p:if(!a(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case g:if(!a(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===r.autorange){var f=r.range;if(f[0]<f[1]){if(o[0]<f[0]&&o[1]>f[1])return void(t.enabled=!1)}else if(o[0]>f[0]&&o[1]<f[1])return void(t.enabled=!1)}}else{var h=n("values");if(!h||!h.length)return void(t.enabled=!1);n("dvalue")}}}e.exports=function(e,t,r,a,g){var y,v=a.letter,x=a.font||{},b=a.splomStash||{},_=r("visible",!a.visibleDflt),w=t._template||{},k=t.type||w.type||"-";"date"===k&&(n.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",a.calendar),a.noTicklabelmode||(y=r("ticklabelmode")));a.noTicklabelposition&&"multicategory"!==k||i.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===y?["outside","inside"]:"x"===v?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition"),h(t,g);var T=!t.isValidRange(e.range);T&&a.reverseDflt&&(T="reversed"),!r("autorange",T)||"linear"!==k&&"-"!==k||r("rangemode"),r("range"),t.cleanRange(),u(e,t,r,a),"category"===k||a.noHover||r("hoverformat");var A=r("color"),M=A!==l.color.dflt?A:x.color,S=b.label||g._dfltTitle[v];if(d(e,t,r,k,a,{pass:1}),!_)return t;r("title.text",S),i.coerceFont(r,"title.font",{family:x.family,size:Math.round(1.2*x.size),color:M}),s(e,t,r,k),d(e,t,r,k,a,{pass:2}),c(e,t,r,a),f(e,t,r,{dfltColor:A,bgColor:a.bgColor,showGrid:a.showGrid,attributes:l}),(t.showline||t.ticks)&&r("mirror"),a.automargin&&r("automargin");var L,C="multicategory"===k;a.noTickson||"category"!==k&&!C||!t.ticks&&!t.showgrid||(C&&(L="boundaries"),"boundaries"===r("tickson",L)&&delete t.ticklabelposition);C&&(r("showdividers")&&(r("dividercolor"),r("dividerwidth")));if("date"===k)if(o(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:m}),t.rangebreaks.length){for(var I=0;I<t.rangebreaks.length;I++)if(t.rangebreaks[I].pattern===p){t._hasDayOfWeekBreaks=!0;break}if(h(t,g),g._has("scattergl")||g._has("splom"))for(var D=0;D<a.data.length;D++){var O=a.data[D];"scattergl"!==O.type&&"splom"!==O.type||(O.visible=!1,i.warn(O.type+" traces do not work on axes with rangebreaks. Setting trace "+O.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var y={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function v(e){if("string"==typeof e)return y[e.substr(0,3).toLowerCase()]}},cU9g:function(e,t,r){"use strict";var a=r("/CZE");e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;a.mergeArray(t.text,e,"tx"),a.mergeArray(t.hovertext,e,"htx");var n=t.marker;if(n){a.mergeArray(n.opacity,e,"mo"),a.mergeArray(n.color,e,"mc");var i=n.line;i&&(a.mergeArray(i.color,e,"mlc"),a.mergeArrayCastPositive(i.width,e,"mlw"))}}},chCF:function(e,t,r){"use strict";var a=r("/CZE"),n=r("5azm"),i=r("nF9v"),o=r("5jll").name,l=i.steps;function s(e,t,r){function o(r,n){return a.coerce(e,t,i,r,n)}for(var l=n(e,t,{name:"steps",handleItemDefaults:c}),s=0,d=0;d<l.length;d++)l[d].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var u=t._visibleSteps=a.filterVisible(l);(l[o("active")]||{}).visible||(t.active=u[0]._index),o("x"),o("y"),a.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),a.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),a.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function r(r,n){return a.coerce(e,t,l,r,n)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var n=r("label","step-"+t._index);r("value",n),r("execute")}}e.exports=function(e,t){n(e,t,{name:o,handleItemDefaults:s})}},cqRZ:function(e,t,r){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},culP:function(e,t,r){"use strict";var a=r("bljh"),n=r("pwgW"),i=r("k6aH").resizeText;e.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=a.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){a.select(this).call(n,e,t)}))}))}},d655:function(e,t,r){"use strict";e.exports={attributes:r("BDWl"),supplyDefaults:r("h+LG"),calc:r("BiVG"),plot:r("+oog"),colorbar:r("/LM6"),style:r("xDfF"),hoverPoints:r("1vus"),moduleType:"trace",name:"heatmap",basePlotModule:r("kc20"),categories:["cartesian","svg","2dMap","showLegend"],meta:{description:["The data that describes the heatmap value-to-color mapping","is set in `z`.","Data in `z` can either be a {2D array} of values (ragged or not)","or a 1D array of values.","In the case where `z` is a {2D array},","say that `z` has N rows and M columns.","Then, by default, the resulting heatmap will have N partitions along","the y axis and M partitions along the x axis.","In other words, the i-th row/ j-th column cell in `z`","is mapped to the i-th partition of the y axis","(starting from the bottom of the plot) and the j-th partition","of the x-axis (starting from the left of the plot).","This behavior can be flipped by using `transpose`.","Moreover, `x` (`y`) can be provided with M or M+1 (N or N+1) elements.","If M (N), then the coordinates correspond to the center of the","heatmap cells and the cells have equal width.","If M+1 (N+1), then the coordinates correspond to the edges of the","heatmap cells.","In the case where `z` is a 1D {array}, the x and y coordinates must be","provided in `x` and `y` respectively to form data triplets."].join(" ")}}},dDsA:function(e,t,r){"use strict";var a=r("Zss7").mix,n=r("37PH").lightFraction,i=r("/CZE");e.exports=function(e,t,r,o){var l=(o=o||{}).dfltColor;function s(r,a){return i.coerce2(e,t,o.attributes,r,a)}var c=s("linecolor",l),d=s("linewidth");r("showline",o.showLine||!!c||!!d)||(delete t.linecolor,delete t.linewidth);var u=s("gridcolor",a(l,o.bgColor,o.blend||n).toRgbString()),f=s("gridwidth");if(r("showgrid",o.showGrid||!!u||!!f)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var h=s("zerolinecolor",l),p=s("zerolinewidth");r("zeroline",o.showGrid||!!h||!!p)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},dNZO:function(e,t,r){"use strict";var a=r("GbLo"),n=r("avjU").isArrayOrTypedArray;function i(e,t){return function(){var r,a,o,l,s,c=e;for(l=0;l<t.length-1;l++){if(-1===(r=t[l])){for(a=!0,o=[],s=0;s<c.length;s++)o[s]=i(c[s],t.slice(l+1))(),o[s]!==o[0]&&(a=!1);return a?o[0]:o}if("number"==typeof r&&!n(c))return;if("object"!=typeof(c=c[r])||null===c)return}if("object"==typeof c&&null!==c&&null!==(o=c[t[l]]))return o}}e.exports=function(e,t){if(a(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var r,n,o,l=0,c=t.split(".");l<c.length;){if(r=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(n=r[2].substr(1,r[2].length-2).split("]["),o=0;o<n.length;o++)l++,c.splice(l,0,Number(n[o]))}l++}return"object"!=typeof e?function(e,t,r){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:r,obj:e}}(e,t,c):{set:s(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var o=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(o)}function s(e,t,r){return function(a){var i,o,s=e,f="",h=[[e,f]],p=l(a,r);for(o=0;o<t.length-1;o++){if("number"==typeof(i=t[o])&&!n(s))throw"array index but container is not an array";if(-1===i){if(p=!d(s,t.slice(o+1),a,r))break;return}if(!u(s,i,t[o+1],p))break;if("object"!=typeof(s=s[i])||null===s)throw"container is not an object";f=c(f,i),h.push([s,f])}if(p){if(o===t.length-1&&(delete s[t[o]],Array.isArray(s)&&+t[o]==s.length-1))for(;s.length&&void 0===s[s.length-1];)s.pop()}else s[t[o]]=a}}function c(e,t){var r=t;return a(t)?r="["+t+"]":e&&(r="."+t),e+r}function d(e,t,r,a){var i,o=n(r),c=!0,d=r,f=a.replace("-1",0),h=!o&&l(r,f),p=t[0];for(i=0;i<e.length;i++)f=a.replace("-1",i),o&&(h=l(d=r[i%r.length],f)),h&&(c=!1),u(e,i,p,h)&&s(e[i],t,a.replace("-1",i))(d);return c}function u(e,t,r,a){if(void 0===e[t]){if(a)return!1;e[t]="number"==typeof r?[]:{}}return!0}},dVlp:function(e,t,r){"use strict";e.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:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>"}}},dZSj:function(e,t,r){"use strict";var a=r("bljh"),n=r("0RW4"),i=r("/CZE"),o=r("k6aH").resizeText;function l(e,t,r){var a=t.data.data,o=!t.children,l=a.i,s=i.castOption(r,l,"marker.line.color")||n.defaultLine,c=i.castOption(r,l,"marker.line.width")||0;e.style("stroke-width",c).call(n.fill,a.color).call(n.stroke,s).style("opacity",o?r.leaf.opacity:null)}e.exports={style:function(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");o(e,t,"sunburst"),t.each((function(e){var t=a.select(this),r=e[0].trace;t.style("opacity",r.opacity),t.selectAll("path.surface").each((function(e){a.select(this).call(l,e,r)}))}))},styleOne:l}},"dnh+":function(e,t,r){"use strict";e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",role:"info",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},funnelgap:{valType:"number",min:0,max:1,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},drJC:function(e,t,r){"use strict";e.exports=function(){"undefined"!=typeof MathJax&&("local"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured()))}},e6NF:function(e,t,r){"use strict";e.exports={sunburstcolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default sunburst slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendsunburstcolors`."].join(" ")},extendsunburstcolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the sunburst slice colors (whether given by `sunburstcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},"eN+q":function(e,t,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-time-format#locale_format"}},eNjM:function(e,t,r){"use strict";e.exports={hiddenlabels:{valType:"data_array",role:"info",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},eO4U:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=n.strScale,o=n.strTranslate,l=n.rad2deg,s=r("Y9zF").MID_SHIFT,c=r("g9E0"),d=r("SbTw"),u=r("A3kh"),f=r("BkK/"),h=r("cRi9"),p=r("86IV"),g=r("15jM"),m=r("0RW4"),y={left:"start",center:"middle",right:"end"},v={left:0,center:.5,right:1},x=/[yzafpnµmkMGTPEZY]/;function b(e){return e&&e.duration>0}function _(e){e.each((function(e){m.stroke(a.select(this),e.line.color)})).each((function(e){m.fill(a.select(this),e.color)})).style("stroke-width",(function(e){return e.line.width}))}function w(e,t,r){var a=e._fullLayout,i=n.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),o={type:"linear",_id:"x"+t._id},l={letter:"x",font:a.font,noHover:!0,noTickson:!0};function s(e,t){return n.coerce(i,o,g,e,t)}return h(i,o,s,l,a),p(i,o,s,l),o}function k(e,t,r){return[Math.min(t/e.width,r/e.height),e,t+"x"+r]}function T(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),o=a.select(i);return o.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(u.convertToTspans,n).call(c.font,t),c.bBox(o.node())}function A(e,t,r,a,i,o){var l="_cache"+t;e[l]&&e[l].key===i||(e[l]={key:i,value:r});var s=n.aggNums(o,null,[e[l].value,a],2);return e[l].value=s,s}e.exports=function(e,t,r,h){var p,g=e._fullLayout;b(r)&&h&&(p=h()),n.makeTraceGroups(g._indicatorlayer,t,"trace").each((function(t){var h,M,S,L,C,I=t[0].trace,D=a.select(this),O=I._hasGauge,z=I._isAngular,P=I._isBullet,E=I.domain,j={w:g._size.w*(E.x[1]-E.x[0]),h:g._size.h*(E.y[1]-E.y[0]),l:g._size.l+g._size.w*E.x[0],r:g._size.r+g._size.w*(1-E.x[1]),t:g._size.t+g._size.h*(1-E.y[1]),b:g._size.b+g._size.h*E.y[0]},R=j.l+j.w/2,N=j.t+j.h/2,F=Math.min(j.w/2,j.h),B=d.innerRadius*F,H=I.align||"center";if(M=N,O){if(z&&(h=R,M=N+F/2,S=function(e){return function(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height);return[t/r,e,t]}(e,.9*B)}),P){var V=d.bulletPadding,Z=1-d.bulletNumberDomainSize+V;h=j.l+(Z+(1-Z)*v[H])*j.w,S=function(e){return k(e,(d.bulletNumberDomainSize-V)*j.w,j.h)}}}else h=j.l+v[H]*j.w,S=function(e){return k(e,j.w,j.h)};!function(e,t,r,l){var s,d,h,p=r[0].trace,g=l.numbersX,_=l.numbersY,k=p.align||"center",M=y[k],S=l.transitionOpts,L=l.onComplete,C=n.ensureSingle(t,"g","numbers"),I=[];p._hasNumber&&I.push("number");p._hasDelta&&(I.push("delta"),"left"===p.delta.position&&I.reverse());var D=C.selectAll("text").data(I);function O(t,r,a,n){if(!t.match("s")||a>=0==n>=0||r(a).slice(-1).match(x)||r(n).slice(-1).match(x))return r;var i=t.slice().replace("s","f").replace(/\d+/,(function(e){return parseInt(e)-1})),o=w(e,{tickformat:i});return function(e){return Math.abs(e)<1?f.tickText(o,e).text:r(e)}}D.enter().append("text"),D.attr("text-anchor",(function(){return M})).attr("class",(function(e){return e})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),D.exit().remove();var z,P=p.mode+p.align;p._hasDelta&&(z=function(){var t=w(e,{tickformat:p.delta.valueformat},p._range);t.setScale(),f.prepTicks(t);var n=function(e){return f.tickText(t,e).text},i=function(e){return p.delta.relative?e.relativeDelta:e.delta},o=function(e,t){return 0===e||"number"!=typeof e||isNaN(e)?"-":(e>0?p.delta.increasing.symbol:p.delta.decreasing.symbol)+t(e)},l=function(e){return e.delta>=0?p.delta.increasing.color:p.delta.decreasing.color};void 0===p._deltaLastValue&&(p._deltaLastValue=i(r[0]));var s=C.select("text.delta");function h(){s.text(o(i(r[0]),n)).call(m.fill,l(r[0])).call(u.convertToTspans,e)}return s.call(c.font,p.delta.font).call(m.fill,l({delta:p._deltaLastValue})),b(S)?s.transition().duration(S.duration).ease(S.easing).tween("text",(function(){var e=a.select(this),t=i(r[0]),s=p._deltaLastValue,c=O(p.delta.valueformat,n,s,t),d=a.interpolateNumber(s,t);return p._deltaLastValue=t,function(t){e.text(o(d(t),c)),e.call(m.fill,l({delta:d(t)}))}})).each("end",(function(){h(),L&&L()})).each("interrupt",(function(){h(),L&&L()})):h(),d=T(o(i(r[0]),n),p.delta.font,M,e),s}(),P+=p.delta.position+p.delta.font.size+p.delta.font.family+p.delta.valueformat,P+=p.delta.increasing.symbol+p.delta.decreasing.symbol,h=d);p._hasNumber&&(!function(){var t=w(e,{tickformat:p.number.valueformat},p._range);t.setScale(),f.prepTicks(t);var n=function(e){return f.tickText(t,e).text},i=p.number.suffix,o=p.number.prefix,l=C.select("text.number");function d(){var t="number"==typeof r[0].y?o+n(r[0].y)+i:"-";l.text(t).call(c.font,p.number.font).call(u.convertToTspans,e)}b(S)?l.transition().duration(S.duration).ease(S.easing).each("end",(function(){d(),L&&L()})).each("interrupt",(function(){d(),L&&L()})).attrTween("text",(function(){var e=a.select(this),t=a.interpolateNumber(r[0].lastY,r[0].y);p._lastValue=r[0].y;var l=O(p.number.valueformat,n,r[0].lastY,r[0].y);return function(r){e.text(o+l(t(r))+i)}})):d(),s=T(o+n(r[0].y)+i,p.number.font,M,e)}(),P+=p.number.font.size+p.number.font.family+p.number.valueformat+p.number.suffix+p.number.prefix,h=s);if(p._hasDelta&&p._hasNumber){var E,j,R=[(s.left+s.right)/2,(s.top+s.bottom)/2],N=[(d.left+d.right)/2,(d.top+d.bottom)/2],F=.75*p.delta.font.size;"left"===p.delta.position&&(E=A(p,"deltaPos",0,-1*(s.width*v[p.align]+d.width*(1-v[p.align])+F),P,Math.min),j=R[1]-N[1],h={width:s.width+d.width+F,height:Math.max(s.height,d.height),left:d.left+E,right:s.right,top:Math.min(s.top,d.top+j),bottom:Math.max(s.bottom,d.bottom+j)}),"right"===p.delta.position&&(E=A(p,"deltaPos",0,s.width*(1-v[p.align])+d.width*v[p.align]+F,P,Math.max),j=R[1]-N[1],h={width:s.width+d.width+F,height:Math.max(s.height,d.height),left:s.left,right:d.right+E,top:Math.min(s.top,d.top+j),bottom:Math.max(s.bottom,d.bottom+j)}),"bottom"===p.delta.position&&(E=null,j=d.height,h={width:Math.max(s.width,d.width),height:s.height+d.height,left:Math.min(s.left,d.left),right:Math.max(s.right,d.right),top:s.bottom-s.height,bottom:s.bottom+d.height}),"top"===p.delta.position&&(E=null,j=s.top,h={width:Math.max(s.width,d.width),height:s.height+d.height,left:Math.min(s.left,d.left),right:Math.max(s.right,d.right),top:s.bottom-s.height-d.height,bottom:s.bottom}),z.attr({dx:E,dy:j})}(p._hasNumber||p._hasDelta)&&C.attr("transform",(function(){var e=l.numbersScaler(h);P+=e[2];var t,r=A(p,"numbersScale",1,e[0],P,Math.min);p._scaleNumbers||(r=1),t=p._isAngular?_-r*h.bottom:_-r*(h.top+h.bottom)/2,p._numbersTop=r*h.top+t;var a=h[k];"center"===k&&(a=(h.left+h.right)/2);var n=g-r*a;return n=A(p,"numbersTranslate",0,n,P,Math.max),o(n,t)+i(r)}))}(e,D,t,{numbersX:h,numbersY:M,numbersScaler:S,transitionOpts:r,onComplete:p}),O&&(L={range:I.gauge.axis.range,color:I.gauge.bgcolor,line:{color:I.gauge.bordercolor,width:0},thickness:1},C={range:I.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:I.gauge.bordercolor,width:I.gauge.borderwidth},thickness:1});var G=D.selectAll("g.angular").data(z?t:[]);G.exit().remove();var U=D.selectAll("g.angularaxis").data(z?t:[]);U.exit().remove(),z&&function(e,t,r,n){var i,c,d,u,h=r[0].trace,p=n.size,g=n.radius,m=n.innerRadius,y=n.gaugeBg,v=n.gaugeOutline,x=[p.l+p.w/2,p.t+p.h/2+g/2],k=n.gauge,T=n.layer,A=n.transitionOpts,M=n.onComplete,S=Math.PI/2;function L(e){var t=h.gauge.axis.range[0],r=(e-t)/(h.gauge.axis.range[1]-t)*Math.PI-S;return r<-S?-S:r>S?S:r}function C(e){return a.svg.arc().innerRadius((m+g)/2-e/2*(g-m)).outerRadius((m+g)/2+e/2*(g-m)).startAngle(-S)}function I(e){e.attr("d",(function(e){return C(e.thickness).startAngle(L(e.range[0])).endAngle(L(e.range[1]))()}))}k.enter().append("g").classed("angular",!0),k.attr("transform",o(x[0],x[1])),T.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),T.selectAll("g.xangularaxistick,path,text").remove(),(i=w(e,h.gauge.axis)).type="linear",i.range=h.gauge.axis.range,i._id="xangularaxis",i.setScale();var D=function(e){return(i.range[0]-e.x)/(i.range[1]-i.range[0])*Math.PI+Math.PI},O={},z=f.makeLabelFns(i,0).labelStandoff;O.xFn=function(e){var t=D(e);return Math.cos(t)*z},O.yFn=function(e){var t=D(e),r=Math.sin(t)>0?.2:1;return-Math.sin(t)*(z+e.fontSize*r)+Math.abs(Math.cos(t))*(e.fontSize*s)},O.anchorFn=function(e){var t=D(e),r=Math.cos(t);return Math.abs(r)<.1?"middle":r>0?"start":"end"},O.heightFn=function(e,t,r){var a=D(e);return-.5*(1+Math.sin(a))*r};var P=function(e){return o(x[0]+g*Math.cos(e),x[1]-g*Math.sin(e))};d=function(e){return P(D(e))};if(c=f.calcTicks(i),u=f.getTickSigns(i)[2],i.visible){u="inside"===i.ticks?-1:1;var E=(i.linewidth||1)/2;f.drawTicks(e,i,{vals:c,layer:T,path:"M"+u*E+",0h"+u*i.ticklen,transFn:function(e){var t=D(e);return P(t)+"rotate("+-l(t)+")"}}),f.drawLabels(e,i,{vals:c,layer:T,transFn:d,labelFns:O})}var j=[y].concat(h.gauge.steps),R=k.selectAll("g.bg-arc").data(j);R.enter().append("g").classed("bg-arc",!0).append("path"),R.select("path").call(I).call(_),R.exit().remove();var N=C(h.gauge.bar.thickness),F=k.selectAll("g.value-arc").data([h.gauge.bar]);F.enter().append("g").classed("value-arc",!0).append("path");var B=F.select("path");b(A)?(B.transition().duration(A.duration).ease(A.easing).each("end",(function(){M&&M()})).each("interrupt",(function(){M&&M()})).attrTween("d",(H=N,V=L(r[0].lastY),Z=L(r[0].y),function(){var e=a.interpolate(V,Z);return function(t){return H.endAngle(e(t))()}})),h._lastValue=r[0].y):B.attr("d","number"==typeof r[0].y?N.endAngle(L(r[0].y)):"M0,0Z");var H,V,Z;B.call(_),F.exit().remove(),j=[];var G=h.gauge.threshold.value;G&&j.push({range:[G,G],color:h.gauge.threshold.color,line:{color:h.gauge.threshold.line.color,width:h.gauge.threshold.line.width},thickness:h.gauge.threshold.thickness});var U=k.selectAll("g.threshold-arc").data(j);U.enter().append("g").classed("threshold-arc",!0).append("path"),U.select("path").call(I).call(_),U.exit().remove();var W=k.selectAll("g.gauge-outline").data([v]);W.enter().append("g").classed("gauge-outline",!0).append("path"),W.select("path").call(I).call(_),W.exit().remove()}(e,0,t,{radius:F,innerRadius:B,gauge:G,layer:U,size:j,gaugeBg:L,gaugeOutline:C,transitionOpts:r,onComplete:p});var W=D.selectAll("g.bullet").data(P?t:[]);W.exit().remove();var q=D.selectAll("g.bulletaxis").data(P?t:[]);q.exit().remove(),P&&function(e,t,r,a){var n,i,l,s,c,u=r[0].trace,h=a.gauge,p=a.layer,g=a.gaugeBg,y=a.gaugeOutline,v=a.size,x=u.domain,k=a.transitionOpts,T=a.onComplete;h.enter().append("g").classed("bullet",!0),h.attr("transform",o(v.l,v.t)),p.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),p.selectAll("g.xbulletaxistick,path,text").remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],L=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-d.bulletNumberDomainSize:1);(n=w(e,u.gauge.axis))._id="xbulletaxis",n.domain=[S,L],n.setScale(),i=f.calcTicks(n),l=f.makeTransTickFn(n),s=f.getTickSigns(n)[2],c=v.t+v.h,n.visible&&(f.drawTicks(e,n,{vals:"inside"===n.ticks?f.clipEnds(n,i):i,layer:p,path:f.makeTickPath(n,c,s),transFn:l}),f.drawLabels(e,n,{vals:i,layer:p,transFn:l,labelFns:f.makeLabelFns(n,c)}));function C(e){e.attr("width",(function(e){return Math.max(0,n.c2p(e.range[1])-n.c2p(e.range[0]))})).attr("x",(function(e){return n.c2p(e.range[0])})).attr("y",(function(e){return.5*(1-e.thickness)*A})).attr("height",(function(e){return e.thickness*A}))}var I=[g].concat(u.gauge.steps),D=h.selectAll("g.bg-bullet").data(I);D.enter().append("g").classed("bg-bullet",!0).append("rect"),D.select("rect").call(C).call(_),D.exit().remove();var O=h.selectAll("g.value-bullet").data([u.gauge.bar]);O.enter().append("g").classed("value-bullet",!0).append("rect"),O.select("rect").attr("height",M).attr("y",(A-M)/2).call(_),b(k)?O.select("rect").transition().duration(k.duration).ease(k.easing).each("end",(function(){T&&T()})).each("interrupt",(function(){T&&T()})).attr("width",Math.max(0,n.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):O.select("rect").attr("width","number"==typeof r[0].y?Math.max(0,n.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);O.exit().remove();var z=r.filter((function(){return u.gauge.threshold.value})),P=h.selectAll("g.threshold-bullet").data(z);P.enter().append("g").classed("threshold-bullet",!0).append("line"),P.select("line").attr("x1",n.c2p(u.gauge.threshold.value)).attr("x2",n.c2p(u.gauge.threshold.value)).attr("y1",(1-u.gauge.threshold.thickness)/2*A).attr("y2",(1-(1-u.gauge.threshold.thickness)/2)*A).call(m.stroke,u.gauge.threshold.line.color).style("stroke-width",u.gauge.threshold.line.width),P.exit().remove();var E=h.selectAll("g.gauge-outline").data([y]);E.enter().append("g").classed("gauge-outline",!0).append("rect"),E.select("rect").call(C).call(_),E.exit().remove()}(e,0,t,{gauge:W,layer:q,size:j,gaugeBg:L,gaugeOutline:C,transitionOpts:r,onComplete:p});var Y=D.selectAll("text.title").data(t);Y.exit().remove(),Y.enter().append("text").classed("title",!0),Y.attr("text-anchor",(function(){return P?y.right:y[I.title.align]})).text(I.title.text).call(c.font,I.title.font).call(u.convertToTspans,e),Y.attr("transform",(function(){var e,t=j.l+j.w*v[I.title.align],r=d.titlePadding,a=c.bBox(Y.node());if(O){if(z)if(I.gauge.axis.visible)e=c.bBox(U.node()).top-r-a.bottom;else e=j.t+j.h/2-F/2-a.bottom-r;P&&(e=M-(a.top+a.bottom)/2,t=j.l-d.bulletPadding*j.w)}else e=I._numbersTop-r-a.bottom;return o(t,e)}))}))}},eXRl:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BVrX").counter,i=r("gfA5").attributes,o=r("0wH6").idRegex,l=r("plED"),s={rows:{valType:"integer",min:1,role:"info",editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",role:"info",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,role:"info",editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[n("xy").toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},role:"info",editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",role:"info",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,role:"info",editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,role:"info",editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:i({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",role:"info",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",role:"info",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function c(e,t,r){var a=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(a)?a:n.length?n:void 0}function d(e,t,r,a,n,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",a);for(var s=new Array(n),c=l[0],d=(l[1]-c)/(n-o),u=d*(1-o),f=0;f<n;f++){var h=c+d*f;s[i?n-1-f:f]=[h,h+u]}return s}function u(e,t,r,a,n){var i,o=new Array(r);function l(e,r){-1!==t.indexOf(r)&&void 0===a[r]?(o[e]=r,a[r]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<r;i++)l(i,e[i]);else for(l(0,n),i=1;i<r;i++)l(i,n+(i+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},n=c(t,r,"x"),i=c(t,r,"y");if(e.grid||n||i){var o,u,f=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),h=Array.isArray(n),p=Array.isArray(i),g=h&&n!==r.xaxes&&p&&i!==r.yaxes;f?(o=r.subplots.length,u=r.subplots[0].length):(p&&(o=i.length),h&&(u=n.length));var m=l.newContainer(t,"grid"),y=T("rows",o),v=T("columns",u);if(y*v>1){if(!f&&!h&&!p)"independent"===T("pattern")&&(f=!0);m._hasSubplotGrid=f;var x,b,_="top to bottom"===T("roworder"),w=f?.2:.1,k=f?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),m._domains={x:d("x",T,w,x,v),y:d("y",T,k,b,y,_)}}else delete t.grid}function T(e,t){return a.coerce(r,m,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var a,n,i,o,l,s,d,f=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,g=r.rows,m=r.columns,y="independent"===r.pattern,v=r._axisMap={};if(p){var x=f.subplots||[];s=r.subplots=new Array(g);var b=1;for(a=0;a<g;a++){var _=s[a]=new Array(m),w=x[a]||[];for(n=0;n<m;n++)if(y?(l=1===b?"xy":"x"+b+"y"+b,b++):l=w[n],_[n]="",-1!==h.cartesian.indexOf(l)){if(d=l.indexOf("y"),i=l.slice(0,d),o=l.slice(d),void 0!==v[i]&&v[i]!==n||void 0!==v[o]&&v[o]!==a)continue;_[n]=l,v[i]=n,v[o]=a}}}else{var k=c(t,f,"x"),T=c(t,f,"y");r.xaxes=u(k,h.xaxis,m,v,"x"),r.yaxes=u(T,h.yaxis,g,v,"y")}var A=r._anchors={},M="top to bottom"===r.roworder;for(var S in v){var L,C,I,D=S.charAt(0),O=r[D+"side"];if(O.length<8)A[S]="free";else if("x"===D){if("t"===O.charAt(0)===M?(L=0,C=1,I=g):(L=g-1,C=-1,I=-1),p){var z=v[S];for(a=L;a!==I;a+=C)if((l=s[a][z])&&(d=l.indexOf("y"),l.slice(0,d)===S)){A[S]=l.slice(d);break}}else for(a=L;a!==I;a+=C)if(o=r.yaxes[a],-1!==h.cartesian.indexOf(S+o)){A[S]=o;break}}else if("l"===O.charAt(0)?(L=0,C=1,I=m):(L=m-1,C=-1,I=-1),p){var P=v[S];for(a=L;a!==I;a+=C)if((l=s[P][a])&&(d=l.indexOf("y"),l.slice(d)===S)){A[S]=l.slice(0,d);break}}else for(a=L;a!==I;a+=C)if(i=r.xaxes[a],-1!==h.cartesian.indexOf(i+S)){A[S]=i;break}}}}}},efHY:function(e,t,r){"use strict";t.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},t.isVertical=function(e){return"h"!==e.orientation},t.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},el8q:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"indicator",basePlotModule:r("ZDyq"),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:r("HIIg"),supplyDefaults:r("GLsQ").supplyDefaults,calc:r("WtF/").calc,plot:r("eO4U"),meta:{description:["An indicator is used to visualize a single `value` along with some","contextual information such as `steps` or a `threshold`, using a","combination of three visual elements: a number, a delta, and/or a gauge.","Deltas are taken with respect to a `reference`.","Gauges can be either angular or bullet (aka linear) gauges."].join(" ")}}},f56O:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("bcxm"),o=r("wAWO"),l=r("lUdJ"),s=r("WRPy"),c=r("DDk4").calcAllAutoBins;function d(e,t,r,a){var n,i=new Array(e);if(a)for(n=0;n<e;n++)i[n]=1/(t[n+1]-t[n]);else{var o=1/r;for(n=0;n<e;n++)i[n]=o}return i}function u(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function f(e,t,r,a,n,i){var o,l=e.length-1,c=new Array(l),d=s(r,a,e,n,i);for(o=0;o<l;o++){var u=(t||[])[o];c[o]=void 0===u?[d(e[o]),d(e[o+1],!0)]:[u,u]}return c}e.exports=function(e,t){var r,s,h,p,g=n.getFromId(e,t.xaxis),m=n.getFromId(e,t.yaxis),y=t.xcalendar,v=t.ycalendar,x=function(e){return g.r2c(e,0,y)},b=function(e){return m.r2c(e,0,v)},_=c(e,t,g,"x"),w=_[0],k=_[1],T=c(e,t,m,"y"),A=T[0],M=T[1],S=t._length;k.length>S&&k.splice(S,k.length-S),M.length>S&&M.splice(S,M.length-S);var L=[],C=[],I=[],D="string"==typeof w.size,O="string"==typeof A.size,z=[],P=[],E=D?z:w,j=O?P:A,R=0,N=[],F=[],B=t.histnorm,H=t.histfunc,V=-1!==B.indexOf("density"),Z="max"===H||"min"===H?null:0,G=i.count,U=o[B],W=!1,q=[],Y=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(W="avg"===H,G=i[H]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-n.tickIncrement(K,J,!1,y))/1e6;for(r=K;r<Q;r=n.tickIncrement(r,J,!1,y))C.push(Z),z.push(r),W&&I.push(0);z.push(r);var $,ee=C.length,te=(r-K)/ee,re=($=K+te/2,g.c2r($,0,y)),ae=A.size,ne=b(A.start),ie=b(A.end)+(ne-n.tickIncrement(ne,ae,!1,v))/1e6;for(r=ne;r<ie;r=n.tickIncrement(r,ae,!1,v)){L.push(C.slice()),P.push(r);var oe=new Array(ee);for(s=0;s<ee;s++)oe[s]=[];F.push(oe),W&&N.push(I.slice())}P.push(r);var le=L.length,se=(r-ne)/le,ce=function(e){return m.c2r(e,0,v)}(ne+se/2);V&&(q=d(C.length,E,te,D),Y=d(L.length,j,se,O)),D||"date"!==g.type||(E=u(x,E)),O||"date"!==m.type||(j=u(b,j));var de=!0,ue=!0,fe=new Array(ee),he=new Array(le),pe=1/0,ge=1/0,me=1/0,ye=1/0;for(r=0;r<S;r++){var ve=k[r],xe=M[r];h=a.findBin(ve,E),p=a.findBin(xe,j),h>=0&&h<ee&&p>=0&&p<le&&(R+=G(h,r,L[p],X,N[p]),F[p][h].push(r),de&&(void 0===fe[h]?fe[h]=ve:fe[h]!==ve&&(de=!1)),ue&&(void 0===he[p]?he[p]=xe:he[p]!==xe&&(ue=!1)),pe=Math.min(pe,ve-z[h]),ge=Math.min(ge,z[h+1]-ve),me=Math.min(me,xe-P[p]),ye=Math.min(ye,P[p+1]-xe))}if(W)for(p=0;p<le;p++)R+=l(L[p],N[p]);if(U)for(p=0;p<le;p++)U(L[p],R,q,Y[p]);return{x:k,xRanges:f(z,de&&fe,pe,ge,g,y),x0:re,dx:te,y:M,yRanges:f(P,ue&&he,me,ye,m,v),y0:ce,dy:se,z:L,pts:F}}},f7dW:function(e,t,r){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},f8PX:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("6BKz").hover;e.exports=function(e,t,r){var i=a.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&n(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},f9ru:function(e,t,r){"use strict";var a=r("BkK/"),n=r("h5fz"),i=r("/CZE").mergeArray,o=r("QTaS"),l=r("6AZA").BADNUM;function s(e){return"a"===e||"absolute"===e}function c(e){return"t"===e||"total"===e}e.exports=function(e,t){var r,d,u,f,h=a.getFromId(e,t.xaxis||"x"),p=a.getFromId(e,t.yaxis||"y");"h"===t.orientation?(r=h.makeCalcdata(t,"x"),u=p.makeCalcdata(t,"y"),d=n(t,p,"y",u),f=!!t.yperiodalignment):(r=p.makeCalcdata(t,"y"),u=h.makeCalcdata(t,"x"),d=n(t,h,"x",u),f=!!t.xperiodalignment);for(var g,m=Math.min(d.length,r.length),y=new Array(m),v=0,x=!1,b=0;b<m;b++){var _=r[b]||0,w=!1;(r[b]!==l||c(t.measure[b])||s(t.measure[b]))&&b+1<m&&(r[b+1]!==l||c(t.measure[b+1])||s(t.measure[b+1]))&&(w=!0);var k=y[b]={i:b,p:d[b],s:_,rawS:_,cNext:w};s(t.measure[b])?(v=k.s,k.isSum=!0,k.dir="totals",k.s=v):c(t.measure[b])?(k.isSum=!0,k.dir="totals",k.s=v):(k.isSum=!1,k.dir=k.rawS<0?"decreasing":"increasing",g=k.s,k.s=v+g,v+=g),"totals"===k.dir&&(x=!0),f&&(y[b].orig_p=u[b]),t.ids&&(k.id=String(t.ids[b])),k.v=(t.base||0)+v}return y.length&&(y[0].hasTotals=x),i(t.text,y,"tx"),i(t.hovertext,y,"htx"),o(y,t),y}},fEMZ:function(e,t,r){"use strict";var a=r("bljh"),n=r("g9E0"),i=r("/CZE"),o=i.strScale,l=i.strTranslate,s=r("A3kh"),c=r("x5FY").toMoveInsideBar,d=r("k6aH"),u=d.recordMinTextSize,f=d.clearMinTextSize,h=r("WeBh"),p=r("wK8V"),g=p.attachFxHandlers,m=p.determineInsideTextFont,y=p.layoutAreas,v=p.prerenderTitles,x=p.positionTitleOutside,b=p.formatSliceLabel;function _(e,t){return"l"+(t[0]-e[0])+","+(t[1]-e[1])}e.exports=function(e,t){var r=e._fullLayout;f("funnelarea",r),v(t,e),y(t,r._size),i.makeTraceGroups(r._funnelarealayer,t,"trace").each((function(t){var d=a.select(this),f=t[0],p=f.trace;!function(e){if(!e.length)return;var t=e[0],r=t.trace,a=r.aspectratio,n=r.baseratio;n>.999&&(n=.999);var i,o=Math.pow(n,2),l=t.vTotal,s=l,c=l*o/(1-o)/l;function d(){var e,t={x:e=Math.sqrt(c),y:-e};return[t.x,t.y]}var u,f,h=[];for(h.push(d()),u=e.length-1;u>-1;u--)if(!(f=e[u]).hidden){var p=f.v/s;c+=p,h.push(d())}var g=1/0,m=-1/0;for(u=0;u<h.length;u++)i=h[u],g=Math.min(g,i[1]),m=Math.max(m,i[1]);for(u=0;u<h.length;u++)h[u][1]-=(m+g)/2;var y=h[h.length-1][0],v=t.r,x=(m-g)/2,b=v/y,_=v/x*a;for(t.r=_*x,u=0;u<h.length;u++)h[u][0]*=b,h[u][1]*=_;var w=[-(i=h[0])[0],i[1]],k=[i[0],i[1]],T=0;for(u=e.length-1;u>-1;u--)if(!(f=e[u]).hidden){var A=h[T+=1][0],M=h[T][1];f.TL=[-A,M],f.TR=[A,M],f.BL=w,f.BR=k,f.pxmid=(S=f.TR,L=f.BR,[.5*(S[0]+L[0]),.5*(S[1]+L[1])]),w=f.TL,k=f.TR}var S,L}(t),d.each((function(){var d=a.select(this).selectAll("g.slice").data(t);d.enter().append("g").classed("slice",!0),d.exit().remove(),d.each((function(o,l){if(o.hidden)a.select(this).selectAll("path,g").remove();else{o.pointNumber=o.i,o.curveNumber=p.index;var d=f.cx,y=f.cy,v=a.select(this),x=v.selectAll("path.surface").data([o]);x.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),v.call(g,e,t);var w="M"+(d+o.TR[0])+","+(y+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+"Z";x.attr("d",w),b(e,o,f);var k=h.castOption(p.textposition,o.pts),T=v.selectAll("g.slicetext").data(o.text&&"none"!==k?[0]:[]);T.enter().append("g").classed("slicetext",!0),T.exit().remove(),T.each((function(){var f=i.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),h=i.ensureUniformFontSize(e,m(p,o,r.font));f.text(o.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(n.font,h).call(s.convertToTspans,e);var g,v,x,b=n.bBox(f.node()),_=Math.min(o.BL[1],o.BR[1])+y,w=Math.max(o.TL[1],o.TR[1])+y;v=Math.max(o.TL[0],o.BL[0])+d,x=Math.min(o.TR[0],o.BR[0])+d,(g=c(v,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=h.size,u(p.type,g,r),t[l].transform=g,f.attr("transform",i.getTextTransform(g))}))}}));var y=a.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);y.enter().append("g").classed("titletext",!0),y.exit().remove(),y.each((function(){var t=i.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),c=p.title.text;p._meta&&(c=i.templateString(c,p._meta)),t.text(c).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(n.font,p.title.font).call(s.convertToTspans,e);var d=x(f,r._size);t.attr("transform",l(d.x,d.y)+o(Math.min(1,d.scale))+l(d.tx,d.ty))}))}))}))}},fJ8H:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r("1y5b"),supplyLayoutDefaults:r("S2oI"),includeBasePlot:r("N9FU")("images"),draw:r("/0lf"),convertCoords:r("YXRs")}},ffJW:function(e,t,r){"use strict";var a={};function n(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,r){var i=a[e],o=Date.now();if(!i){for(var l in a)a[l].ts<o-6e4&&delete a[l];i=a[e]={ts:0,timer:null}}function s(){r(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}n(i),o>i.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},t.done=function(e){var t=a[e];return t&&t.timer?new Promise((function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)n(a[e]),delete a[e];else for(var r in a)t.clear(r)}},fpYS:function(e,t,r){"use strict";var a=r("BkK/");e.exports=function(e,t,r){var n={},i={_fullLayout:r},o=a.getFromTrace(i,t,"x"),l=a.getFromTrace(i,t,"y");return n.xLabel=a.tickText(o,e.x,!0).text,n.yLabel=a.tickText(l,e.y,!0).text,n}},fu4d:function(e,t,r){"use strict";var a=r("/CZE"),n=r("yzSc").overrideAll,i=r("jC0I"),o={error_x:a.extendFlat({},i),error_y:a.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:a.extendFlat({},i),error_y:a.extendFlat({},i),error_z:a.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:n(l,"calc","nested"),scattergl:n(o,"calc","nested")}},supplyDefaults:r("IBVe"),calc:r("2z/O"),makeComputeError:r("PDHv"),plot:r("VTo0"),style:r("r91y"),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},g3i2:function(e,t,r){"use strict";var a=r("/CZE"),n=r("0RW4"),i=r("xMdC").isUnifiedHover,o=r("VNna"),l=r("plED"),s=r("poX/"),c=r("15jM"),d=r("teKd"),u=r("cRi9"),f=r("at2O"),h=r("86IV"),p=r("PBw4"),g=p.id2name,m=p.name2id,y=r("0wH6").AX_ID_PATTERN,v=r("Nx4I"),x=v.traceIs,b=v.getComponentMethod;function _(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,r){var v,w,k=t.autotypenumbers,T={},A={},M={},S={},L={},C={},I={},D={},O={},z={};for(v=0;v<r.length;v++){var P=r[v];if(x(P,"cartesian")||x(P,"gl2d")){var E,j;if(P.xaxis)E=g(P.xaxis),_(T,E,P);else if(P.xaxes)for(w=0;w<P.xaxes.length;w++)_(T,g(P.xaxes[w]),P);if(P.yaxis)j=g(P.yaxis),_(T,j,P);else if(P.yaxes)for(w=0;w<P.yaxes.length;w++)_(T,g(P.yaxes[w]),P);if("funnel"===P.type?"h"===P.orientation?(E&&(A[E]=!0),j&&(I[j]=!0)):j&&(M[j]=!0):"image"===P.type?(j&&(D[j]=!0),E&&(D[E]=!0)):(j&&(L[j]=!0,C[j]=!0),x(P,"carpet")&&("carpet"!==P.type||P._cheater)||E&&(S[E]=!0)),"carpet"===P.type&&P._cheater&&E&&(A[E]=!0),x(P,"2dMap")&&(O[E]=!0,O[j]=!0),x(P,"oriented"))z["h"===P.orientation?j:E]=!0}}var R=t._subplots,N=R.xaxis,F=R.yaxis,B=a.simpleMap(N,g),H=a.simpleMap(F,g),V=B.concat(H),Z=n.background;N.length&&F.length&&(Z=a.coerce(e,t,s,"plot_bgcolor"));var G,U,W,q,Y,X=n.combine(Z,t.paper_bgcolor);function J(){var e=T[G]||[];Y._traceIndices=e.map((function(e){return e._expandedIndex})),Y._annIndices=[],Y._shapeIndices=[],Y._imgIndices=[],Y._subplotsWith=[],Y._counterAxes=[],Y._name=Y._attr=G,Y._id=U}function K(e,t){return a.coerce(q,Y,c,e,t)}function Q(e,t){return a.coerce2(q,Y,c,e,t)}function $(e){return"x"===e?F:N}function ee(t,r){for(var a="x"===t?B:H,n=[],i=0;i<a.length;i++){var o=a[i];o===r||(e[o]||{}).overlaying||n.push(m(o))}return n}var te={x:$("x"),y:$("y")},re=te.x.concat(te.y),ae={},ne=[];function ie(){var e=q.matches;y.test(e)&&-1===re.indexOf(e)&&(ae[e]=q.type,ne=Object.keys(ae))}var oe=o(e,t,r),le=i(oe);for(v=0;v<V.length;v++){G=V[v],U=m(G),W=G.charAt(0),a.isPlainObject(e[G])||(e[G]={}),q=e[G],Y=l.newContainer(t,G,W+"axis"),J();var se="x"===W&&!S[G]&&A[G]||"y"===W&&!L[G]&&M[G],ce="y"===W&&(!C[G]&&I[G]||D[G]),de={letter:W,font:t.font,outerTicks:O[G],showGrid:!z[G],data:T[G]||[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:ce,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[W]||{})[U]};K("uirevision",t.uirevision),d(q,Y,K,de),u(q,Y,K,de,t);var ue=le&&W===oe.charAt(0),fe=Q("spikecolor",le?Y.color:void 0),he=Q("spikethickness",le?1.5:void 0),pe=Q("spikedash",le?"dot":void 0),ge=Q("spikemode",le?"across":void 0),me=Q("spikesnap",le?"hovered data":void 0);K("showspikes",!!(ue||fe||he||pe||ge||me))||(delete Y.spikecolor,delete Y.spikethickness,delete Y.spikedash,delete Y.spikemode,delete Y.spikesnap),h(q,Y,K,{letter:W,counterAxes:te[W],overlayableAxes:ee(W,G),grid:t.grid}),K("title.standoff"),ie(),Y._input=q}for(v=0;v<ne.length;){U=ne[v++],W=(G=g(U)).charAt(0),a.isPlainObject(e[G])||(e[G]={}),q=e[G],Y=l.newContainer(t,G,W+"axis"),J();var ye={letter:W,font:t.font,outerTicks:O[G],showGrid:!z[G],data:[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:k,splomStash:((t._splomAxes||{})[W]||{})[U]};K("uirevision",t.uirevision),Y.type=ae[U]||"linear",u(q,Y,K,ye,t),h(q,Y,K,{letter:W,counterAxes:te[W],overlayableAxes:ee(W,G),grid:t.grid}),K("fixedrange"),ie(),Y._input=q}var ve=b("rangeslider","handleDefaults"),xe=b("rangeselector","handleDefaults");for(v=0;v<B.length;v++)G=B[v],q=e[G],Y=t[G],ve(e,t,G),"date"===Y.type&&xe(q,Y,t,H,Y.calendar),K("fixedrange");for(v=0;v<H.length;v++){G=H[v],q=e[G],Y=t[G];var be=t[g(Y.anchor)];K("fixedrange",b("rangeslider","isVisible")(be))}f.handleDefaults(e,t,{axIds:re.concat(ne).sort(p.idSort),axHasImage:D})}},g9E0:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("Zss7"),o=r("Nx4I"),l=r("0RW4"),s=r("wlgE"),c=r("/CZE"),d=c.strTranslate,u=r("A3kh"),f=r("c8nr"),h=r("Y9zF").LINE_SPACING,p=r("cqRZ").DESELECTDIM,g=r("3oHU"),m=r("GXgJ"),y=r("xMdC").appendArrayPointValue,v=e.exports={};v.font=function(e,t,r,a){c.isPlainObject(t)&&(a=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),a&&e.call(l.fill,a)},v.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},v.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},v.setRect=function(e,t,r,a,n){e.call(v.setPosition,t,r).call(v.setSize,a,n)},v.translatePoint=function(e,t,r,a){var i=r.c2p(e.x),o=a.c2p(e.y);return!!(n(i)&&n(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",i).attr("y",o):t.attr("transform",d(i,o)),!0)},v.translatePoints=function(e,t,r){e.each((function(e){var n=a.select(this);v.translatePoint(e,n,t,r)}))},v.hideOutsideRangePoint=function(e,t,r,a,n,i){t.attr("display",r.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")},v.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each((function(t){var i=t[0].trace,l=i.xcalendar,s=i.ycalendar,c=o.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){v.hideOutsideRangePoint(e,a.select(this),r,n,l,s)}))}))}},v.crispRound=function(e,t,r){return t&&n(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},v.singleLineStyle=function(e,t,r,a,n){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,s=n||i.dash||"";l.stroke(t,a||i.color),v.dashLine(t,s,o)},v.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=n||i.dash||"";a.select(this).call(l.stroke,r||i.color).call(v.dashLine,s,o)}))},v.dashLine=function(e,t,r){r=+r||0,t=v.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},v.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},v.singleFillStyle=function(e){var t=(((a.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(l.fill,t)},v.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=a.select(this);e[0].trace&&t.call(l.fill,e[0].trace.fillcolor)}))};var x=r("M1CZ");v.symbolNames=[],v.symbolFuncs=[],v.symbolNeedLines={},v.symbolNoDot={},v.symbolNoFill={},v.symbolList=[],Object.keys(x).forEach((function(e){var t=x[e],r=t.n;v.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),v.symbolNames[r]=e,v.symbolFuncs[r]=t.f,t.needLine&&(v.symbolNeedLines[r]=!0),t.noDot?v.symbolNoDot[r]=!0:v.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(v.symbolNoFill[r]=!0)}));var b=v.symbolNames.length;function _(e,t){var r=e%100;return v.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}v.symbolNumber=function(e){if(n(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=b||e>=400?0:Math.floor(Math.max(e,0))};var w={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},T=a.format("~.1f"),A={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}};v.gradient=function(e,t,r,n,o,s){for(var d=o.length,u=A[n],f=new Array(d),h=0;h<d;h++)u.reversed?f[d-1-h]=[T(100*(1-o[h][0])),o[h][1]]:f[h]=[T(100*o[h][0]),o[h][1]];var p=t._fullLayout,g="g"+p._uid+"-"+r,m=p._defs.select(".gradients").selectAll("#"+g).data([n+f.join(";")],c.identity);m.exit().remove(),m.enter().append(u.node).each((function(){var e=a.select(this);u.attrs&&e.attr(u.attrs),e.attr("id",g);var t=e.selectAll("stop").data(f);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=i(e[1]);a.select(this).attr({offset:e[0]+"%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,P(g,t)).style(s+"-opacity",null);var y=function(e){return"."+e.attr("class").replace(/\s/g,".")},v=y(a.select(e.node().parentNode))+">"+y(e);p._gradientUrlQueryParts[v]=1},v.initGradients=function(e){var t=e._fullLayout;c.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},v.pointStyle=function(e,t,r){if(e.size()){var n=v.makePointStyleFns(t);e.each((function(e){v.singlePointStyle(e,a.select(this),t,n,r)}))}},v.singlePointStyle=function(e,t,r,a,n){var i=r.marker,o=i.line;if(t.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):void 0===e.mo?i.opacity:e.mo),a.ms2mrc){var s;s="various"===e.ms||"various"===i.size?3:a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var d=v.symbolNumber(e.mx||i.symbol)||0;e.om=d%200>=100,t.attr("d",_(d,s))}var u,f,h,p=!1;if(e.so)h=o.outlierwidth,f=o.outliercolor,u=i.outliercolor;else{var g=(o||{}).width;h=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,f="mlc"in e?e.mlcc=a.lineScale(e.mlc):c.isArrayOrTypedArray(o.color)?l.defaultLine:o.color,c.isArrayOrTypedArray(i.color)&&(u=l.defaultLine,p=!0),u="mc"in e?e.mcc=a.markerScale(e.mc):i.color||"rgba(0,0,0,0)",a.selectedColorFn&&(u=a.selectedColorFn(e))}if(e.om)t.call(l.stroke,u).style({"stroke-width":(h||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:h)+"px");var m=i.gradient,y=e.mgt;if(y?p=!0:y=m&&m.type,Array.isArray(y)&&(y=y[0],A[y]||(y=0)),y&&"none"!==y){var x=e.mgc;x?p=!0:x=m.color;var b=r.uid;p&&(b+="-"+e.i),v.gradient(t,n,b,y,[[0,x],[1,u]],"fill")}else l.fill(t,u);h&&l.stroke(t,f)}},v.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=v.tryColorscale(r,""),t.lineScale=v.tryColorscale(r,"line"),o.traceIs(e,"symbols")&&(t.ms2mrc=g.isBubble(e)?m(e):function(){return(r.size||6)/2}),e.selectedpoints&&c.extendFlat(t,v.makeSelectedPointStyleFns(e)),t},v.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.marker||{},i=r.marker||{},l=a.marker||{},s=n.opacity,d=i.opacity,u=l.opacity,f=void 0!==d,h=void 0!==u;(c.isArrayOrTypedArray(s)||f||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?n.opacity:e.mo;return e.selected?f?d:t:h?u:p*t});var g=n.color,m=i.color,y=l.color;(m||y)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?m||t:y||t});var v=n.size,x=i.size,b=l.size,_=void 0!==x,w=void 0!==b;return o.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||v/2;return e.selected?_?x/2:t:w?b/2:t}),t},v.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=r.textfont||{},o=a.textfont||{},s=n.color,c=i.color,d=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:d||(c?t:l.addOpacity(t,p))},t},v.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=v.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){l.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,t){var a=t.mx||n.symbol||0,i=r.selectedSizeFn(t);e.attr("d",_(v.symbolNumber(a),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=a.select(this),r=0;r<i.length;r++)i[r](t,e)}))}},v.tryColorscale=function(e,t){var r=t?c.nestedProperty(e,t).get():e;if(r){var a=r.color;if((r.colorscale||r._colorAx)&&c.isArrayOrTypedArray(a))return s.makeColorScaleFuncFromTrace(r)}return c.identity};var M={start:1,end:-1,middle:0,bottom:1,top:-1};function S(e,t,r,n){var i=a.select(e.node().parentNode),o=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",s=n?n/.8+1:0,c=(u.lineCount(e)-1)*h+1,f=M[l]*s,p=.75*r+M[o]*s+(M[o]-1)*c*r/2;e.attr("text-anchor",l),i.attr("transform",d(f,p))}function L(e,t){var r=e.ts||t.textfont.size;return n(r)&&r>0?r:0}v.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=v.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var o=t.texttemplate,l=r._fullLayout;e.each((function(e){var i=a.select(this),s=o?c.extractOption(e,t,"txt","texttemplate"):c.extractOption(e,t,"tx","text");if(s||0===s){if(o){var d=t._module.formatLabels?t._module.formatLabels(e,t,l):{},f={};y(f,t,e.i);var h=t._meta||{};s=c.texttemplateString(s,d,l._d3locale,f,e,h)}var p=e.tp||t.textposition,g=L(e,t),m=n?n(e):e.tc||t.textfont.color;i.call(v.font,e.tf||t.textfont.family,g,m).text(s).call(u.convertToTspans,r).call(S,p,g,e.mrc)}else i.remove()}))}},v.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=v.makeSelectedTextStyleFns(t);e.each((function(e){var n=a.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,s=L(e,t);l.fill(n,i),S(n,o,s,e.mrc2||e.mrc)}))}};function C(e,t,r,n){var i=e[0]-t[0],o=e[1]-t[1],l=r[0]-t[0],s=r[1]-t[1],c=Math.pow(i*i+o*o,.25),d=Math.pow(l*l+s*s,.25),u=(d*d*i-c*c*l)*n,f=(d*d*o-c*c*s)*n,h=3*d*(c+d),p=3*c*(c+d);return[[a.round(t[0]+(h&&u/h),2),a.round(t[1]+(h&&f/h),2)],[a.round(t[0]-(p&&u/p),2),a.round(t[1]-(p&&f/p),2)]]}v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,a="M"+e[0],n=[];for(r=1;r<e.length-1;r++)n.push(C(e[r-1],e[r],e[r+1],t));for(a+="Q"+n[0][0]+" "+e[1],r=2;r<e.length-1;r++)a+="C"+n[r-2][1]+" "+n[r-1][0]+" "+e[r];return a+="Q"+n[e.length-3][1]+" "+e[e.length-1]},v.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r,a="M"+e[0],n=e.length-1,i=[C(e[n],e[0],e[1],t)];for(r=1;r<n;r++)i.push(C(e[r-1],e[r],e[r+1],t));for(i.push(C(e[n-1],e[n],e[0],t)),r=1;r<=n;r++)a+="C"+i[r-1][1]+" "+i[r][0]+" "+e[r];return a+="C"+i[n][1]+" "+i[0][0]+" "+e[0]+"Z"};var I={hv:function(e,t){return"H"+a.round(t[0],2)+"V"+a.round(t[1],2)},vh:function(e,t){return"V"+a.round(t[1],2)+"H"+a.round(t[0],2)},hvh:function(e,t){return"H"+a.round((e[0]+t[0])/2,2)+"V"+a.round(t[1],2)+"H"+a.round(t[0],2)},vhv:function(e,t){return"V"+a.round((e[1]+t[1])/2,2)+"H"+a.round(t[0],2)+"V"+a.round(t[1],2)}},D=function(e,t){return"L"+a.round(t[0],2)+","+a.round(t[1],2)};v.steps=function(e){var t=I[e]||D;return function(e){for(var r="M"+a.round(e[0][0],2)+","+a.round(e[0][1],2),n=1;n<e.length;n++)r+=t(e[n-1],e[n]);return r}},v.makeTester=function(){var e=c.ensureSingleById(a.select("body"),"svg","js-plotly-tester",(function(e){e.attr(f.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=c.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));v.tester=e,v.testref=t},v.savedBBoxes={};var O=0;function z(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function P(e,t){if(!e)return null;var r=t._context;return"url('"+(r._exportedPlot?"":r._baseUrl||"")+"#"+e+"')"}v.bBox=function(e,t,r){var n,i,o;if(r||(r=z(e)),r){if(n=v.savedBBoxes[r])return c.extendFlat({},n)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(r=z(l)){var s=+l.getAttribute("x")||0,d=+l.getAttribute("y")||0,f=l.getAttribute("transform");if(!f){var h=v.bBox(l,!1,r);return s&&(h.left+=s,h.right+=s),d&&(h.top+=d,h.bottom+=d),h}if(r+="~"+s+"~"+d+"~"+f,n=v.savedBBoxes[r])return c.extendFlat({},n)}}t?i=e:(o=v.tester.node(),i=e.cloneNode(!0),o.appendChild(i)),a.select(i).attr("transform",null).call(u.positionText,0,0);var p=i.getBoundingClientRect(),g=v.testref.node().getBoundingClientRect();t||o.removeChild(i);var m={height:p.height,width:p.width,left:p.left-g.left,top:p.top-g.top,right:p.right-g.left,bottom:p.bottom-g.top};return O>=1e4&&(v.savedBBoxes={},O=0),r&&(v.savedBBoxes[r]=m),O++,c.extendFlat({},m)},v.setClipUrl=function(e,t,r){e.attr("clip-path",P(t,r))},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=d(t,r)).trim(),e[n]("transform",i),i},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,r){var a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[n]("transform",i),i};var E=/\s*sc.*/;v.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var a=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(E,"");e=(e+=a).trim(),this.setAttribute("transform",e)}))}};var j=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,n=a.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(j);e=1===t&&1===r?[]:[d(o,l),"scale("+t+","+r+")",d(-o,-l)],s&&e.push(s),n.attr("transform",e.join(""))}}))}},gGJ9:function(e,t,r){"use strict";var a=r("bljh"),n=r("g9E0"),i=r("0RW4"),o=r("cqRZ").DESELECTDIM,l=r("LfN2"),s=r("k6aH").resizeText,c=l.styleTextPoints;e.exports={style:function(e,t,r){var l=r||a.select(e).selectAll("g.funnellayer").selectAll("g.trace");s(e,l,"funnel"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var r=a.select(this),l=t[0].trace;r.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l.marker;a.select(this).call(i.fill,e.mc||t.color).call(i.stroke,e.mlc||t.line.color).call(n.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",l.selectedpoints&&!e.selected?o:1)}})),c(r,l,e),r.selectAll(".regions").each((function(){a.select(this).selectAll("path").style("stroke-width",0).call(i.fill,l.connector.fillcolor)})),r.selectAll(".lines").each((function(){var e=l.connector.line;n.lineGroupStyle(a.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},gfA5:function(e,t,r){"use strict";var a=r("kJIm").extendFlat;t.attributes=function(e,t){t=t||{};var r={valType:"info_array",role:"info",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",o=t.description?" "+t.description:"",l={x:a({},r,{description:["Sets the horizontal domain of this ",n,i,"(in plot fraction).",o].join("")}),y:a({},r,{description:["Sets the vertical domain of this ",n,i,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,role:"info",editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",n,i,".",o].join("")},l.column={valType:"integer",min:0,dflt:0,role:"info",editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",n,i,".",o].join("")}),l},t.defaults=function(e,t,r,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=t.grid;if(o){var l=r("domain.column");void 0!==l&&(l<o.columns?n=o._domains.x[l]:delete e.domain.column);var s=r("domain.row");void 0!==s&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var c=r("domain.x",n),d=r("domain.y",i);c[0]<c[1]||(e.domain.x=n.slice()),d[0]<d[1]||(e.domain.y=i.slice())}},ghsG:function(e,t,r){"use strict";e.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},gqVr:function(e,t,r){"use strict";var a=r("/CZE"),n=r("Nx4I");function i(e,t,r,n){n=n||a.identity,Array.isArray(e)&&(t[0][r]=n(e))}e.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return a.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!n.traceIs(c,"pie-like")){var d=n.traceIs(c,"2dMap")?i:a.fillArray;d(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&d(c.hovertemplate,s,"ht"),c.hoverlabel&&(d(c.hoverlabel.bgcolor,s,"hbg"),d(c.hoverlabel.bordercolor,s,"hbc"),d(c.hoverlabel.font.size,s,"hts"),d(c.hoverlabel.font.color,s,"htc"),d(c.hoverlabel.font.family,s,"htf"),d(c.hoverlabel.namelength,s,"hnl"),d(c.hoverlabel.align,s,"hta"))}}}},grU7:function(e,t,r){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}},"h+LG":function(e,t,r){"use strict";var a=r("/CZE"),n=r("QeBV"),i=r("V5Np"),o=r("yPDV"),l=r("QYPY"),s=r("BDWl");e.exports=function(e,t,r,c){function d(r,n){return a.coerce(e,t,s,r,n)}n(e,t,d,c)?(i(e,t,c,d),d("text"),d("hovertext"),d("hovertemplate"),o(e,t,d,c),d("hoverongaps"),d("connectgaps",a.isArray1D(t.z)&&!1!==t.zsmooth),l(e,t,c,d,{prefix:"",cLetter:"z"})):t.visible=!1}},h0EB:function(e,t,r){"use strict";(function(t){var a=r("+qE3").EventEmitter,n={init:function(e){if(e._ev instanceof a)return e;var r=new a,n=new a;return e._ev=r,e._internalEv=n,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=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(a,i){void 0!==t&&t(e).trigger(a,i),r.emit(a,i),n.emit(a,i)},e},triggerHandler:function(e,r,a){var n,i;void 0!==t&&(n=t(e).triggerHandler(r,a));var o=e._ev;if(!o)return n;var l,s=o._events[r];if(!s)return n;function c(e){return e.listener?(o.removeListener(r,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(o,[a]))):e.apply(o,[a])}for(s=Array.isArray(s)?s:[s],l=0;l<s.length-1;l++)c(s[l]);return i=c(s[l]),void 0!==n?n:i},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};e.exports=n}).call(this,r("+2Rf"))},h5fz:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=n.dateTime2ms,o=n.incrementMonth,l=r("6AZA").ONEAVGMONTH;e.exports=function(e,t,r,n){if("date"!==t.type)return n;var s=e[r+"periodalignment"];if(!s)return n;var c,d=e[r+"period"];if(a(d)){if((d=+d)<=0)return n}else if("string"==typeof d&&"M"===d.charAt(0)){var u=+d.substring(1);if(!(u>0&&Math.round(u)===u))return n;c=u}for(var f=t.calendar,h="start"===s,p="end"===s,g=e[r+"period0"],m=i(g,f)||0,y=[],v=n.length,x=0;x<v;x++){var b,_,w,k=n[x];if(c){for(b=Math.round((k-m)/(c*l)),w=o(m,c*b,f);w>k;)w=o(w,-c,f);for(;w<=k;)w=o(w,c,f);_=o(w,-c,f)}else{for(w=m+(b=Math.round((k-m)/d))*d;w>k;)w-=d;for(;w<=k;)w+=d;_=w-d}y[x]=h?_:p?w:(_+w)/2}return y}},"hN+Y":function(e,t,r){"use strict";var a=r("/CZE"),n=r("Nx4I"),i=!0;e.exports=function(e,t,r){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(a.notifier(a._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===r?l=s:2===r&&(l=c),l){var d,u,f,h,p,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=e.data()[0][0],y=t._fullData,v=m.trace,x=v.legendgroup,b={},_=[],w=[],k=[];if(n.traceIs(v,"pie-like")){var T=m.label,A=g.indexOf(T);"toggle"===l?-1===A?g.push(T):g.splice(A,1):"toggleothers"===l&&(g=[],t.calcdata[0].forEach((function(e){T!==e.label&&g.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===g.length&&-1===A&&(g=[])),n.call("_guiRelayout",t,"hiddenlabels",g)}else{var M,S=x&&x.length,L=[];if(S)for(d=0;d<y.length;d++)(M=y[d]).visible&&M.legendgroup===x&&L.push(d);if("toggle"===l){var C;switch(v.visible){case!0:C="legendonly";break;case!1:C=!1;break;case"legendonly":C=!0}if(S)for(d=0;d<y.length;d++)!1!==y[d].visible&&y[d].legendgroup===x&&N(y[d],C);else N(v,C)}else if("toggleothers"===l){var I,D,O,z,P=!0;for(d=0;d<y.length;d++)if(I=y[d]===v,O=!0!==y[d].showlegend,!(I||O||(D=S&&y[d].legendgroup===x)||!0!==y[d].visible||n.traceIs(y[d],"notLegendIsolatable"))){P=!1;break}for(d=0;d<y.length;d++)if(!1!==y[d].visible&&!n.traceIs(y[d],"notLegendIsolatable"))switch(v.visible){case"legendonly":N(y[d],!0);break;case!0:z=!!P||"legendonly",I=y[d]===v,O=!0!==y[d].showlegend&&!y[d].legendgroup,D=I||S&&y[d].legendgroup===x,N(y[d],!(!D&&!O)||z)}}for(d=0;d<w.length;d++)if(f=w[d]){var E=f.constructUpdate(),j=Object.keys(E);for(u=0;u<j.length;u++)h=j[u],(b[h]=b[h]||[])[k[d]]=E[h]}for(p=Object.keys(b),d=0;d<p.length;d++)for(h=p[d],u=0;u<_.length;u++)b[h].hasOwnProperty(u)||(b[h][u]=void 0);n.call("_guiRestyle",t,b,_)}}}function R(e,t,r){var a=_.indexOf(e),n=b[t];return n||(n=b[t]=[]),-1===_.indexOf(e)&&(_.push(e),a=_.length-1),n[a]=r,a}function N(e,t){var r=e._fullInput;if(n.hasTransform(r,"groupby")){var i=w[r.index];if(!i){var o=n.getTransformIndices(r,"groupby"),l=o[o.length-1];i=a.keyedContainer(r,"transforms["+l+"].styles","target","value.visible"),w[r.index]=i}var s=i.get(e._group);void 0===s&&(s=!0),!1!==s&&i.set(e._group,t),k[r.index]=R(r.index,"visible",!1!==r.visible)}else{var c=!1!==r.visible&&t;R(r.index,"visible",c)}}}},hVte:function(e,t,r){"use strict";var a=r("h0EB"),n=r("ffJW"),i=r("G4gu").getGraphDiv,o=r("f7dW"),l=e.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&n.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,n=e._hoverdata;t||(t={}),t.target&&!1===a.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&n&&e.emit("plotly_unhover",{event:t,points:n}))}},hriN:function(e,t,r){"use strict";var a=r("GbLo"),n=r("Zss7"),i=r("0RW4"),o={};function l(e){return function(t,r){return!!t&&(!!(t=n(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[r]||(e[r]=t),t))}}function s(e,t){var r,a=JSON.stringify(e),i=t[a];if(!i){for(i=e.slice(),r=0;r<e.length;r++)i.push(n(e[r]).lighten(20).toHexString());for(r=0;r<e.length;r++)i.push(n(e[r]).darken(20).toHexString());t[a]=i}return i}e.exports={calc:function(e,t){var r,n,i=[],o=e._fullLayout,s=o.hiddenlabels||[],c=t.labels,d=t.marker.colors||[],u=t.values,f=t._length,h=t._hasValues&&f;if(t.dlabel)for(c=new Array(f),r=0;r<f;r++)c[r]=String(t.label0+r*t.dlabel);var p={},g=l(o["_"+t.type+"colormap"]),m=0,y=!1;for(r=0;r<f;r++){var v,x,b;if(h){if(v=u[r],!a(v))continue;if((v=+v)<0)continue}else v=1;void 0!==(x=c[r])&&""!==x||(x=r);var _=p[x=String(x)];void 0===_?(p[x]=i.length,(b=-1!==s.indexOf(x))||(m+=v),i.push({v:v,label:x,color:g(d[r],x),i:r,pts:[r],hidden:b})):(y=!0,(n=i[_]).v+=v,n.pts.push(r),n.hidden||(m+=v),!1===n.color&&d[r]&&(n.color=g(d[r],x)))}return("funnelarea"===t.type?y:t.sort)&&i.sort((function(e,t){return t.v-e.v})),i[0]&&(i[0].vTotal=m),i},crossTraceCalc:function(e,t){var r=(t||{}).type;r||(r="pie");var a=e._fullLayout,n=e.calcdata,i=a[r+"colorway"],l=a["_"+r+"colormap"];a["extend"+r+"colors"]&&(i=s(i,o));for(var c=0,d=0;d<n.length;d++){var u=n[d];if(u[0].trace.type===r)for(var f=0;f<u.length;f++){var h=u[f];!1===h.color&&(l[h.label]?h.color=l[h.label]:(l[h.label]=h.color=i[c%i.length],c++))}}},makePullColorFn:l,generateExtendedColors:s}},i6kf:function(e,t,r){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}},iHwY:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("u3HJ"),o=r("0RW4"),l=r("g9E0"),s=r("/CZE"),c=s.strTranslate,d=r("A3kh"),u=r("PBw4"),f=r("Y9zF"),h=f.LINE_SPACING,p=f.FROM_TL,g=f.FROM_BR,m=r("sZtP"),y=r("nTMW");function v(e){return e._id}function x(e,t,r){var a=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));a.attr({rx:m.rx,ry:m.ry}),a.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,a){s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(l.font,t.font).text(function(e,t){if(e.label)return t?s.templateString(e.label,t):e.label;return"all"===e.step?"all":e.count+e.step.charAt(0)}(r,a._fullLayout._meta)).call((function(e){d.convertToTspans(e,a)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=u.list(e,"x",!0),r=[],a=0;a<t.length;a++){var n=t[a];n.rangeselector&&n.rangeselector.visible&&r.push(n)}return r}(e),v);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var r=a.select(this),o=t,u=o.rangeselector,f=r.selectAll("g.button").data(s.filterVisible(u.buttons));f.enter().append("g").classed("button",!0),f.exit().remove(),f.each((function(t){var r=a.select(this),i=y(o,t);t._isActive=function(e,t,r){if("all"===t.step)return!0===e.autorange;var a=Object.keys(r);return e.range[0]===r[a[0]]&&e.range[1]===r[a[1]]}(o,t,i),r.call(x,u,t),r.call(b,u,t,e),r.on("click",(function(){e._dragged||n.call("_guiRelayout",e,i)})),r.on("mouseover",(function(){t._isHovered=!0,r.call(x,u,t)})),r.on("mouseout",(function(){t._isHovered=!1,r.call(x,u,t)}))})),function(e,t,r,n,o){var u=0,f=0,y=r.borderwidth;t.each((function(){var e=a.select(this).select(".selector-text"),t=r.font.size*h,n=Math.max(t*d.lineCount(e),16)+3;f=Math.max(f,n)})),t.each((function(){var e=a.select(this),t=e.select(".selector-rect"),n=e.select(".selector-text"),i=n.node()&&l.bBox(n.node()).width,o=r.font.size*h,s=d.lineCount(n),p=Math.max(i+10,m.minButtonWidth);e.attr("transform",c(y+u,y)),t.attr({x:0,y:0,width:p,height:f}),d.positionText(n,p/2,f/2-(s-1)*o/2+3),u+=p+5}));var v=e._fullLayout._size,x=v.l+v.w*r.x,b=v.t+v.h*(1-r.y),_="left";s.isRightAnchor(r)&&(x-=u,_="right");s.isCenterAnchor(r)&&(x-=u/2,_="center");var w="top";s.isBottomAnchor(r)&&(b-=f,w="bottom");s.isMiddleAnchor(r)&&(b-=f/2,w="middle");u=Math.ceil(u),f=Math.ceil(f),x=Math.round(x),b=Math.round(b),i.autoMargin(e,n+"-range-selector",{x:r.x,y:r.y,l:u*p[_],r:u*g[_],b:f*g[w],t:f*p[w]}),o.attr("transform",c(x,b))}(e,f,u,o._name,r)}))}},iJj1:function(e,t,r){"use strict";var a=r("xMdC").appendArrayMultiPointValues;e.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),a(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},iQ3r:function(e,t,r){"use strict";var a=r("BkK/").hoverLabelText,n=r("0RW4").opacity,i=r("rJf6").hoverOnBars,o=r("uM7j"),l=o.INCREASING.SYMBOL,s=o.DECREASING.SYMBOL;e.exports=function(e,t,r,o){var c=i(e,t,r,o);if(c){var d=c.cd,u=d[0].trace,f="h"===u.orientation,h=f?e.xa:e.ya,p=d[c.index],g=p.isSum?p.b+p.s:p.rawS;if(!p.isSum){c.initial=p.b+p.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g<0?"("+m+")":m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var y=p.hi||u.hoverinfo,v=[];if(y&&"none"!==y&&"skip"!==y){var x="all"===y,b=y.split("+"),_=function(e){return x||-1!==b.indexOf(e)};p.isSum||(!_("final")||_(f?"x":"y")||v.push(c.finalLabel),_("delta")&&(g<0?v.push(c.deltaLabel+" "+s):v.push(c.deltaLabel+" "+l)),_("initial")&&v.push("Initial: "+c.initialLabel))}return v.length&&(c.extraText=v.join("<br>")),c.color=function(e,t){var r=e[t.dir].marker,a=r.color,i=r.line.color,o=r.line.width;if(n(a))return a;if(n(i)&&o)return i}(u,p),[c]}function w(e){return a(h,e)}}},iauE:function(e,t,r){"use strict";e.exports={attributes:r("Df4R"),layoutAttributes:r("kc6j"),supplyDefaults:r("4WVA").supplyDefaults,crossTraceDefaults:r("4WVA").crossTraceDefaults,supplyLayoutDefaults:r("IkQw"),calc:r("f9ru"),crossTraceCalc:r("tTmA"),plot:r("Nurt"),style:r("A9f/").style,hoverPoints:r("iQ3r"),eventData:r("W+yT"),selectPoints:r("cADB"),moduleType:"trace",name:"waterfall",basePlotModule:r("kc20"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Draws waterfall trace which is useful graph to displays the","contribution of various elements (either positive or negative)","in a bar chart. The data visualized by the span of the bars is","set in `y` if `orientation` is set th *v* (the default) and the","labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}},ix2X:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("u3HJ"),o=r("/CZE"),l=o.strTranslate,s=r("g9E0"),c=r("0RW4"),d=r("GZnn"),u=r("kc20"),f=r("PBw4"),h=r("Tv4R"),p=r("DzeQ"),g=r("IvnK");function m(e,t,r,a){var n=o.ensureSingle(e,"rect",g.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=a.borderwidth%2==0?a.borderwidth:a.borderwidth-1,c=-a._offsetShift,d=s.crispRound(t,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:l(c,c),fill:a.bgcolor,stroke:a.bordercolor,"stroke-width":d})}function y(e,t,r,a){var n=t._fullLayout;o.ensureSingleById(n._topdefs,"clipPath",a._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:a._width,height:a._height})}function v(e,t,r,n){var l,c=t.calcdata,d=e.selectAll("g."+g.rangePlotClassName).data(r._subplotsWith,o.identity);d.enter().append("g").attr("class",(function(e){return g.rangePlotClassName+" "+e})).call(s.setClipUrl,n._clipId,t),d.order(),d.exit().remove(),d.each((function(e,o){var s=a.select(this),d=0===o,h=f.getFromId(t,e,"y"),p=h._name,g=n[p],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:n.range.slice(),calendar:r.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[p]={type:h.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(m.layout[p].rangebreaks=h.rangebreaks),i.supplyDefaults(m);var y=m._fullLayout.xaxis,v=m._fullLayout[p];y.clearCalc(),y.setScale(),v.clearCalc(),v.setScale();var x={id:e,plotgroup:s,xaxis:y,yaxis:v,isRangePlot:!0};d?l=x:(x.mainplot="xy",x.mainplotinfo=l),u.rangePlot(t,x,function(e,t){for(var r=[],a=0;a<e.length;a++){var n=e[a],i=n[0].trace;i.xaxis+i.yaxis===t&&r.push(n)}return r}(c,e))}))}function x(e,t,r,a,n){(o.ensureSingle(e,"rect",g.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",a._height).call(c.fill,g.maskColor),o.ensureSingle(e,"rect",g.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",a._height).call(c.fill,g.maskColor),"match"!==n.rangemode)&&(o.ensureSingle(e,"rect",g.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",a._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(e,"rect",g.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",a._width).style("border-top",g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(e,t,r,a){t._context.staticPlot||o.ensureSingle(e,"rect",g.slideBoxClassName,(function(e){e.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:a._height,fill:g.slideBoxFill})}function _(e,t,r,a){var n=o.ensureSingle(e,"g",g.grabberMinClassName),i=o.ensureSingle(e,"g",g.grabberMaxClassName),l={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(a._height/4),height:Math.round(a._height/2)};o.ensureSingle(n,"rect",g.handleMinClassName,(function(e){e.attr(l)})).attr(s),o.ensureSingle(i,"rect",g.handleMaxClassName,(function(e){e.attr(l)})).attr(s);var d={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:t._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(n,"rect",g.grabAreaMinClassName,(function(e){e.attr(d)})).attr("height",a._height),o.ensureSingle(i,"rect",g.grabAreaMaxClassName,(function(e){e.attr(d)})).attr("height",a._height)}e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i<r.length;i++){var s=r[i][g.name];s._clipId=s._id+"-"+t._uid}var c=t._infolayer.selectAll("g."+g.containerClassName).data(r,(function(e){return e._name}));c.exit().each((function(e){var r=e[g.name];t._topdefs.select("#"+r._clipId).remove()})).remove(),0!==r.length&&(c.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),c.each((function(r){var i=a.select(this),s=r[g.name],c=t[f.id2name(r.anchor)],u=s[f.id2name(r.anchor)];if(s.range){var w,k=o.simpleMap(s.range,r.r2l),T=o.simpleMap(r.range,r.r2l);w=T[0]<T[1]?[Math.min(k[0],T[0]),Math.max(k[1],T[1])]:[Math.max(k[0],T[0]),Math.min(k[1],T[1])],s.range=s._input.range=o.simpleMap(w,r.l2r)}r.cleanRange("rangeslider.range");var A=t._size,M=r.domain;s._width=A.w*(M[1]-M[0]);var S=Math.round(A.l+A.w*M[0]),L=Math.round(A.t+A.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+s._offsetShift+g.extraPad);i.attr("transform",l(S,L)),s._rl=o.simpleMap(s.range,r.r2l);var C=s._rl[0],I=s._rl[1],D=I-C;if(s.p2d=function(e){return e/s._width*D+C},s.d2p=function(e){return(e-C)/D*s._width},r.rangebreaks){var O=r.locateBreaks(C,I);if(O.length){var z,P,E=0;for(z=0;z<O.length;z++)E+=(P=O[z]).max-P.min;var j=s._width/(I-C-E),R=[-j*C];for(z=0;z<O.length;z++)P=O[z],R.push(R[R.length-1]-j*(P.max-P.min));for(s.d2p=function(e){for(var t=R[0],r=0;r<O.length;r++){var a=O[r];if(e>=a.max)t=R[r+1];else if(e<a.min)break}return t+j*e},z=0;z<O.length;z++)(P=O[z]).pmin=s.d2p(P.min),P.pmax=s.d2p(P.max);s.p2d=function(e){for(var t=R[0],r=0;r<O.length;r++){var a=O[r];if(e>=a.pmax)t=R[r+1];else if(e<a.pmin)break}return(e-t)/j}}}if("match"!==u.rangemode){var N=c.r2l(u.range[0]),F=c.r2l(u.range[1])-N;s.d2pOppAxis=function(e){return(e-N)/F*s._height}}i.call(m,e,r,s).call(y,e,r,s).call(v,e,r,s).call(x,e,r,s,u).call(b,e,r,s).call(_,e,r,s),function(e,t,r,i){if(t._context.staticPlot)return;var l=e.select("rect."+g.slideBoxClassName).node(),s=e.select("rect."+g.grabAreaMinClassName).node(),c=e.select("rect."+g.grabAreaMaxClassName).node();function d(){var d=a.event,u=d.target,f=d.clientX||d.touches[0].clientX,g=f-e.node().getBoundingClientRect().left,m=i.d2p(r._rl[0]),y=i.d2p(r._rl[1]),v=h.coverSlip();function x(e){var d,h,x,b=+(e.clientX||e.touches[0].clientX)-f;switch(u){case l:x="ew-resize",d=m+b,h=y+b;break;case s:x="col-resize",d=m+b,h=y;break;case c:x="col-resize",d=m,h=y+b;break;default:x="ew-resize",d=g,h=g+b}if(h<d){var _=h;h=d,d=_}i._pixelMin=d,i._pixelMax=h,p(a.select(v),x),function(e,t,r,a){function i(e){return r.l2r(o.constrain(e,a._rl[0],a._rl[1]))}var l=i(a.p2d(a._pixelMin)),s=i(a.p2d(a._pixelMax));window.requestAnimationFrame((function(){n.call("_guiRelayout",t,r._name+".range",[l,s])}))}(0,t,r,i)}function b(){v.removeEventListener("mousemove",x),v.removeEventListener("mouseup",b),this.removeEventListener("touchmove",x),this.removeEventListener("touchend",b),o.removeElement(v)}this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b)}e.on("mousedown",d),e.on("touchstart",d)}(i,e,r,s),function(e,t,r,a,n,i){var s=g.handleWidth/2;function c(e){return o.constrain(e,0,a._width)}function d(e){return o.constrain(e,0,a._height)}function u(e){return o.constrain(e,-s,a._width+s)}var f=c(a.d2p(r._rl[0])),h=c(a.d2p(r._rl[1]));if(e.select("rect."+g.slideBoxClassName).attr("x",f).attr("width",h-f),e.select("rect."+g.maskMinClassName).attr("width",f),e.select("rect."+g.maskMaxClassName).attr("x",h).attr("width",a._width-h),"match"!==i.rangemode){var p=a._height-d(a.d2pOppAxis(n._rl[1])),m=a._height-d(a.d2pOppAxis(n._rl[0]));e.select("rect."+g.maskMinOppAxisClassName).attr("x",f).attr("height",p).attr("width",h-f),e.select("rect."+g.maskMaxOppAxisClassName).attr("x",f).attr("y",m).attr("height",a._height-m).attr("width",h-f),e.select("rect."+g.slideBoxClassName).attr("y",p).attr("height",m-p)}var y=Math.round(u(f-s))-.5,v=Math.round(u(h-s))+.5;e.select("g."+g.grabberMinClassName).attr("transform",l(y,.5)),e.select("g."+g.grabberMaxClassName).attr("transform",l(v,.5))}(i,0,r,s,c,u),"bottom"===r.side&&d.draw(e,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:t._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:L+s._height+s._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})})))}},iyXT:function(e,t,r){"use strict";e.exports=i;var a=r("/CZE").distinctVals,n=r("6AZA").BADNUM;function i(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var c=l[s];c.p!==n&&i.push(c.p)}l[0]&&l[0].width1&&(r=Math.min(l[0].width1,r))}this.positions=i;var d=a(i,{unitMinDiff:t.unitMinDiff});this.distinctPositions=d.vals,1===d.vals.length&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(d.minDiff,r),this.binWidth=this.minDiff,this.bins={}}i.prototype.put=function(e,t){var r=this.getLabel(e,t),a=this.bins[r]||0;return this.bins[r]=a+t,a},i.prototype.get=function(e,t){var r=this.getLabel(e,t);return this.bins[r]||0},i.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},"j/Ga":function(e,t,r){"use strict";e.exports=l;var a=r("bljh"),n=r("0RW4"),i=r("g9E0"),o=r("/CZE");function l(e,t,r){this.gd=e,this.container=t,this.id=r,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})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,r){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var d,u,f,h,p=this.position.l,g=this.position.w,m=this.position.t,y=this.position.h,v=this.position.direction,x="down"===v,b="left"===v,_="up"===v,w=g,k=y;x||b||"right"===v||_||(this.position.direction="down",x=!0),x||_?(u=(d=p)+w,x?(f=m,k=(h=Math.min(f+k,c))-f):k=(h=m+k)-(f=Math.max(h-k,0))):(h=(f=m)+k,b?w=(u=p+w)-(d=Math.max(u-w,0)):(d=p,w=(u=Math.min(d+w,s))-d)),this._box={l:d,t:f,w:w,h:k};var T=g>w,A=l.barLength+2*l.barPad,M=l.barWidth+2*l.barPad,S=p,L=m+y;L+M>c&&(L=c-M);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(n.fill,l.barColor),T?(this.hbar=C.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:L,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=y>k,D=l.barWidth+2*l.barPad,O=l.barLength+2*l.barPad,z=p+g,P=m;z+D>s&&(z=s-D);var E=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);E.exit().on(".drag",null).remove(),E.enter().append("rect").classed("scrollbar-vertical",!0).call(n.fill,l.barColor),I?(this.vbar=E.attr({rx:l.barRadius,ry:l.barRadius,x:z,y:P,width:D,height:O}),this._vbarYMin=P+O/2,this._vbarTranslateMax=k-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,R=d-.5,N=I?u+D+.5:u+.5,F=f-.5,B=T?h+M+.5:h+.5,H=o._topdefs.selectAll("#"+j).data(T||I?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",j).append("rect"),T||I?(this._clipRect=H.select("rect").attr({x:Math.floor(R),y:Math.floor(F),width:Math.ceil(N)-Math.floor(R),height:Math.ceil(B)-Math.floor(F)}),this.container.call(i.setClipUrl,j,this.gd),this.bg.attr({x:p,y:m,width:g,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||I){var V=a.behavior.drag().on("dragstart",(function(){a.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 Z=a.behavior.drag().on("dragstart",(function(){a.event.sourceEvent.preventDefault(),a.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(Z),I&&this.vbar.on(".drag",null).call(Z)}this.setTranslate(t,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 e=this.translateX,t=this.translateY;this.hbar&&(e-=a.event.dx),this.vbar&&(t-=a.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=a.event.deltaY),this.vbar&&(t+=a.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,n=r+this._hbarTranslateMax;e=(o.constrain(a.event.x,r,n)-r)/(n-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(a.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,a=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,a),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var n=e/r;this.hbar.call(i.setTranslate,e+n*this._hbarTranslateMax,t)}if(this.vbar){var l=t/a;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},jC0I:function(e,t,r){"use strict";e.exports={visible:{valType:"boolean",role:"info",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],role:"info",editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",role:"info",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,role:"info",editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,role:"info",editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,role:"info",editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,role:"info",editType:"style"},copy_ystyle:{valType:"boolean",role:"style",editType:"plot"},copy_zstyle:{valType:"boolean",role:"style",editType:"style"},color:{valType:"color",role:"style",editType:"style",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,role:"style",editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,role:"style",editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",role:"style",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},jb4q:function(e,t,r){"use strict";var a=r("/CZE"),n=r("8gD/"),i=r("gfA5").defaults,o=r("HByh").handleText,l=r("wlgE"),s=l.hasColorscale,c=l.handleDefaults;e.exports=function(e,t,r,l){function d(r,i){return a.coerce(e,t,n,r,i)}var u=d("labels"),f=d("parents");if(u&&u.length&&f&&f.length){var h=d("values");h&&h.length?d("branchvalues"):d("count"),d("level"),d("maxdepth"),d("marker.line.width")&&d("marker.line.color",l.paper_bgcolor),d("marker.colors");var p=t._hasColorscale=s(e,"marker","colors")||(e.marker||{}).coloraxis;p&&c(e,t,l,d,{prefix:"marker.",cLetter:"c"}),d("leaf.opacity",p?1:.7);var g=d("text");d("texttemplate"),t.texttemplate||d("textinfo",Array.isArray(g)?"text+label":"label"),d("hovertext"),d("hovertemplate");o(e,t,l,d,"auto",{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),d("insidetextorientation"),d("sort"),d("rotation"),d("root.color"),i(t,l,d),t._length=null}else t.visible=!1}},jezF:function(e,t,r){"use strict";var a=r("bljh"),n=r("Zss7"),i=r("u3HJ"),o=r("Nx4I"),l=r("BkK/"),s=r("Tv4R"),c=r("/CZE"),d=c.strTranslate,u=r("kJIm").extendFlat,f=r("DzeQ"),h=r("g9E0"),p=r("0RW4"),g=r("GZnn"),m=r("A3kh"),y=r("IVx0").flipScale,v=r("cRi9"),x=r("86IV"),b=r("15jM"),_=r("Y9zF"),w=_.LINE_SPACING,k=_.FROM_TL,T=_.FROM_BR,A=r("qop6").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,r,a,n,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return u(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof n.calc?n.calc(e,a,t):(t._fillgradient=r.reversescale?y(r.colorscale):r.colorscale,t._zrange=[r[n.min],r[n.max]])}for(var d=0;d<o.length;d++){var f=o[d],h=(a=f[0].trace)._module.colorbar;if(!0===a.visible&&h)for(var p=Array.isArray(h),g=p?h:[h],m=0;m<g.length;m++){var v=(n=g[m]).container;(r=v?a[v]:a)&&r.showscale&&((t=s(r.colorbar))._id="cb"+a.uid+(p&&v?"-"+v:""),t._traceIndex=a.index,t._propPrefix=(v?v+".":"")+"colorbar.",t._meta=a._meta,c(),l.push(t))}}for(var x in i._colorAxes)if((r=i[x]).showscale){var b=i._colorAxes[x];(t=s(r.colorbar))._id="cb"+x,t._propPrefix=x+".colorbar.",t._meta=i._meta,n={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(a=b[1],n.calc=a._module.colorbar.calc),c(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(A.colorbar,!0),t.each((function(t){var r=a.select(this);c.ensureSingle(r,"rect",A.cbbg),c.ensureSingle(r,"g",A.cbfills),c.ensureSingle(r,"g",A.cblines),c.ensureSingle(r,"g",A.cbaxis,(function(e){e.classed(A.crisp,!0)})),c.ensureSingle(r,"g",A.cbtitleunshift,(function(e){e.append("g").classed(A.cbtitle,!0)})),c.ensureSingle(r,"rect",A.cboutline);var y=function(e,t,r){var o=r._fullLayout,s=o._size,f=t._fillcolor,y=t._line,_=t.title,M=_.side,S=t._zrange||a.extent(("function"==typeof f?f:y.color).domain()),L="function"==typeof y.color?y.color:function(){return y.color},C="function"==typeof f?f:function(){return f},I=t._levels,D=function(e,t,r){var a,n,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,d=1.001*r[0]-.001*r[1],u=1.001*r[1]-.001*r[0];for(n=0;n<1e5&&(a=i.start+n*c,!(c>0?a>=s:a<=s));n++)a>d&&a<u&&o.push(a);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var f=t._filllevels;if(f)for(s=f.end+f.size/100,c=f.size,n=0;n<1e5&&(a=f.start+n*c,!(c>0?a>=s:a<=s));n++)a>r[0]&&a<r[1]&&l.push(a);else(l=o.map((function(e){return e-i.size/2}))).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(l=[0]);i.size<0&&(o.reverse(),l.reverse());return{line:o,fill:l}}(0,t,S),O=D.fill,z=D.line,P=Math.round(t.thickness*("fraction"===t.thicknessmode?s.w:1)),E=P/s.w,j=Math.round(t.len*("fraction"===t.lenmode?s.h:1)),R=j/s.h,N=t.xpad/s.w,F=(t.borderwidth+t.outlinewidth)/2,B=t.ypad/s.h,H=Math.round(t.x*s.w+t.xpad),V=t.x-E*({middle:.5,right:1}[t.xanchor]||0),Z=t.y+R*(({top:-.5,bottom:.5}[t.yanchor]||0)-.5),G=Math.round(s.h*(1-Z)),U=G-j;t._lenFrac=R,t._thickFrac=E,t._xLeftFrac=V,t._yBottomFrac=Z;var W=t._axis=function(e,t,r){var a=e._fullLayout,n={type:"linear",range:r,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,ticklabelposition:t.ticklabelposition,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:"right",position:1},i={type:"linear",_id:"y"+t._id},o={letter:"y",font:a.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:a.calendar};function l(e,t){return c.coerce(n,i,b,e,t)}return v(n,i,l,o,a),x(n,i,l,o),i}(r,t,S);W.position=t.x+N+E,-1!==["top","bottom"].indexOf(M)&&(W.title.side=M,W.titlex=t.x+N,W.titley=Z+("top"===_.side?R-B:B));if(y.color&&"auto"===t.tickmode){W.tickmode="linear",W.tick0=I.start;var q=I.size,Y=c.constrain((G-U)/50,4,15)+1,X=(S[1]-S[0])/((t.nticks||Y)*q);if(X>1){var J=Math.pow(10,Math.floor(Math.log(X)/Math.LN10));q*=J*c.roundUp(X/J,[2,5,10]),(Math.abs(I.start)/I.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=q}W.domain=[Z+B,Z+R-B],W.setScale(),e.attr("transform",d(Math.round(s.l),Math.round(s.t)));var K,Q=e.select("."+A.cbtitleunshift).attr("transform",d(-Math.round(s.l),-Math.round(s.t))),$=e.select("."+A.cbaxis),ee=0;function te(a,n){var i={propContainer:W,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},l="h"===a.charAt(0)?a.substr(1):"h"+a;e.selectAll("."+l+",."+l+"-math-group").remove(),g.draw(r,a,u(i,n||{}))}return c.syncOrAsync([i.previousPromises,function(){if(-1!==["top","bottom"].indexOf(M)){var e,r=s.l+(t.x+N)*s.w,a=W.title.font.size;e="top"===M?(1-(Z+R-B))*s.h+s.t+3+.75*a:(1-(Z+B))*s.h+s.t-3-.25*a,te(W._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}},function(){if(-1!==["top","bottom"].indexOf(M)){var i=e.select("."+A.cbtitle),o=i.select("text"),u=[-t.outlinewidth/2,t.outlinewidth/2],f=i.select(".h"+W._id+"title-math-group").node(),p=15.6;if(o.node()&&(p=parseInt(o.node().style.fontSize,10)*w),f?(ee=h.bBox(f).height)>p&&(u[1]-=(ee-p)/2):o.node()&&!o.classed(A.jsPlaceholder)&&(ee=h.bBox(o.node()).height),ee){if(ee+=5,"top"===M)W.domain[1]-=ee/s.h,u[1]*=-1;else{W.domain[0]+=ee/s.h;var g=m.lineCount(o);u[1]+=(1-g)*p}i.attr("transform",d(u[0],u[1])),W.setScale()}}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",d(0,Math.round(s.h*(1-W.domain[1])))),$.attr("transform",d(0,Math.round(-s.t)));var v=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(O);v.enter().append("rect").classed(A.cbfill,!0).style("stroke","none"),v.exit().remove();var x=S.map(W.c2p).map(Math.round).sort((function(e,t){return e-t}));v.each((function(e,i){var o=[0===i?S[0]:(O[i]+O[i-1])/2,i===O.length-1?S[1]:(O[i]+O[i+1])/2].map(W.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,x[0],x[1]);var l=a.select(this).attr({x:H,width:Math.max(P,2),y:a.min(o),height:Math.max(a.max(o)-a.min(o),2)});if(t._fillgradient)h.gradient(l,r,t._id,"vertical",t._fillgradient,"fill");else{var s=C(e).replace("e-","");l.attr("fill",n(s).toHexString())}}));var b=e.select("."+A.cblines).selectAll("path."+A.cbline).data(y.color&&y.width?z:[]);b.enter().append("path").classed(A.cbline,!0),b.exit().remove(),b.each((function(e){a.select(this).attr("d","M"+H+","+(Math.round(W.c2p(e))+y.width/2%1)+"h"+P).call(h.lineGroupStyle,y.width,L(e),y.dash)})),$.selectAll("g."+W._id+"tick,path").remove();var _=H+P+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),k=l.calcTicks(W),T=l.getTickSigns(W)[2];return l.drawTicks(r,W,{vals:"inside"===W.ticks?l.clipEnds(W,k):k,layer:$,path:l.makeTickPath(W,_,T),transFn:l.makeTransTickFn(W)}),l.drawLabels(r,W,{vals:k,layer:$,transFn:l.makeTransTickLabelFn(W),labelFns:l.makeLabelFns(W,_)})},function(){if(-1===["top","bottom"].indexOf(M)){var e=W.title.font.size,t=W._offset+W._length/2,n=s.l+(W.position||0)*s.w+("right"===W.side?10+e*(W.showticklabels?1:.5):-10-e*(W.showticklabels?.5:0));te("h"+W._id+"title",{avoid:{selection:a.select(r).selectAll("g."+W._id+"tick"),side:M,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:n,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}},i.previousPromises,function(){var a=P+t.outlinewidth/2;if(-1===W.ticklabelposition.indexOf("inside")&&(a+=h.bBox($.node()).width),(K=Q.select("text")).node()&&!K.classed(A.jsPlaceholder)){var n,o=Q.select(".h"+W._id+"title-math-group").node();n=o&&-1!==["top","bottom"].indexOf(M)?h.bBox(o).width:h.bBox(Q.node()).right-H-s.l,a=Math.max(a,n)}var l=2*t.xpad+a+t.borderwidth+t.outlinewidth/2,c=G-U;e.select("."+A.cbbg).attr({x:H-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:U-F,width:Math.max(l,2),height:Math.max(c+2*F,2)}).call(p.fill,t.bgcolor).call(p.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+A.cboutline).attr({x:H,y:U+t.ypad+("top"===M?ee:0),width:Math.max(P,2),height:Math.max(c-2*t.ypad-ee,2)}).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var u=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform",d(s.l-u,s.t));var f={},g=k[t.yanchor],m=T[t.yanchor];"pixels"===t.lenmode?(f.y=t.y,f.t=c*g,f.b=c*m):(f.t=f.b=0,f.yt=t.y+t.len*g,f.yb=t.y-t.len*m);var y=k[t.xanchor],v=T[t.xanchor];if("pixels"===t.thicknessmode)f.x=t.x,f.l=l*y,f.r=l*v;else{var x=l-P;f.l=x*y,f.r=x*v,f.xl=t.x-t.thickness*y,f.xr=t.x+t.thickness*v}i.autoMargin(r,t._id,f)}],r)}(r,t,e);y&&y.then&&(e._promises||[]).push(y),e._context.edits.colorbarPosition&&function(e,t,r){var a,n,i,l=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){a=e.attr("transform"),f(e)},moveFn:function(r,o){e.attr("transform",a+d(r,o)),n=s.align(t._xLeftFrac+r/l.w,t._thickFrac,0,1,t.xanchor),i=s.align(t._yBottomFrac-o/l.h,t._lenFrac,0,1,t.yanchor);var c=s.getCursor(n,i,t.xanchor,t.yanchor);f(e,c)},doneFn:function(){if(f(e),void 0!==n&&void 0!==i){var a={};a[t._propPrefix+"x"]=n,a[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,a,t._traceIndex):o.call("_guiRelayout",r,a)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},jxKh:function(e,t,r){"use strict";var a=r("0RW4").opacity,n=r("rJf6").hoverOnBars,i=r("/CZE").formatPercent;e.exports=function(e,t,r,o){var l=n(e,t,r,o);if(l){var s=l.cd,c=s[0].trace,d="h"===c.orientation,u=s[l.index];l[(d?"x":"y")+"LabelVal"]=u.s,l.percentInitial=u.begR,l.percentInitialLabel=i(u.begR,1),l.percentPrevious=u.difR,l.percentPreviousLabel=i(u.difR,1),l.percentTotal=u.sumR,l.percentTotalLabel=i(u.sumR,1);var f=u.hi||c.hoverinfo,h=[];if(f&&"none"!==f&&"skip"!==f){var p="all"===f,g=f.split("+"),m=function(e){return p||-1!==g.indexOf(e)};m("percent initial")&&h.push(l.percentInitialLabel+" of initial"),m("percent previous")&&h.push(l.percentPreviousLabel+" of previous"),m("percent total")&&h.push(l.percentTotalLabel+" of total")}return l.extraText=h.join("<br>"),l.color=function(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,o=t.mlw||r.line.width;if(a(n))return n;if(a(i)&&o)return i}(c,u),[l]}}},jyrE:function(e,t,r){"use strict";var a=r("/CZE"),n=r("plED"),i=r("2S8E"),o=r("J+Po"),l=r("UAgb"),s=r("Z8TU");e.exports=function(e,t,r){var c=n.newContainer(t,"colorbar"),d=e.colorbar||{};function u(e,t){return a.coerce(d,c,s,e,t)}var f=u("thicknessmode");u("thickness","fraction"===f?30/(r.width-r.margin.l-r.margin.r):30);var h=u("lenmode");u("len","fraction"===h?1:r.height-r.margin.t-r.margin.b),u("x"),u("xanchor"),u("xpad"),u("y"),u("yanchor"),u("ypad"),a.noneOrAll(d,c,["x","y"]),u("outlinecolor"),u("outlinewidth"),u("bordercolor"),u("borderwidth"),u("bgcolor");var p=u("ticklabelposition");i(d,c,u,"linear");var g={outerTicks:!1,font:r.font};-1!==p.indexOf("inside")&&(g.bgColor="black"),l(d,c,u,"linear",g),o(d,c,u,"linear",g),u("title.text",r._dfltTitle.colorbar),a.coerceFont(u,"title.font",r.font),u("title.side")}},jzia:function(e,t,r){"use strict";var a=r("37PH");e.exports={bgcolor:{valType:"color",dflt:a.background,role:"style",editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,role:"style",editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,role:"style",editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,role:"style",editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,role:"info",editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}},k6aH:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE");function i(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var a=i(e),n=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<n,r[a]=r[a]||1/0,t.hide||(r[a]=Math.min(r[a],Math.max(o,n)))}},clearMinTextSize:function(e,t){t[i(e)]=void 0},resizeText:function(e,t,r){var i=e._fullLayout,o=i["_"+r+"Text_minsize"];if(o){var l,s="hide"===i.uniformtext.mode;switch(r){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each((function(e){var t=e.transform;t&&(t.scale=s&&t.hide?0:o/t.fontSize,a.select(this).select("text").attr("transform",n.getTextTransform(t)))}))}}}},kJIm:function(e,t,r){"use strict";var a=r("E4V0"),n=Array.isArray;function i(e,t,r,o){var l,s,c,d,u,f,h=e[0],p=e.length;if(2===p&&n(h)&&n(e[1])&&0===h.length){if(function(e,t){var r,a;for(r=0;r<e.length;r++){if(null!==(a=e[r])&&"object"==typeof a)return!1;void 0!==a&&(t[r]=a)}return!0}(e[1],h))return h;h.splice(0,h.length)}for(var g=1;g<p;g++)for(s in l=e[g])c=h[s],d=l[s],o&&n(d)?h[s]=d:t&&d&&(a(d)||(u=n(d)))?(u?(u=!1,f=c&&n(c)?c:[]):f=c&&a(c)?c:{},h[s]=i([f,d],t,r,o)):(void 0!==d||r)&&(h[s]=d);return h}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},kQMp:function(e,t,r){"use strict";var a=r("0RW4"),n=r("IVx0").hasColorscale,i=r("QYPY");e.exports=function(e,t,r,o,l){r("marker.color",o),n(e,"marker")&&i(e,t,l,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",a.defaultLine),n(e,"marker.line")&&i(e,t,l,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),r("selected.marker.color"),r("unselected.marker.color")}},kZ5o:function(e,t,r){"use strict";var a=r("qHYo"),n=r("gfA5").attributes,i=r("mEVB"),o=r("37PH"),l=r("lNV6").hovertemplateAttrs,s=r("lNV6").texttemplateAttrs,c=r("kJIm").extendFlat,d=i({editType:"plot",arrayOk:!0,colorEditType:"plot",description:"Sets the font used for `textinfo`."});e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the sector labels.","If `labels` entries are duplicated, we sum associated `values`","or simply count occurrences if `values` is not provided.","For other array attributes (including color) we use the first","non-empty entry among all occurrences of the label."].join(" ")},label0:{valType:"number",role:"info",dflt:0,editType:"calc",description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",role:"info",dflt:1,editType:"calc",description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",editType:"calc",description:["Sets the values of the sectors.","If omitted, we count occurrences of each label."].join(" ")},marker:{colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",role:"style",dflt:o.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",role:"style",min:0,dflt:0,arrayOk:!0,editType:"style",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will be seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",role:"info",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",role:"info",dflt:"",editType:"calc",description:["If there are multiple pie charts that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",role:"info",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:c({},a.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:c({},d,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",role:"info",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot",description:["Controls the orientation of the text inside chart sectors.","When set to *auto*, text may be oriented in any direction in order","to be as big as possible in the middle of a sector.","The *horizontal* option orients text to be parallel with the bottom","of the chart, and may make text smaller in order to achieve that goal.","The *radial* option orients text along the radius of the sector.","The *tangential* option orients text perpendicular to the radius of the sector."].join(" ")},insidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,role:"info",editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},title:{text:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets the title of the chart.","If it is empty, no title is displayed.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:c({},d,{description:["Sets the font used for `title`.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],role:"info",editType:"plot",description:["Specifies the location of the `title`.","Note that the title's position used to be set","by the now deprecated `titleposition` attribute."].join(" ")},editType:"plot"},domain:n({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",role:"style",min:0,max:1,dflt:0,editType:"calc",description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",role:"style",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"style",dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"number",role:"style",min:-360,max:360,dflt:0,editType:"calc",description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",role:"style",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc",description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")},_deprecated:{title:{valType:"string",dflt:"",role:"info",editType:"calc",description:["Deprecated in favor of `title.text`.","Note that value of `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:c({},d,{description:"Deprecated in favor of `title.font`."}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],role:"info",editType:"calc",description:"Deprecated in favor of `title.position`."}}}},kc20:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("/CZE"),o=r("u3HJ"),l=r("g9E0"),s=r("rWI/").getModuleCalcData,c=r("PBw4"),d=r("0wH6"),u=r("c8nr"),f=i.ensureSingle;function h(e,t,r){return i.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function p(e,t,r,i,o){for(var c,u,f,h=d.traceLayerClasses,p=e._fullLayout,g=p._modules,m=[],y=[],v=0;v<g.length;v++){var x=(c=g[v]).name,b=n.modules[x].categories;if(b.svg){var _=c.layerName||x+"layer",w=c.plot;f=(u=s(r,w))[0],r=u[1],f.length&&m.push({i:h.indexOf(_),className:_,plotMethod:w,cdModule:f}),b.zoomScale&&y.push("."+_)}}m.sort((function(e,t){return e.i-t.i}));var k=t.plot.selectAll("g.mlayer").data(m,(function(e){return e.className}));if(k.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each((function(r){var n=a.select(this),s=r.className;r.plotMethod(e,t,r.cdModule,n,i,o),-1===d.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(n,t.layerClipId,e)})),p._has("scattergl")&&(c=n.getModule("scattergl"),f=s(r,c)[0],c.plot(e,t,f)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(d.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),y.length)){var T=t.plot.selectAll(y.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function g(e,t){var r=t.plotgroup,a=t.id,n=d.layerValue2layerClass[t.xaxis.layer],i=d.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,u=a+"-x",p=a+"-y";t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,f(l.overlinesBelow,"path",u),f(l.overlinesBelow,"path",p),f(l.overaxesBelow,"g",u),f(l.overaxesBelow,"g",p),t.plot=f(l.overplot,"g",a),f(l.overlinesAbove,"path",u),f(l.overlinesAbove,"path",p),f(l.overaxesAbove,"g",u),f(l.overaxesAbove,"g",p),t.xlines=s.select(".overlines-"+n).select("."+u),t.ylines=s.select(".overlines-"+i).select("."+p),t.xaxislayer=s.select(".overaxes-"+n).select("."+u),t.yaxislayer=s.select(".overaxes-"+i).select("."+p)}else if(o)t.xlines=f(r,"path","xlines-above"),t.ylines=f(r,"path","ylines-above"),t.xaxislayer=f(r,"g","xaxislayer-above"),t.yaxislayer=f(r,"g","yaxislayer-above");else{var g=f(r,"g","layer-subplot");t.shapelayer=f(g,"g","shapelayer"),t.imagelayer=f(g,"g","imagelayer"),t.gridlayer=f(r,"g","gridlayer"),t.zerolinelayer=f(r,"g","zerolinelayer"),f(r,"path","xlines-below"),f(r,"path","ylines-below"),t.overlinesBelow=f(r,"g","overlines-below"),f(r,"g","xaxislayer-below"),f(r,"g","yaxislayer-below"),t.overaxesBelow=f(r,"g","overaxes-below"),t.plot=f(r,"g","plot"),t.overplot=f(r,"g","overplot"),t.xlines=f(r,"path","xlines-above"),t.ylines=f(r,"path","ylines-above"),t.overlinesAbove=f(r,"g","overlines-above"),f(r,"g","xaxislayer-above"),f(r,"g","yaxislayer-above"),t.overaxesAbove=f(r,"g","overaxes-above"),t.xlines=r.select(".xlines-"+n),t.ylines=r.select(".ylines-"+i),t.xaxislayer=r.select(".xaxislayer-"+n),t.yaxislayer=r.select(".yaxislayer-"+i)}o||(h(t.gridlayer,"g",t.xaxis._id),h(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function m(e,t){if(e){var r={};for(var n in e.each((function(e){var n=e[0];a.select(this).remove(),y(n,t),r[n]=!0})),t._plots)for(var i=t._plots[n].overlays||[],o=0;o<i.length;o++){var l=i[o];r[l.id]&&l.plot.selectAll(".trace").remove()}}}function y(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}t.name="cartesian",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=d.idRegex,t.attrRegex=d.attrRegex,t.attributes=r("P/f8"),t.layoutAttributes=r("15jM"),t.supplyLayoutDefaults=r("g3i2"),t.transitionAxes=r("BEZi"),t.finalizeSubplots=function(e,t){var r,a,n,o=t._subplots,l=o.xaxis,s=o.yaxis,u=o.cartesian,f=u.concat(o.gl2d||[]),h={},p={};for(r=0;r<f.length;r++){var g=f[r].split("y");h[g[0]]=1,p["y"+g[1]]=1}for(r=0;r<l.length;r++)h[a=l[r]]||(n=(e[c.id2name(a)]||{}).anchor,d.idRegex.y.test(n)||(n="y"),u.push(a+n),f.push(a+n),p[n]||(p[n]=1,i.pushUnique(s,n)));for(r=0;r<s.length;r++)p[n=s[r]]||(a=(e[c.id2name(n)]||{}).anchor,d.idRegex.x.test(a)||(a="x"),u.push(a+n),f.push(a+n),h[a]||(h[a]=1,i.pushUnique(l,a)));if(!f.length){for(var m in a="",n="",e){if(d.attrRegex.test(m))"x"===m.charAt(0)?(!a||+m.substr(5)<+a.substr(5))&&(a=m):(!n||+m.substr(5)<+n.substr(5))&&(n=m)}a=a?c.name2id(a):"x",n=n?c.name2id(n):"y",l.push(a),s.push(n),u.push(a+n)}},t.plot=function(e,t,r,a){var n,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],n=0;n<l.length;n++)t.push(n);for(n=0;n<o.length;n++){for(var s,c=o[n],d=i._plots[c],u=[],f=0;f<l.length;f++){var h=l[f],g=h[0].trace;g.xaxis+g.yaxis===c&&((-1!==t.indexOf(g.index)||g.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===c&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===u.indexOf(s)&&u.push(s),u.push(h)),s=h)}p(e,d,u,r,a)}},t.clean=function(e,t,r,a){var n,i,o,l=a._plots||{},s=t._plots||{},d=a._subplots||{};if(a._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(n=l[o]).plotgroup&&n.plotgroup.remove();var u=a._has&&a._has("gl"),f=t._has&&t._has("gl");if(u&&!f)for(o in l)(n=l[o])._scene&&n._scene.destroy();if(d.xaxis&&d.yaxis){var h=c.listIds({_fullLayout:a});for(i=0;i<h.length;i++){var p=h[i];t[c.id2name(p)]||a._infolayer.selectAll(".g-"+p+"title").remove()}}var g=a._has&&a._has("cartesian"),v=t._has&&t._has("cartesian");if(g&&!v)m(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(d.cartesian)for(i=0;i<d.cartesian.length;i++){var x=d.cartesian[i];if(!s[x]){var b="."+x+",."+x+"-x,."+x+"-y";a._cartesianlayer.selectAll(b).remove(),y(x,a)}}},t.drawFramework=function(e){var t=e._fullLayout,r=function(e){var t,r,a,n,i,o,l=e._fullLayout,s=l._subplots.cartesian,c=s.length,d=[],u=[];for(t=0;t<c;t++){a=s[t],n=l._plots[a],i=n.xaxis,o=n.yaxis;var f=i._mainAxis,h=o._mainAxis,p=f._id+h._id,g=l._plots[p];n.overlays=[],p!==a&&g?(n.mainplot=p,n.mainplotinfo=g,u.push(a)):(n.mainplot=void 0,n.mainplotinfo=void 0,d.push(a))}for(t=0;t<u.length;t++)a=u[t],(n=l._plots[a]).mainplotinfo.overlays.push(n);var m=d.concat(u),y=new Array(c);for(t=0;t<c;t++){a=m[t],n=l._plots[a],i=n.xaxis,o=n.yaxis;var v=[a,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(r=0;r<n.overlays.length;r++)v.push(n.overlays[r].id);y[t]=v}return y}(e),n=t._cartesianlayer.selectAll(".subplot").data(r,String);n.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),n.order(),n.exit().call(m,t),n.each((function(r){var n=r[0],i=t._plots[n];i.plotgroup=a.select(this),g(e,i),i.draglayer=f(t._draggers,"g",n)}))},t.rangePlot=function(e,t,r){g(e,t),p(e,t,r),o.style(e)},t.toSVG=function(e){var t=e._fullLayout._glimages,r=a.select(e).selectAll(".svg-container");r.filter((function(e,t){return t===r.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var e=this.toDataURL("image/png");t.append("svg:image").attr({xmlns:u.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:this.width,height:this.height})}))},t.updateFx=r("Guo4").updateFx},kc6j:function(e,t,r){"use strict";e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",role:"info",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},waterfallgap:{valType:"number",min:0,max:1,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},kn30:function(e,t,r){"use strict";var a=r("f7dW"),n=r("mEVB")({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});n.family.dflt=a.HOVERFONT,n.size.dflt=a.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",role:"info",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled.","If `clickmode` includes the *select* flag,","`hovermode` defaults to *closest*.","If `clickmode` lacks the *select* flag,","it defaults to *x* or *y* (depending on the trace's","`orientation` value) for plots based on","cartesian coordinates. For anything else the default","value is *closest*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:n,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",role:"style",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,role:"style",editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",role:"info",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},l1mV:function(e,t,r){"use strict";var a=r("Y9zF").FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=a[e.constraintoward||"center"]);var n=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=n[0]+(n[1]-n[0])*r;e.range=e._input.range=[e.l2r(i+(n[0]-i)*t),e.l2r(i+(n[1]-i)*t)],e.setScale()}},l3j2:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:r("6Ccv"),supplyLayoutDefaults:r("6BNG"),draw:r("Q9kw"),style:r("7ncg")}},l9FN:function(e,t,r){"use strict";var a=r("lNV6").hovertemplateAttrs,n=r("lNV6").texttemplateAttrs,i=r("9Okp"),o=r("gfA5").attributes,l=r("kZ5o"),s=r("8gD/"),c=r("I8wg"),d=r("kJIm").extendFlat;e.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",role:"info",editType:"plot",description:["Determines d3 treemap solver.","For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling"].join(" ")},squarifyratio:{valType:"number",role:"info",min:1,dflt:1,editType:"plot",description:["When using *squarify* `packing` algorithm, according to https://github.com/d3/d3-hierarchy/blob/master/README.md#squarify_ratio","this option specifies the desired aspect ratio of the generated rectangles.","The ratio must be specified as a number greater than or equal to one.","Note that the orientation of the generated rectangles (tall or wide)","is not implied by the ratio; for example, a ratio of two will attempt","to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.","When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,","Plotly applies 1 to increase squares in treemap layouts."].join(" ")},flip:{valType:"flaglist",role:"info",flags:["x","y"],dflt:"",editType:"plot",description:["Determines if the positions obtained from solver are flipped on each axis."].join(" ")},pad:{valType:"number",role:"style",min:0,dflt:3,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:d({pad:{t:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the top (in px)."].join(" ")},l:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the left (in px)."].join(" ")},r:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the right (in px)."].join(" ")},b:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the bottom (in px)."].join(" ")},editType:"calc"},colors:s.marker.colors,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style",role:"style",description:["Determines if the sector colors are faded towards","the background from the leaves up to the headers.","This option is unavailable when a `colorscale` is present,","defaults to false when `marker.colors` is set,","but otherwise defaults to true.","When set to *reversed*, the fading direction is inverted,","that is the top elements within hierarchy are drawn with fully saturated colors","while the leaves are faded towards the background color."].join(" ")},line:s.marker.line,editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if the path bar is drawn","i.e. outside the trace `domain` and","with one pixel gap."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",role:"info",editType:"plot",description:["Determines on which side of the the treemap the","`pathbar` should be presented."].join(" ")},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",role:"style",editType:"plot",description:["Determines which shape is used for edges between `barpath` labels."].join(" ")},thickness:{valType:"number",min:12,role:"info",editType:"plot",description:["Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used","with 3 pixles extra padding on each side."].join(" ")},textfont:d({},l.textfont,{description:"Sets the font used inside `pathbar`."}),editType:"calc"},text:l.text,textinfo:s.textinfo,texttemplate:n({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:l.hovertext,hoverinfo:s.hoverinfo,hovertemplate:a({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextfont:l.insidetextfont,outsidetextfont:d({},l.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented on top left corner of a treemap graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",role:"style",editType:"plot",description:["Sets the positions of the `text` elements."].join(" ")},sort:l.sort,root:s.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}},lNV6:function(e,t,r){"use strict";var a=['Variables are inserted using %{variable}, for example "y: %{y}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',r("eN+q").FORMAT_LINK,"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}".',r("eN+q").DATE_FORMAT_LINK,"for details on the date formatting syntax."].join(" ");function n(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var a=[],n=0;n<r.length;n++)a[n]="`"+r[n]+"`";t+="Finally, the template string has access to ",t=1===r.length?"variable "+a[0]:"variables "+a.slice(0,-1).join(", ")+" and "+a.slice(-1)+"."}return t}t.hovertemplateAttrs=function(e,t){e=e||{};var r=n(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",a,"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i},t.texttemplateAttrs=function(e,t){e=e||{};var r=n(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",a,"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i}},lUdJ:function(e,t,r){"use strict";e.exports=function(e,t){for(var r=e.length,a=0,n=0;n<r;n++)t[n]?(e[n]/=t[n],a+=e[n]):e[n]=null;return a}},lYq1:function(e,t,r){"use strict";t.manage=r("qeRF")},lnYW:function(e,t,r){"use strict";var a=r("bljh"),n=r("Zss7"),i=r("FHfC"),o=r("Nx4I"),l=r("/CZE"),s=l.strTranslate,c=r("A3kh"),d=r("0RW4"),u=r("g9E0"),f=r("pcRN"),h=r("BkK/"),p=r("DzeQ"),g=r("Tv4R"),m=r("4htA"),y=m.selectingOrDrawing,v=m.freeMode,x=r("Y9zF").FROM_TL,b=r("ghsG"),_=r("o5LV").redrawReglTraces,w=r("u3HJ"),k=r("PBw4").getFromId,T=r("GHb7").prepSelect,A=r("GHb7").clearSelect,M=r("GHb7").selectOnClick,S=r("l1mV"),L=r("0wH6"),C=L.MINDRAG,I=L.MINZOOM,D=!0;function O(e,t,r,a){var n=l.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return n.call(p,a),n.node()}function z(e,t,r,n,i,o,l){var s=O(e,"rect",t,r);return a.select(s).call(u.setRect,n,i,o,l),s}function P(e,t){for(var r=0;r<e.length;r++)if(!e[r].fixedrange)return t;return""}function E(e,t,r,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l="y"===o._id.charAt(0),s=l?1-t:t,c=l?1-r:r;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var d=o._rl[0],u=o._rl[1]-d;a[o._name+".range[0]"]=o.l2r(d+u*t),a[o._name+".range[1]"]=o.l2r(d+u*r)}}if(n&&n.length){var f=(t+(1-r))/2;E(n,f,1-f,a,[])}}function j(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(!a.fixedrange)if(a.rangebreaks){var n=a._length,i=(a.p2l(0+t)-a.p2l(0)+(a.p2l(n+t)-a.p2l(n)))/2;a.range=[a.l2r(a._rl[0]-i),a.l2r(a._rl[1]-i)]}else a.range=[a.l2r(a._rl[0]-t/a._m),a.l2r(a._rl[1]-t/a._m)]}}function R(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function N(e,t,r,a,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",s(r,a)).attr("d",n+"Z")}function F(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:d.background,stroke:d.defaultLine,"stroke-width":1,opacity:0}).attr("transform",s(t,r)).attr("d","M0,0Z")}function B(e,t,r,a,n,i){e.attr("d",a+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),H(e,t,n,i)}function H(e,t,r,a){r||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function V(e){a.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Z(e){D&&e.data&&e._context.showTips&&(l.notifier(l._(e,"Double-click to zoom back out"),"long"),D=!1)}function G(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,I)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function U(e,t,r,a,n){for(var i,o,s,c,d=!1,u={},f={},h=(n||{}).xaHash,p=(n||{}).yaHash,g=0;g<t.length;g++){var m=t[g];for(i in r)if(m[i]){for(s in m)n&&(h[s]||p[s])||("x"===s.charAt(0)?r:a)[s]||(u[s]=i);for(o in a)n&&(h[o]||p[o])||!m[o]||(d=!0)}for(o in a)if(m[o])for(c in m)n&&(h[c]||p[c])||("x"===c.charAt(0)?r:a)[c]||(f[c]=o)}d&&(l.extendFlat(u,f),f={});var y={},v=[];for(s in u){var x=k(e,s);v.push(x),y[x._id]=x}var b={},_=[];for(c in f){var w=k(e,c);_.push(w),b[w._id]=w}return{xaHash:y,yaHash:b,xaxes:v,yaxes:_,xLinks:u,yLinks:f,isSubplotConstrained:d}}function W(e,t){if(i){var r=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(r,e._onwheel),e._onwheel=t,e.addEventListener(r,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function q(e){var t=[];for(var r in e)t.push(e[r]);return t}e.exports={makeDragBox:function(e,t,r,i,s,d,p,m){var D,O,H,Y,X,J,K,Q,$,ee,te,re,ae,ne,ie,oe,le,se,ce,de,ue,fe,he,pe=e._fullLayout._zoomlayer,ge=p+m==="nsew",me=1===(p+m).length;function ye(){if(D=t.xaxis,O=t.yaxis,$=D._length,ee=O._length,K=D._offset,Q=O._offset,(H={})[D._id]=D,(Y={})[O._id]=O,p&&m)for(var r=t.overlays,a=0;a<r.length;a++){var n=r[a].xaxis;H[n._id]=n;var i=r[a].yaxis;Y[i._id]=i}X=q(H),J=q(Y),ae=P(X,m),ne=P(J,p),ie=!ne&&!ae,re=U(e,e._fullLayout._axisMatchGroups,H,Y);var o=(te=U(e,e._fullLayout._axisConstraintGroups,H,Y,re)).isSubplotConstrained||re.isSubplotConstrained;oe=m||o,le=p||o;var l=e._fullLayout;se=l._has("scattergl"),ce=l._has("splom"),de=l._has("svg")}ye();var ve=function(e,t,r){if(!e)return"pointer";if("nsew"===e)return r?"":"pan"===t?"move":"crosshair";return e.toLowerCase()+"-resize"}(ne+ae,e._fullLayout.dragmode,ge),xe=z(t,p+m+"drag",ve,r,i,s,d);if(ie&&!ge)return xe.onmousedown=null,xe.style.pointerEvents="none",xe;var be,_e,we,ke,Te,Ae,Me,Se,Le,Ce,Ie={element:xe,gd:e,plotinfo:t};function De(){Ie.plotinfo.selection=!1,A(e)}function Oe(e,r){var n=Ie.gd;if(n._fullLayout._activeShapeIndex>=0)n._fullLayout._deactivateShape(n);else{var i=n._fullLayout.clickmode;if(V(n),2!==e||me||Ze(),ge)i.indexOf("select")>-1&&M(r,n,X,J,t.id,Ie),i.indexOf("event")>-1&&f.click(n,r,t.id);else if(1===e&&me){var l=p?O:D,s="s"===p||"w"===m?0:1,d=l._name+".range["+s+"]",u=function(e,t){var r,n=e.range[t],i=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a.format("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a.format("."+String(r)+"g")(n))}(l,s),h="left",g="middle";if(l.fixedrange)return;p?(g="n"===p?"top":"bottom","right"===l.side&&(h="right")):"e"===m&&(h="right"),n._context.showAxisRangeEntryBoxes&&a.select(xe).call(c.makeEditable,{gd:n,immediate:!0,background:n._fullLayout.paper_bgcolor,text:String(u),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:h,verticalAlign:g}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&o.call("_guiRelayout",n,d,t)}))}}}function ze(t,r){if(e._transitioningWithDuration)return!1;var a=Math.max(0,Math.min($,fe*t+be)),n=Math.max(0,Math.min(ee,he*r+_e)),i=Math.abs(a-be),o=Math.abs(n-_e);function l(){Me="",we.r=we.l,we.t=we.b,Le.attr("d","M0,0Z")}if(we.l=Math.min(be,a),we.r=Math.max(be,a),we.t=Math.min(_e,n),we.b=Math.max(_e,n),te.isSubplotConstrained)i>I||o>I?(Me="xy",i/$>o/ee?(o=i*ee/$,_e>n?we.t=_e-o:we.b=_e+o):(i=o*$/ee,be>a?we.l=be-i:we.r=be+i),Le.attr("d",G(we))):l();else if(re.isSubplotConstrained)if(i>I||o>I){Me="xy";var s=Math.min(we.l/$,(ee-we.b)/ee),c=Math.max(we.r/$,(ee-we.t)/ee);we.l=s*$,we.r=c*$,we.b=(1-s)*ee,we.t=(1-c)*ee,Le.attr("d",G(we))}else l();else!ne||o<Math.min(Math.max(.6*i,C),I)?i<C||!ae?l():(we.t=0,we.b=ee,Me="x",Le.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-I-.5)+"h-3v"+(2*I+1)+"h3ZM"+(e.r+.5)+","+(t-I-.5)+"h3v"+(2*I+1)+"h-3Z"}(we,_e))):!ae||i<Math.min(.6*o,I)?(we.l=0,we.r=$,Me="y",Le.attr("d",function(e,t){return"M"+(t-I-.5)+","+(e.t-.5)+"v-3h"+(2*I+1)+"v3ZM"+(t-I-.5)+","+(e.b+.5)+"v3h"+(2*I+1)+"v-3Z"}(we,be))):(Me="xy",Le.attr("d",G(we)));we.w=we.r-we.l,we.h=we.b-we.t,Me&&(Ce=!0),e._dragged=Ce,B(Se,Le,we,Te,Ae,ke),Pe(),e.emit("plotly_relayouting",ue),Ae=!0}function Pe(){ue={},"xy"!==Me&&"x"!==Me||(E(X,we.l/$,we.r/$,ue,te.xaxes),He("x",ue)),"xy"!==Me&&"y"!==Me||(E(J,(ee-we.b)/ee,(ee-we.t)/ee,ue,te.yaxes),He("y",ue))}function Ee(){Pe(),V(e),Ge(),Z(e)}Ie.prepFn=function(t,r,a){var i=Ie.dragmode,o=e._fullLayout.dragmode;o!==i&&(Ie.dragmode=o),ye(),fe=e._fullLayout._invScaleX,he=e._fullLayout._invScaleY,ie||(ge?t.shiftKey?"pan"===o?o="zoom":y(o)||(o="pan"):t.ctrlKey&&(o="pan"):o="pan"),v(o)?Ie.minDrag=1:Ie.minDrag=void 0,y(o)?(Ie.xaxes=X,Ie.yaxes=J,T(t,r,a,Ie,o)):(Ie.clickFn=Oe,y(i)&&De(),ie||("zoom"===o?(Ie.moveFn=ze,Ie.doneFn=Ee,Ie.minDrag=1,function(t,r,a){var i=xe.getBoundingClientRect();be=r-i.left,_e=a-i.top,e._fullLayout._calcInverseTransform(e);var o=l.apply3DTransform(e._fullLayout._invTransform)(be,_e);be=o[0],_e=o[1],we={l:be,r:be,w:0,t:_e,b:_e,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:n(e._fullLayout.plot_bgcolor).getLuminance(),Ae=!1,Me="xy",Ce=!1,Se=N(pe,ke,K,Q,Te="M0,0H"+$+"V"+ee+"H0V0"),Le=F(pe,K,Q)}(0,r,a)):"pan"===o&&(Ie.moveFn=Be,Ie.doneFn=Ge))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===xe){var r=e._fullLayout.dragmode;y(r)||(ye(),Ue([0,0,$,ee]),Ie.moveFn(t.dx,t.dy))}}},g.init(Ie);var je=[0,0,$,ee],Re=null,Ne=L.REDRAWDELAY,Fe=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Be(t,r){if(t*=fe,r*=he,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===ae||"ns"===ne){var a=ae?-t:0,n=ne?-r:0;if(re.isSubplotConstrained){if(ae&&ne){var i=(t/$-r/ee)/2;a=-(t=i*$),n=-(r=-i*ee)}ne?a=-n*$/ee:n=-a*ee/$}return ae&&(j(X,t),He("x")),ne&&(j(J,r),He("y")),Ue([a,n,$,ee]),Ve(),void e.emit("plotly_relayouting",ue)}var o,l,s="w"===ae==("n"===ne)?1:-1;if(ae&&ne&&(te.isSubplotConstrained||re.isSubplotConstrained)){var c=(t/$+s*r/ee)/2;t=c*$,r=s*c*ee}if("w"===ae?t=h(X,0,t):"e"===ae?t=h(X,1,-t):ae||(t=0),"n"===ne?r=h(J,1,r):"s"===ne?r=h(J,0,-r):ne||(r=0),o="w"===ae?t:0,l="n"===ne?r:0,te.isSubplotConstrained&&!re.isSubplotConstrained||re.isSubplotConstrained&&ae&&ne&&s>0){var d;if(re.isSubplotConstrained||!ae&&1===ne.length){for(d=0;d<X.length;d++)X[d].range=X[d]._r.slice(),S(X[d],1-r/ee);o=(t=r*$/ee)/2}if(re.isSubplotConstrained||!ne&&1===ae.length){for(d=0;d<J.length;d++)J[d].range=J[d]._r.slice(),S(J[d],1-t/$);l=(r=t*ee/$)/2}}re.isSubplotConstrained&&ne||He("x"),re.isSubplotConstrained&&ae||He("y");var u=$-t,f=ee-r;!re.isSubplotConstrained||ae&&ne||(ae?(l=o?0:t*ee/$,f=u*ee/$):(o=l?0:r*$/ee,u=f*$/ee)),Ue([o,l,u,f]),Ve(),e.emit("plotly_relayouting",ue)}function h(e,t,r){for(var a,n,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){a=l,n=l._rl[i]+(l._rl[t]-l._rl[i])/R(r/l._length);var s=l.l2r(n);!1!==s&&void 0!==s&&(l.range[t]=s)}}return a._length*(a._rl[t]-n)/(a._rl[t]-a._rl[i])}}function He(e,t){for(var r=re.isSubplotConstrained?{x:J,y:X}[e]:re[e+"axes"],a=re.isSubplotConstrained?{x:X,y:J}[e]:[],n=0;n<r.length;n++){var i=r[n],o=i._id,l=re.xLinks[o]||re.yLinks[o],s=a[0]||H[l]||Y[l];s&&(t?(t[i._name+".range[0]"]=t[s._name+".range[0]"],t[i._name+".range[1]"]=t[s._name+".range[1]"]):i.range=s.range.slice())}}function Ve(){var t,r=[];function a(e){for(t=0;t<e.length;t++)e[t].fixedrange||r.push(e[t]._id)}for(oe&&(a(X),a(te.xaxes),a(re.xaxes)),le&&(a(J),a(te.yaxes),a(re.yaxes)),ue={},t=0;t<r.length;t++){var n=r[t],i=k(e,n);h.drawOne(e,i,{skipTitle:!0}),ue[i._name+".range[0]"]=i.range[0],ue[i._name+".range[1]"]=i.range[1]}h.redrawComponents(e,r)}function Ze(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,r=[];ae&&(r=r.concat(X)),ne&&(r=r.concat(J)),re.xaxes&&(r=r.concat(re.xaxes)),re.yaxes&&(r=r.concat(re.yaxes));var a,n,i,l={};if("reset+autosize"===t)for(t="autosize",n=0;n<r.length;n++)if((a=r[n])._rangeInitial&&(a.range[0]!==a._rangeInitial[0]||a.range[1]!==a._rangeInitial[1])||!a._rangeInitial&&!a.autorange){t="reset";break}if("autosize"===t)for(n=0;n<r.length;n++)(a=r[n]).fixedrange||(l[a._name+".autorange"]=!0);else if("reset"===t)for((ae||te.isSubplotConstrained)&&(r=r.concat(te.xaxes)),ne&&!te.isSubplotConstrained&&(r=r.concat(te.yaxes)),te.isSubplotConstrained&&(ae?ne||(r=r.concat(J)):r=r.concat(X)),n=0;n<r.length;n++)(a=r[n]).fixedrange||(a._rangeInitial?(i=a._rangeInitial,l[a._name+".range[0]"]=i[0],l[a._name+".range[1]"]=i[1]):l[a._name+".autorange"]=!0);e.emit("plotly_doubleclick",null),o.call("_guiRelayout",e,l)}}function Ge(){Ue([0,0,$,ee]),l.syncOrAsync([w.previousPromises,function(){e._fullLayout._replotting=!1,o.call("_guiRelayout",e,ue)}],e)}function Ue(t){var r,a,n,i,s=e._fullLayout,c=s._plots,d=s._subplots.cartesian;if(ce&&o.subplotsRegistry.splom.drag(e),se)for(r=0;r<d.length;r++)if(n=(a=c[d[r]]).xaxis,i=a.yaxis,a._scene){var f=l.simpleMap(n.range,n.r2l),h=l.simpleMap(i.range,i.r2l);a._scene.update({range:[f[0],h[0],f[1],h[1]]})}if((ce||se)&&(b(e),_(e)),de){var g=t[2]/D._length,y=t[3]/O._length;for(r=0;r<d.length;r++){n=(a=c[d[r]]).xaxis,i=a.yaxis;var v,x,w,k,T=(oe||re.isSubplotConstrained)&&!n.fixedrange&&H[n._id],A=(le||re.isSubplotConstrained)&&!i.fixedrange&&Y[i._id];if(T?(v=g,w=m||re.isSubplotConstrained?t[0]:Ye(n,v)):re.xaHash[n._id]?(v=g,w=t[0]*n._length/D._length):re.yaHash[n._id]?(v=y,w="ns"===ne?-t[1]*n._length/O._length:Ye(n,v,{n:"top",s:"bottom"}[ne])):w=qe(n,v=We(n,g,y)),A?(x=y,k=p||re.isSubplotConstrained?t[1]:Ye(i,x)):re.yaHash[i._id]?(x=y,k=t[1]*i._length/O._length):re.xaHash[i._id]?(x=g,k="ew"===ae?-t[0]*i._length/D._length:Ye(i,x,{e:"right",w:"left"}[ae])):k=qe(i,x=We(i,g,y)),v||x){v||(v=1),x||(x=1);var M=n._offset-w/v,S=i._offset-k/x;a.clipRect.call(u.setTranslate,w,k).call(u.setScale,v,x),a.plot.call(u.setTranslate,M,S).call(u.setScale,1/v,1/x),v===a.xScaleFactor&&x===a.yScaleFactor||(u.setPointGroupScale(a.zoomScalePts,v,x),u.setTextPointsScale(a.zoomScaleTxt,v,x)),u.hideOutsideRangePoints(a.clipOnAxisFalseTraces,a),a.xScaleFactor=v,a.yScaleFactor=x}}}}function We(e,t,r){return e.fixedrange?0:oe&&te.xaHash[e._id]?t:le&&(te.isSubplotConstrained?te.xaHash:te.yaHash)[e._id]?r:0}function qe(e,t){return t?(e.range=e._r.slice(),S(e,t),Ye(e,t)):0}function Ye(e,t,r){return e._length*(1-t)*x[r||e.constraintoward||"middle"]}return p.length*m.length!=1&&W(xe,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(De(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();ye(),clearTimeout(Re);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var a,n=Math.exp(-Math.min(Math.max(r,-20),20)/200),i=Fe.draglayer.select(".nsewdrag").node().getBoundingClientRect(),o=(t.clientX-i.left)/i.width,s=(i.bottom-t.clientY)/i.height;if(oe){for(m||(o=.5),a=0;a<X.length;a++)c(X[a],o,n);He("x"),je[2]*=n,je[0]+=je[2]*o*(1/n-1)}if(le){for(p||(s=.5),a=0;a<J.length;a++)c(J[a],s,n);He("y"),je[3]*=n,je[1]+=je[3]*(1-s)*(1/n-1)}Ue(je),Ve(),e.emit("plotly_relayouting",ue),Re=setTimeout((function(){je=[0,0,$,ee],Ge()}),Ne),t.preventDefault()}else l.log("Did not find wheel motion attributes: ",t)}function c(e,t,r){if(!e.fixedrange){var a=l.simpleMap(e.range,e.r2l),n=a[0]+(a[1]-a[0])*t;e.range=a.map((function(t){return e.l2r(n+(t-n)*r)}))}}})),xe},makeDragger:O,makeRectDragger:z,makeZoombox:N,makeCorners:F,updateZoombox:B,xyCorners:G,transitionZoombox:H,removeZoombox:V,showDoubleClickNotifier:Z,attachWheelEventHandler:W}},mEVB:function(e,t,r){"use strict";e.exports=function(e){var t=e.editType,r=e.colorEditType;void 0===r&&(r=t);var a={family:{valType:"string",role:"style",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1,editType:t},color:{valType:"color",role:"style",editType:r},editType:t,description:""+(e.description||"")};return e.arrayOk&&(a.family.arrayOk=!0,a.size.arrayOk=!0,a.color.arrayOk=!0),a}},nF9v:function(e,t,r){"use strict";var a=r("mEVB"),n=r("grU7"),i=r("kJIm").extendDeepAll,o=r("yzSc").overrideAll,l=r("W2jp"),s=r("plED").templatedArray,c=r("5jll"),d=s("step",{visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});e.exports=o(s("slider",{visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:d,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:i(n({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:l.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:a({description:"Sets the font of the current value label text."})},font:a({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},nPGn:function(e,t,r){"use strict";var a=r("6AZA"),n=a.BADNUM,i=a.LOG_CLIP,o=i+.5,l=i-.5,s=r("/CZE"),c=s.segmentsIntersect,d=s.constrain,u=r("3mkv");e.exports=function(e,t){var r,a,i,f,h,p,g,m,y,v,x,b,_,w,k,T,A,M,S=t.xaxis,L=t.yaxis,C="log"===S.type,I="log"===L.type,D=S._length,O=L._length,z=t.connectGaps,P=t.baseTolerance,E=t.shape,j="linear"===E,R=t.fill&&"none"!==t.fill,N=[],F=u.minTolerance,B=e.length,H=new Array(B),V=0;function Z(r){var a=e[r];if(!a)return!1;var i=t.linearized?S.l2p(a.x):S.c2p(a.x),s=t.linearized?L.l2p(a.y):L.c2p(a.y);if(i===n){if(C&&(i=S.c2p(a.x,!0)),i===n)return!1;I&&s===n&&(i*=Math.abs(S._m*O*(S._m>0?o:l)/(L._m*D*(L._m>0?o:l)))),i*=1e3}if(s===n){if(I&&(s=L.c2p(a.y,!0)),s===n)return!1;s*=1e3}return[i,s]}function G(e,t,r,a){var n=r-e,i=a-t,o=.5-e,l=.5-t,s=n*n+i*i,c=n*o+i*l;if(c>0&&c<s){var d=o*i-l*n;if(d*d<s)return!0}}function U(e,t){var r=e[0]/D,a=e[1]/O,n=Math.max(0,-r,r-1,-a,a-1);return n&&void 0!==A&&G(r,a,A,M)&&(n=0),n&&t&&G(r,a,t[0]/D,t[1]/O)&&(n=0),(1+u.toleranceGrowth*n)*P}function W(e,t){var r=e[0]-t[0],a=e[1]-t[1];return Math.sqrt(r*r+a*a)}var q,Y,X,J,K,Q,$,ee=u.maxScreensAway,te=-D*ee,re=D*(1+ee),ae=-O*ee,ne=O*(1+ee),ie=[[te,ae,re,ae],[re,ae,re,ne],[re,ne,te,ne],[te,ne,te,ae]];function oe(e){if(e[0]<te||e[0]>re||e[1]<ae||e[1]>ne)return[d(e[0],te,re),d(e[1],ae,ne)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===re)||(e[1]===t[1]&&(e[1]===ae||e[1]===ne)||void 0)}function se(e,t,r){return function(a,n){var i=oe(a),o=oe(n),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((a[e]+n[e])/2,t,r)-((i||a)[e]+(o||n)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return l}}function ce(e){var t=e[0],r=e[1],a=t===H[V-1][0],n=r===H[V-1][1];if(!a||!n)if(V>1){var i=t===H[V-2][0],o=r===H[V-2][1];a&&(t===te||t===re)&&i?o?V--:H[V-1]=e:n&&(r===ae||r===ne)&&o?i?V--:H[V-1]=e:H[V++]=e}else H[V++]=e}function de(e){H[V-1][0]!==e[0]&&H[V-1][1]!==e[1]&&ce([X,J]),ce(e),K=null,X=J=0}function ue(e){if(A=e[0]/D,M=e[1]/O,q=e[0]<te?te:e[0]>re?re:0,Y=e[1]<ae?ae:e[1]>ne?ne:0,q||Y){if(V)if(K){var t=$(K,e);t.length>1&&(de(t[0]),H[V++]=t[1])}else Q=$(H[V-1],e)[0],H[V++]=Q;else H[V++]=[q||e[0],Y||e[1]];var r=H[V-1];q&&Y&&(r[0]!==q||r[1]!==Y)?(K&&(X!==q&&J!==Y?ce(X&&J?(a=K,i=(n=e)[0]-a[0],o=(n[1]-a[1])/i,(a[1]*n[0]-n[1]*a[0])/i>0?[o>0?te:re,ne]:[o>0?re:te,ae]):[X||q,J||Y]):X&&J&&ce([X,J])),ce([q,Y])):X-q&&J-Y&&ce([q||X,Y||J]),K=e,X=q,J=Y}else K&&de($(K,e)[0]),H[V++]=e;var a,n,i,o}for("linear"===E||"spline"===E?$=function(e,t){for(var r=[],a=0,n=0;n<4;n++){var i=ie[n],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!a||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],a&&W(o,e)<W(r[0],e)?r.unshift(o):r.push(o),a++)}return r}:"hv"===E||"vh"===E?$=function(e,t){var r=[],a=oe(e),n=oe(t);return a&&n&&le(a,n)||(a&&r.push(a),n&&r.push(n)),r}:"hvh"===E?$=se(0,te,re):"vhv"===E&&($=se(1,ae,ne)),r=0;r<B;r++)if(a=Z(r)){for(V=0,K=null,ue(a),r++;r<B;r++){if(!(f=Z(r))){if(z)continue;break}if(j&&t.simplify){var fe=Z(r+1);if(v=W(f,a),R&&(0===V||V===B-1)||!(v<U(f,fe)*F)){for(m=[(f[0]-a[0])/v,(f[1]-a[1])/v],h=a,x=v,b=w=k=0,g=!1,i=f,r++;r<e.length;r++){if(p=fe,fe=Z(r+1),!p){if(z)continue;break}if(T=(y=[p[0]-a[0],p[1]-a[1]])[0]*m[1]-y[1]*m[0],w=Math.min(w,T),(k=Math.max(k,T))-w>U(p,fe))break;i=p,(_=y[0]*m[0]+y[1]*m[1])>x?(x=_,f=p,g=!1):_<b&&(b=_,h=p,g=!0)}if(g?(ue(f),i!==h&&ue(h)):(h!==a&&ue(h),i!==f&&ue(f)),ue(i),r>=e.length||!p)break;ue(p),a=p}}else ue(f)}K&&ce([X||K[0],J||K[1]]),N.push(H.slice(0,V))}return N}},nTMW:function(e,t,r){"use strict";var a=r("bljh");e.exports=function(e,t){var r=e._name,n={};if("all"===t.step)n[r+".autorange"]=!0;else{var i=function(e,t){var r,n=e.range,i=new Date(e.r2l(n[1])),o=t.step,l=t.count;switch(t.stepmode){case"backward":r=e.l2r(+a.time[o].utc.offset(i,-l));break;case"todate":var s=a.time[o].utc.offset(i,-l);r=e.l2r(+a.time[o].utc.ceil(s))}var c=n[1];return[r,c]}(e,t);n[r+".range[0]"]=i[0],n[r+".range[1]"]=i[1]}return n}},o5Ge:function(e,t,r){"use strict";var a=r("/CZE"),n=r("xMdC").isUnifiedHover,i=r("kn30"),o=r("VNna"),l=r("IJNW");e.exports=function(e,t,r){function s(r,n){return a.coerce(e,t,i,r,n)}var c=o(e,t,r);c&&(s("hoverdistance"),s("spikedistance",n(c)?-1:void 0)),"select"===s("dragmode")&&s("selectdirection");var d=t._has("mapbox"),u=t._has("geo"),f=t._basePlotModules.length;"zoom"===t.dragmode&&((d||u)&&1===f||d&&u&&2===f)&&(t.dragmode="pan"),l(e,t,s)}},o5LV:function(e,t,r){"use strict";var a=r("bljh"),n=r("Nx4I"),i=r("u3HJ"),o=r("/CZE"),l=r("ghsG"),s=r("0RW4"),c=r("g9E0"),d=r("GZnn"),u=r("lYq1"),f=r("BkK/"),h=r("Y9zF"),p=r("at2O"),g=p.enforce,m=p.clean,y=r("zlYT").doAutoRange;function v(e,t,r){for(var a=0;a<r.length;a++){var n=r[a][0],i=r[a][1];if(!(n[0]>=e[1]||n[1]<=e[0])&&(i[0]<t[1]&&i[1]>t[0]))return!0}return!1}function x(e){var r,n,l,d,p,g,m=e._fullLayout,y=m._size,x=y.p,_=f.list(e,"",!0);if(m._paperdiv.style({width:e._context.responsive&&m.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":m.width+"px",height:e._context.responsive&&m.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(c.setSize,m.width,m.height),e._context.setBackground(e,m.paper_bgcolor),t.drawMainTitle(e),u.manage(e),!m._has("cartesian"))return i.previousPromises(e);function k(e,t,r){var a=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-x-a:t._offset+t._length+x+a:y.t+y.h*(1-(e.position||0))+a%1:t?"right"===r?t._offset+t._length+x+a:t._offset-x-a:y.l+y.w*(e.position||0)+a%1}for(r=0;r<_.length;r++){var T=(d=_[r])._anchorAxis;d._linepositions={},d._lw=c.crispRound(e,d.linewidth,1),d._mainLinePosition=k(d,T,d.side),d._mainMirrorPosition=d.mirror&&T?k(d,T,h.OPPOSITE_SIDE[d.side]):null}var A=[],M=[],S=[],L=1===s.opacity(m.paper_bgcolor)&&1===s.opacity(m.plot_bgcolor)&&m.paper_bgcolor===m.plot_bgcolor;for(n in m._plots)if((l=m._plots[n]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var C=l.xaxis.domain,I=l.yaxis.domain,D=l.plotgroup;if(v(C,I,S)){var O=D.node(),z=l.bg=o.ensureSingle(D,"rect","bg");O.insertBefore(z.node(),O.childNodes[0]),M.push(n)}else D.select("rect.bg").remove(),S.push([C,I]),L||(A.push(n),M.push(n))}var P,E,j,R,N,F,B,H,V,Z,G,U,W,q=m._bgLayer.selectAll(".bg").data(A);for(q.enter().append("rect").classed("bg",!0),q.exit().remove(),q.each((function(e){m._plots[e].bg=a.select(this)})),r=0;r<M.length;r++)l=m._plots[M[r]],p=l.xaxis,g=l.yaxis,l.bg&&void 0!==p._offset&&void 0!==g._offset&&l.bg.call(c.setRect,p._offset-x,g._offset-x,p._length+2*x,g._length+2*x).call(s.fill,m.plot_bgcolor).style("stroke-width",0);if(!m._hasOnlyLargeSploms)for(n in m._plots){l=m._plots[n],p=l.xaxis,g=l.yaxis;var Y,X,J=l.clipId="clip"+m._uid+n+"plot",K=o.ensureSingleById(m._clips,"clipPath",J,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=K.select("rect").attr({width:p._length,height:g._length}),c.setTranslate(l.plot,p._offset,g._offset),l._hasClipOnAxisFalse?(Y=null,X=J):(Y=J,X=null),c.setClipUrl(l.plot,Y,e),l.layerClipId=X}function Q(e){return"M"+P+","+e+"H"+E}function $(e){return"M"+p._offset+","+e+"h"+p._length}function ee(e){return"M"+e+","+H+"V"+B}function te(e){return"M"+e+","+g._offset+"v"+g._length}function re(e,t,r){if(!e.showline||n!==e._mainSubplot)return"";if(!e._anchorAxis)return r(e._mainLinePosition);var a=t(e._mainLinePosition);return e.mirror&&(a+=t(e._mainMirrorPosition)),a}for(n in m._plots){l=m._plots[n],p=l.xaxis,g=l.yaxis;var ae="M0,0";b(p,n)&&(N=w(p,"left",g,_),P=p._offset-(N?x+N:0),F=w(p,"right",g,_),E=p._offset+p._length+(F?x+F:0),j=k(p,g,"bottom"),R=k(p,g,"top"),!(W=!p._anchorAxis||n!==p._mainSubplot)||"allticks"!==p.mirror&&"all"!==p.mirror||(p._linepositions[n]=[j,R]),ae=re(p,Q,$),W&&p.showline&&("all"===p.mirror||"allticks"===p.mirror)&&(ae+=Q(j)+Q(R)),l.xlines.style("stroke-width",p._lw+"px").call(s.stroke,p.showline?p.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ae);var ne="M0,0";b(g,n)&&(G=w(g,"bottom",p,_),B=g._offset+g._length+(G?x:0),U=w(g,"top",p,_),H=g._offset-(U?x:0),V=k(g,p,"left"),Z=k(g,p,"right"),!(W=!g._anchorAxis||n!==g._mainSubplot)||"allticks"!==g.mirror&&"all"!==g.mirror||(g._linepositions[n]=[V,Z]),ne=re(g,ee,te),W&&g.showline&&("all"===g.mirror||"allticks"===g.mirror)&&(ne+=ee(V)+ee(Z)),l.ylines.style("stroke-width",g._lw+"px").call(s.stroke,g.showline?g.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ne)}return f.makeClipPaths(e),i.previousPromises(e)}function b(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function _(e,t,r){if(!r.showline||!r._lw)return!1;if("all"===r.mirror||"allticks"===r.mirror)return!0;var a=r._anchorAxis;if(!a)return!1;var n=h.FROM_BL[t];return r.side===t?a.domain[n]===e.domain[n]:r.mirror&&a.domain[1-n]===e.domain[1-n]}function w(e,t,r,a){if(_(e,t,r))return r._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===r._mainAxis&&_(e,t,i))return i._lw}return 0}function k(e,t){var r=e.title,a=e._size,n=0;switch("start"===t?n=r.pad.l:"end"===t&&(n=-r.pad.r),r.xref){case"paper":return a.l+a.w*r.x+n;case"container":default:return e.width*r.x+n}}function T(e,t){var r=e.title,a=e._size,n=0;if("0em"!==t&&t?t===h.CAP_SHIFT+"em"&&(n=r.pad.t):n=-r.pad.b,"auto"===r.y)return a.t/2;switch(r.yref){case"paper":return a.t+a.h-a.h*r.y+n;case"container":default:return e.height-e.height*r.y+n}}t.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,x],e)},t.drawMainTitle=function(e){var t=e._fullLayout,r=function(e){var t=e.title,r="middle";o.isRightAnchor(t)?r="end":o.isLeftAnchor(t)&&(r="start");return r}(t),a=function(e){var t=e.title,r="0em";o.isTopAnchor(t)?r=h.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(r=h.MID_SHIFT+"em");return r}(t);d.draw(e,"gtitle",{propContainer:t,propName:"title.text",placeholder:t._dfltTitle.plot,attributes:{x:k(t,r),y:T(t,a),"text-anchor":r,dy:a}})},t.doTraceStyle=function(e){var r,a=e.calcdata,o=[];for(r=0;r<a.length;r++){var s=a[r],c=s[0]||{},d=c.trace||{},u=d._module||{},f=u.arraysToCalcdata;f&&f(s,d);var h=u.editStyle;h&&o.push({fn:h,cd0:c})}if(o.length){for(r=0;r<o.length;r++){var p=o[r];p.fn(e,p.cd0)}l(e),t.redrawReglTraces(e)}return i.style(e),n.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return n.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,n.call("plot",e,"",t)},t.doLegend=function(e){return n.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return f.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(n.subplotsRegistry.splom.updateGrid(e),l(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;u.manage(e);for(var r=0;r<t._basePlotModules.length;r++){var a=t._basePlotModules[r].updateFx;a&&a(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,r=t._subplots.gl3d,a=0;a<r.length;a++){var n=t[r[a]];n._scene.setViewport(n)}},t.drawData=function(e){var r=e._fullLayout;l(e);for(var a=r._basePlotModules,o=0;o<a.length;o++)a[o].plot(e);return t.redrawReglTraces(e),i.style(e),n.getComponentMethod("shapes","draw")(e),n.getComponentMethod("annotations","draw")(e),n.getComponentMethod("images","draw")(e),r._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var r,a,n=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),r=0;r<n.length;r++){var s=n[r];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?o.pushUnique(i,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&o.pushUnique(l,s.subplot))}for(r=0;r<i.length;r++)(a=t._plots[i[r]])._scene&&a._scene.draw();for(r=0;r<l.length;r++)(a=t[l[r]]._subplot)._scene&&a._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,r=f.list(e,"",!0),a={},n=0;n<r.length;n++)if(!a[(t=r[n])._id]){a[t._id]=1,m(e,t),y(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=f.getFromId(e,o);y(e,l,t.range),a[o]=1}}g(e)},t.finalDraw=function(e){n.getComponentMethod("rangeslider","draw")(e),n.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){n.getComponentMethod("legend","draw")(e),n.getComponentMethod("rangeselector","draw")(e),n.getComponentMethod("sliders","draw")(e),n.getComponentMethod("updatemenus","draw")(e),n.getComponentMethod("colorbar","draw")(e)}},oBF0:function(e,t,r){"use strict";var a=r("GbLo"),n=r("avjU").isArrayOrTypedArray;t.aggNums=function(e,r,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),a(r)||(r=!1),n(i[0])){for(s=new Array(o),l=0;l<o;l++)s[l]=t.aggNums(e,r,i[l]);i=s}for(l=0;l<o;l++)a(r)?a(i[l])&&(r=e(+r,+i[l])):r=i[l];return r},t.len=function(e){return t.aggNums((function(e){return e+1}),0,e)},t.mean=function(e,r){return r||(r=t.len(e)),t.aggNums((function(e,t){return e+t}),0,e)/r},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,r,n){return r||(r=t.len(e)),a(n)||(n=t.mean(e,r)),t.aggNums((function(e,t){return e+Math.pow(t-n,2)}),0,e)/r},t.stdev=function(e,r,a){return Math.sqrt(t.variance(e,r,a))},t.median=function(e){var r=e.slice().sort();return t.interp(r,.5)},t.interp=function(e,t){if(!a(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},oYsm:function(e,t,r){"use strict";e.exports={attributes:r("yZ/U"),layoutAttributes:r("dnh+"),supplyDefaults:r("yv8l").supplyDefaults,crossTraceDefaults:r("yv8l").crossTraceDefaults,supplyLayoutDefaults:r("1YsL"),calc:r("JU33"),crossTraceCalc:r("Opyf"),plot:r("NNjz"),style:r("gGJ9").style,hoverPoints:r("jxKh"),eventData:r("b5aN"),selectPoints:r("cADB"),moduleType:"trace",name:"funnel",basePlotModule:r("kc20"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Visualize stages in a process using length-encoded bars. This trace can be used","to show data in either a part-to-whole representation wherein each item appears",'in a single stage, or in a "drop-off" representation wherein each item appears in','each stage it traversed. See also the "funnelarea" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},oi9M:function(e,t,r){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},oois:function(e,t,r){"use strict";var a=r("GbLo"),n=r("teMc"),i=r("u3HJ"),o=r("/CZE"),l=r("QkhT"),s=r("ywRt"),c=r("Tr0U"),d=r("W0H3").version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};e.exports=function(e,t){var r,f,h,p;function g(e){return!(e in t)||o.validate(t[e],u[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],f=e.layout||{},h=e.config||{},p={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),f=o.extendDeep({},e.layout),h=e._context,p=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Export format is not "+o.join2(u.format.values,", "," or ")+".");var m={};function y(e,r){return o.coerce(t,m,u,e,r)}var v=y("format"),x=y("width"),b=y("height"),_=y("scale"),w=y("setBackground"),k=y("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var A=o.extendFlat({},f);x?A.width=x:null===t.width&&a(p.width)&&(A.width=p.width),b?A.height=b:null===t.height&&a(p.height)&&(A.height=p.height);var M=o.extendFlat({},h,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=l.getRedrawFunc(T);function L(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function C(){return new Promise((function(e,t){var r=s(T,v,_),a=T._fullLayout.width,u=T._fullLayout.height;function f(){n.purge(T),document.body.removeChild(T)}if("full-json"===v){var h=i.graphJson(T,!1,"keepdata","object",!0,!0);return h.version=d,h=JSON.stringify(h),f(),e(k?h:l.encodeJSON(h))}if(f(),"svg"===v)return e(k?r:l.encodeSVG(r));var p=document.createElement("canvas");p.id=o.randstr(),c({format:v,width:a,height:u,scale:_,canvas:p,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){n.plot(T,r,A,M).then(S).then(L).then(C).then((function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},p96X:function(e,t,r){"use strict";var a=r("Nx4I");e.exports=function(e){for(var t,r,n=a.layoutArrayContainers,i=a.layoutArrayRegexes,o=e.split("[")[0],l=0;l<i.length;l++)if((r=e.match(i[l]))&&0===r.index){t=r[0];break}if(t||(t=n[n.indexOf(o)]),!t)return!1;var s=e.substr(t.length);return s?!!(r=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(r[1]),property:r[3]||""}:{array:t,index:"",property:""}}},pB2H:function(e,t,r){"use strict";var a=r("bljh"),n=r("pwgW"),i=r("k6aH").resizeText;e.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");i(e,t,"funnelarea"),t.each((function(e){var t=e[0].trace,r=a.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){a.select(this).call(n,e,t)}))}))}},pGKX:function(e,t,r){"use strict";var a=r("mEVB"),n=r("kn30").hoverlabel,i=r("kJIm").extendFlat;e.exports={hoverlabel:{bgcolor:i({},n.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:i({},n.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:a({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:i({},n.align,{arrayOk:!0}),namelength:i({},n.namelength,{arrayOk:!0}),editType:"none"}}},pMAR:function(e,t,r){"use strict";var a=r("Nx4I");e.exports=function(e,t){for(var r=e._context.locale,n=0;n<2;n++){for(var i=e._context.locales,o=0;o<2;o++){var l=(i[r]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=a.localeRegistry}var c=r.split("-")[0];if(c===r)break;r=c}return t}},pcRN:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("Tv4R"),o=r("xMdC"),l=r("kn30"),s=r("6BKz");e.exports={moduleType:"component",name:"fx",constants:r("f7dW"),schema:{layout:l},attributes:r("pGKX"),layoutAttributes:l,supplyLayoutGlobalDefaults:r("u4aF"),supplyDefaults:r("y9Tj"),supplyLayoutDefaults:r("o5Ge"),calc:r("gqVr"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return n.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return n.castOption(e,r,"hoverinfo",(function(r){return n.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=n.isD3Selection(e)?e:a.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:r("f8PX")}},pcxQ:function(e,t,r){"use strict";var a=r("u0qo"),n=r("EHyX").line,i=r("21T9").dash,o=r("kJIm").extendFlat,l=r("plED").templatedArray,s=r("RFwu");e.exports=l("shape",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:o({},a.xref,{description:["Sets the shape's x coordinate axis.",s.axisRefDescription("x","left","right"),"If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",role:"info",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:o({},a.yref,{description:["Sets the annotation's y coordinate axis.",s.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",role:"info",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",role:"info",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:o({},n.color,{editType:"arraydraw"}),width:o({},n.width,{editType:"calc+arraydraw"}),dash:o({},i,{editType:"arraydraw"}),role:"info",editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",role:"info",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",role:"info",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},editType:"arraydraw"})},plED:function(e,t,r){"use strict";var a=r("/CZE"),n=r("qHYo"),i={name:{valType:"string",role:"style",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function o(e){return e&&"string"==typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&a.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i.templateitemname={valType:"string",role:"info",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t.templateitemname=i.templateitemname,t},t.traceTemplater=function(e){var t,r,i={};for(t in e)r=e[t],Array.isArray(r)&&r.length&&(i[t]=0);return{newTrace:function(o){var l={type:t=a.coerce(o,{},n,"type"),_template:null};if(t in i){r=e[t];var s=i[t]%r.length;i[t]++,l._template=r[s]}return l}}},t.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);return a.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,r){var a=e._template,n=a&&a[l(t)],i=a&&a[t];Array.isArray(i)&&i.length||(i=[]);var s={};return{newItem:function(e){var t={name:e.name,_input:e},a=t.templateitemname=e.templateitemname;if(!o(a))return t._template=n,t;for(var l=0;l<i.length;l++){var c=i[l];if(c.name===a)return s[a]=1,t._template=c,t}return t[r]=e[r]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<i.length;t++){var r=i[t],a=r.name;if(o(a)&&!s[a]){var n={_template:r,name:a,_input:{_templateitemname:a}};n.templateitemname=r.templateitemname,e.push(n),s[a]=1}}return e}}},t.arrayDefaultKey=l,t.arrayEditor=function(e,t,r){var n=(a.nestedProperty(e,t).get()||[]).length,i=r._index,o=i>=n&&(r._input||{})._templateitemname;o&&(i=n);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function d(e,t){o?a.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function u(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:d,getUpdateObj:u,applyUpdate:function(t,r){t&&d(t,r);var n=u();for(var i in n)a.nestedProperty(e,i).set(n[i])}}}},"poX/":function(e,t,r){"use strict";var a=r("mEVB"),n=r("W2jp"),i=r("37PH"),o=r("rIcZ"),l=r("grU7"),s=r("kJIm").extendFlat,c=a({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});c.family.dflt='"Open Sans", verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=i.defaultLine,e.exports={font:c,title:{text:{valType:"string",role:"info",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:a({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,role:"style",editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",role:"style",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],role:"info",editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],role:"info",editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:s(l({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,role:"info",editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,role:"info",editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",role:"info",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",role:"info",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",role:"info",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",role:"info",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",role:"info",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",role:"style",dflt:i.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",role:"style",dflt:i.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",role:"info",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",role:"style",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",role:"info",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",role:"info",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:i.defaults,role:"style",editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",role:"info",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",role:"info",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",role:"info",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},editType:"modebar"},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:s({},n.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",role:"info",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:a({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},pwgW:function(e,t,r){"use strict";var a=r("0RW4"),n=r("WeBh").castOption;e.exports=function(e,t,r){var i=r.marker.line,o=n(i.color,t.pts)||a.defaultLine,l=n(i.width,t.pts)||0;e.style("stroke-width",l).call(a.fill,t.color).call(a.stroke,o)}},qHYo:function(e,t,r){"use strict";var a=r("pGKX");e.exports={type:{valType:"enumerated",role:"info",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],role:"info",dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",role:"info",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",role:"info",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},opacity:{valType:"number",role:"style",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",role:"info",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",role:"info",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",role:"info",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",role:"info",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:a.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,role:"info",editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,role:"info",editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},"qPk+":function(e,t,r){"use strict";var a=r("u3HJ");t.name="funnelarea",t.plot=function(e,r,n,i){a.plotBasePlot(t.name,e,r,n,i)},t.clean=function(e,r,n,i){a.cleanBasePlot(t.name,e,r,n,i)}},qTWP:function(e,t,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}]},qc20:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("kZ5o"),o=r("gfA5").defaults,l=r("HByh").handleText;function s(e,t){var r=Array.isArray(e),i=n.isArrayOrTypedArray(t),o=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s<o;s++){var c=t[s];if(a(c)&&c>0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}e.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,r,a){function c(r,a){return n.coerce(e,t,i,r,a)}var d=s(c("labels"),c("values")),u=d.len;if(t._hasLabels=d.hasLabels,t._hasValues=d.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),u){t._length=u,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var f,h=c("text"),p=c("texttemplate");if(p||(f=c("textinfo",Array.isArray(h)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||f&&"none"!==f){var g=c("textposition");l(e,t,a,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(t,a,c);var m=c("hole");if(c("title.text")){var y=c("title.position",m?"middle center":"top center");m||"middle center"!==y||(t.title.position="top center"),n.coerceFont(c,"title.font",a.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},qcty:function(e,t,r){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},qeRF:function(e,t,r){"use strict";var a=r("PBw4"),n=r("3oHU"),i=r("Nx4I"),o=r("xMdC").isUnifiedHover,l=r("G767"),s=r("E8TZ");e.exports=function(e){var t=e._fullLayout,r=e._context,d=t._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var u,f=r.modeBarButtons;u=Array.isArray(f)&&f.length?function(e){for(var t=0;t<e.length;t++)for(var r=e[t],a=0;a<r.length;a++){var n=r[a];if("string"==typeof n){if(void 0===s[n])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][a]=s[n]}}return e}(f):!r.displayModeBar&&r.watermark?[]:function(e){var t=e._fullLayout,r=e._fullData,l=e._context,d=l.modeBarButtonsToRemove,u=l.modeBarButtonsToAdd,f=t._has("cartesian"),h=t._has("gl3d"),p=t._has("geo"),g=t._has("pie"),m=t._has("funnelarea"),y=t._has("gl2d"),v=t._has("ternary"),x=t._has("mapbox"),b=t._has("polar"),_=t._has("sankey"),w=function(e){for(var t=a.list({_fullLayout:e},null,!0),r=0;r<t.length;r++)if(!t[r].fixedrange)return!1;return!0}(t),k=o(t.hovermode),T=[];function A(e){if(e.length){for(var t=[],r=0;r<e.length;r++){var a=e[r];-1===d.indexOf(a)&&t.push(s[a])}T.push(t)}}var M=["toImage"];l.showEditInChartStudio?M.push("editInChartStudio"):l.showSendToCloud&&M.push("sendDataToCloud");A(M);var S=[],L=[],C=[],I=[];(f||y||g||m||v)+p+h+x+b>1?(L=["toggleHover"],C=["resetViews"]):p?(S=["zoomInGeo","zoomOutGeo"],L=["hoverClosestGeo"],C=["resetGeo"]):h?(L=["hoverClosest3d"],C=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(S=["zoomInMapbox","zoomOutMapbox"],L=["toggleHover"],C=["resetViewMapbox"]):y?L=["hoverClosestGl2d"]:g?L=["hoverClosestPie"]:_?(L=["hoverClosestCartesian","hoverCompareCartesian"],C=["resetViewSankey"]):L=["toggleHover"];f&&(L=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(r)||k)&&(L=[]);!f&&!y||w||(S=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==C[0]&&(C=["resetScale2d"]));h?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:(f||y)&&!w||v?I=["zoom2d","pan2d"]:x||p?I=["pan2d"]:b&&(I=["zoom2d"]);(function(e){for(var t=!1,r=0;r<e.length&&!t;r++){var a=e[r];a._module&&a._module.selectPoints&&(i.traceIs(a,"scatter-like")?(n.hasMarkers(a)||n.hasText(a))&&(t=!0):i.traceIs(a,"box-violin")&&"all"!==a.boxpoints&&"all"!==a.points||(t=!0))}return t})(r)&&I.push("select2d","lasso2d");if(Array.isArray(u)){for(var D=[],O=0;O<u.length;O++){var z=u[O];"string"==typeof z?-1!==c.indexOf(z)&&(t._has("mapbox")||t._has("cartesian"))&&I.push(z):D.push(z)}u=D}return A(I),A(S.concat(C)),A(L),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t);return e}(T,u)}(e),d?d.update(e,u):t._modeBar=l(e,u)}else d&&(d.destroy(),delete t._modeBar)};var c=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"]},qixK:function(e,t,r){"use strict";e.exports=r("el8q")},qop6:function(e,t,r){"use strict";e.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"}}},r91y:function(e,t,r){"use strict";var a=r("bljh"),n=r("0RW4");e.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=a.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(n.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(n.stroke,i.color)}))}},"rDM+":function(e,t,r){"use strict";var a=r("/CZE").strTranslate;function n(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}e.exports={p2r:n,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(r){return n(e,r[t])}},getTransform:function(e){return a(e.xaxis._offset,e.yaxis._offset)}}},rIcZ:function(e,t,r){"use strict";var a=r("21T9").dash,n=r("kJIm").extendFlat;e.exports={newshape:{line:{color:{valType:"color",editType:"none",role:"info",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,role:"info",editType:"none",description:"Sets the line width (in px)."},dash:n({},a,{dflt:"solid",editType:"none"}),role:"info",editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",editType:"none",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",role:"info",editType:"none",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",editType:"none",description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"none",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",role:"info",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",role:"style",editType:"none",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,role:"info",editType:"none",description:"Sets the opacity of the active shape."},editType:"none"}}},rJf6:function(e,t,r){"use strict";var a=r("pcRN"),n=r("Nx4I"),i=r("0RW4"),o=r("/CZE").fillText,l=r("aDMI").getLineWidth,s=r("BkK/").hoverLabelText,c=r("6AZA").BADNUM;function d(e,t,r,n){var i,l,d,u,f,h,p,g=e.cd,m=g[0].trace,y=g[0].t,v="closest"===n,x="waterfall"===m.type,b=e.maxHoverDistance;function _(e){return e[d]-e.w/2}function w(e){return e[d]+e.w/2}var k=v?_:function(e){return Math.min(_(e),e.p-y.bardelta/2)},T=v?w:function(e){return Math.max(w(e),e.p+y.bardelta/2)};function A(e,t){return a.inbox(e-i,t-i,b+Math.min(1,Math.abs(t-e)/p)-1)}function M(e){return A(k(e),T(e))}function S(e){var t=l,r=e.b,n=e[u];if(x){var i=Math.abs(e.rawS)||0;t>0?n+=i:t<0&&(n-=i)}return a.inbox(r-t,n-t,b+(n-t)/(n-r)-1)}"h"===m.orientation?(i=r,l=t,d="y",u="x",f=S,h=M):(i=t,l=r,d="x",u="y",h=S,f=M);var L=e[d+"a"],C=e[u+"a"];p=Math.abs(L.r2c(L.range[1])-L.r2c(L.range[0]));var I=a.getDistanceFunction(n,f,h,(function(e){return(f(e)+h(e))/2}));if(a.getClosest(g,I,e),!1!==e.index&&g[e.index].p!==c){v||(k=function(e){return Math.min(_(e),e.p-y.bargroupwidth/2)},T=function(e){return Math.max(w(e),e.p+y.bargroupwidth/2)});var D=g[e.index],O=m.base?D.b+D.s:D.s;e[u+"0"]=e[u+"1"]=C.c2p(D[u],!0),e[u+"LabelVal"]=O;var z=y.extents[y.extents.round(D.p)];e[d+"0"]=L.c2p(v?k(D):z[0],!0),e[d+"1"]=L.c2p(v?T(D):z[1],!0);var P=void 0!==D.orig_p;return e[d+"LabelVal"]=P?D.orig_p:D.p,e.labelLabel=s(L,e[d+"LabelVal"]),e.valueLabel=s(C,e[u+"LabelVal"]),e.baseLabel=s(C,D.b),e.spikeDistance=(S(D)+function(e){return A(_(e),w(e))}(D))/2-b,e[d+"Spike"]=L.c2p(D.p,!0),o(D,m,e),e.hovertemplate=m.hovertemplate,e}}function u(e,t){var r=t.mcc||e.marker.color,a=t.mlcc||e.marker.line.color,n=l(e,t);return i.opacity(r)?r:i.opacity(a)&&n?a:void 0}e.exports={hoverPoints:function(e,t,r,a){var i=d(e,t,r,a);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=u(l,s),n.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:d,getTraceColor:u}},"rWI/":function(e,t,r){"use strict";var a=r("Nx4I"),n=r("0wH6").SUBPLOT_PATTERN;t.getSubplotCalcData=function(e,t,r){var n=a.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===r&&o.push(s)}return o},t.getModuleCalcData=function(e,t){var r,n=[],i=[];if(!(r="string"==typeof t?a.getModule(t).plot:"function"==typeof t?t:t.plot))return[n,e];for(var o=0;o<e.length;o++){var l=e[o],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module.plot===r?n.push(l):i.push(l))}return[n,i]},t.getSubplotData=function(e,t,r){if(!a.subplotsRegistry[t])return[];var i,o,l,s=a.subplotsRegistry[t].attr,c=[];if("gl2d"===t){var d=r.match(n);o="x"+d[1],l="y"+d[2]}for(var u=0;u<e.length;u++)i=e[u],"gl2d"===t&&a.traceIs(i,"gl2d")?i[s[0]]===o&&i[s[1]]===l&&c.push(i):i[s]===r&&c.push(i);return c}},"rZH/":function(e,t,r){"use strict";var a=r("/CZE"),n=r("oois"),i=r("6M+F"),o=r("QkhT");e.exports=function(e,t){var r;return a.isPlainObject(e)||(r=a.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(l,s){r&&r._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),a.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var c=n(e,t),d=t.filename||e.fn||"newplot";d+="."+t.format.replace("-","."),c.then((function(e){return r&&(r._snapshotInProgress=!1),i(e,d,t.format)})).then((function(e){l(e)})).catch((function(e){r&&(r._snapshotInProgress=!1),s(e)}))}))}},rhNM:function(e,t,r){"use strict";var a=r("P/XJ").dfltConfig,n=r("AII8"),i=e.exports={};function o(e,t){if(e&&e.apply)try{return void e.apply(console,t)}catch(e){}for(var r=0;r<t.length;r++)try{e(t[r])}catch(e){console.log(t[r])}}i.log=function(){var e;if(a.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(a.notifyOnLogging>1){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);n(r.join("<br>"),"long")}},i.warn=function(){var e;if(a.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(a.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);n(r.join("<br>"),"stick")}},i.error=function(){var e;if(a.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.error,t)}if(a.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);n(r.join("<br>"),"stick")}}},s02k:function(e,t,r){"use strict";var a=r("5EAt"),n=r("UtjE"),i=n.CIRCLE_SIDES,o=n.SQRT2,l=r("rDM+"),s=l.p2r,c=l.r2p,d=[0,3,4,5,6,1,2],u=[0,3,4,1,2];function f(e,t){return Math.abs(e-t)<=1e-6}function h(e,t){var r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+a*a)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",a=0;a<t;a++)for(var n=e[a].length,i=0;i<n;i++){var o=e[a][i][0];if("Z"===o)r+="Z";else for(var l=e[a][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=u[s]:"C"===o&&(c=d[s]),r+=e[a][i][c],s>0&&s<l-1&&(r+=",")}}return r},t.readPaths=function(e,t,r,n){var o,l,d,u=a(e),f=[],h=-1,p=0,g=0,m=function(){l=p,d=g};m();for(var y=0;y<u.length;y++){var v,x,b,_,w=[],k=u[y][0],T=k;switch(k){case"M":h++,f[h]=[],p=+u[y][1],g=+u[y][2],w.push([T,p,g]),m();break;case"Q":case"S":v=+u[y][1],b=+u[y][2],p=+u[y][3],g=+u[y][4],w.push([T,p,g,v,b]);break;case"C":v=+u[y][1],b=+u[y][2],x=+u[y][3],_=+u[y][4],p=+u[y][5],g=+u[y][6],w.push([T,p,g,v,b,x,_]);break;case"T":case"L":p=+u[y][1],g=+u[y][2],w.push([T,p,g]);break;case"H":T="L",p=+u[y][1],w.push([T,p,g]);break;case"V":T="L",g=+u[y][1],w.push([T,p,g]);break;case"A":T="L";var A=+u[y][1],M=+u[y][2];+u[y][4]||(A=-A,M=-M);var S=p-A,L=g;for(o=1;o<=i/2;o++){var C=2*Math.PI*o/i;w.push([T,S+A*Math.cos(C),L+M*Math.sin(C)])}break;case"Z":p===l&&g===d||(p=l,g=d,w.push([T,p,g]))}for(var I=(r||{}).domain,D=t._fullLayout._size,O=r&&"pixel"===r.xsizemode,z=r&&"pixel"===r.ysizemode,P=!1===n,E=0;E<w.length;E++){for(o=0;o+2<7;o+=2){var j=w[E][o+1],R=w[E][o+2];void 0!==j&&void 0!==R&&(p=j,g=R,r&&(r.xaxis&&r.xaxis.p2r?(P&&(j-=r.xaxis._offset),j=O?c(r.xaxis,r.xanchor)+j:s(r.xaxis,j)):(P&&(j-=D.l),I?j=I.x[0]+j/D.w:j/=D.w),r.yaxis&&r.yaxis.p2r?(P&&(R-=r.yaxis._offset),R=z?c(r.yaxis,r.yanchor)-R:s(r.yaxis,R)):(P&&(R-=D.t),R=I?I.y[1]-R/D.h:1-R/D.h)),w[E][o+1]=j,w[E][o+2]=R)}f[h].push(w[E].slice())}}return f},t.pointsShapeRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!f(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!f(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!f(e[0][1],e[1][1])&&!f(e[0][1],e[3][1]))&&!!(h(e[0],e[1])*h(e[0],e[3]))},t.pointsShapeEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var r=0;r<t;r++){var a=(2*t-r)%t,n=(t/2+a)%t,o=(t/2+r)%t;if(!f(h(e[r],e[o]),h(e[a],e[n])))return!1}return!0},t.handleEllipse=function(e,r,a){if(!e)return[r,a];var n=t.ellipseOver({x0:r[0],y0:r[1],x1:a[0],y1:a[1]}),l=(n.x1+n.x0)/2,s=(n.y1+n.y0)/2,c=(n.x1-n.x0)/2,d=(n.y1-n.y0)/2;c||(c=d/=o),d||(d=c/=o);for(var u=[],f=0;f<i;f++){var h=2*f*Math.PI/i;u.push([l+c*Math.cos(h),s+d*Math.sin(h)])}return u},t.ellipseOver=function(e){var t=e.x0,r=e.y0,a=e.x1,n=e.y1,i=a-t,l=n-r,s=((t-=i)+a)/2,c=((r-=l)+n)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}}},s1NN:function(e,t,r){"use strict";var a=r("u3HJ");t.name="sunburst",t.plot=function(e,r,n,i){a.plotBasePlot(t.name,e,r,n,i)},t.clean=function(e,r,n,i){a.cleanBasePlot(t.name,e,r,n,i)}},sZtP:function(e,t,r){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},sgXD:function(e,t,r){"use strict";e.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}},t3iM:function(e,t,r){"use strict";e.exports=function(){}},t7il:function(e,t,r){"use strict";var a=r("15jM"),n=r("kJIm").extendFlat,i=r("yzSc").overrideAll,o=["Legacy polar charts are deprecated!","Please switch to *polar* subplots."].join(" "),l=n({},a.domain,{description:["Polar chart subplots are not supported yet.","This key has currently no effect."].join(" ")});function s(e,t){var r={showline:{valType:"boolean",role:"style",description:[o,"Determines whether or not the line bounding this",e,"axis","will be shown on the figure."].join(" ")},showticklabels:{valType:"boolean",role:"style",description:[o,"Determines whether or not the",e,"axis ticks","will feature tick labels."].join(" ")},tickorientation:{valType:"enumerated",values:["horizontal","vertical"],role:"style",description:[o,"Sets the orientation (from the paper perspective)","of the",e,"axis tick labels."].join(" ")},ticklen:{valType:"number",min:0,role:"style",description:[o,"Sets the length of the tick lines on this",e,"axis."].join(" ")},tickcolor:{valType:"color",role:"style",description:[o,"Sets the color of the tick lines on this",e,"axis."].join(" ")},ticksuffix:{valType:"string",role:"style",description:[o,"Sets the length of the tick lines on this",e,"axis."].join(" ")},endpadding:{valType:"number",role:"style",description:o},visible:{valType:"boolean",role:"info",description:[o,"Determines whether or not this axis will be visible."].join(" ")}};return n({},t,r)}e.exports=i({radialaxis:s("radial",{range:{valType:"info_array",role:"info",items:[{valType:"number"},{valType:"number"}],description:[o,"Defines the start and end point of this radial axis."].join(" ")},domain:l,orientation:{valType:"number",role:"style",description:[o,"Sets the orientation (an angle with respect to the origin)","of the radial axis."].join(" ")}}),angularaxis:s("angular",{range:{valType:"info_array",role:"info",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}],description:[o,"Defines the start and end point of this angular axis."].join(" ")},domain:l}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"info",description:[o,"Sets the direction corresponding to positive angles","in legacy polar charts."].join(" ")},orientation:{valType:"angle",role:"info",description:[o,"Rotates the entire polar by the given angle","in legacy polar charts."].join(" ")}}},"plot","nested")},tDtm:function(e,t,r){"use strict";var a=r("E4V0"),n=r("t3iM"),i=r("rhNM"),o=r("3HVJ").sorterAsc,l=r("Nx4I");t.containerArrayMatch=r("p96X");var s=t.isAddVal=function(e){return"add"===e||a(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,r,a,d){var u=t.astr,f=l.getComponentMethod(u,"supplyLayoutDefaults"),h=l.getComponentMethod(u,"draw"),p=l.getComponentMethod(u,"drawOne"),g=a.replot||a.recalc||f===n||h===n,m=e.layout,y=e._fullLayout;if(r[""]){Object.keys(r).length>1&&i.warn("Full array edits are incompatible with other edits",u);var v=r[""][""];if(c(v))t.set(null);else{if(!Array.isArray(v))return i.warn("Unrecognized full array edit value",u,v),!0;t.set(v)}return!g&&(f(m,y),h(e),!0)}var x,b,_,w,k,T,A,M,S=Object.keys(r).map(Number).sort(o),L=t.get(),C=L||[],I=d(y,u).get(),D=[],O=-1,z=C.length;for(x=0;x<S.length;x++)if(w=r[_=S[x]],k=Object.keys(w),T=w[""],A=s(T),_<0||_>C.length-(A?0:1))i.warn("index out of range",u,_);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",u,_),c(T)?D.push(_):A?("add"===T&&(T={}),C.splice(_,0,T),I&&I.splice(_,0,{})):i.warn("Unrecognized full object edit value",u,_,T),-1===O&&(O=_);else for(b=0;b<k.length;b++)M=u+"["+_+"].",d(C[_],k[b],M).set(w[k[b]]);for(x=D.length-1;x>=0;x--)C.splice(D[x],1),I&&I.splice(D[x],1);if(C.length?L||t.set(C):t.set(null),g)return!1;if(f(m,y),p!==n){var P;if(-1===O)P=S;else{for(z=Math.max(C.length,z),P=[],x=0;x<S.length&&!((_=S[x])>=O);x++)P.push(_);for(x=O;x<z;x++)P.push(x)}for(x=0;x<P.length;x++)p(e,P[x])}else h(e);return!0}},tTmA:function(e,t,r){"use strict";var a=r("DOzC").setGroupPositions;e.exports=function(e,t){var r,n,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=t.xaxis,c=t.yaxis,d=[],u=[],f=[];for(n=0;n<o.length;n++){var h=o[n];!0===h.visible&&h.xaxis===s._id&&h.yaxis===c._id&&"waterfall"===h.type&&(r=l[n],"h"===h.orientation?f.push(r):u.push(r),d.push(r))}var p={mode:i.waterfallmode,norm:i.waterfallnorm,gap:i.waterfallgap,groupgap:i.waterfallgroupgap};for(a(e,s,c,u,p),a(e,c,s,f,p),n=0;n<d.length;n++){r=d[n];for(var g=0;g<r.length;g++){var m=r[g];!1===m.isSum&&(m.s0+=0===g?0:r[g-1].s),g+1<r.length&&(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},teKd:function(e,t,r){"use strict";var a=r("Nx4I").traceIs,n=r("C3fs");function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var r=i(e),n=a(e,"box-violin"),o=a(e._fullInput||{},"candlestick");return n&&!o&&t===r&&void 0===e[r]&&void 0===e[r+"0"]}e.exports=function(e,t,r,l){r("autotypenumbers",l.autotypenumbersDflt),"-"===r("type",(l.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var r,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,r){for(var a=0;a<e.length;a++){var n=e[a];if("splom"===n.type&&n._length>0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(o(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var d=s+"calendar",u=c[d],f={noMultiCategory:!a(c,"cartesian")||a(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(f.noMultiCategory=!0);if(f.autotypenumbers=e.autotypenumbers,o(c,s)){var h=i(c),p=[];for(r=0;r<t.length;r++){var g=t[r];a(g,"box-violin")&&(g[s+"axis"]||s)===l&&(void 0!==g[h]?p.push(g[h][0]):void 0!==g.name?p.push(g.name):p.push("text"),g[d]!==u&&(u=void 0))}e.type=n(p,u,f)}else if("splom"===c.type){var m=c.dimensions[c._axesDim[l]];m.visible&&(e.type=n(m.values,u,f))}else e.type=n(c[s]||[c[s+"0"]],u,f)}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},teMc:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("LI1c"),o=r("/CZE"),l=o.nestedProperty,s=r("h0EB"),c=r("xra3"),d=r("Nx4I"),u=r("aSHK"),f=r("u3HJ"),h=r("VQYE"),p=r("BkK/"),g=r("g9E0"),m=r("0RW4"),y=r("Guo4").initInteractions,v=r("c8nr"),x=r("A3kh"),b=r("GHb7").clearSelect,_=r("P/XJ").dfltConfig,w=r("tDtm"),k=r("xJcw"),T=r("o5LV"),A=r("yzSc"),M=r("0wH6").AX_NAME_PATTERN,S=0;function L(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function C(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){o.error(e)}}function I(e,t){C(e,m.combine(t,"white"))}function D(e,t){if(!e._context){e._context=o.extendDeep({},_);var r=a.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var n,l,s,c=e._context;if(t){for(l=Object.keys(t),n=0;n<l.length;n++)"editable"!==(s=l[n])&&"edits"!==s&&s in c&&("setBackground"===s&&"opaque"===t[s]?c[s]=I:c[s]=t[s]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var d=t.editable;if(void 0!==d)for(c.editable=d,l=Object.keys(c.edits),n=0;n<l.length;n++)c.edits[l[n]]=d;if(t.edits)for(l=Object.keys(t.edits),n=0;n<l.length;n++)(s=l[n])in c.edits&&(c.edits[s]=t.edits[s]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var u=c.scrollZoom,f=c._scrollZoom={};if(!0===u)f.cartesian=1,f.gl3d=1,f.geo=1,f.mapbox=1;else if("string"==typeof u){var h=u.split("+");for(n=0;n<h.length;n++)f[h[n]]=1}else!1!==u&&(f.gl3d=1,f.geo=1,f.mapbox=1)}function O(e,t){var r,a,n=t+1,i=[];for(r=0;r<e.length;r++)(a=e[r])<0?i.push(n+a):i.push(a);return i}function z(e,t,r){var a,n;for(a=0;a<t.length;a++){if((n=t[a])!==parseInt(n,10))throw new Error("all values in "+r+" must be integers");if(n>=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,a+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function P(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),z(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&z(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function E(e,t,r,a,i){!function(e,t,r,a){var n=o.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var i in z(e,r,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(n&&(!(i in a)||!Array.isArray(a[i])||a[i].length!==t[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")}}(e,t,r,a);for(var s=function(e,t,r,a){var i,s,c,d,u,f=o.isPlainObject(a),h=[];for(var p in Array.isArray(r)||(r=[r]),r=O(r,e.data.length-1),t)for(var g=0;g<r.length;g++){if(i=e.data[r[g]],s=(c=l(i,p)).get(),d=t[p][g],!o.isArrayOrTypedArray(d))throw new Error("attribute: "+p+" index: "+g+" must be an array");if(!o.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+p);if(s.constructor!==d.constructor)throw new Error("cannot extend array with an array of a different type: "+p);u=f?a[p][g]:a,n(u)||(u=-1),h.push({prop:c,target:s,insert:d,maxp:Math.floor(u)})}return h}(e,t,r,a),c={},d={},u=0;u<s.length;u++){var f=s[u].prop,h=s[u].maxp,p=i(s[u].target,s[u].insert,h);f.set(p[0]),Array.isArray(c[f.astr])||(c[f.astr]=[]),c[f.astr].push(p[1]),Array.isArray(d[f.astr])||(d[f.astr]=[]),d[f.astr].push(s[u].target.length)}return{update:c,maxPoints:d}}function j(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}function R(e,r,a,n){e=o.getGraphDiv(e),k.clearPromiseQueue(e);var i={};if("string"==typeof r)i[r]=a;else{if(!o.isPlainObject(r))return o.warn("Restyle fail.",r,a,n),Promise.reject();i=o.extendFlat({},r),void 0===n&&(n=a)}Object.keys(i).length&&(e.changed=!0);var l=k.coerceTraceIndices(e,n),s=H(e,i,l),d=s.flags;d.calc&&(e.calcdata=void 0),d.clearAxisTypes&&k.clearAxisTypes(e,l,{});var u=[];d.fullReplot?u.push(t.plot):(u.push(f.previousPromises),f.supplyDefaults(e),d.markerSize&&(f.doCalcdata(e),U(u)),d.style&&u.push(T.doTraceStyle),d.colorbars&&u.push(T.doColorBars),u.push(L)),u.push(f.rehover,f.redrag),c.add(e,R,[e,s.undoit,s.traces],R,[e,s.redoit,s.traces]);var h=o.syncOrAsync(u,e);return h&&h.then||(h=Promise.resolve()),h.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function N(e){return void 0===e?null:e}function F(e,t){return t?function(t,r,a){var n=l(t,r),i=n.set;return n.set=function(t){B((a||"")+r,n.get(),t,e),i(t)},n}:l}function B(e,t,r,a){if(Array.isArray(t)||Array.isArray(r))for(var n=Array.isArray(t)?t:[],i=Array.isArray(r)?r:[],l=Math.max(n.length,i.length),s=0;s<l;s++)B(e+"["+s+"]",n[s],i[s],a);else if(o.isPlainObject(t)||o.isPlainObject(r)){var c=o.isPlainObject(t)?t:{},d=o.isPlainObject(r)?r:{},u=o.extendFlat({},c,d);for(var f in u)B(e+"."+f,c[f],d[f],a)}else void 0===a[e]&&(a[e]=N(t))}function H(e,t,r){var a,n=e._fullLayout,i=e._fullData,s=e.data,c=n._guiEditing,h=F(n._preGUI,c),g=o.extendDeepAll({},t);V(t);var m,y=A.traceFlags(),v={},x={};function b(){return r.map((function(){}))}function _(e){var t=p.id2name(e);-1===m.indexOf(t)&&m.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function M(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function S(a,i,o){if(Array.isArray(a))a.forEach((function(e){S(e,i,o)}));else if(!(a in t)&&!k.hasParent(t,a)){var l;if("LAYOUT"===a.substr(0,6))l=h(e.layout,a.replace("LAYOUT",""));else{var d=r[o];l=F(n._tracePreGUI[M(d)._fullInput.uid],c)(s[d],a)}a in x||(x[a]=b()),void 0===x[a][o]&&(x[a][o]=N(l.get())),void 0!==i&&l.set(i)}}function L(e){return function(t){return i[t][e]}}function C(e){return function(t,a){return!1===t?i[r[a]][e]:null}}for(var I in t){if(k.hasParent(t,I))throw new Error("cannot set "+I+" and a parent attribute simultaneously");var D,O,z,P,E,j,R=t[I];if("autobinx"!==I&&"autobiny"!==I||(I=I.charAt(I.length-1)+"bins",R=Array.isArray(R)?R.map(C(I)):!1===R?r.map(L(I)):null),v[I]=R,"LAYOUT"!==I.substr(0,6)){for(x[I]=b(),a=0;a<r.length;a++){if(D=s[r[a]],O=M(r[a]),P=(z=F(n._tracePreGUI[O._fullInput.uid],c)(D,I)).get(),void 0!==(E=Array.isArray(R)?R[a%R.length]:R)){var B=z.parts[z.parts.length-1],H=I.substr(0,I.length-B.length-1),Z=H?H+".":"",G=H?l(O,H).get():O;if((j=u.getTraceValObject(O,z.parts))&&j.impliedEdits&&null!==E)for(var U in j.impliedEdits)S(o.relativeAttr(I,U),j.impliedEdits[U],a);else if("thicknessmode"!==B&&"lenmode"!==B||P===E||"fraction"!==E&&"pixels"!==E||!G){if("type"===I&&("pie"===E!=("pie"===P)||"funnelarea"===E!=("funnelarea"===P))){var W="x",q="y";"bar"!==E&&"bar"!==P||"h"!==D.orientation||(W="y",q="x"),o.swapAttrs(D,["?","?src"],"labels",W),o.swapAttrs(D,["d?","?0"],"label",W),o.swapAttrs(D,["?","?src"],"values",q),"pie"===P||"funnelarea"===P?(l(D,"marker.color").set(l(D,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):d.traceIs(D,"cartesian")&&l(D,"marker.colors").set(l(D,"marker.color").get())}}else{var Y=n._size,X=G.orient,J="top"===X||"bottom"===X;if("thicknessmode"===B){var K=J?Y.h:Y.w;S(Z+"thickness",G.thickness*("fraction"===E?1/K:K),a)}else{var Q=J?Y.w:Y.h;S(Z+"len",G.len*("fraction"===E?1/Q:Q),a)}}x[I][a]=N(P);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(I)){if("orientation"===I){z.set(E);var $=D.x&&!D.y?"h":"v";if((z.get()||$)===O.orientation)continue}else"orientationaxes"===I&&(D.orientation={v:"h",h:"v"}[O.orientation]);k.swapXYData(D),y.calc=y.clearAxisTypes=!0}else-1!==f.dataArrayContainers.indexOf(z.parts[0])?(k.manageArrayContainers(z,E,x),y.calc=!0):(j?j.arrayOk&&!d.traceIs(O,"regl")&&(o.isArrayOrTypedArray(E)||o.isArrayOrTypedArray(P))?y.calc=!0:A.update(y,j):y.calc=!0,z.set(E))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(I)&&p.swap(e,r),"orientationaxes"===I){var ee=l(e.layout,"hovermode"),te=ee.get();"x"===te?ee.set("y"):"y"===te?ee.set("x"):"x unified"===te?ee.set("y unified"):"y unified"===te&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(I)){for(m=[],a=0;a<r.length;a++){var re=s[r[a]];d.traceIs(re,"cartesian")&&(_(re.xaxis||"x"),_(re.yaxis||"y"))}S(m.map(w),!0,0),S(m.map(T),[0,1],0)}}else z=h(e.layout,I.replace("LAYOUT","")),x[I]=[N(z.get())],z.set(Array.isArray(R)?R[0]:R),y.calc=!0}return(y.calc||y.plot)&&(y.fullReplot=!0),{flags:y,undoit:x,redoit:v,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(e){var t,r,a,n=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],a=e[r],"title"!==r&&!n.test(r)&&!i.test(r)||"string"!=typeof a&&"number"!=typeof a?r.indexOf("titlefont")>-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(t,r){e[r]=e[t],delete e[t]}}function Z(e,t,r){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var a={};if("string"==typeof t)a[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();a=o.extendFlat({},t)}Object.keys(a).length&&(e.changed=!0);var n=X(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var l=[f.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(a).length&&(G(e,i,n)||f.supplyDefaults(e),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&U(l,n.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(L)),l.push(f.rehover,f.redrag),c.add(e,Z,[e,n.undoit],Z,[e,n.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",n.eventData),e}))}function G(e,t,r){var a=e._fullLayout;if(!t.axrange)return!1;for(var n in t)if("axrange"!==n&&t[n])return!1;for(var i in r.rangesAltered){var o=p.id2name(i),l=e.layout[o],s=a[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var d=a[p.id2name(c)];d.autorange=s.autorange,d.range=s.range.slice(),d._input.range=s.range.slice()}}return!0}function U(e,t){var r=t?function(e){var r=[],a=!0;for(var n in t){var i=p.getFromId(e,n);if(r.push(n),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(a=!1)}return p.draw(e,r,{skipTitle:a})}:function(e){return p.draw(e,"redraw")};e.push(b,T.doAutoRangeAndConstraints,r,T.drawData,T.finalDraw)}var W=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,q=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var r,a,n,i=e.layout,s=e._fullLayout,c=s._guiEditing,f=F(s._preGUI,c),h=Object.keys(t),g=p.list(e),m=o.extendDeepAll({},t),y={};for(V(t),h=Object.keys(t),a=0;a<h.length;a++)if(0===h[a].indexOf("allaxes")){for(n=0;n<g.length;n++){var v=g[n]._id.substr(1),x=-1!==v.indexOf("scene")?v+".":"",b=h[a].replace("allaxes",x+g[n]._name);t[b]||(t[b]=t[h[a]])}delete t[h[a]]}var _=A.layoutFlags(),T={},S={};function L(e,r){if(Array.isArray(e))e.forEach((function(e){L(e,r)}));else if(!(e in t)&&!k.hasParent(t,e)){var a=f(i,e);e in S||(S[e]=N(a.get())),void 0!==r&&a.set(r)}}var C,I={};function D(e){var t=p.name2id(e.split(".")[0]);return I[t]=1,t}for(var O in t){if(k.hasParent(t,O))throw new Error("cannot set "+O+" and a parent attribute simultaneously");for(var z=f(i,O),P=t[O],E=z.parts.length-1;E>0&&"string"!=typeof z.parts[E];)E--;var j=z.parts[E],R=z.parts[E-1]+"."+j,B=z.parts.slice(0,E).join("."),H=l(e.layout,B).get(),Z=l(s,B).get(),G=z.get();if(void 0!==P){T[O]=P,S[O]="reverse"===j?P:N(G);var U=u.getLayoutValObject(s,z.parts);if(U&&U.impliedEdits&&null!==P)for(var X in U.impliedEdits)L(o.relativeAttr(O,X),U.impliedEdits[X]);if(-1!==["width","height"].indexOf(O))if(P){L("autosize",null);var K="height"===O?"width":"height";L(K,s[K])}else s[O]=e._initialAutoSize[O];else if("autosize"===O)L("width",P?null:s.width),L("height",P?null:s.height);else if(R.match(W))D(R),l(s,B+"._inputRange").set(null);else if(R.match(q)){D(R),l(s,B+"._inputRange").set(null);var Q=l(s,B).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else R.match(Y)&&l(s,B+"._inputDomain").set(null);if("type"===j){C=H;var $="linear"===Z.type&&"log"===P,ee="log"===Z.type&&"linear"===P;if($||ee){if(C&&C.range)if(Z.autorange)$&&(C.range=C.range[1]>C.range[0]?[1,2]:[2,1]);else{var te=C.range[0],re=C.range[1];$?(te<=0&&re<=0&&L(B+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),L(B+".range[0]",Math.log(te)/Math.LN10),L(B+".range[1]",Math.log(re)/Math.LN10)):(L(B+".range[0]",Math.pow(10,te)),L(B+".range[1]",Math.pow(10,re)))}else L(B+".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"],d.getComponentMethod("annotations","convertCoords")(e,Z,P,L),d.getComponentMethod("images","convertCoords")(e,Z,P,L)}else L(B+".autorange",!0),L(B+".range",null);l(s,B+"._inputRange").set(null)}else if(j.match(M)){var ae=l(s,O).get(),ne=(P||{}).type;ne&&"-"!==ne||(ne="linear"),d.getComponentMethod("annotations","convertCoords")(e,ae,ne,L),d.getComponentMethod("images","convertCoords")(e,ae,ne,L)}var ie=w.containerArrayMatch(O);if(ie){r=ie.array,a=ie.index;var oe=ie.property,le=U||{editType:"calc"};""!==a&&""===oe&&(w.isAddVal(P)?S[O]=null:w.isRemoveVal(P)?S[O]=(l(i,r).get()||[])[a]:o.warn("unrecognized full object value",t)),A.update(_,le),y[r]||(y[r]={});var se=y[r][a];se||(se=y[r][a]={}),se[oe]=P,delete t[O]}else"reverse"===j?(H.range?H.range.reverse():(L(B+".autorange",!0),H.range=[1,0]),Z.autorange?_.calc=!0:_.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===O&&("lasso"===P||"select"===P)&&"lasso"!==G&&"select"!==G||s._has("gl2d")?_.plot=!0:U?A.update(_,U):_.calc=!0,z.set(P))}}for(r in y){w.applyContainerArrayChanges(e,f(i,r),y[r],_,f)||(_.plot=!0)}for(var ce in I){var de=(C=p.getFromId(e,ce))&&C._constraintGroup;if(de)for(var ue in _.calc=!0,de)I[ue]||(p.getFromId(e,ue)._constraintShrinkable=!0)}return(J(e)||t.height||t.width)&&(_.plot=!0),(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:I,undoit:S,redoit:T,eventData:m}}function J(e){var t=e._fullLayout,r=t.width,a=t.height;return e.layout.autosize&&f.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==a}function K(e,r,a,n){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);o.isPlainObject(r)||(r={}),o.isPlainObject(a)||(a={}),Object.keys(r).length&&(e.changed=!0),Object.keys(a).length&&(e.changed=!0);var i=k.coerceTraceIndices(e,n),l=H(e,o.extendFlat({},r),i),s=l.flags,d=X(e,o.extendFlat({},a)),u=d.flags;(s.calc||u.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&k.clearAxisTypes(e,i,a);var h=[];u.layoutReplot?h.push(T.layoutReplot):s.fullReplot?h.push(t.plot):(h.push(f.previousPromises),G(e,u,d)||f.supplyDefaults(e),s.style&&h.push(T.doTraceStyle),(s.colorbars||u.colorbars)&&h.push(T.doColorBars),u.legend&&h.push(T.doLegend),u.layoutstyle&&h.push(T.layoutStyles),u.axrange&&U(h,d.rangesAltered),u.ticks&&h.push(T.doTicksRelayout),u.modebar&&h.push(T.doModeBar),u.camera&&h.push(T.doCamera),h.push(L)),h.push(f.rehover,f.redrag),c.add(e,K,[e,l.undoit,d.undoit,l.traces],K,[e,l.redoit,d.redoit,l.traces]);var p=o.syncOrAsync(h,e);return p&&p.then||(p=Promise.resolve(e)),p.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:d.eventData}),e}))}function Q(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ee=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function te(e,t){for(var r=0;r<t.length;r++){var a=t[r],n=e.match(a.pattern);if(n)return{head:n[1],attr:a.attr}}}function re(e,t){var r=l(t,e).get();if(void 0!==r)return r;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),void 0!==(r=l(t,a.join(".")+".uirevision").get()))return r;return t.uirevision}function ae(e,t){for(var r=0;r<t.length;r++)if(t[r]._fullInput.uid===e)return r;return-1}function ne(e,t,r){for(var a=0;a<t.length;a++)if(t[a].uid===e)return a;return!t[r]||t[r].uid?-1:r}function ie(e,t){var r=o.isPlainObject(e),a=Array.isArray(e);return r||a?(r&&o.isPlainObject(t)||a&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function oe(e,t,r,a){var n,i,s,c=a.getValObject,d=a.flags,u=a.immutable,f=a.inArray,h=a.arrayIndex;function p(){var e=n.editType;f&&-1!==e.indexOf("arraydraw")?o.pushUnique(d.arrays[f],h):(A.update(d,n),"none"!==e&&d.nChanges++,a.transition&&n.anim&&d.nChangesAnim++,(W.test(s)||q.test(s))&&(d.rangesAltered[r[0]]=1),Y.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(d.newDataRevision=1))}function g(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(d.calc&&!a.transition)return;var m=e[i],y=t[i],v=r.concat(i);if(s=v.join("."),"_"!==i.charAt(0)&&"function"!=typeof m&&m!==y){if(("tick0"===i||"dtick"===i)&&"geo"!==r[0]){var x=t.tickmode;if("auto"===x||"array"===x||!x)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(n=c(v))&&(!n._compareAsJSON||JSON.stringify(m)!==JSON.stringify(y))){var b,_=n.valType,w=g(n),k=Array.isArray(m),T=Array.isArray(y);if(k&&T){var M="_input_"+i,S=e[M],L=t[M];if(Array.isArray(S)&&S===L)continue}if(void 0===y)w&&k?d.calc=!0:p();else if(n._isLinkedToArray){var C=[],I=!1;f||(d.arrays[i]=C);var D=Math.min(m.length,y.length),O=Math.max(m.length,y.length);if(D!==O){if("arraydraw"!==n.editType){p();continue}I=!0}for(b=0;b<D;b++)oe(m[b],y[b],v.concat(b),o.extendFlat({inArray:i,arrayIndex:b},a));if(I)for(b=D;b<O;b++)C.push(b)}else!_&&o.isPlainObject(m)?oe(m,y,v,a):w?k&&T?(u&&(d.calc=!0),(u||a.newDataRevision)&&p()):k!==T?d.calc=!0:p():k&&T&&m.length===y.length&&String(m)===String(y)||p()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!=typeof t[i]){if(g(n=c(r.concat(i)))&&Array.isArray(t[i]))return void(d.calc=!0);p()}}function le(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!o.equalDomRects(r,t._lastBBox)){var a=t._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),t._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),t._lastBBox=r}}function se(e){var t=a.select(e),r=e._fullLayout;if(r._calcInverseTransform=le,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};a.selectAll("defs").each((function(){this.id&&(n[this.id.split("-")[1]]=1)})),r._uid=o.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var l=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=l.append("g").classed("imagelayer",!0),r._shapeUpperLayer=l.append("g").classed("shapelayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}t.animate=function(e,t,r){if(e=o.getGraphDiv(e),!o.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 animating it. For more details, see https://plotly.com/javascript/animations/");var a=e._transitionData;a._frameQueue||(a._frameQueue=[]);var n=(r=f.supplyAnimationDefaults(r)).transition,i=r.frame;function l(e){return Array.isArray(n)?e>=n.length?n[0]:n[e]:n}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===a._frameWaitingCnt&&(a._frameWaitingCnt=0),new Promise((function(i,d){function u(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var t=a._currentFrame=a._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,a._lastFrameAt=Date.now(),a._timeToNext=t.frameOpts.duration,f.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function h(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var t=function(){a._animationRaf=window.requestAnimationFrame(t),Date.now()-a._lastFrameAt>a._timeToNext&&u()};t()}var p,g,m=0;function y(e){return Array.isArray(n)?m>=n.length?e.transitionOpts=n[m]:e.transitionOpts=n[0]:e.transitionOpts=n,m++,e}var v=[],x=null==t,b=Array.isArray(t);if(!x&&!b&&o.isPlainObject(t))v.push({type:"object",data:y(o.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p<a._frames.length;p++)(g=a._frames[p])&&(x||String(g.group)===String(t))&&v.push({type:"byname",name:String(g.name),data:y({name:g.name})});else if(b)for(p=0;p<t.length;p++){var _=t[p];-1!==["number","string"].indexOf(typeof _)?(_=String(_),v.push({type:"byname",name:_,data:y({name:_})})):o.isPlainObject(_)&&v.push({type:"object",data:y(o.extendFlat({},_))})}for(p=0;p<v.length;p++)if("byname"===(g=v[p]).type&&!a._frameHash[g.data.name])return o.warn('animate failure: frame not found: "'+g.data.name+'"'),void d();-1!==["next","immediate"].indexOf(r.mode)&&function(){if(0!==a._frameQueue.length){for(;a._frameQueue.length;){var t=a._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===r.direction&&v.reverse();var w=e._fullLayout._currentFrame;if(w&&r.fromcurrent){var T=-1;for(p=0;p<v.length;p++)if("byname"===(g=v[p]).type&&g.name===w){T=p;break}if(T>0&&T<v.length-1){var A=[];for(p=0;p<v.length;p++)g=v[p],("byname"!==v[p].type||p>T)&&A.push(g);v=A}}v.length>0?function(t){if(0!==t.length){for(var n=0;n<t.length;n++){var o;o="byname"===t[n].type?f.computeFrame(e,t[n].name):t[n].data;var u=s(n),p=l(n);p.duration=Math.min(p.duration,u.duration);var g={frame:o,name:t[n].name,frameOpts:u,transitionOpts:p};n===t.length-1&&(g.onComplete=c(i,2),g.onInterrupt=d),a._frameQueue.push(g)}"immediate"===r.mode&&(a._lastFrameAt=-1/0),a._animationRaf||h()}}(v):(e.emit("plotly_animated"),i())}))},t.addFrames=function(e,t,r){if(e=o.getGraphDiv(e),null==t)return Promise.resolve();if(!o.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,s=e._transitionData._frames,d=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+2*t.length,h=[],p={};for(a=t.length-1;a>=0;a--)if(o.isPlainObject(t[a])){var g=t[a].name,m=(d[g]||p[g]||{}).name,y=t[a].name,v=d[m]||p[m];m&&y&&"number"==typeof y&&v&&S<5&&(S++,o.warn('addFrames: overwriting frame "'+(d[m]||p[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p[g]={name:g},h.push({frame:f.supplyFrameDefaults(t[a]),index:r&&void 0!==r[a]&&null!==r[a]?r[a]:u+a})}h.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var x=[],b=[],_=s.length;for(a=h.length-1;a>=0;a--){if("number"==typeof(n=h[a].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;d[n.name="frame "+e._transitionData._counter++];);if(d[n.name]){for(i=0;i<s.length&&(s[i]||{}).name!==n.name;i++);x.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(h[a].index,_)),x.push({type:"insert",index:l,value:n}),b.unshift({type:"delete",index:l}),_++}var w=f.modifyFrames,k=f.modifyFrames,T=[e,b],A=[e,x];return c&&c.add(e,w,T,k,A),f.modifyFrames(e,x)},t.deleteFrames=function(e,t){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var r,a,n=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],r=0;r<n.length;r++)t.push(r);for((t=t.slice()).sort(),r=t.length-1;r>=0;r--)a=t[r],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var s=f.modifyFrames,d=f.modifyFrames,u=[e,l],h=[e,i];return c&&c.add(e,s,u,d,h),f.modifyFrames(e,i)},t.addTraces=function e(r,a,n){r=o.getGraphDiv(r);var i,l,s=[],d=t.deleteTraces,u=e,f=[r,s],h=[r,a];for(function(e,t,r){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),a=0;a<t.length;a++)if("object"!=typeof(n=t[a])||Array.isArray(n)||null===n)throw new Error("all values in traces array must be non-array objects");if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&r.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(r,a,n),Array.isArray(a)||(a=[a]),a=a.map((function(e){return o.extendFlat({},e)})),k.cleanData(a),i=0;i<a.length;i++)r.data.push(a[i]);for(i=0;i<a.length;i++)s.push(-a.length+i);if(void 0===n)return l=t.redraw(r),c.add(r,d,f,u,h),l;Array.isArray(n)||(n=[n]);try{P(r,s,n)}catch(e){throw r.data.splice(r.data.length-a.length,a.length),e}return c.startSequence(r),c.add(r,d,f,u,h),l=t.moveTraces(r,s,n),c.stopSequence(r),l},t.deleteTraces=function e(r,a){r=o.getGraphDiv(r);var n,i,l=[],s=t.addTraces,d=e,u=[r,l,a],f=[r,a];if(void 0===a)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(a)||(a=[a]),z(r,a,"indices"),(a=O(a,r.data.length-1)).sort(o.sorterDes),n=0;n<a.length;n+=1)i=r.data.splice(a[n],1)[0],l.push(i);var h=t.redraw(r);return c.add(r,s,u,d,f),h},t.extendTraces=function e(r,a,n,i){function l(e,t,r){var a,n;if(o.isTypedArray(e))if(r<0){var i=new e.constructor(0),l=j(e,t);r<0?(a=l,n=i):(a=i,n=l)}else if(a=new e.constructor(r),n=new e.constructor(e.length+t.length-r),r===t.length)a.set(t),n.set(e);else if(r<t.length){var s=t.length-r;a.set(t.subarray(s)),n.set(e),n.set(t.subarray(0,s),e.length)}else{var c=r-t.length,d=e.length-c;a.set(e.subarray(d)),a.set(t,c),n.set(e.subarray(0,d))}else a=e.concat(t),n=r>=0&&r<a.length?a.splice(0,a.length-r):[];return[a,n]}var s=E(r=o.getGraphDiv(r),a,n,i,l),d=t.redraw(r),u=[r,s.update,n,s.maxPoints];return c.add(r,t.prependTraces,u,e,arguments),d},t.moveTraces=function e(r,a,n){var i,l=[],s=[],d=e,u=e,f=[r=o.getGraphDiv(r),n,a],h=[r,a,n];if(P(r,a,n),a=Array.isArray(a)?a:[a],void 0===n)for(n=[],i=0;i<a.length;i++)n.push(-a.length+i);for(n=Array.isArray(n)?n:[n],a=O(a,r.data.length-1),n=O(n,r.data.length-1),i=0;i<r.data.length;i++)-1===a.indexOf(i)&&l.push(r.data[i]);for(i=0;i<a.length;i++)s.push({newIndex:n[i],trace:r.data[a[i]]});for(s.sort((function(e,t){return e.newIndex-t.newIndex})),i=0;i<s.length;i+=1)l.splice(s[i].newIndex,0,s[i].trace);r.data=l;var p=t.redraw(r);return c.add(r,d,f,u,h),p},t.prependTraces=function e(r,a,n,i){function l(e,t,r){var a,n;if(o.isTypedArray(e))if(r<=0){var i=new e.constructor(0),l=j(t,e);r<0?(a=l,n=i):(a=i,n=l)}else if(a=new e.constructor(r),n=new e.constructor(e.length+t.length-r),r===t.length)a.set(t),n.set(e);else if(r<t.length){var s=t.length-r;a.set(t.subarray(0,s)),n.set(t.subarray(s)),n.set(e,s)}else{var c=r-t.length;a.set(t),a.set(e.subarray(0,c),t.length),n.set(e.subarray(c))}else a=t.concat(e),n=r>=0&&r<a.length?a.splice(r,a.length):[];return[a,n]}var s=E(r=o.getGraphDiv(r),a,n,i,l),d=t.redraw(r),u=[r,s.update,n,s.maxPoints];return c.add(r,t.extendTraces,u,e,arguments),d},t.newPlot=function(e,r,a,n){return e=o.getGraphDiv(e),f.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),f.purge(e),t.plot(e,r,a,n)},t.plot=function(e,r,n,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(r)){var c=r;r=c.data,n=c.layout,i=c.config,l=c.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[r,n,i]))return Promise.reject();r||n||o.isPlotDiv(e)||o.warn("Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.",e),D(e,i),n||(n={}),a.select(e).classed("js-plotly-plot",!0),g.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=0===(e.data||[]).length&&Array.isArray(r);Array.isArray(r)&&(k.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),e.layout&&!u||(e.layout=k.cleanLayout(n)),f.supplyDefaults(e);var m=e._fullLayout,v=m._has("cartesian");if(!m._has("polar")&&r&&r[0]&&r[0].r)return o.log("Legacy polar charts are deprecated!"),function(e,t,r){var n=a.select(e).selectAll(".plot-container").data([0]);n.enter().insert("div",":first-child").classed("plot-container plotly",!0);var i=n.selectAll(".svg-container").data([0]);i.enter().append("div").classed("svg-container",!0).style("position","relative"),i.html(""),t&&(e.data=t);r&&(e.layout=r);h.manager.fillLayout(e),i.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=h.manager.framework(e),e.framework({data:e.data,layout:e.layout},i.node()),e.framework.setUndoPoint();var l=e.framework.svg(),s=1,c=e._fullLayout.title?e._fullLayout.title.text:"";""!==c&&c||(s=0);var d=function(){this.call(x.convertToTspans,e)},u=l.select(".title-group text").call(d);if(e._context.edits.titleText){var p=o._(e,"Click to enter Plot title");c&&c!==p||(s=.2,u.attr({"data-unformatted":p}).text(p).style({opacity:s}).on("mouseover.opacity",(function(){a.select(this).transition().duration(100).style("opacity",1)})).on("mouseout.opacity",(function(){a.select(this).transition().duration(1e3).style("opacity",0)})));var g=function(){this.call(x.makeEditable,{gd:e}).on("edit",(function(t){e.framework({layout:{title:{text:t}}}),this.text(t).call(d),this.call(g)})).on("cancel",(function(){var e=this.attr("data-unformatted");this.text(e).call(d)}))};u.call(g)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),f.addLinks(e),Promise.resolve()}(e,r,n);m._replotting=!0,(u||m._shouldCreateBgLayer)&&(se(e),m._shouldCreateBgLayer&&delete m._shouldCreateBgLayer),e.framework!==se&&(e.framework=se,se(e)),g.initGradients(e),u&&p.saveShowSpikeInitial(e);var b=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;b&&f.doCalcdata(e);for(var _=0;_<e.calcdata.length;_++)e.calcdata[_][0].trace=e._fullData[_];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||f.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var w=o.extendFlat({},m._size),A=0;function M(){if(f.clearAutoMarginIds(e),T.drawMarginPushers(e),p.allowAutoMargin(e),m._has("pie"))for(var t=e._fullData,r=0;r<t.length;r++){var a=t[r];"pie"===a.type&&a.automargin&&f.allowAutoMargin(e,"pie."+a.uid+".automargin")}return f.doAutoMargin(e),f.previousPromises(e)}function S(){e._transitioning||(T.doAutoRangeAndConstraints(e),u&&p.saveRangeInitial(e),d.getComponentMethod("rangeslider","calcAutorange")(e))}var C=[f.previousPromises,function(){if(l)return t.addFrames(e,l)},function t(){for(var r=m._basePlotModules,a=0;a<r.length;a++)r[a].drawFramework&&r[a].drawFramework(e);if(!m._glcanvas&&m._has("gl")&&(m._glcanvas=m._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),m._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"})),m._glcanvas){m._glcanvas.attr("width",m.width).attr("height",m.height);var n=m._glcanvas.data()[0].regl;if(n&&(Math.floor(m.width)!==n._gl.drawingBufferWidth||Math.floor(m.height)!==n._gl.drawingBufferHeight)){var i="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!A)return o.log(i+" Clearing graph and plotting again."),f.cleanPlot([],{},e._fullData,m),f.supplyDefaults(e),m=e._fullLayout,f.doCalcdata(e),A++,t();o.error(i)}}return"h"===m.modebar.orientation?m._modebardiv.style("height",null).style("width","100%"):m._modebardiv.style("width",null).style("height",m.height+"px"),f.previousPromises(e)},M,function(){if(f.didMarginChange(w,m._size))return o.syncOrAsync([M,T.layoutStyles],e)}];v&&C.push((function(){if(b)return o.syncOrAsync([d.getComponentMethod("shapes","calcAutorange"),d.getComponentMethod("annotations","calcAutorange"),S],e);S()})),C.push(T.layoutStyles),v&&C.push((function(){return p.draw(e,u?"":"redraw")}),(function(e){e._fullLayout._insideTickLabelsAutorange&&Z(e,e._fullLayout._insideTickLabelsAutorange).then((function(){e._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(T.drawData,T.finalDraw,y,f.addLinks,f.rehover,f.redrag,f.doAutoMargin,(function(e){e._fullLayout._insideTickLabelsAutorange&&u&&p.saveRangeInitial(e,!0)}),f.previousPromises);var I=o.syncOrAsync(C,e);return I&&I.then||(I=Promise.resolve()),I.then((function(){return L(e),e}))},t.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},r=e._fullData||[];return f.cleanPlot([],{},r,t),f.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,r,a,n){var i,s;e=o.getGraphDiv(e),k.clearPromiseQueue(e);var c=e._fullData,h=e._fullLayout;if(o.isPlotDiv(e)&&c&&h){if(o.isPlainObject(r)){var p=r;r=p.data,a=p.layout,n=p.config,i=p.frames}var g=!1;if(n){var m=o.extendDeep({},e._context);e._context=void 0,D(e,n),g=function e(t,r){var a;for(a in t)if("_"!==a.charAt(0)){var n=t[a],i=r[a];if(n!==i)if(o.isPlainObject(n)&&o.isPlainObject(i)){if(e(n,i))return!0}else{if(!Array.isArray(n)||!Array.isArray(i))return!0;if(n.length!==i.length)return!0;for(var l=0;l<n.length;l++)if(n[l]!==i[l]){if(!o.isPlainObject(n[l])||!o.isPlainObject(i[l]))return!0;if(e(n[l],i[l]))return!0}}}}(m,e._context)}e.data=r||[],k.cleanData(e.data),e.layout=a||{},k.cleanLayout(e.layout),function(e,t,r,a){var n,i,s,c,d,u,f,h,p=a._preGUI,g=[],m={};for(n in p){if(d=te(n,$)){if(i=d.attr||d.head+".uirevision",(c=(s=l(a,i).get())&&re(i,t))&&c===s&&(null===(u=p[n])&&(u=void 0),ie(h=(f=l(t,n)).get(),u))){void 0===h&&"autorange"===n.substr(n.length-9)&&g.push(n.substr(0,n.length-10)),f.set(N(l(a,n).get()));continue}}else o.warn("unrecognized GUI edit: "+n);delete p[n],"range["===n.substr(n.length-8,6)&&(m[n.substr(0,n.length-9)]=1)}for(var y=0;y<g.length;y++){var v=g[y];if(m[v]){var x=l(t,v).get();x&&delete x.autorange}}var b=a._tracePreGUI;for(var _ in b){var w,k=b[_],T=null;for(n in k){if(!T){var A=ae(_,r);if(A<0){delete b[_];break}var M=ne(_,e,(w=r[A]._fullInput).index);if(M<0){delete b[_];break}T=e[M]}if(d=te(n,ee)){if(d.attr?c=(s=l(a,d.attr).get())&&re(d.attr,t):(s=w.uirevision,void 0===(c=T.uirevision)&&(c=t.uirevision)),c&&c===s&&(null===(u=k[n])&&(u=void 0),ie(h=(f=l(T,n)).get(),u))){f.set(N(l(w,n).get()));continue}}else o.warn("unrecognized GUI edit: "+n+" in trace uid "+_);delete k[n]}}}(e.data,e.layout,c,h),f.supplyDefaults(e,{skipUpdateCalc:!0});var y=e._fullData,v=e._fullLayout,x=void 0===v.datarevision,b=v.transition,_=function(e,t,r,a,n){var i=A.layoutFlags();function o(e){return u.getLayoutValObject(r,e)}i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,oe(t,r,[],{getValObject:o,flags:i,immutable:a,transition:n,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0);n&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some");return i}(e,h,v,x,b),w=_.newDataRevision,M=function(e,t,r,a,n,i){var o=t.length===r.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l,s,c=A.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var d={getValObject:function(e){var t=u.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t},flags:c,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(l=0;l<t.length;l++)if(r[l]){if(s=r[l]._fullInput,f.hasMakesDataTransform(s)&&(s=r[l]),h[s.uid])continue;h[s.uid]=1,oe(t[l]._fullInput,s,[],d)}(c.calc||c.plot)&&(c.fullReplot=!0);n&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&o?"all":"some");return c}(e,c,y,x,b,w);if(J(e)&&(_.layoutReplot=!0),M.calc||_.calc){e.calcdata=void 0;for(var S=Object.getOwnPropertyNames(v),C=0;C<S.length;C++){var I=S[C],O=I.substring(0,5);if("xaxis"===O||"yaxis"===O){var z=v[I]._emptyCategories;z&&z()}}}else f.supplyDefaultsUpdateCalc(e.calcdata,y);var P=[];if(i&&(e._transitionData={},f.createTransitionData(e),P.push((function(){return t.addFrames(e,i)}))),v.transition&&!g&&(M.anim||_.anim))_.ticks&&P.push(T.doTicksRelayout),f.doCalcdata(e),T.doAutoRangeAndConstraints(e),P.push((function(){return f.transitionFromReact(e,M,_,h)}));else if(M.fullReplot||_.layoutReplot||g)e._fullLayout._skipDefaults=!0,P.push(t.plot);else{for(var E in _.arrays){var j=_.arrays[E];if(j.length){var R=d.getComponentMethod(E,"drawOne");if(R!==o.noop)for(var F=0;F<j.length;F++)R(e,j[F]);else{var B=d.getComponentMethod(E,"draw");if(B===o.noop)throw new Error("cannot draw components: "+E);B(e)}}}P.push(f.previousPromises),M.style&&P.push(T.doTraceStyle),(M.colorbars||_.colorbars)&&P.push(T.doColorBars),_.legend&&P.push(T.doLegend),_.layoutstyle&&P.push(T.layoutStyles),_.axrange&&U(P),_.ticks&&P.push(T.doTicksRelayout),_.modebar&&P.push(T.doModeBar),_.camera&&P.push(T.doCamera),P.push(L)}P.push(f.rehover,f.redrag),(s=o.syncOrAsync(P,e))&&s.then||(s=Promise.resolve(e))}else s=t.newPlot(e,r,a,n);return s.then((function(){return e.emit("plotly_react",{data:r,layout:a}),e}))},t.redraw=function(e){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return k.cleanData(e.data),k.cleanLayout(e.layout),e.calcdata=void 0,t.plot(e).then((function(){return e.emit("plotly_redraw"),e}))},t.relayout=Z,t.restyle=R,t.setPlotConfig=function(e){return o.extendFlat(_,e)},t.update=K,t._guiRelayout=Q(Z),t._guiRestyle=Q(R),t._guiUpdate=Q(K),t._storeDirectGUIEdit=function(e,t,r){for(var a in r){B(a,l(e,a).get(),r[a],t)}}},tos6:function(e,t,r){"use strict";var a=r("7CC7").dot,n=r("6AZA").BADNUM,i=e.exports={};i.tester=function(e){var t,r=e.slice(),a=r[0][0],i=a,o=r[0][1],l=o;for(r.push(r[0]),t=1;t<r.length;t++)a=Math.min(a,r[t][0]),i=Math.max(i,r[t][0]),o=Math.min(o,r[t][1]),l=Math.max(l,r[t][1]);var s,c=!1;5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(c=!0,s=function(e){return e[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(c=!0,s=function(e){return e[1]===r[0][1]}));var d=!0,u=r[0];for(t=1;t<r.length;t++)if(u[0]!==r[t][0]||u[1]!==r[t][1]){d=!1;break}return{xmin:a,xmax:i,ymin:o,ymax:l,pts:r,contains:c?function(e,t){var r=e[0],c=e[1];return!(r===n||r<a||r>i||c===n||c<o||c>l)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===n||s<a||s>i||c===n||c<o||c>l)return!1;var d,u,f,h,p,g=r.length,m=r[0][0],y=r[0][1],v=0;for(d=1;d<g;d++)if(u=m,f=y,m=r[d][0],y=r[d][1],!(s<(h=Math.min(u,m))||s>Math.max(u,m)||c>Math.max(f,y)))if(c<Math.min(f,y))s!==h&&v++;else{if(c===(p=m===u?c:f+(s-u)*(y-f)/(m-u)))return 1!==d||!t;c<=p&&s!==h&&v++}return v%2==1},isRect:c,degenerate:d}},i.isSegmentBent=function(e,t,r,n){var i,o,l,s=e[t],c=[e[r][0]-s[0],e[r][1]-s[1]],d=a(c,c),u=Math.sqrt(d),f=[-c[1]/u,c[0]/u];for(i=t+1;i<r;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=a(o,c))<0||l>d||Math.abs(a(o,f))>n)return!0;return!1},i.filter=function(e,t){var r=[e[0]],a=0,n=0;function o(o){e.push(o);var l=r.length,s=a;r.splice(n+1);for(var c=s+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,s,c+1,t))&&(r.push(e[c]),r.length<l-2&&(a=c,n=r.length-1),s=c)}e.length>1&&o(e.pop());return{addPt:o,raw:e,filtered:r}}},tt4z:function(e,t,r){"use strict";var a=r("u3HJ");t.name="treemap",t.plot=function(e,r,n,i){a.plotBasePlot(t.name,e,r,n,i)},t.clean=function(e,r,n,i){a.cleanBasePlot(t.name,e,r,n,i)}},u0qo:function(e,t,r){"use strict";var a=r("qTWP"),n=r("mEVB"),i=r("0wH6"),o=r("plED").templatedArray,l=r("RFwu");function s(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function c(e,t,r){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",r,"to",t,"("+t,"to",r+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}e.exports=o("annotation",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",role:"info",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:n({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:a.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:a.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",role:"style",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,role:"style",editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",editType:"calc+arraydraw",description:[c("x","left","right")].join(" ")},ay:{valType:"any",role:"info",editType:"calc+arraydraw",description:[c("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],role:"info",editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ax","left","right"),s("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],role:"info",editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",l.axisRefDescription("ay","bottom","top"),s("y")].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],role:"info",editType:"calc",description:["Sets the annotation's x coordinate axis.",l.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],role:"info",editType:"calc",description:["Sets the annotation's y coordinate axis.",l.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:n({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",role:"info",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",role:"info",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},u1sj:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("5azm"),o=r("Fyky"),l=r("u0qo");function s(e,t,r){function i(r,n){return a.coerce(e,t,l,r,n)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,r,i);for(var d=t.showarrow,u=["x","y"],f=[-10,-30],h={_fullLayout:r},p=0;p<2;p++){var g=u[p],m=n.coerceRef(e,t,h,g,"","paper");if("paper"!==m)n.getFromId(h,m)._annIndices.push(t._index);if(n.coercePosition(t,h,i,m,g,.5),d){var y="a"+g,v=n.coerceRef(e,t,h,y,"pixel",["pixel","paper"]);"pixel"!==v&&v!==m&&(v=t[y]="pixel");var x="pixel"===v?f[p]:.4;n.coercePosition(t,h,i,v,y,x)}i(g+"anchor"),i(g+"shift")}if(a.noneOrAll(e,t,["x","y"]),d&&a.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:n.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:n.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},u3HJ:function(e,t,r){"use strict";var a=r("bljh"),n=r("cOGN").timeFormatLocale,i=r("GbLo"),o=r("Nx4I"),l=r("aSHK"),s=r("plED"),c=r("/CZE"),d=r("0RW4"),u=r("6AZA").BADNUM,f=r("PBw4"),h=r("6Ue+").clearSelect,p=r("W2jp"),g=r("qcty"),m=r("rWI/").getModuleCalcData,y=c.relinkPrivateKeys,v=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=r("qHYo"),x.attributes.type.values=x.allTypes,x.fontAttrs=r("mEVB"),x.layoutAttributes=r("poX/"),x.fontWeight="normal";var b=x.transformsRegistry,_=r("Rpvy");x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(e){var t=(e=c.getGraphDiv(e))._fullLayout||{};if(!(!(t._has&&t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r))return new Promise((function(t){setTimeout((function(){o.getComponentMethod("annotations","draw")(e),o.getComponentMethod("legend","draw")(e),o.getComponentMethod("colorbar","draw")(e),t(x.previousPromises(e))}),300)}))},x.resize=function(e){var t;e=c.getGraphDiv(e);var r=new Promise((function(r,a){e&&!c.isHidden(e)||a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=r,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||c.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,o.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},x.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},x.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=c.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:d.defaultLine,"pointer-events":"all"}).each((function(){var e=a.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){x.sendDataToCloud(e)}));else{var a=window.location.pathname.split("/"),n=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},x.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=a.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return n.append("input").attr({type:"text",name:"data"}).node().value=x.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var w=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function T(e,t){var r=e._context.locale;r||(r="en-US");var a=!1,n={};function i(e){for(var r=!0,i=0;i<t.length;i++){var o=t[i];n[o]||(e[o]?n[o]=e[o]:r=!1)}r&&(a=!0)}for(var l=0;l<2;l++){for(var s=e._context.locales,c=0;c<2;c++){var d=(s[r]||{}).format;if(d&&(i(d),a))break;s=o.localeRegistry}var u=r.split("-")[0];if(a||u===r)break;r=u}return a||i(o.localeRegistry.en.format),n}function A(e,t){var r={_fullLayout:t},a="x"===e._id.charAt(0),n=e._mainAxis._anchorAxis,i="",o="",l="";if(n&&(l=n._mainAxis._id,i=a?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,c=0;c<s.length;c++){var d=s[c],u=a?e._id+d:d+e._id;o||(o=u);var h=f.getFromId(r,d);if(l&&h.overlaying===l){i=u;break}}}return i||o}function M(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r++){var a=t[r],n=a._module||b[a.type];if(n&&n.makesData)return!0}return!1}function S(e,t,r,a){for(var n=e.transforms,i=[e],o=0;o<n.length;o++){var l=n[o],s=b[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:r,fullLayout:a,transformIndex:o}))}return i}function L(e){return"string"==typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function C(e){var t=e.margin;if(!e._size){var r=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={})}x.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults)delete i._skipDefaults;else{var l,s=e._fullLayout={},d=e.layout||{},u=e._fullData||[],f=e._fullData=[],p=e.data||[],g=e.calcdata||[],m=e._context||{};e._transitionData||x.createTransitionData(e),s._dfltTitle={plot:v(e,"Click to enter Plot title"),x:v(e,"Click to enter X axis title"),y:v(e,"Click to enter Y axis title"),colorbar:v(e,"Click to enter Colorscale title"),annotation:v(e,"new text")},s._traceWord=v(e,"trace");var b=T(e,w);if(s._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var _=i.width,A=i.height;x.supplyLayoutGlobalDefaults(d,s,b),d.width||(s.width=_),d.height||(s.height=A),x.sanitizeMargins(s)}else{x.supplyLayoutGlobalDefaults(d,s,b);var M=!d.width||!d.height,S=s.autosize,L=m.autosizable;M&&(S||L)?x.plotAutoSize(e,d,s):M&&x.sanitizeMargins(s),!S&&M&&(d.width=s.width,d.height=s.height)}s._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:a.locale(e).numberFormat,timeFormat:n(e).utcFormat}}(b,s.separators),s._extraFormat=T(e,k),s._initialAutoSizeIsDone=!0,s._dataLength=p.length,s._modules=[],s._visibleModules=[],s._basePlotModules=[];var I=s._subplots=function(){var e,t,r=o.collectableSubplotTypes,a={};if(!r){r=[];var n=o.subplotsRegistry;for(var i in n){var l=n[i].attr;if(l&&(r.push(i),Array.isArray(l)))for(t=0;t<l.length;t++)c.pushUnique(r,l[t])}}for(e=0;e<r.length;e++)a[r[e]]=[];return a}(),D=s._splomAxes={x:{},y:{}},O=s._splomSubplots={};s._splomGridDflt={},s._scatterStackOpts={},s._firstScatter={},s._alignmentOpts={},s._colorAxes={},s._requestRangeslider={},s._traceUids=function(e,t){var r,a,n=t.length,i=[];for(r=0;r<e.length;r++){var o=e[r]._fullInput;o!==a&&i.push(o),a=o}var l=i.length,s=new Array(n),d={};function u(e,t){s[t]=e,d[e]=1}function f(e,t){if(e&&"string"==typeof e&&!d[e])return u(e,t),!0}for(r=0;r<n;r++){var h=t[r].uid;"number"==typeof h&&(h=String(h)),f(h,r)||(r<l&&f(i[r].uid,r)||u(c.randstr(d),r))}return s}(u,p),s._globalTransforms=(e._context||{}).globalTransforms,x.supplyDataDefaults(p,f,d,s);var z=Object.keys(D.x),P=Object.keys(D.y);if(z.length>1&&P.length>1){for(o.getComponentMethod("grid","sizeDefaults")(d,s),l=0;l<z.length;l++)c.pushUnique(I.xaxis,z[l]);for(l=0;l<P.length;l++)c.pushUnique(I.yaxis,P[l]);for(var E in O)c.pushUnique(I.cartesian,E)}if(s._has=x._hasPlotType.bind(s),u.length===f.length)for(l=0;l<f.length;l++)y(f[l],u[l]);x.supplyLayoutModuleDefaults(d,s,f,e._transitionData);var j=s._visibleModules,R=[];for(l=0;l<j.length;l++){var N=j[l].crossTraceDefaults;N&&c.pushUnique(R,N)}for(l=0;l<R.length;l++)R[l](f,s);s._hasOnlyLargeSploms=1===s._basePlotModules.length&&"splom"===s._basePlotModules[0].name&&z.length>15&&P.length>15&&0===s.shapes.length&&0===s.images.length,s._hasCartesian=s._has("cartesian"),s._hasGeo=s._has("geo"),s._hasGL3D=s._has("gl3d"),s._hasGL2D=s._has("gl2d"),s._hasTernary=s._has("ternary"),s._hasPie=s._has("pie"),x.linkSubplots(f,s,u,i),x.cleanPlot(f,s,u,i);var F=!(!i._has||!i._has("gl2d")),B=!(!s._has||!s._has("gl2d")),H=!(!i._has||!i._has("cartesian"))||F,V=!(!s._has||!s._has("cartesian"))||B;H&&!V?i._bgLayer.remove():V&&!H&&(s._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&h({_fullLayout:i}),function(e,t){var r,a=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var n=0;n<e.length;n++){var i=e[n];i.meta?a[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}a.length&&(r||(r=t._meta={}),r.data=a)}(f,s),y(s,i),o.getComponentMethod("colorscale","crossTraceDefaults")(f,s),s._preGUI||(s._preGUI={}),s._tracePreGUI||(s._tracePreGUI={});var Z,G=s._tracePreGUI,U={};for(Z in G)U[Z]="old";for(l=0;l<f.length;l++)U[Z=f[l]._fullInput.uid]||(G[Z]={}),U[Z]="new";for(Z in U)"old"===U[Z]&&delete G[Z];C(s),o.getComponentMethod("rangeslider","makeData")(s),r||g.length!==f.length||x.supplyDefaultsUpdateCalc(g,f)}},x.supplyDefaultsUpdateCalc=function(e,t){for(var r=0;r<t.length;r++){var a=t[r],n=(e[r]||[])[0];if(n&&n.trace){var i=n.trace;if(i._hasCalcTransform){var o,l,s,d=i._arrayAttrs;for(o=0;o<d.length;o++)l=d[o],s=c.nestedProperty(i,l).get().slice(),c.nestedProperty(a,l).set(s)}n.trace=a}}},x.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},x._hasPlotType=function(e){var t,r=this._basePlotModules||[];for(t=0;t<r.length;t++)if(r[t].name===e)return!0;var a=this._modules||[];for(t=0;t<a.length;t++){var n=a[t].name;if(n===e)return!0;var i=o.modules[n];if(i&&i.categories[e])return!0}return!1},x.cleanPlot=function(e,t,r,a){var n,i,o=a._basePlotModules||[];for(n=0;n<o.length;n++){var l=o[n];l.clean&&l.clean(e,t,r,a)}var s=a._has&&a._has("gl"),c=t._has&&t._has("gl");s&&!c&&void 0!==a._glcontainer&&(a._glcontainer.selectAll(".gl-canvas").remove(),a._glcontainer.selectAll(".no-webgl").remove(),a._glcanvas=null);var d=!!a._infolayer;e:for(n=0;n<r.length;n++){var u=r[n].uid;for(i=0;i<e.length;i++){if(u===e[i].uid)continue e}d&&a._infolayer.select(".cb"+u).remove()}},x.linkSubplots=function(e,t,r,a){var n,i,l=a._plots||{},s=t._plots={},d=t._subplots,u={_fullData:e,_fullLayout:t},h=d.cartesian.concat(d.gl2d||[]);for(n=0;n<h.length;n++){var p,g=h[n],m=l[g],y=f.getFromId(u,g,"x"),v=f.getFromId(u,g,"y");for(m?p=s[g]=m:(p=s[g]={}).id=g,y._counterAxes.push(v._id),v._counterAxes.push(y._id),y._subplotsWith.push(g),v._subplotsWith.push(g),p.xaxis=y,p.yaxis=v,p._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var x=e[i];if(x.xaxis===p.xaxis._id&&x.yaxis===p.yaxis._id&&!1===x.cliponaxis){p._hasClipOnAxisFalse=!0;break}}}var b,_=f.list(u,null,!0);for(n=0;n<_.length;n++){var w=null;(b=_[n]).overlaying&&(w=f.getFromId(u,b.overlaying))&&w.overlaying&&(b.overlaying=!1,w=null),b._mainAxis=w||b,w&&(b.domain=w.domain.slice()),b._anchorAxis="free"===b.anchor?null:f.getFromId(u,b.anchor)}for(n=0;n<_.length;n++)if((b=_[n])._counterAxes.sort(f.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=A(b,t),b._counterAxes.length&&(b.spikemode&&-1!==b.spikemode.indexOf("across")||b.automargin&&b.mirror&&"free"!==b.anchor||o.getComponentMethod("rangeslider","isVisible")(b))){var k=1,T=0;for(i=0;i<b._counterAxes.length;i++){var M=f.getFromId(u,b._counterAxes[i]);k=Math.min(k,M.domain[0]),T=Math.max(T,M.domain[1])}k<T&&(b._counterDomainMin=k,b._counterDomainMax=T)}},x.clearExpandedTraceDefaultColors=function(e){var t,r,a;for(r=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],l.crawl(e._module.attributes,(function(e,a,n,i){r[i]=a,r.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(r.join("."))}))),a=0;a<t.length;a++){c.nestedProperty(e,"_input."+t[a]).get()||c.nestedProperty(e,t[a]).set(null)}},x.supplyDataDefaults=function(e,t,r,a){var n,i,l,d=a._modules,u=a._visibleModules,f=a._basePlotModules,h=0,p=0;function g(e){t.push(e);var r=e._module;r&&(c.pushUnique(d,r),!0===e.visible&&c.pushUnique(u,r),c.pushUnique(f,e._module.basePlotModule),h++,!1!==e._input.visible&&p++)}a._transformModules=[];var m={},v=[],b=(r.template||{}).data||{},_=s.traceTemplater(b);for(n=0;n<e.length;n++){if(l=e[n],(i=_.newTrace(l)).uid=a._traceUids[n],x.supplyTraceDefaults(l,i,p,a,n),i.index=n,i._input=l,i._expandedIndex=h,i.transforms&&i.transforms.length)for(var w=!1!==l.visible&&!1===i.visible,k=S(i,t,r,a),T=0;T<k.length;T++){var A=k[T],M={_template:i._template,type:i.type,uid:i.uid+T};w&&!1===A.visible&&delete A.visible,x.supplyTraceDefaults(A,M,h,a,n),y(M,A),M.index=n,M._input=l,M._fullInput=i,M._expandedIndex=h,M._expandedInput=A,g(M)}else i._fullInput=i,i._expandedInput=i,g(i);o.traceIs(i,"carpetAxis")&&(m[i.carpet]=i),o.traceIs(i,"carpetDependent")&&v.push(n)}for(n=0;n<v.length;n++)if((i=t[v[n]]).visible){var L=m[i.carpet];i._carpet=L,L&&L.visible?(i.xaxis=L.xaxis,i.yaxis=L.yaxis):i.visible=!1}},x.supplyAnimationDefaults=function(e){var t;e=e||{};var r={};function a(t,a){return c.coerce(e||{},r,p,t,a)}if(a("mode"),a("direction"),a("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],t=0;t<e.frame.length;t++)r.frame[t]=x.supplyAnimationFrameDefaults(e.frame[t]||{});else r.frame=x.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],t=0;t<e.transition.length;t++)r.transition[t]=x.supplyAnimationTransitionDefaults(e.transition[t]||{});else r.transition=x.supplyAnimationTransitionDefaults(e.transition||{});return r},x.supplyAnimationFrameDefaults=function(e){var t={};function r(r,a){return c.coerce(e||{},t,p.frame,r,a)}return r("duration"),r("redraw"),t},x.supplyAnimationTransitionDefaults=function(e){var t={};function r(r,a){return c.coerce(e||{},t,p.transition,r,a)}return r("duration"),r("easing"),t},x.supplyFrameDefaults=function(e){var t={};function r(r,a){return c.coerce(e,t,g,r,a)}return r("group"),r("name"),r("traces"),r("baseframe"),r("data"),r("layout"),t},x.supplyTraceDefaults=function(e,t,r,a,n){var i,l=a.colorway||d.defaults,s=l[r%l.length];function u(r,a){return c.coerce(e,t,x.attributes,r,a)}var f=u("visible");u("type"),u("name",a._traceWord+" "+n),u("uirevision",a.uirevision);var h=x.getModule(t);if(t._module=h,h){var p=h.basePlotModule,g=p.attr,m=p.attributes;if(g&&m){var y=a._subplots,v="";if(f||"gl2d"!==p.name){if(Array.isArray(g))for(i=0;i<g.length;i++){var b=g[i],_=c.coerce(e,t,m,b);y[b]&&c.pushUnique(y[b],_),v+=_}else v=c.coerce(e,t,m,g);y[p.name]&&c.pushUnique(y[p.name],v)}}}return f&&(u("customdata"),u("ids"),u("meta"),o.traceIs(t,"showLegend")?(c.coerce(e,t,h.attributes.showlegend?h.attributes:x.attributes,"showlegend"),u("legendgroup"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,h&&h.supplyDefaults(e,t,s,a),o.traceIs(t,"noOpacity")||u("opacity"),o.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),o.traceIs(t,"noHover")||(t.hovertemplate||c.coerceHoverinfo(e,t,a),"parcats"!==t.type&&o.getComponentMethod("fx","supplyDefaults")(e,t,s,a)),h&&h.selectPoints&&u("selectedpoints"),x.supplyTransformDefaults(e,t,a)),t},x.hasMakesDataTransform=M,x.supplyTransformDefaults=function(e,t,r){if(t._length||M(e)){var a=r._globalTransforms||[],n=r._transformModules||[];if(Array.isArray(e.transforms)||0!==a.length)for(var i=e.transforms||[],o=a.concat(i),l=t.transforms=[],s=0;s<o.length;s++){var d,u=o[s],f=u.type,h=b[f],p=!(u._module&&u._module===h),g=h&&"function"==typeof h.transform;h||c.warn("Unrecognized transform type "+f+"."),h&&h.supplyDefaults&&(p||g)?((d=h.supplyDefaults(u,t,r,e)).type=f,d._module=h,c.pushUnique(n,h)):d=c.extendFlat({},u),l.push(d)}}},x.supplyLayoutGlobalDefaults=function(e,t,r){function a(r,a){return c.coerce(e,t,x.layoutAttributes,r,a)}var n=e.template;c.isPlainObject(n)&&(t.template=n,t._template=n.layout,t._dataTemplate=n.data),a("autotypenumbers");var i=c.coerceFont(a,"font");a("title.text",t._dfltTitle.plot),c.coerceFont(a,"title.font",{family:i.family,size:Math.round(1.4*i.size),color:i.color}),a("title.xref"),a("title.yref"),a("title.x"),a("title.y"),a("title.xanchor"),a("title.yanchor"),a("title.pad.t"),a("title.pad.r"),a("title.pad.b"),a("title.pad.l"),a("uniformtext.mode")&&a("uniformtext.minsize"),a("autosize",!(e.width&&e.height)),a("width"),a("height"),a("margin.l"),a("margin.r"),a("margin.t"),a("margin.b"),a("margin.pad"),a("margin.autoexpand"),e.width&&e.height&&x.sanitizeMargins(t),o.getComponentMethod("grid","sizeDefaults")(e,t),a("paper_bgcolor"),a("separators",r.decimal+r.thousands),a("hidesources"),a("colorway"),a("datarevision");var l=a("uirevision");a("editrevision",l),a("selectionrevision",l),a("modebar.orientation"),a("modebar.bgcolor",d.addOpacity(t.paper_bgcolor,.5));var s=d.contrast(d.rgb(t.modebar.bgcolor));a("modebar.color",d.addOpacity(s,.3)),a("modebar.activecolor",d.addOpacity(s,.7)),a("modebar.uirevision",l),o.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,a),a("meta"),c.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),o.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),o.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,a)},x.plotAutoSize=function(e,t,r){var a,n,o=e._context||{},l=o.frameMargins,s=c.isPlotDiv(e);if(s&&e.emit("plotly_autosize"),o.fillFrame)a=window.innerWidth,n=window.innerHeight,document.body.style.overflow="hidden";else{var d=s?window.getComputedStyle(e):{};if(a=L(d.width)||L(d.maxWidth)||r.width,n=L(d.height)||L(d.maxHeight)||r.height,i(l)&&l>0){var u=1-2*l;a=Math.round(u*a),n=Math.round(u*n)}}var f=x.layoutAttributes.width.min,h=x.layoutAttributes.height.min;a<f&&(a=f),n<h&&(n=h);var p=!t.width&&Math.abs(r.width-a)>1,g=!t.height&&Math.abs(r.height-n)>1;(g||p)&&(p&&(r.width=a),g&&(r.height=n)),e._initialAutoSize||(e._initialAutoSize={width:a,height:n}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(e,t,r,a){var n,i,l,s=o.componentsRegistry,d=t._basePlotModules,u=o.subplotsRegistry.cartesian;for(n in s)(l=s[n]).includeBasePlot&&l.includeBasePlot(e,t);for(var f in d.length||d.push(u),t._has("cartesian")&&(o.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t)),t._subplots)t._subplots[f].sort(c.subplotSort);for(i=0;i<d.length;i++)(l=d[i]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r);var h=t._modules;for(i=0;i<h.length;i++)(l=h[i]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r);var p=t._transformModules;for(i=0;i<p.length;i++)(l=p[i]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r,a);for(n in s)(l=s[n]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r)},x.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.framework,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},x.style=function(e){var t,r=e._fullLayout._visibleModules,a=[];for(t=0;t<r.length;t++){var n=r[t];n.style&&c.pushUnique(a,n.style)}for(t=0;t<a.length;t++)a[t](e)},x.sanitizeMargins=function(e){if(e&&e.margin){var t,r=e.width,a=e.height,n=e.margin,i=r-(n.l+n.r),o=a-(n.t+n.b);i<0&&(t=(r-1)/(n.l+n.r),n.l=Math.floor(t*n.l),n.r=Math.floor(t*n.r)),o<0&&(t=(a-1)/(n.t+n.b),n.t=Math.floor(t*n.t),n.b=Math.floor(t*n.b))}},x.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};x.autoMargin=function(e,t,r){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=c.constrain(n-o.l-o.r,2,64),s=c.constrain(i-o.t-o.b,2,64),d=Math.max(0,n-l),u=Math.max(0,i-s),f=a._pushmargin,h=a._pushmarginIds;if(!1!==o.autoexpand){if(r){var p=r.pad;if(void 0===p&&(p=Math.min(12,o.l,o.r,o.t,o.b)),d){var g=(r.l+r.r)/d;g>1&&(r.l/=g,r.r/=g)}if(u){var m=(r.t+r.b)/u;m>1&&(r.t/=m,r.b/=m)}var y=void 0!==r.xl?r.xl:r.x,v=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;f[t]={l:{val:y,size:r.l+p},r:{val:v,size:r.r+p},b:{val:_,size:r.b+p},t:{val:b,size:r.t+p}},h[t]=1}else delete f[t],delete h[t];if(!a._replotting)return x.doAutoMargin(e)}},x.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,a=t.height;t._size||(t._size={}),C(t);var n=t._size,l=t.margin,s=c.extendFlat({},n),d=l.l,u=l.r,h=l.t,p=l.b,g=t._pushmargin,m=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var y in g)m[y]||delete g[y];for(var v in g.base={l:{val:0,size:d},r:{val:1,size:u},t:{val:1,size:h},b:{val:0,size:p}},g){var b=g[v].l||{},_=g[v].b||{},w=b.val,k=b.size,T=_.val,A=_.size;for(var M in g){if(i(k)&&g[M].r){var S=g[M].r.val,L=g[M].r.size;if(S>w){var I=(k*S+(L-r)*w)/(S-w),D=(L*(1-w)+(k-r)*(1-S))/(S-w);I+D>d+u&&(d=I,u=D)}}if(i(A)&&g[M].t){var O=g[M].t.val,z=g[M].t.size;if(O>T){var P=(A*O+(z-a)*T)/(O-T),E=(z*(1-T)+(A-a)*(1-O))/(O-T);P+E>p+h&&(p=P,h=E)}}}}}var j=c.constrain(r-l.l-l.r,2,64),R=c.constrain(a-l.t-l.b,2,64),N=Math.max(0,r-j),F=Math.max(0,a-R);if(N){var B=(d+u)/N;B>1&&(d/=B,u/=B)}if(F){var H=(p+h)/F;H>1&&(p/=H,h/=H)}if(n.l=Math.round(d),n.r=Math.round(u),n.t=Math.round(h),n.b=Math.round(p),n.p=Math.round(l.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!t._replotting&&x.didMarginChange(s,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(t._redrawFromAutoMarginCount<V)return o.call("plot",e);t._size=s,c.warn("Too many auto-margin redraws.")}!function(e){for(var t=f.list(e,"",!0),r=0;r<t.length;r++){var a=t[r]._hideOutOfRangeInsideTickLabels;a&&a()}}(e)};var I=["l","r","t","b","p","w","h"];function D(e,t,r){var a=!1;var n=[x.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return e.emit("plotly_transitioning",[]),new Promise((function(n){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){a=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return o.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,l=0;function s(){return i++,function(){l++,a||l!==i||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(n)}}r.runFn(s),setTimeout(s())}))}],i=c.syncOrAsync(n,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}x.didMarginChange=function(e,t){for(var r=0;r<I.length;r++){var a=I[r],n=e[a],o=t[a];if(!i(n)||Math.abs(o-n)>1)return!0}return!1},x.graphJson=function(e,t,r,a,n,i){(n&&t&&!e._fullData||n&&!t&&!e._fullLayout)&&x.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function d(e,t){if("function"==typeof e)return t?"_function_":null;if(c.isPlainObject(e)){var a,n={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0&&!c.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(a=e[i+"src"])&&a.indexOf(":")>0)return;n[i]=d(e[i],t)}else t&&(n[i]="_function")})),n}return Array.isArray(e)?e.map((function(e){return d(e,t)})):c.isTypedArray(e)?c.simpleMap(e,c.identity):c.isJSDate(e)?c.ms2DateTimeLocal(+e):e}var u={data:(o||[]).map((function(e){var r=d(e);return t&&delete r.fit,r}))};if(!t&&(u.layout=d(l),n)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return e.framework&&e.framework.isPolar&&(u=e.framework.getConfig()),s&&(u.frames=d(s)),i&&(u.config=d(e._context,!0)),"object"===a?u:JSON.stringify(u)},x.modifyFrames=function(e,t){var r,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r<t.length;r++)switch((a=t[r]).type){case"replace":n=a.value;var l=(i[a.index]||{}).name,s=n.name;i[a.index]=o[s]=n,s!==l&&(delete o[l],o[s]=n);break;case"insert":o[(n=a.value).name]=n,i.splice(a.index,0,n);break;case"delete":delete o[(n=i[a.index]).name],i.splice(a.index,1)}return Promise.resolve()},x.computeFrame=function(e,t){var r,a,n,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=o[t.toString()];if(!l)return!1;for(var s=[l],c=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===c.indexOf(l.name);)s.push(l),c.push(l.name);for(var d={};l=s.pop();)if(l.layout&&(d.layout=x.extendLayout(d.layout,l.layout)),l.data){if(d.data||(d.data=[]),!(a=l.traces))for(a=[],r=0;r<l.data.length;r++)a[r]=r;for(d.traces||(d.traces=[]),r=0;r<l.data.length;r++)null!=(n=a[r])&&(-1===(i=d.traces.indexOf(n))&&(i=d.data.length,d.traces[i]=n),d.data[i]=x.extendTrace(d.data[i],l.data[r]))}return d},x.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},r=e._transitionData._frames,a=0;a<r.length;a++){var n=r[a];n&&n.name&&(t[n.name]=n)}},x.extendObjectWithContainers=function(e,t,r){var a,n,i,o,l,s,d,u=c.extendDeepNoArrays({},t||{}),f=c.expandObjectPaths(u),h={};if(r&&r.length)for(i=0;i<r.length;i++)void 0===(n=(a=c.nestedProperty(f,r[i])).get())?c.nestedProperty(h,r[i]).set(null):(a.set(null),c.nestedProperty(h,r[i]).set(n));if(e=c.extendDeepNoArrays(e||{},f),r&&r.length)for(i=0;i<r.length;i++)if(s=c.nestedProperty(h,r[i]).get()){for(d=(l=c.nestedProperty(e,r[i])).get(),Array.isArray(d)||(d=[],l.set(d)),o=0;o<s.length;o++){var p=s[o];d[o]=null===p?null:x.extendObjectWithContainers(d[o],p)}l.set(d)}return e},x.dataArrayContainers=["transforms","dimensions"],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(e,t){return x.extendObjectWithContainers(e,t,x.dataArrayContainers)},x.extendLayout=function(e,t){return x.extendObjectWithContainers(e,t,x.layoutArrayContainers)},x.transition=function(e,t,r,a,n,i){var o={redraw:n.redraw},l={},s=[];return o.prepareFn=function(){for(var n=Array.isArray(t)?t.length:0,i=a.slice(0,n),o=0;o<i.length;o++){var d=i[o],u=e._fullData[d]._module;if(u){if(u.animatable){var f=u.basePlotModule.name;l[f]||(l[f]=[]),l[f].push(d)}e.data[i[o]]=x.extendTrace(e.data[i[o]],t[o])}}var h=c.expandObjectPaths(c.extendDeepNoArrays({},r)),p=/^[xy]axis[0-9]*$/;for(var g in h)p.test(g)&&delete h[g].range;x.extendLayout(e.layout,h),delete e.calcdata,x.supplyDefaults(e),x.doCalcdata(e);var m=c.expandObjectPaths(r);if(m){var y=e._fullLayout._plots;for(var v in y){var b=y[v],_=b.xaxis,w=b.yaxis,k=_.range.slice(),T=w.range.slice(),A=null,M=null,S=null,L=null;Array.isArray(m[_._name+".range"])?A=m[_._name+".range"].slice():Array.isArray((m[_._name]||{}).range)&&(A=m[_._name].range.slice()),Array.isArray(m[w._name+".range"])?M=m[w._name+".range"].slice():Array.isArray((m[w._name]||{}).range)&&(M=m[w._name].range.slice()),k&&A&&(_.r2l(k[0])!==_.r2l(A[0])||_.r2l(k[1])!==_.r2l(A[1]))&&(S={xr0:k,xr1:A}),T&&M&&(w.r2l(T[0])!==w.r2l(M[0])||w.r2l(T[1])!==w.r2l(M[1]))&&(L={yr0:T,yr1:M}),(S||L)&&s.push(c.extendFlat({plotinfo:b},S,L))}}return Promise.resolve()},o.runFn=function(t){var a,n,o=e._fullLayout._basePlotModules,d=s.length;if(r)for(n=0;n<o.length;n++)o[n].transitionAxes&&o[n].transitionAxes(e,s,i,t);for(var u in d?((a=c.extendFlat({},i)).duration=0,delete l.cartesian):a=i,l){var f=l[u];e._fullData[f[0]]._module.basePlotModule.plot(e,f,a,t)}},D(e,i,o)},x.transitionFromReact=function(e,t,r,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var e=n._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===r.anim&&(o.redraw=!0),e){var s=e[i],d=s.xaxis,u=s.yaxis,f=a[d._name].range.slice(),h=a[u._name].range.slice(),p=d.range.slice(),g=u.range.slice();d.setScale(),u.setScale();var m=null,y=null;d.r2l(f[0])===d.r2l(p[0])&&d.r2l(f[1])===d.r2l(p[1])||(m={xr0:f,xr1:p}),u.r2l(h[0])===u.r2l(g[0])&&u.r2l(h[1])===u.r2l(g[1])||(y={yr0:h,yr1:g}),(m||y)&&l.push(c.extendFlat({plotinfo:s},m,y))}return Promise.resolve()},o.runFn=function(r){for(var a,n,o,s=e._fullData,d=e._fullLayout._basePlotModules,u=[],f=0;f<s.length;f++)u.push(f);function h(){for(var t=0;t<d.length;t++)d[t].transitionAxes&&d[t].transitionAxes(e,l,a,r)}function p(){for(var t=0;t<d.length;t++)d[t].plot(e,o,n,r)}l.length&&t.anim?"traces first"===i.ordering?(a=c.extendFlat({},i,{duration:0}),o=u,n=i,setTimeout(h,i.duration),p()):(a=i,o=null,n=c.extendFlat({},i,{duration:0}),setTimeout(p,a.duration),h()):l.length?(a=i,h()):t.anim&&(o=u,n=i,p())},D(e,i,o)},x.doCalcdata=function(e,t){var r,a,n,i,s=f.list(e),d=e._fullData,h=e._fullLayout,p=new Array(d.length),g=(e.calcdata||[]).slice();for(e.calcdata=p,h._numBoxes=0,h._numViolins=0,h._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,h._piecolormap={},h._sunburstcolormap={},h._treemapcolormap={},h._funnelareacolormap={},n=0;n<d.length;n++)Array.isArray(t)&&-1===t.indexOf(n)&&(p[n]=g[n]);for(n=0;n<d.length;n++)(r=d[n])._arrayAttrs=l.findArrayAttributes(r),r._extremes={};var m=h._subplots.polar||[];for(n=0;n<m.length;n++)s.push(h[m[n]].radialaxis,h[m[n]].angularaxis);for(var y in h._colorAxes){var v=h[y];!1!==v.cauto&&(delete v.cmin,delete v.cmax)}var x=!1;function _(t){if(r=d[t],a=r._module,!0===r.visible&&r.transforms){if(a&&a.calc){var n=a.calc(e,r);n[0]&&n[0].t&&n[0].t._scene&&delete n[0].t._scene.dirty}for(i=0;i<r.transforms.length;i++){var o=r.transforms[i];(a=b[o.type])&&a.calcTransform&&(r._hasCalcTransform=!0,x=!0,a.calcTransform(e,r,o))}}}function w(t,n){if(r=d[t],!!(a=r._module).isContainer===n){var o=[];if(!0===r.visible&&0!==r._length){delete r._indexToPoints;var l=r.transforms||[];for(i=l.length-1;i>=0;i--)if(l[i].enabled){r._indexToPoints=l[i]._indexToPoints;break}a&&a.calc&&(o=a.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:u,y:u}]),o[0].t||(o[0].t={}),o[0].trace=r,p[t]=o}}for(z(s,d,h),n=0;n<d.length;n++)w(n,!0);for(n=0;n<d.length;n++)_(n);for(x&&z(s,d,h),n=0;n<d.length;n++)w(n,!0);for(n=0;n<d.length;n++)w(n,!1);P(e);var k=function(e,t){var r,a,n,i,l,s=[];function d(e,r,a){var n=r._id.charAt(0);if("histogram2dcontour"===e){var i=r._counterAxes[0],o=f.getFromId(t,i),l="x"===n||"x"===i&&"category"===o.type,s="y"===n||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||l&&e===a[t].length-1||s&&t===a.length-1?-1:("y"===n?t:e)-1}}return function(e,t){return"y"===n?t:e}}var u={min:function(e){return c.aggNums(Math.min,null,e)},max:function(e){return c.aggNums(Math.max,null,e)},sum:function(e){return c.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return c.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return c.mean(e)},median:function(e){return c.median(e)}};for(r=0;r<e.length;r++){var h=e[r];if("category"===h.type){var p=h.categoryorder.match(O);if(p){var g=p[1],m=p[2],y=h._id.charAt(0),v="x"===y,x=[];for(a=0;a<h._categories.length;a++)x.push([h._categories[a],[]]);for(a=0;a<h._traceIndices.length;a++){var b=h._traceIndices[a],_=t._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var k="splom"===w,T="scattergl"===w,A=t.calcdata[b];for(n=0;n<A.length;n++){var M,S,L=A[n];if(k){var C=_._axesDim[h._id];if(!v){var I=_._diag[C][0];I&&(h=t._fullLayout[f.id2name(I)])}var D=L.trace.dimensions[C].values;for(i=0;i<D.length;i++)for(M=h._categoriesMap[D[i]],l=0;l<L.trace.dimensions.length;l++)if(l!==C){var z=L.trace.dimensions[l];x[M][1].push(z.values[i])}}else if(T){for(i=0;i<L.t.x.length;i++)v?(M=L.t.x[i],S=L.t.y[i]):(M=L.t.y[i],S=L.t.x[i]),x[M][1].push(S);L.t&&L.t._scene&&delete L.t._scene.dirty}else if(L.hasOwnProperty("z")){S=L.z;var P=d(_.type,h,S);for(i=0;i<S.length;i++)for(l=0;l<S[i].length;l++)(M=P(l,i))+1&&x[M][1].push(S[i][l])}else for(void 0===(M=L.p)&&(M=L[y]),void 0===(S=L.s)&&(S=L.v),void 0===S&&(S=v?L.y:L.x),Array.isArray(S)||(S=void 0===S?[]:[S]),i=0;i<S.length;i++)x[M][1].push(S[i])}}}h._categoriesValue=x;var E=[];for(a=0;a<x.length;a++)E.push([x[a][0],u[g](x[a][1])]);E.sort((function(e,t){return e[1]-t[1]})),h._categoriesAggregatedValue=E,h._initialCategories=E.map((function(e){return e[0]})),"descending"===m&&h._initialCategories.reverse(),s=s.concat(h.sortByInitialCategories())}}}return s}(s,e);if(k.length){for(h._numBoxes=0,h._numViolins=0,n=0;n<k.length;n++)w(k[n],!0);for(n=0;n<k.length;n++)w(k[n],!1);P(e)}o.getComponentMethod("fx","calc")(e),o.getComponentMethod("errorbars","calc")(e)};var O=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(e,t,r){var a={};function n(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),a[e._id]=1}c.simpleMap(e,n);for(var i=r._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(r[f.id2name(l)])}function P(e){var t,r,a,n=e._fullLayout,i=n._visibleModules,o={};for(r=0;r<i.length;r++){var l=i[r],s=l.crossTraceCalc;if(s){var d=l.basePlotModule.name;o[d]?c.pushUnique(o[d],s):o[d]=[s]}}for(a in o){var u=o[a],f=n._subplots[a];if(Array.isArray(f))for(t=0;t<f.length;t++){var h=f[t],p="cartesian"===a?n._plots[h]:n[h];for(r=0;r<u.length;r++)u[r](e,p,h)}else for(r=0;r<u.length;r++)u[r](e)}}x.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},x.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(e,t,r,a){var n,i=t.traceHash,o={};for(n=0;n<r.length;n++){var l=r[n],s=l[0].trace;s.visible&&(o[s.type]=o[s.type]||[],o[s.type].push(l))}for(var d in i)if(!o[d]){var u=i[d][0];u[0].trace.visible=!1,o[d]=[u]}for(var f in o){var h=o[f];h[0][0].trace._module.plot(e,t,c.filterVisible(h),a)}t.traceHash=o},x.plotBasePlot=function(e,t,r,a,n){var i=o.getModule(e),l=m(t.calcdata,i)[0];i.plot(t,l,a,n)},x.cleanBasePlot=function(e,t,r,a,n){var i=n._has&&n._has(e),o=r._has&&r._has(e);i&&!o&&n["_"+e+"layer"].selectAll("g.trace").remove()}},u4aF:function(e,t,r){"use strict";var a=r("/CZE"),n=r("IJNW"),i=r("kn30");e.exports=function(e,t){n(e,t,(function(r,n){return a.coerce(e,t,i,r,n)}))}},uM7j:function(e,t,r){"use strict";e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},uvVx:function(e,t,r){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},v7ZX:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("g9E0"),o=r("A3kh"),l=r("yLjo"),s=r("2oy/").styleOne,c=r("I8wg"),d=r("+1bK"),u=r("aWIO"),f=r("4X2v").formatSliceLabel;e.exports=function(e,t,r,h,p){var g=p.width,m=p.height,y=p.viewX,v=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,k=p.handleSlicesExit,T=p.makeUpdateSliceInterpolator,A=p.makeUpdateTextInterpolator,M=p.prevEntry,S=e._fullLayout,L=t[0].trace,C=-1!==L.textposition.indexOf("left"),I=-1!==L.textposition.indexOf("right"),D=-1!==L.textposition.indexOf("bottom"),O=!D&&!L.marker.pad.t||D&&!L.marker.pad.b,z=l(r,[g,m],{packing:L.tiling.packing,squarifyratio:L.tiling.squarifyratio,flipX:L.tiling.flip.indexOf("x")>-1,flipY:L.tiling.flip.indexOf("y")>-1,pad:{inner:L.tiling.pad,top:L.marker.pad.t,left:L.marker.pad.l,right:L.marker.pad.r,bottom:L.marker.pad.b}}).descendants(),P=1/0,E=-1/0;z.forEach((function(e){var t=e.depth;t>=L._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(P=Math.min(P,t),E=Math.max(E,t))})),h=h.data(z,d.getPtId),L._maxVisibleLayers=isFinite(E)?E-P+1:0,h.enter().append("g").classed("slice",!0),k(h,!1,{},[g,m],x),h.order();var j=null;if(w&&M){var R=d.getPtId(M);h.each((function(e){null===j&&d.getPtId(e)===R&&(j={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var N=function(){return j||{x0:0,x1:g,y0:0,y1:m}},F=h;return w&&(F=F.transition().each("end",(function(){var t=a.select(this);d.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),F.each((function(l){var h=d.isHeader(l,L);l._hoverX=y(l.x1-L.marker.pad.r),l._hoverY=v(D?l.y1-L.marker.pad.b/2:l.y0+L.marker.pad.t/2);var p=a.select(this),k=n.ensureSingle(p,"path","surface",(function(e){e.style("pointer-events","all")}));w?k.transition().attrTween("d",(function(e){var t=T(e,!1,N(),[g,m]);return function(e){return x(t(e))}})):k.attr("d",x),p.call(u,r,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(d.setSliceCursor,e,{isTransitioning:e._transitioning}),k.call(s,l,L,{hovered:!1}),l.x0===l.x1||l.y0===l.y1?l._text="":l._text=h?O?"":d.getPtLabel(l)||"":f(l,r,L,t,S)||"";var M=n.ensureSingle(p,"g","slicetext"),z=n.ensureSingle(M,"text","",(function(e){e.attr("data-notex",1)})),P=n.ensureUniformFontSize(e,d.determineTextFont(L,l,S.font));z.text(l._text||" ").classed("slicetext",!0).attr("text-anchor",I?"end":C||h?"start":"middle").call(i.font,P).call(o.convertToTspans,e),l.textBB=i.bBox(z.node()),l.transform=b(l,{fontSize:P.size,isHeader:h}),l.transform.fontSize=P.size,w?z.transition().attrTween("transform",(function(e){var t=A(e,!1,N(),[g,m]);return function(e){return _(t(e))}})):z.attr("transform",_(l))})),j}},wAWO:function(e,t,r){"use strict";e.exports={percent:function(e,t){for(var r=e.length,a=100/t,n=0;n<r;n++)e[n]*=a},probability:function(e,t){for(var r=e.length,a=0;a<r;a++)e[a]/=t},density:function(e,t,r,a){var n=e.length;a=a||1;for(var i=0;i<n;i++)e[i]*=r[i]*a},"probability density":function(e,t,r,a){var n=e.length;a&&(t/=a);for(var i=0;i<n;i++)e[i]*=r[i]/t}}},wK8V:function(e,t,r){"use strict";var a=r("bljh"),n=r("u3HJ"),i=r("pcRN"),o=r("0RW4"),l=r("g9E0"),s=r("/CZE"),c=s.strScale,d=s.strTranslate,u=r("A3kh"),f=r("k6aH"),h=f.recordMinTextSize,p=f.clearMinTextSize,g=r("Gl7E").TEXTPAD,m=r("WeBh"),y=r("iJj1"),v=r("/CZE").isValidTextValue;function x(e,t,r){var n=r[0],o=n.trace,l=n.cx,c=n.cy;"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",(function(e){var r=t._fullLayout,d=t._fullData[o.index];if(!t._dragging&&!1!==r.hovermode){var u=d.hoverinfo;if(Array.isArray(u)&&(u=i.castHoverinfo({hoverinfo:[m.castOption(u,e.pts)],_module:o._module},r,0)),"all"===u&&(u="label+text+value+percent+name"),d.hovertemplate||"none"!==u&&"skip"!==u&&u){var f=e.rInscribed||0,h=l+e.pxmid[0]*(1-f),p=c+e.pxmid[1]*(1-f),g=r.separators,v=[];if(u&&-1!==u.indexOf("label")&&v.push(e.label),e.text=m.castOption(d.hovertext||d.text,e.pts),u&&-1!==u.indexOf("text")){var x=e.text;s.isValidTextValue(x)&&v.push(x)}e.value=e.v,e.valueLabel=m.formatPieValue(e.v,g),u&&-1!==u.indexOf("value")&&v.push(e.valueLabel),e.percent=e.v/n.vTotal,e.percentLabel=m.formatPiePercent(e.percent,g),u&&-1!==u.indexOf("percent")&&v.push(e.percentLabel);var b=d.hoverlabel,_=b.font;i.loneHover({trace:o,x0:h-f*n.r,x1:h+f*n.r,y:p,text:v.join("<br>"),name:d.hovertemplate||-1!==u.indexOf("name")?d.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:m.castOption(b.bgcolor,e.pts)||e.color,borderColor:m.castOption(b.bordercolor,e.pts),fontFamily:m.castOption(_.family,e.pts),fontSize:m.castOption(_.size,e.pts),fontColor:m.castOption(_.color,e.pts),nameLength:m.castOption(b.namelength,e.pts),textAlign:m.castOption(b.align,e.pts),hovertemplate:m.castOption(d.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[y(e,d)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[y(e,d)],event:a.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,n=t._fullData[o.index],l=a.select(this).datum();o._hasHoverEvent&&(e.originalEvent=a.event,t.emit("plotly_unhover",{points:[y(l,n)],event:a.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,n=t._fullData[o.index];t._dragging||!1===r.hovermode||(t._hoverdata=[y(e,n)],i.click(t,a.event))}))}function b(e,t,r){var a=m.castOption(e.insidetextfont.color,t.pts);!a&&e._input.textfont&&(a=m.castOption(e._input.textfont.color,t.pts));var n=m.castOption(e.insidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||r.family,i=m.castOption(e.insidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||r.size;return{color:a||o.contrast(t.color),family:n,size:i}}function _(e,t){for(var r,a,n=0;n<e.length;n++)if((a=(r=e[n][0]).trace).title.text){var i=a.title.text;a._meta&&(i=s.templateString(i,a._meta));var o=l.tester.append("text").attr("data-notex",1).text(i).call(l.font,a.title.font).call(u.convertToTspans,t),c=l.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(e,t,r){var a=r.r||t.rpx1,n=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-n,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,l=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,s=t.halfangle,c=t.midangle,d=r.trace.insidetextorientation,u="horizontal"===d,f="tangential"===d,h="radial"===d,p="auto"===d,g=[];if(!p){var m,y=function(r,n){if(function(e,t){var r=e.startangle,a=e.stopangle;return r>t&&t>a||r<t&&t<a}(t,r)){var l=Math.abs(r-t.startangle),s=Math.abs(r-t.stopangle),c=l<s?l:s;(i="tan"===n?T(e,a,o,c,0):k(e,a,o,c,Math.PI/2)).textPosAngle=r,g.push(i)}};if(u||f){for(m=4;m>=-4;m-=2)y(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)y(Math.PI*(m+1),"tan")}if(u||h){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(l||p||u){var v=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:n*a*2/v,rCenter:1-n,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(p||h)&&((i=k(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(p||f)&&((i=T(e,a,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var x=0,b=0,_=0;_<g.length;_++){var w=g[_].scale;if(b<w&&(b=w,x=_),!p&&b>=1)break}return g[x]}function k(e,t,r,a,n){t=Math.max(0,t-2*g);var i=e.width/e.height,o=S(i,a,t,r);return{scale:2*o/e.height,rCenter:A(i,o/t),rotate:M(n)}}function T(e,t,r,a,n){t=Math.max(0,t-2*g);var i=e.height/e.width,o=S(i,a,t,r);return{scale:2*o/e.width,rCenter:A(i,o/t),rotate:M(n+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function M(e){return(180/Math.PI*e+720)%180-90}function S(e,t,r,a){var n=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function L(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function C(e,t){var r=t.pxmid[0],a=t.pxmid[1],n=e.width/2,i=e.height/2;return r<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+r*r/(a*a)),outside:!0}}function I(e,t){var r,a,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=O(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+n)*e.r);var s,c,d=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),u=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(u+=d,o.x-=(1+n)*d,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?u*=2:-1!==i.title.position.indexOf("right")&&(u+=d,o.x+=(1+n)*d,l.tx-=e.titleBox.width/2),r=u/e.titleBox.width,a=D(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,a),tx:l.tx,ty:l.ty}}function D(e,t){var r=e.trace,a=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function O(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function z(e,t){for(var r=[],a=0;a<e.length;a++){var n=e[a][0],i=n.trace,o=i.domain,l=t.w*(o.x[1]-o.x[0]),s=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(s-=D(n,t));var c=l/2,d=s/2;"funnelarea"!==i.type||i.scalegroup||(d/=i.aspectratio),n.r=Math.min(c,d)/(1+O(i)),n.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,n.cy=t.t+t.h*(1-i.domain.y[0])-s/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(n.cy-=D(n,t)),i.scalegroup&&-1===r.indexOf(i.scalegroup)&&r.push(i.scalegroup)}!function(e,t){for(var r,a,n,i=0;i<t.length;i++){var o=1/0,l=t[i];for(a=0;a<e.length;a++)if(r=e[a][0],(n=r.trace).scalegroup===l){var s;if("pie"===n.type)s=r.r*r.r;else if("funnelarea"===n.type){var c,d;n.aspectratio>1?(c=r.r,d=c/n.aspectratio):(d=r.r,c=d*n.aspectratio),c*=(1+n.baseratio)/2,s=c*d}o=Math.min(o,s/r.vTotal)}for(a=0;a<e.length;a++)if(r=e[a][0],(n=r.trace).scalegroup===l){var u=o*r.vTotal;"funnelarea"===n.type&&(u/=(1+n.baseratio)/2,u/=n.aspectratio),r.r=Math.sqrt(u)}}}(e,r)}function P(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function E(e,t,r){var a=e._fullLayout,n=r.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&"none"!==o){var l,c=o.split("+"),d=function(e){return-1!==c.indexOf(e)},u=d("label"),f=d("text"),h=d("value"),p=d("percent"),g=a.separators;if(l=u?[t.label]:[],f){var y=m.getFirstFilled(n.text,t.pts);v(y)&&l.push(y)}h&&l.push(m.formatPieValue(t.v,g)),p&&l.push(m.formatPiePercent(t.v/r.vTotal,g)),t.text=l.join("<br>")}if(i){var x=s.castOption(n,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:m.formatPieValue(e.v,a.separators),percent:e.v/r.vTotal,percentLabel:m.formatPiePercent(e.v/r.vTotal,a.separators),color:e.color,text:e.text,customdata:s.castOption(n,e.i,"customdata")}}(t),_=m.getFirstFilled(n.text,t.pts);(v(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,n._meta||{})}else t.text=""}}function j(e,t){var r=e.rotate*Math.PI/180,a=Math.cos(r),n=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}e.exports={plot:function(e,t){var r=e._fullLayout,i=r._size;p("pie",r),_(t,e),z(t,i);var f=s.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var f=a.select(this),p=t[0],g=p.trace;!function(e){var t,r,a,n=e[0],i=n.r,o=n.trace,l=m.getRotationAngle(o.rotation),s=2*Math.PI/n.vTotal,c="px0",d="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;l+=s*e[t].v,s*=-1,c="px1",d="px0"}for(a=P(i,l),t=0;t<e.length;t++)(r=e[t]).hidden||(r[c]=a,r.startangle=l,l+=s*r.v/2,r.pxmid=P(i,l),r.midangle=l,l+=s*r.v/2,a=P(i,l),r.stopangle=l,r[d]=a,r.largeArc=r.v>n.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/n.vTotal,.5),r.ring=1-o.hole,r.rInscribed=L(r,n))}(t),f.attr("stroke-linejoin","round"),f.each((function(){var y=a.select(this).selectAll("g.slice").data(t);y.enter().append("g").classed("slice",!0),y.exit().remove();var v=[[[],[]],[[],[]]],_=!1;y.each((function(n,i){if(n.hidden)a.select(this).selectAll("path,g").remove();else{n.pointNumber=n.i,n.curveNumber=g.index,v[n.pxmid[1]<0?0:1][n.pxmid[0]<0?0:1].push(n);var o=p.cx,c=p.cy,d=a.select(this),f=d.selectAll("path.surface").data([n]);if(f.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),d.call(x,e,t),g.pull){var y=+m.castOption(g.pull,n.pts)||0;y>0&&(o+=y*n.pxmid[0],c+=y*n.pxmid[1])}n.cxFinal=o,n.cyFinal=c;var k=g.hole;if(n.v===p.vTotal){var T="M"+(o+n.px0[0])+","+(c+n.px0[1])+I(n.px0,n.pxmid,!0,1)+I(n.pxmid,n.px0,!0,1)+"Z";k?f.attr("d","M"+(o+k*n.px0[0])+","+(c+k*n.px0[1])+I(n.px0,n.pxmid,!1,k)+I(n.pxmid,n.px0,!1,k)+"Z"+T):f.attr("d",T)}else{var A=I(n.px0,n.px1,!0,1);if(k){var M=1-k;f.attr("d","M"+(o+k*n.px1[0])+","+(c+k*n.px1[1])+I(n.px1,n.px0,!1,k)+"l"+M*n.px0[0]+","+M*n.px0[1]+A+"Z")}else f.attr("d","M"+o+","+c+"l"+n.px0[0]+","+n.px0[1]+A+"Z")}E(e,n,p);var S=m.castOption(g.textposition,n.pts),L=d.selectAll("g.slicetext").data(n.text&&"none"!==S?[0]:[]);L.enter().append("g").classed("slicetext",!0),L.exit().remove(),L.each((function(){var d=s.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),f=s.ensureUniformFontSize(e,"outside"===S?function(e,t,r){var a=m.castOption(e.outsidetextfont.color,t.pts)||m.castOption(e.textfont.color,t.pts)||r.color,n=m.castOption(e.outsidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||r.family,i=m.castOption(e.outsidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||r.size;return{color:a,family:n,size:i}}(g,n,r.font):b(g,n,r.font));d.text(n.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,f).call(u.convertToTspans,e);var y,v=l.bBox(d.node());if("outside"===S)y=C(v,n);else if(y=w(v,n,p),"auto"===S&&y.scale<1){var x=s.ensureUniformFontSize(e,g.outsidetextfont);d.call(l.font,x),y=C(v=l.bBox(d.node()),n)}var k=y.textPosAngle,T=void 0===k?n.pxmid:P(p.r,k);if(y.targetX=o+T[0]*y.rCenter+(y.x||0),y.targetY=c+T[1]*y.rCenter+(y.y||0),j(y,v),y.outside){var A=y.targetY;n.yLabelMin=A-v.height/2,n.yLabelMid=A,n.yLabelMax=A+v.height/2,n.labelExtraX=0,n.labelExtraY=0,_=!0}y.fontSize=f.size,h(g.type,y,r),t[i].transform=y,d.attr("transform",s.getTextTransform(y))}))}function I(e,t,r,a){var i=a*(t[0]-e[0]),o=a*(t[1]-e[1]);return"a"+a*p.r+","+a*p.r+" 0 "+n.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var k=a.select(this).selectAll("g.titletext").data(g.title.text?[0]:[]);if(k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each((function(){var t,r=s.ensureSingle(a.select(this),"text","",(function(e){e.attr("data-notex",1)})),n=g.title.text;g._meta&&(n=s.templateString(n,g._meta)),r.text(n).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,g.title.font).call(u.convertToTspans,e),t="middle center"===g.title.position?function(e){var t=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/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(p):I(p,i),r.attr("transform",d(t.x,t.y)+c(Math.min(1,t.scale))+d(t.tx,t.ty))})),_&&function(e,t){var r,a,n,i,o,l,s,c,d,u,f,h,p;function g(e,t){return e.pxmid[1]-t.pxmid[1]}function y(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,r){r||(r={});var n,c,d,f,h=r.labelExtraY+(a?r.yLabelMax:r.yLabelMin),p=a?e.yLabelMin:e.yLabelMax,g=a?e.yLabelMax:e.yLabelMin,y=e.cyFinal+o(e.px0[1],e.px1[1]),v=h-p;if(v*s>0&&(e.labelExtraY=v),Array.isArray(t.pull))for(c=0;c<u.length;c++)(d=u[c])===e||(m.castOption(t.pull,e.pts)||0)>=(m.castOption(t.pull,d.pts)||0)||((e.pxmid[1]-d.pxmid[1])*s>0?(v=d.cyFinal+o(d.px0[1],d.px1[1])-p-e.labelExtraY)*s>0&&(e.labelExtraY+=v):(g+e.labelExtraY-y)*s>0&&(n=3*l*Math.abs(c-u.indexOf(e)),(f=d.cxFinal+i(d.px0[0],d.px1[0])+n-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=f)))}for(a=0;a<2;a++)for(n=a?g:y,o=a?Math.max:Math.min,s=a?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[a][r]).sort(n),d=e[1-a][r],u=d.concat(c),h=[],f=0;f<c.length;f++)void 0!==c[f].yLabelMid&&h.push(c[f]);for(p=!1,f=0;a&&f<d.length;f++)if(void 0!==d[f].yLabelMid){p=d[f];break}for(f=0;f<h.length;f++){var x=f&&h[f-1];p&&!f&&(x=p),v(h[f],x)}}}(v,g),function(e,t){e.each((function(e){var r=a.select(this);if(e.labelExtraX||e.labelExtraY){var n=r.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,n.attr("transform",s.getTextTransform(e.transform));var i=e.cxFinal+e.pxmid[0],l="M"+i+","+(e.cyFinal+e.pxmid[1]),c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var d=e.labelExtraX*e.pxmid[1]/e.pxmid[0],u=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(d)>Math.abs(u)?l+="l"+u*e.pxmid[0]/e.pxmid[1]+","+u+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+d+"v"+(u-d)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()}))}(y,g),_&&g.automargin){var T=l.bBox(f.node()),A=g.domain,M=i.w*(A.x[1]-A.x[0]),S=i.h*(A.y[1]-A.y[0]),L=(.5*M-p.r)/i.w,D=(.5*S-p.r)/i.h;n.autoMargin(e,"pie."+g.uid+".automargin",{xl:A.x[0]-L,xr:A.x[1]+L,yb:A.y[0]-D,yt:A.y[1]+D,l:Math.max(p.cx-p.r-T.left,0),r:Math.max(T.right-(p.cx+p.r),0),b:Math.max(T.bottom-(p.cy+p.r),0),t:Math.max(p.cy-p.r-T.top,0),pad:5})}}))}));setTimeout((function(){f.selectAll("tspan").each((function(){var e=a.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:E,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:I,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:j}},wX2h:function(e,t,r){"use strict";e.exports=r("xOBz")},wlgE:function(e,t,r){"use strict";var a=r("SFLx"),n=r("IVx0");e.exports={moduleType:"component",name:"colorscale",attributes:r("9Okp"),layoutAttributes:r("DdeV"),supplyLayoutDefaults:r("c5s0"),handleDefaults:r("QYPY"),crossTraceDefaults:r("Hbft"),calc:r("OqjQ"),scales:a.scales,defaultScale:a.defaultScale,getScale:a.get,isValidScale:a.isValid,hasColorscale:n.hasColorscale,extractOpts:n.extractOpts,extractScale:n.extractScale,flipScale:n.flipScale,makeColorScaleFunc:n.makeColorScaleFunc,makeColorScaleFuncFromTrace:n.makeColorScaleFuncFromTrace}},x5FY:function(e,t,r){"use strict";var a=r("bljh"),n=r("GbLo"),i=r("/CZE"),o=r("A3kh"),l=r("0RW4"),s=r("g9E0"),c=r("Nx4I"),d=r("BkK/").tickText,u=r("k6aH"),f=u.recordMinTextSize,h=u.clearMinTextSize,p=r("LfN2"),g=r("aDMI"),m=r("Gl7E"),y=r("+1rr"),v=y.text,x=y.textposition,b=r("xMdC").appendArrayPointValue,_=m.TEXTPAD;function w(e){return e.id}function k(e){if(e.ids)return w}function T(e,t){return e<t?1:-1}function A(e,t,r,a){var n;return!t.uniformtext.mode&&M(r)?(a&&(n=a()),e.transition().duration(r.duration).ease(r.easing).each("end",(function(){n&&n()})).each("interrupt",(function(){n&&n()}))):e}function M(e){return e&&e.duration>0}function S(e){return"auto"===e?0:e}function L(e,t){var r=Math.PI/180*t,a=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function C(e,t,r,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",d="end"===c,u="start"===c,f=((i.leftToRight||0)+1)/2,h=1-f,p=n.width,g=n.height,m=Math.abs(t-e),y=Math.abs(a-r),v=m>2*_&&y>2*_?_:0;m-=2*v,y-=2*v;var x=S(s);"auto"!==s||p<=m&&g<=y||!(p>m||g>y)||(p>y||g>m)&&p<g==m<y||(x+=90);var b=L(n,x),w=1;l&&(w=Math.min(1,m/b.x,y/b.y));var k=n.left*h+n.right*f,A=(n.top+n.bottom)/2,M=(e+_)*h+(t-_)*f,C=(r+a)/2,I=0,D=0;if(u||d){var O=(o?b.x:b.y)/2,z=o?T(e,t):T(r,a);o?u?(M=e+z*v,I=-z*O):(M=t-z*v,I=z*O):u?(C=r+z*v,D=-z*O):(C=a-z*v,D=z*O)}return{textX:k,textY:A,targetX:M,targetY:C,anchorX:I,anchorY:D,scale:w,rotate:x}}e.exports={plot:function(e,t,r,u,m,y){var w=t.xaxis,I=t.yaxis,D=e._fullLayout;m||(m={mode:D.barmode,norm:D.barmode,gap:D.bargap,groupgap:D.bargroupgap},h("bar",D));var O=i.makeTraceGroups(u,r,"trace bars").each((function(r){var c=a.select(this),u=r[0].trace,h="waterfall"===u.type,O="funnel"===u.type,z="bar"===u.type||O,P=0;h&&u.connector.visible&&"between"===u.connector.mode&&(P=u.connector.line.width/2);var E="h"===u.orientation,j=M(m),R=i.ensureSingle(c,"g","points"),N=k(u),F=R.selectAll("g.point").data(i.identity,N);F.enter().append("g").classed("point",!0),F.exit().remove(),F.each((function(c,h){var k,M,O=a.select(this),R=function(e,t,r,a){var n=[],i=[],o=a?t:r,l=a?r:t;return n[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),a?[n,i]:[i,n]}(c,w,I,E),N=R[0][0],F=R[0][1],B=R[1][0],H=R[1][1],V=0==(E?F-N:H-B);if(V&&z&&g.getLineWidth(u,c)&&(V=!1),V||(V=!(n(N)&&n(F)&&n(B)&&n(H))),c.isBlank=V,V&&(E?F=N:H=B),P&&!V&&(E?(N-=T(N,F)*P,F+=T(N,F)*P):(B-=T(B,H)*P,H+=T(B,H)*P)),"waterfall"===u.type){if(!V){var Z=u[c.dir].marker;k=Z.line.width,M=Z.color}}else k=g.getLineWidth(u,c),M=c.mc||u.marker.color;function G(e){var t=a.round(k/2%1,2);return 0===m.gap&&0===m.groupgap?a.round(Math.round(e)-t,2):e}if(!e._context.staticPlot){var U=l.opacity(M)<1||k>.01?G:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?G(e):e>t?Math.ceil(e):Math.floor(e)};N=U(N,F,E),F=U(F,N,E),B=U(B,H,!E),H=U(H,B,!E)}var W=A(i.ensureSingle(O,"path"),D,m,y);if(W.style("vector-effect","non-scaling-stroke").attr("d",isNaN((F-N)*(H-B))||V&&e._context.staticPlot?"M0,0Z":"M"+N+","+B+"V"+H+"H"+F+"V"+B+"Z").call(s.setClipUrl,t.layerClipId,e),!D.uniformtext.mode&&j){var q=s.makePointStyleFns(u);s.singlePointStyle(c,W,u,q,e)}!function(e,t,r,a,n,l,c,u,h,m,y){var w,k=t.xaxis,M=t.yaxis,I=e._fullLayout;function D(t,r,a){return i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,a).call(o.convertToTspans,e)}var O=a[0].trace,z="h"===O.orientation,P=function(e,t,r,a,n){var o,l=t[0].trace;o=l.texttemplate?function(e,t,r,a,n){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,u,f,h="waterfall"===o.type,p="funnel"===o.type;"h"===o.orientation?(s="y",c=n,u="x",f=a):(s="x",c=a,u="y",f=n);function g(e){return d(f,+e,!0).text}var m=t[r],y={};y.label=m.p,y.labelLabel=y[s+"Label"]=(v=m.p,d(c,v,!0).text);var v;var x=i.castOption(o,m.i,"text");(0===x||x)&&(y.text=x);y.value=m.s,y.valueLabel=y[u+"Label"]=g(m.s);var _={};b(_,o,m.i),h&&(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));p&&(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");w&&(y.customdata=w);return i.texttemplateString(l,y,e._d3locale,_,y,o._meta||{})}(e,t,r,a,n):l.textinfo?function(e,t,r,a){var n=e[0].trace,o="h"===n.orientation,l="waterfall"===n.type,s="funnel"===n.type;function c(e){return d(o?r:a,+e,!0).text}var u,f=n.textinfo,h=e[t],p=f.split("+"),g=[],m=function(e){return-1!==p.indexOf(e)};m("label")&&g.push((y=e[t].p,d(o?a:r,y,!0).text));var y;m("text")&&(0===(u=i.castOption(n,h.i,"text"))||u)&&g.push(u);if(l){var v=+h.rawS||h.s,x=h.v,b=x-v;m("initial")&&g.push(c(b)),m("delta")&&g.push(c(v)),m("final")&&g.push(c(x))}if(s){m("value")&&g.push(c(h.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var w=_>1;m("percent initial")&&(u=i.formatPercent(h.begR),w&&(u+=" of initial"),g.push(u)),m("percent previous")&&(u=i.formatPercent(h.difR),w&&(u+=" of previous"),g.push(u)),m("percent total")&&(u=i.formatPercent(h.sumR),w&&(u+=" of total"),g.push(u))}return g.join("<br>")}(t,r,a,n):g.getValue(l.text,r);return g.coerceString(v,o)}(I,a,n,k,M);w=function(e,t){var r=g.getValue(e.textposition,t);return g.coerceEnumerated(x,r)}(O,n);var E="stack"===m.mode||"relative"===m.mode,j=a[n],R=!E||j._outmost;if(!P||"none"===w||(j.isBlank||l===c||u===h)&&("auto"===w||"inside"===w))return void r.select("text").remove();var N=I.font,F=p.getBarColor(a[n],O),B=p.getInsideTextFont(O,n,N,F),H=p.getOutsideTextFont(O,n,N),V=r.datum();z?"log"===k.type&&V.s0<=0&&(l=k.range[0]<k.range[1]?0:k._length):"log"===M.type&&V.s0<=0&&(u=M.range[0]<M.range[1]?M._length:0);var Z,G,U,W,q,Y=Math.abs(c-l)-2*_,X=Math.abs(h-u)-2*_;"outside"===w&&(R||j.hasB||(w="inside"));if("auto"===w)if(R){w="inside",q=i.ensureUniformFontSize(e,B),Z=D(r,P,q),G=s.bBox(Z.node()),U=G.width,W=G.height;var J=U<=Y&&W<=X,K=U<=X&&W<=Y,Q=z?Y>=U*(X/W):X>=W*(Y/U);U>0&&W>0&&(J||K||Q)?w="inside":(w="outside",Z.remove(),Z=null)}else w="inside";if(!Z){q=i.ensureUniformFontSize(e,"outside"===w?H:B);var $=(Z=D(r,P,q)).attr("transform");if(Z.attr("transform",""),G=s.bBox(Z.node()),U=G.width,W=G.height,Z.attr("transform",$),U<=0||W<=0)return void Z.remove()}var ee,te,re=O.textangle;"outside"===w?(te="both"===O.constraintext||"outside"===O.constraintext,ee=function(e,t,r,a,n,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,d=n.width,u=n.height,f=Math.abs(t-e),h=Math.abs(a-r);o=l?h>2*_?_:0:f>2*_?_:0;var p=1;s&&(p=l?Math.min(1,h/u):Math.min(1,f/d));var g=S(c),m=L(n,g),y=(l?m.x:m.y)/2,v=(n.left+n.right)/2,x=(n.top+n.bottom)/2,b=(e+t)/2,w=(r+a)/2,k=0,A=0,M=l?T(t,e):T(r,a);l?(b=t-M*o,k=M*y):(w=a+M*o,A=-M*y);return{textX:v,textY:x,targetX:b,targetY:w,anchorX:k,anchorY:A,scale:p,rotate:g}}(l,c,u,h,G,{isHorizontal:z,constrained:te,angle:re})):(te="both"===O.constraintext||"inside"===O.constraintext,ee=C(l,c,u,h,G,{isHorizontal:z,constrained:te,angle:re,anchor:O.insidetextanchor}));ee.fontSize=q.size,f(O.type,ee,I),j.transform=ee,A(Z,I,m,y).attr("transform",i.getTextTransform(ee))}(e,t,O,r,h,N,F,B,H,m,y),t.layerClipId&&s.hideOutsideRangePoint(c,O.select("text"),w,I,u.xcalendar,u.ycalendar)}));var B=!1===u.cliponaxis;s.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,O,t,m)},toMoveInsideBar:C}},x8K2:function(e,t,r){"use strict";e.exports={moduleType:"trace",name:"treemap",basePlotModule:r("tt4z"),categories:[],animatable:!0,attributes:r("l9FN"),layoutAttributes:r("Po4l"),supplyDefaults:r("Kicf"),supplyLayoutDefaults:r("SqgR"),calc:r("/Hui").calc,crossTraceCalc:r("/Hui").crossTraceCalc,plot:r("V9qq"),style:r("2oy/").style,colorbar:r("88/Y"),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The treemap sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}},xDfF:function(e,t,r){"use strict";var a=r("bljh");e.exports=function(e){a.select(e).selectAll(".hm image").style("opacity",(function(e){return e.trace.opacity}))}},xJcw:function(e,t,r){"use strict";var a=r("GbLo"),n=r("WSjQ"),i=r("Nx4I"),o=r("/CZE"),l=r("u3HJ"),s=r("PBw4"),c=r("0RW4"),d=s.cleanId,u=s.getFromTrace,f=i.traceIs;function h(e,t){var r=e[t],a=t.charAt(0);r&&"paper"!==r&&(e[t]=d(r,a,!0))}function p(e){function t(t,r){var a=e[t],n=e.title&&e.title[r];a&&!n&&(e.title||(e.title={}),e.title[r]=e[t],delete e[t])}e&&("string"!=typeof e.title&&"number"!=typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function g(e){if(!o.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function m(e,t,r,a){if(r&&!a)return e;if(a&&!r)return t;if(!e.trim())return t;if(!t.trim())return e;var n,i=Math.min(e.length,t.length);for(n=0;n<i&&e.charAt(n)===t.charAt(n);n++);return e.substr(0,n).trim()}function y(e){var t="middle",r="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?r="left":-1!==e.indexOf("right")&&(r="right")),t+" "+r}function v(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}t.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var r,a;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 i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,u=(l.subplotsRegistry.ternary||{}).attrRegex,f=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(r=0;r<g.length;r++){var m=g[r];if(i&&i.test(m)){var y=e[m];y.anchor&&"free"!==y.anchor&&(y.anchor=d(y.anchor)),y.overlaying&&(y.overlaying=d(y.overlaying)),y.type||(y.isdate?y.type="date":y.islog?y.type="log":!1===y.isdate&&!1===y.islog&&(y.type="linear")),"withzero"!==y.autorange&&"tozero"!==y.autorange||(y.autorange=!0,y.rangemode="tozero"),delete y.islog,delete y.isdate,delete y.categories,v(y,"domain")&&delete y.domain,void 0!==y.autotick&&(void 0===y.tickmode&&(y.tickmode=y.autotick?"auto":"linear"),delete y.autotick),p(y)}else if(s&&s.test(m)){p(e[m].radialaxis)}else if(u&&u.test(m)){var x=e[m];p(x.aaxis),p(x.baxis),p(x.caxis)}else if(f&&f.test(m)){var b=e[m],_=b.cameraposition;if(Array.isArray(_)&&4===_[0].length){var w=_[0],k=_[1],T=_[2],A=n([],w),M=[];for(a=0;a<3;++a)M[a]=k[a]+T*A[2+4*a];b.camera={eye:{x:M[0],y:M[1],z:M[2]},center:{x:k[0],y:k[1],z:k[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}p(b.xaxis),p(b.yaxis),p(b.zaxis)}}var S=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<S;r++){var L=e.annotations[r];o.isPlainObject(L)&&(L.ref&&("paper"===L.ref?(L.xref="paper",L.yref="paper"):"data"===L.ref&&(L.xref="x",L.yref="y"),delete L.ref),h(L,"xref"),h(L,"yref"))}var C=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<C;r++){var I=e.shapes[r];o.isPlainObject(I)&&(h(I,"xref"),h(I,"yref"))}var D=Array.isArray(e.images)?e.images.length:0;for(r=0;r<D;r++){var O=e.images[r];o.isPlainObject(O)&&(h(O,"xref"),h(O,"yref"))}var z=e.legend;return z&&(z.x>3?(z.x=1.02,z.xanchor="left"):z.x<-2&&(z.x=-.02,z.xanchor="right"),z.y>3?(z.y=1.02,z.yanchor="bottom"):z.y<-2&&(z.y=-.02,z.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var r=0;r<e.length;r++){var a,n=e[r];if("histogramy"===n.type&&"xbins"in n&&!("ybins"in n)&&(n.ybins=n.xbins,delete n.xbins),n.error_y&&"opacity"in n.error_y){var s=c.defaults,u=n.error_y.color||(f(n,"bar")?c.defaultLine:s[r%s.length]);n.error_y.color=c.addOpacity(c.rgb(u),c.opacity(u)*n.error_y.opacity),delete n.error_y.opacity}if("bardir"in n&&("h"!==n.bardir||!f(n,"bar")&&"histogram"!==n.type.substr(0,9)||(n.orientation="h",t.swapXYData(n)),delete n.bardir),"histogramy"===n.type&&t.swapXYData(n),"histogramx"!==n.type&&"histogramy"!==n.type||(n.type="histogram"),"scl"in n&&!("colorscale"in n)&&(n.colorscale=n.scl,delete n.scl),"reversescl"in n&&!("reversescale"in n)&&(n.reversescale=n.reversescl,delete n.reversescl),n.xaxis&&(n.xaxis=d(n.xaxis,"x")),n.yaxis&&(n.yaxis=d(n.yaxis,"y")),f(n,"gl3d")&&n.scene&&(n.scene=l.subplotsRegistry.gl3d.cleanId(n.scene)),!f(n,"pie-like")&&!f(n,"bar-like"))if(Array.isArray(n.textposition))for(a=0;a<n.textposition.length;a++)n.textposition[a]=y(n.textposition[a]);else n.textposition&&(n.textposition=y(n.textposition));var h=i.getModule(n);if(h&&h.colorbar){var x=h.colorbar.container,b=x?n[x]:n;b&&b.colorscale&&("YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd"))}if("surface"===n.type&&o.isPlainObject(n.contours)){var _=["x","y","z"];for(a=0;a<_.length;a++){var w=n.contours[_[a]];o.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===n.type||"ohlc"===n.type){var k=!1!==(n.increasing||{}).showlegend,T=!1!==(n.decreasing||{}).showlegend,A=g(n.increasing),M=g(n.decreasing);if(!1!==A&&!1!==M){var S=m(A,M,k,T);S&&(n.name=S)}else!A&&!M||n.name||(n.name=A||M)}if(Array.isArray(n.transforms)){var L=n.transforms;for(a=0;a<L.length;a++){var C=L[a];if(o.isPlainObject(C))switch(C.type){case"filter":C.filtersrc&&(C.target=C.filtersrc,delete C.filtersrc),C.calendar&&(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case"groupby":if(C.styles=C.styles||C.style,C.styles&&!Array.isArray(C.styles)){var I=C.styles,D=Object.keys(I);C.styles=[];for(var O=0;O<D.length;O++)C.styles.push({target:D[O],value:I[D[O]]})}}}}v(n,"line")&&delete n.line,"marker"in n&&(v(n.marker,"line")&&delete n.marker.line,v(n,"marker")&&delete n.marker),c.clean(n),n.autobinx&&(delete n.autobinx,delete n.xbins),n.autobiny&&(delete n.autobiny,delete n.ybins),p(n),n.colorbar&&p(n.colorbar),n.marker&&n.marker.colorbar&&p(n.marker.colorbar),n.line&&n.line.colorbar&&p(n.line.colorbar),n.aaxis&&p(n.aaxis),n.baxis&&p(n.baxis)}},t.swapXYData=function(e){var t;if(o.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var r=e.error_y,a="copy_ystyle"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(e,["error_?.copy_ystyle"]),a&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var n=e.hoverinfo.split("+");for(t=0;t<n.length;t++)"x"===n[t]?n[t]="y":"y"===n[t]&&(n[t]="x");e.hoverinfo=n.join("+")}},t.coerceTraceIndices=function(e,t){if(a(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++)o.isIndex(t[n],e.data.length)?r.push(t[n]):o.warn("trace index (",t[n],") is not a number or is out of bounds");return r}return t},t.manageArrayContainers=function(e,t,r){var n=e.obj,i=e.parts,l=i.length,s=i[l-1],c=a(s);if(c&&null===t){var d=i.slice(0,l-1).join(".");o.nestedProperty(n,d).get().splice(s,1)}else c&&void 0===e.get()?(void 0===e.get()&&(r[e.astr]=null),e.set(t)):e.set(t)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(e){var t=e.search(x);if(t>0)return e.substr(0,t)}t.hasParent=function(e,t){for(var r=b(t);r;){if(r in e)return!0;r=b(r)}return!1};var _=["x","y","z"];t.clearAxisTypes=function(e,t,r){for(var a=0;a<t.length;a++)for(var n=e._fullData[a],i=0;i<3;i++){var l=u(e,n,_[i]);if(l&&"log"!==l.type){var s=l._name,c=l._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==r[c])continue;s=c+"."+s}var d=s+".type";void 0===r[s]&&void 0===r[d]&&o.nestedProperty(e.layout,d).set(null)}}}},xMdC:function(e,t,r){"use strict";var a=r("/CZE");t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var a=e.xaxes||[],n=e.yaxes||[],i=0;i<a.length;i++)for(var o=0;o<n.length;o++)if(-1!==r.indexOf(a[i]+n[o]))return!0;return!1}return-1!==r.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var r=new Array(e.length),a=0;a<e.length;a++)r[a]=t;return r},t.p2c=function(e,t){for(var r=new Array(e.length),a=0;a<e.length;a++)r[a]=e[a].p2c(t);return r},t.getDistanceFunction=function(e,r,a,n){return"closest"===e?n||t.quadrature(r,a):"x"===e.charAt(0)?r:a},t.getClosest=function(e,t,r){if(!1!==r.index)r.index>=0&&r.index<e.length?r.distance=0:r.index=!1;else for(var a=0;a<e.length;a++){var n=t(e[a]);n<=r.distance&&(r.index=a,r.distance=n)}return r},t.inbox=function(e,t,r){return e*t<0||0===e?r:1/0},t.quadrature=function(e,t){return function(r){var a=e(r),n=t(r);return Math.sqrt(a*a+n*n)}},t.makeEventData=function(e,r,a){var n="index"in e?e.index:e.pointNumber,i={data:r._input,fullData:r,curveNumber:r.index,pointNumber:n};if(r._indexToPoints){var o=r._indexToPoints[n];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=n;return r._module.eventData?i=r._module.eventData(i,e,r,a,n):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),t.appendArrayPointValue(i,r,n),i},t.appendArrayPointValue=function(e,t,r){var n=t._arrayAttrs;if(n)for(var l=0;l<n.length;l++){var s=n[l],c=i(s);if(void 0===e[c]){var d=o(a.nestedProperty(t,s).get(),r);void 0!==d&&(e[c]=d)}}},t.appendArrayMultiPointValues=function(e,t,r){var n=t._arrayAttrs;if(n)for(var l=0;l<n.length;l++){var s=n[l],c=i(s);if(void 0===e[c]){for(var d=a.nestedProperty(t,s).get(),u=new Array(r.length),f=0;f<r.length;f++)u[f]=o(d,r[f]);e[c]=u}}};var n={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return n[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};t.isUnifiedHover=function(e){return"string"==typeof e&&!!s[e]},t.isXYhover=function(e){return"string"==typeof e&&!!l[e]}},xOBz:function(e,t,r){"use strict";t.version=r("W0H3").version,r("E2g8").polyfill(),r("BGtl"),r("drJC")();for(var a=r("Nx4I"),n=t.register=a.register,i=r("RC9+"),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(t[s]=i[s]),n({moduleType:"apiMethod",name:s,fn:i[s]})}n(r("Xo+u")),n([r("l3j2"),r("pcRN"),r("cPlZ"),r("ybzJ"),r("MnPd"),r("fJ8H"),r("zRkR"),r("7rOW"),r("HAuI"),r("BK0j"),r("eXRl"),r("fu4d"),r("wlgE"),r("/LJd")]),n([r("Hqa2"),r("HgMN")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(n(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=r("dVlp"),t.Plots=r("u3HJ"),t.Fx=r("pcRN"),t.Snapshot=r("yme6"),t.PlotSchema=r("aSHK"),t.Queue=r("xra3"),t.d3=r("bljh")},xPRw:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("5azm"),o=r("Fyky"),l=r("FLbl");function s(e,t,r,i){function s(r,n){return a.coerce(e,t,l,r,n)}function c(e){var a=e+"axis",i={_fullLayout:{}};return i._fullLayout[a]=r[a],n.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),a.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),a.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},xra3:function(e,t,r){"use strict";var a=r("/CZE"),n=r("P/XJ").dfltConfig;var i={add:function(e,t,r,a,i){var o,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,o),e.undoQueue.index+=1):o=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(r),o.redo.calls.push(a),o.redo.args.push(i)),e.undoQueue.queue.length>n.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.undo.calls.length;r++)i.plotDo(e,t.undo.calls[r],t.undo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,r;if(e.framework&&e.framework.isPolar)e.framework.redo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r<t.redo.calls.length;r++)i.plotDo(e,t.redo.calls[r],t.redo.args[r]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};i.plotDo=function(e,t,r){e.autoplay=!0,r=function(e,t){for(var r,n=[],i=0;i<t.length;i++)r=t[i],n[i]=r===e?r:"object"==typeof r?Array.isArray(r)?a.extendDeep([],r):a.extendDeepAll({},r):r;return n}(e,r),t.apply(null,r)},e.exports=i},y9Tj:function(e,t,r){"use strict";var a=r("/CZE"),n=r("pGKX"),i=r("IJNW");e.exports=function(e,t,r,o){var l=a.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(r,i){return a.coerce(e,t,n,r,i)}),l)}},yLjo:function(e,t,r){"use strict";var a=r("yUfG");e.exports=function(e,t,r){var n,i=r.flipX,o=r.flipY,l="dice-slice"===r.packing,s=r.pad[o?"bottom":"top"],c=r.pad[i?"right":"left"],d=r.pad[i?"left":"right"],u=r.pad[o?"top":"bottom"];l&&(n=c,c=s,s=n,n=d,d=u,u=n);var f=a.treemap().tile(function(e,t){switch(e){case"squarify":return a.treemapSquarify.ratio(t);case"binary":return a.treemapBinary;case"dice":return a.treemapDice;case"slice":return a.treemapSlice;default:return a.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(d).paddingTop(s).paddingBottom(u).size(l?[t[1],t[0]]:t)(e);return(l||i||o)&&function e(t,r,a){var n;a.swapXY&&(n=t.x0,t.x0=t.y0,t.y0=n,n=t.x1,t.x1=t.y1,t.y1=n);a.flipX&&(n=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-n);a.flipY&&(n=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-n);var i=t.children;if(i)for(var o=0;o<i.length;o++)e(i[o],r,a)}(f,t,{swapXY:l,flipX:i,flipY:o}),f}},yPDV:function(e,t,r){"use strict";e.exports=function(e,t,r){!1===r("zsmooth")&&(r("xgap"),r("ygap")),r("zhoverformat")}},yVNY:function(e,t,r){"use strict";var a=r("DzeQ"),n="data-savedcursor";e.exports=function(e,t){var r=e.attr(n);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var l=i[o];0===l.indexOf("cursor-")&&e.attr(n,l.substr(7)).classed(l,!1)}e.attr(n)||e.attr(n,"!!")}a(e,t)}else r&&(e.attr(n,null),"!!"===r?a(e):a(e,r))}},"yZ/U":function(e,t,r){"use strict";var a=r("+1rr"),n=r("EHyX").line,i=r("qHYo"),o=r("lNV6").hovertemplateAttrs,l=r("lNV6").texttemplateAttrs,s=r("sgXD"),c=r("kJIm").extendFlat,d=r("0RW4");e.exports={x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,hovertext:a.hovertext,hovertemplate:o({},{keys:s.eventDataKeys}),hoverinfo:c({},i.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],role:"info",editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple funnels, percentages & totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label","value"])}),text:a.text,textposition:c({},a.textposition,{dflt:"auto"}),insidetextanchor:c({},a.insidetextanchor,{dflt:"middle"}),textangle:c({},a.textangle,{dflt:0}),textfont:a.textfont,insidetextfont:a.insidetextfont,outsidetextfont:a.outsidetextfont,constraintext:a.constraintext,cliponaxis:a.cliponaxis,orientation:c({},a.orientation,{description:["Sets the orientation of the funnels.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal).","By default funnels are tend to be oriented horizontally;","unless only *y* array is presented or orientation is set to *v*.","Also regarding graphs including only 'horizontal' funnels,","*autorange* on the *y-axis* are set to *reversed*."].join(" ")}),offset:c({},a.offset,{arrayOk:!1}),width:c({},a.width,{arrayOk:!1}),marker:a.marker,connector:{fillcolor:{valType:"color",role:"style",editType:"style",description:["Sets the fill color."].join(" ")},line:{color:c({},n.color,{dflt:d.defaultLine}),width:c({},n.width,{dflt:0,editType:"plot"}),dash:n.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if connector regions and lines are drawn."].join(" ")},editType:"plot"},offsetgroup:a.offsetgroup,alignmentgroup:a.alignmentgroup}},ybzJ:function(e,t,r){"use strict";var a=r("Nx4I"),n=r("/CZE");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r("FLbl")}}},layoutAttributes:r("FLbl"),handleDefaults:r("xPRw"),includeBasePlot:function(e,t){var r=a.subplotsRegistry.gl3d;if(!r)return;for(var i=r.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(n.pushUnique(t._basePlotModules,r),n.pushUnique(t._subplots.gl3d,s))}},convert:r("3iLW"),draw:r("9CI2")}},ymS1:function(e,t,r){"use strict";var a=r("Tv4R"),n=r("4htA").drawMode,i=r("Nx4I"),o=r("UtjE"),l=o.i000,s=o.i090,c=o.i180,d=o.i270,u=r("6Ue+").clearOutlineControllers,f=r("s02k"),h=f.pointsShapeRectangle,p=f.pointsShapeEllipse,g=f.writePaths,m=r("OyTQ");e.exports=function e(t,r,o,f){f||(f=0);var y=o.gd;function v(){e(t,r,o,f++),p(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=m(r,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",y,t)}var b,_,w,k,T,A=o.isActiveShape,M=y._fullLayout._zoomlayer,S=o.dragmode;(n(S)?y._fullLayout._drawing=!0:y._fullLayout._activeShapeIndex>=0&&u(y),r.attr("d",g(t)),A&&!f)&&(T=function(e,t){for(var r=0;r<t.length;r++){var a=t[r];e[r]=[];for(var n=0;n<a.length;n++){e[r][n]=[];for(var i=0;i<a[n].length;i++)e[r][n][i]=a[n][i]}}return e}([],t),function(e){b=[];for(var r=0;r<t.length;r++){var n=t[r],i=!h(n)&&p(n);b[r]=[];for(var o=0;o<n.length;o++)if("Z"!==n[o][0]&&(!i||o===l||o===s||o===c||o===d)){var u=n[o][1],f=n[o][2],g=e.append("circle").classed("cursor-grab",!0).attr("data-i",r).attr("data-j",o).attr("cx",u).attr("cy",f).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});b[r][o]={element:g.node(),gd:y,prepFn:L,doneFn:I,clickFn:D},a.init(b[r][o])}}}(M.append("g").attr("class","outline-controllers")),function(){if(_=[],!t.length)return;_[0]={element:r[0][0],gd:y,prepFn:z,doneFn:P},a.init(_[0])}());function L(e){w=+e.srcElement.getAttribute("data-i"),k=+e.srcElement.getAttribute("data-j"),b[w][k].moveFn=C}function C(e,r){if(t.length){var a=T[w][k][1],n=T[w][k][2],i=t[w],o=i.length;if(h(i)){for(var l=0;l<o;l++)if(l!==k){var s=i[l];s[1]===i[k][1]&&(s[1]=a+e),s[2]===i[k][2]&&(s[2]=n+r)}if(i[k][1]=a+e,i[k][2]=n+r,!h(i))for(var c=0;c<o;c++)for(var d=0;d<i[c].length;d++)i[c][d]=T[w][c][d]}else i[k][1]=a+e,i[k][2]=n+r;v()}}function I(){x()}function D(e,r){if(2===e){w=+r.srcElement.getAttribute("data-i"),k=+r.srcElement.getAttribute("data-j");var a=t[w];h(a)||p(a)||function(){if(t.length&&t[w]&&t[w].length){for(var e=[],r=0;r<t[w].length;r++)r!==k&&e.push(t[w][r]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[w]=e,v(),x())}}()}}function O(e,r){!function(e,r){if(t.length)for(var a=0;a<t.length;a++)for(var n=0;n<t[a].length;n++)for(var i=0;i+2<t[a][n].length;i+=2)t[a][n][i+1]=T[a][n][i+1]+e,t[a][n][i+2]=T[a][n][i+2]+r}(e,r),v()}function z(e){(w=+e.srcElement.getAttribute("data-i"))||(w=0),_[w].moveFn=O}function P(){x()}}},yme6:function(e,t,r){"use strict";var a=r("QkhT"),n={getDelay:a.getDelay,getRedrawFunc:a.getRedrawFunc,clone:r("0Y4q"),toSVG:r("ywRt"),svgToImg:r("Tr0U"),toImage:r("7pK6"),downloadImage:r("rZH/")};e.exports=n},yv8l:function(e,t,r){"use strict";var a=r("/CZE"),n=r("HByh").handleGroupingDefaults,i=r("HByh").handleText,o=r("B28u"),l=r("V5Np"),s=r("yZ/U"),c=r("0RW4");e.exports={supplyDefaults:function(e,t,r,n){function d(r,n){return a.coerce(e,t,s,r,n)}if(o(e,t,n,d)){l(e,t,n,d),d("orientation",t.y&&!t.x?"v":"h"),d("offset"),d("width");var u=d("text");d("hovertext"),d("hovertemplate");var f=d("textposition");i(e,t,n,d,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===t.textposition||t.texttemplate||d("textinfo",Array.isArray(u)?"text+value":"value");var h=d("marker.color",r);if(d("marker.line.color",c.defaultLine),d("marker.line.width"),d("connector.visible"))d("connector.fillcolor",function(e){var t=a.isArrayOrTypedArray(e)?"#000":e;return c.addOpacity(t,.5*c.opacity(t))}(h)),d("connector.line.width")&&(d("connector.line.color"),d("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var r,i;function o(e){return a.coerce(i._input,i,s,e)}if("group"===t.funnelmode)for(var l=0;l<e.length;l++)r=(i=e[l])._input,n(r,i,t,o)}}},ywRt:function(e,t,r){"use strict";var a=r("bljh"),n=r("/CZE"),i=r("g9E0"),o=r("0RW4"),l=r("c8nr"),s=/"/g,c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,r){var d,u=e._fullLayout,f=u._paper,h=u._toppaper,p=u.width,g=u.height;f.insert("rect",":first-child").call(i.setRect,0,0,p,g).call(o.fill,u.paper_bgcolor);var m=u._basePlotModules||[];for(d=0;d<m.length;d++){var y=m[d];y.toSVG&&y.toSVG(e)}if(h){var v=h.node().childNodes,x=Array.prototype.slice.call(v);for(d=0;d<x.length;d++){var b=x[d];b.childNodes.length&&f.node().appendChild(b)}}if(u._draggers&&u._draggers.remove(),f.node().style.background="",f.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=a.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,"TOBESTRIPPED"))}else e.remove()})),u._gradientUrlQueryParts){var _=[];for(var w in u._gradientUrlQueryParts)_.push(w);_.length&&f.selectAll(_.join(",")).each((function(){var e=a.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,"TOBESTRIPPED"));var r=this.style.stroke;r&&-1!==r.indexOf("url(")&&e.style("stroke",r.replace(s,"TOBESTRIPPED"))}))}"pdf"!==t&&"eps"!==t||f.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),f.node().setAttributeNS(l.xmlns,"xmlns",l.svg),f.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&r&&(f.attr("width",r*p),f.attr("height",r*g),f.attr("viewBox","0 0 "+p+" "+g));var k=(new window.XMLSerializer).serializeToString(f.node());return k=function(e){var t=a.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,(function(e){return"<"===e?"<":"&rt;"===e?">":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),r}(k),k=(k=k.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),n.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},yzSc:function(e,t,r){"use strict";var a=r("/CZE"),n=a.extendFlat,i=a.isPlainObject,o={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},l={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},s=o.flags.slice().concat(["fullReplot"]),c=l.flags.slice().concat("layoutReplot");function d(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!1;return t}function u(e,t,r){var a=n({},e);for(var o in a){var l=a[o];i(l)&&(a[o]=f(l,t,r,o))}return"from-root"===r&&(a.editType=t),a}function f(e,t,r,a){if(e.valType){var i=n({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=f(e.items[o],t,"from-root")}return i}return u(e,t,"_"===a.charAt(0)?"nested":"from-root")}e.exports={traces:o,layout:l,traceFlags:function(){return d(s)},layoutFlags:function(){return d(c)},update:function(e,t){var r=t.editType;if(r&&"none"!==r)for(var a=r.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:u}},zRkR:function(e,t,r){"use strict";var a=r("PS76");e.exports={moduleType:"component",name:a.name,layoutAttributes:r("QtxG"),supplyLayoutDefaults:r("3MKb"),draw:r("/YBL")}},zYTo:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("JZU4").draw;function o(e){var t=e._fullLayout;a.filterVisible(t.annotations).forEach((function(t){var r=n.getFromId(e,t.xref),a=n.getFromId(e,t.yref),i=n.getRefType(t.xref),o=n.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,a)}))}function l(e,t){var r,a=t._id,i=a.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],d=e["_"+i+"padplus"],u=e["_"+i+"padminus"],f={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+f,g=h-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,v=m-f;if(c===s){var x=n.findExtremes(t,[t.r2c(o)],{ppadplus:p,ppadminus:g}),b=n.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(d,y),ppadminus:Math.max(u,v)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else y=l?y+l:y,v=l?v-l:v,r=n.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(d,p,y),ppadminus:Math.max(u,g,v)});e._extremes[a]=r}e.exports=function(e){var t=e._fullLayout;if(a.filterVisible(t.annotations).length&&e._fullData.length)return a.syncOrAsync([i,o],e)}},zlYT:function(e,t,r){"use strict";var a=r("GbLo"),n=r("/CZE"),i=r("6AZA").FP_SAFE,o=r("Nx4I"),l=r("PBw4"),s=l.getFromId,c=l.isLinked;function d(e,t){var r,a,i=[],o=e._fullLayout,l=f(o,t,0),s=f(o,t,1),c=h(e,t),d=c.min,p=c.max;if(0===d.length||0===p.length)return n.simpleMap(t.range,t.r2l);var g=d[0].val,m=p[0].val;for(r=1;r<d.length&&g===m;r++)g=Math.min(g,d[r].val);for(r=1;r<p.length&&g===m;r++)m=Math.max(m,p[r].val);var y=!1;if(t.range){var v=n.simpleMap(t.range,t.r2l);y=v[1]<v[0]}"reversed"===t.autorange&&(y=!0,t.autorange=!0);var x,b,_,w,k,T,A=t.rangemode,M="tozero"===A,S="nonnegative"===A,L=t._length,C=L/10,I=0;for(r=0;r<d.length;r++)for(x=d[r],a=0;a<p.length;a++)(T=(b=p[a]).val-x.val-u(t,x.val,b.val))>0&&((k=L-l(x)-s(b))>C?T/k>I&&(_=x,w=b,I=T/k):T/L>I&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},I=T/L));if(g===m){var D=g-1,O=g+1;if(M)if(0===g)i=[0,1];else{var z=(g>0?p:d).reduce((function(e,t){return Math.max(e,s(t))}),0),P=g/(1-Math.min(.5,z/L));i=g>0?[0,P]:[P,0]}else i=S?[Math.max(0,D),Math.max(1,O)]:[D,O]}else M?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):S&&(_.val-I*l(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),I=(w.val-_.val-u(t,x.val,b.val))/(L-l(_)-s(w)),i=[_.val-I*l(_),w.val+I*s(w)];return y&&i.reverse(),n.simpleMap(i,t.l2r||Number)}function u(e,t,r){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),i=0;i<n.length;i++){var o=n[i];a+=o.max-o.min}return a}function f(e,t,r){var a=.05*t._length,i=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(i.ticklabelposition||"").indexOf("inside")){var o="reversed"===t.autorange;if(!o){var l=n.simpleMap(t.range,t.r2l);o=l[1]<l[0]}o&&(r=!r)}var s=0;return c(e,t._id)||(s=function(e,t){var r=0,a=e._anchorAxis||{};if(-1!==(a.ticklabelposition||"").indexOf("inside")&&(!t&&("left"===a.side||"bottom"===a.side)||t&&("top"===a.side||"right"===a.side))){var i="x"===e._id.charAt(0);if(a._vals){var o=n.deg2rad(a._tickAngles[a._id+"tick"]||0),l=Math.abs(Math.cos(o)),s=Math.abs(Math.sin(o));a._vals.forEach((function(e){if(e.bb){var t=6+e.bb.width,a=6+e.bb.height;r=Math.max(r,i?Math.max(t*l,a*s):Math.max(a*l,t*s))}}))}"inside"===a.ticks&&"inside"===a.ticklabelposition&&(r+=a.ticklen||0)}return r}(t,r)),a=Math.max(s,a),"domain"===t.constrain&&t._inputDomain&&(a*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(e){return e.nopad?0:e.pad+(e.extrapad?a:s)}}e.exports={getAutoRange:d,makePadFn:f,doAutoRange:function(e,t,r){if(t.setScale(),t.autorange){t.range=r?r.slice():d(e,t),t._r=t.range.slice(),t._rl=n.simpleMap(t._r,t.r2l);var a=t._input,i={};i[t._attr+".range"]=t.range,i[t._attr+".autorange"]=t.autorange,o.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,i),a.range=t.range.slice(),a.autorange=t.autorange}var l=t._anchorAxis;if(l&&l.rangeslider){var s=l.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=d(e,t)),l._input.rangeslider[t._name]=n.extendFlat({},s)}},findExtremes:function(e,t,r){r||(r={});e._m||e.setScale();var n,o,l,s,c,d,u,f,h,m=[],v=[],x=t.length,b=r.padded||!1,_=r.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=r.vpadLinearized||!1;function A(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var M=A((e._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),L=A(r.vpadplus||r.vpad),C=A(r.vpadminus||r.vpad);if(!k){if(f=1/0,h=-1/0,w)for(n=0;n<x;n++)(o=t[n])<f&&o>0&&(f=o),o>h&&o<i&&(h=o);else for(n=0;n<x;n++)(o=t[n])<f&&o>-i&&(f=o),o>h&&o<i&&(h=o);t=[f,h],x=2}var I={tozero:_,extrapad:b};function D(r){l=t[r],a(l)&&(d=M(r),u=S(r),T?(s=e.c2l(l)-C(r),c=e.c2l(l)+L(r)):(f=l-C(r),h=l+L(r),w&&f<h/10&&(f=h/10),s=e.c2l(f),c=e.c2l(h)),_&&(s=Math.min(0,s),c=Math.max(0,c)),y(s)&&p(m,s,u,I),y(c)&&g(v,c,d,I))}var O=Math.min(6,x);for(n=0;n<O;n++)D(n);for(n=x-1;n>=O;n--)D(n);return{min:m,max:v,opts:r}},concatExtremes:h};function h(e,t,r){var a,n,i,o=t._id,l=e._fullData,c=e._fullLayout,d=[],u=[];function f(e,t){for(a=0;a<t.length;a++){var r=e[t[a]],l=(r._extremes||{})[o];if(!0===r.visible&&l){for(n=0;n<l.min.length;n++)i=l.min[n],p(d,i.val,i.pad,{extrapad:i.extrapad});for(n=0;n<l.max.length;n++)i=l.max[n],g(u,i.val,i.pad,{extrapad:i.extrapad})}}}if(f(l,t._traceIndices),f(c.annotations||[],t._annIndices||[]),f(c.shapes||[],t._shapeIndices||[]),t._matchGroup&&!r)for(var m in t._matchGroup)if(m!==t._id){var y=s(e,m),v=h(e,y,!0),x=t._length/y._length;for(n=0;n<v.min.length;n++)i=v.min[n],p(d,i.val,i.pad*x,{extrapad:i.extrapad});for(n=0;n<v.max.length;n++)i=v.max[n],g(u,i.val,i.pad*x,{extrapad:i.extrapad})}return{min:d,max:u}}function p(e,t,r,a){m(e,t,r,a,v)}function g(e,t,r,a){m(e,t,r,a,x)}function m(e,t,r,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s<e.length&&l;s++){var c=e[s];if(n(c.val,t)&&c.pad>=r&&(c.extrapad||!o)){l=!1;break}n(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var d=i&&0===t;e.push({val:t,pad:d?0:r,extrapad:!d&&o})}}function y(e){return a(e)&&Math.abs(e)<i}function v(e,t){return e<=t}function x(e,t){return e>=t}},zsXM:function(e,t,r){"use strict";e.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),a=r>1?(r*e+r*t)/r:e+t,n=String(a).length;if(n>16){var i=String(t).length;if(n>=String(e).length+i){var o=parseFloat(a).toPrecision(12);-1===o.indexOf("e+")&&(a=+o)}}return a}},zvAA:function(e,t,r){"use strict";var a=r("/CZE"),n=r("BkK/"),i=r("2FgJ"),o=r("/cea");function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,n,l,s){var c=e/2,d=s;if("pixel"===t){var u=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,n],f=a.aggNums(Math.max,null,u),h=a.aggNums(Math.min,null,u),p=h<0?Math.abs(h)+c:c,g=f>0?f+c:c;return{ppad:c,ppadplus:d?p:g,ppadminus:d?g:p}}return{ppad:c}}function d(e,t,r,a,n){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(a){var s,c,d,u,f=1/0,h=-1/0,p=a.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<p.length;s++)void 0!==(c=n[p[s].charAt(0)].drawn)&&(!(d=p[s].substr(1).match(i.paramRE))||d.length<c||((u=l(d[c]))<f&&(f=u),u>h&&(h=u)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,r=a.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o<r.length;o++){var c,u,f=r[o];f._extremes={};var h=n.getRefType(f.xref),p=n.getRefType(f.yref);if("paper"!==f.xref&&"domain"!==h){var g="pixel"===f.xsizemode?f.xanchor:f.x0,m="pixel"===f.xsizemode?f.xanchor:f.x1;(u=d(c=n.getFromId(e,f.xref),g,m,f.path,i.paramIsX))&&(f._extremes[c._id]=n.findExtremes(c,u,l(f)))}if("paper"!==f.yref&&"domain"!==p){var y="pixel"===f.ysizemode?f.yanchor:f.y0,v="pixel"===f.ysizemode?f.yanchor:f.y1;(u=d(c=n.getFromId(e,f.yref),y,v,f.path,i.paramIsY))&&(f._extremes[c._id]=n.findExtremes(c,u,s(f)))}}}}}]);