mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
8 lines
1.1 MiB
8 lines
1.1 MiB
/**
|
||
* plotly.js (geo - minified) v2.31.0
|
||
* Copyright 2012-2024, Plotly, Inc.
|
||
* All rights reserved.
|
||
* Licensed under the MIT license
|
||
*/
|
||
/*! For license information please see plotly-geo.min.js.LICENSE.txt */
|
||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Plotly=t():e.Plotly=t()}(self,(function(){return function(){var e={9288:function(e,t,r){"use strict";var n=r(3400),a={"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 .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .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:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},6712:function(e,t,r){"use strict";e.exports=r(1843)},6144:function(e,t,r){"use strict";e.exports=r(7776)},4543:function(e,t,r){"use strict";e.exports=r(4272)},2016:function(e,t,r){"use strict";e.exports=r(4884)},5556:function(e,t,r){"use strict";e.exports=r(6744)},6489:function(e,t,r){"use strict";e.exports=r(2028)},9344:function(e,t,r){"use strict";var n=r(2016);n.register([r(8363),r(4543),r(6712),r(5556),r(6489),r(7312),r(6144)]),e.exports=n},8363:function(e,t,r){"use strict";e.exports=r(6952)},7312:function(e,t,r){"use strict";e.exports=r(6272)},2196:function(e){"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}]},3916:function(e,t,r){"use strict";var n=r(2196),a=r(5376),i=r(3816),o=r(1780).templatedArray;r(6208),e.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},272:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(6196).draw;function o(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach((function(t){var r=a.getFromId(e,t.xref),n=a.getFromId(e,t.yref),i=a.getRefType(t.xref),o=a.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,n)}))}function l(e,t){var r,n=t._id,i=n.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],u=e["a"+i+"ref"],c=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+d,g=h-d,v=3*e.startarrowsize*e.arrowwidth||0,y=v+d,m=v-d;if(u===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:p,ppadminus:g}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(c,y),ppadminus:Math.max(f,m)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else y=l?y+l:y,m=l?m-l:m,r=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(c,p,y),ppadminus:Math.max(f,g,m)});e._extremes[n]=r}e.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([i,o],e)}},2300:function(e,t,r){"use strict";var n=r(3400),a=r(4040),i=r(1780).arrayEditor;function o(e,t){var r,n,a,i,o,s,u,c=e._fullLayout.annotations,f=[],d=[],h=[],p=(t||[]).length;for(r=0;r<c.length;r++)if(i=(a=c[r]).clicktoshow){for(n=0;n<p;n++)if(s=(o=t[n]).xaxis,u=o.yaxis,s._id===a.xref&&u._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&u.d2r(o.y)===l(a._yclick,u)){(a.visible?"onout"===i?d:h:f).push(r);break}n===p&&a.visible&&"onout"===i&&d.push(r)}return{on:f,off:d,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),u=s.on,c=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(u.length||c.length){for(r=0;r<u.length;r++)(l=i(e.layout,"annotations",d[u[r]])).modifyItem("visible",!0),n.extendFlat(f,l.getUpdateObj());for(r=0;r<c.length;r++)(l=i(e.layout,"annotations",d[c[r]])).modifyItem("visible",!1),n.extendFlat(f,l.getUpdateObj());return a.call("update",e,{},f)}}}},7192:function(e,t,r){"use strict";var n=r(3400),a=r(6308);e.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var u=i("borderwidth"),c=i("showarrow");if(i("text",c?" ":r._dfltTitle.annotation),i("textangle"),n.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),c){var f,d,h=i("arrowside");-1!==h.indexOf("end")&&(f=i("arrowhead"),d=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",f),i("startarrowsize",d)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&u||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),g=r.hoverlabel||{};if(p){var v=i("hoverlabel.bgcolor",g.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),y=i("hoverlabel.bordercolor",g.bordercolor||a.contrast(v));n.coerceFont(i,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||y})}i("captureevents",!!p)}},9208:function(e,t,r){"use strict";var n=r(8248),a=r(6896);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,u,c=e._fullLayout.annotations,f=t._id.charAt(0),d=0;d<c.length;d++)s=c[d],u="annotations["+d+"].",s[f+"ref"]===t._id&&h(f),s["a"+f+"ref"]===t._id&&h("a"+f);function h(e){var r=s[e],l=null;l=o?a(r,t.range):Math.pow(10,r),n(l)||(l=null),i(u+e,l)}}},5216:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(1272),o=r(7192),l=r(3916);function s(e,t,r){function i(r,a){return n.coerce(e,t,l,r,a)}var s=i("visible"),u=i("clicktoshow");if(s||u){o(e,t,r,i);for(var c=t.showarrow,f=["x","y"],d=[-10,-30],h={_fullLayout:r},p=0;p<2;p++){var g=f[p],v=a.coerceRef(e,t,h,g,"","paper");if("paper"!==v&&a.getFromId(h,v)._annIndices.push(t._index),a.coercePosition(t,h,i,v,g,.5),c){var y="a"+g,m=a.coerceRef(e,t,h,y,"pixel",["pixel","paper"]);"pixel"!==m&&m!==v&&(m=t[y]="pixel");var x="pixel"===m?d[p]:.4;a.coercePosition(t,h,i,m,y,x)}i(g+"anchor"),i(g+"shift")}if(n.noneOrAll(e,t,["x","y"]),c&&n.noneOrAll(e,t,["ax","ay"]),u){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,h,t.xref),t._yclick=void 0===_?t.y:a.cleanPosition(_,h,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},6196:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(7316),o=r(3400),l=o.strTranslate,s=r(4460),u=r(6308),c=r(3616),f=r(3024),d=r(2736),h=r(3972),p=r(6476),g=r(1780).arrayEditor,v=r(3652);function y(e,t){var r=e._fullLayout.annotations[t]||{},n=s.getFromId(e,r.xref),a=s.getFromId(e,r.yref);n&&n.setScale(),a&&a.setScale(),x(e,r,t,!1,n,a)}function m(e,t,r,n,a){var i=a[r],o=a[r+"ref"],l=-1!==r.indexOf("y"),u="domain"===s.getRefType(o),c=l?n.h:n.w;return e?u?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/c}function x(e,t,r,i,y,x){var b,_,w=e._fullLayout,M=e._fullLayout._size,T=e._context.edits;i?(b="annotation-"+i,_=i+".annotations"):(b="annotation",_="annotations");var k=g(e.layout,_,t),A=k.modifyBase,S=k.modifyItem,L=k.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var D="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var C={x:{},y:{}},P=+t.textangle||0,O=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),R=O.append("g").classed("annotation-text-g",!0),E=T[t.showarrow?"annotationTail":"annotationPosition"],I=t.captureevents||T.annotationText||E,N=R.append("g").style("pointer-events",I?"all":null).call(h,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",V(n.event))}));t.hovertext&&N.on("mouseover",(function(){var r=t.hoverlabel,n=r.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();f.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){f.loneUnhover(w._hoverlayer.node())}));var z=t.borderwidth,F=t.borderpad,j=z+F,B=N.append("rect").attr("class","bg").style("stroke-width",z+"px").call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor),H=t.width||t.height,G=w._topclips.selectAll("#"+D).data(H?[0]:[]);G.enter().append("clipPath").classed("annclip",!0).attr("id",D).append("rect"),G.exit().remove();var Y=t.font,U=w._meta?o.templateString(t.text,w._meta):t.text,q=N.append("text").classed("annotation-text",!0).text(U);T.annotationText?q.call(d.makeEditable,{delegate:N,gd:e}).call(W).on("edit",(function(r){t.text=r,this.call(W),S("text",r),y&&y.autorange&&A(y._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0),a.call("_guiRelayout",e,L())})):q.call(W)}else n.selectAll("#"+D).remove();function V(e){var n={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(n.subplotId=i),n}function W(r){return r.call(c.font,Y).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(r,e,Z),r}function Z(){var r=q.selectAll("a");1===r.size()&&r.text()===q.text()&&N.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 n=N.select(".annotation-text-math-group"),f=!n.empty(),g=c.bBox((f?n:q).node()),b=g.width,_=g.height,k=t.width||b,I=t.height||_,F=Math.round(k+2*j),Y=Math.round(I+2*j);function U(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 W=!1,Z=["x","y"],J=0;J<Z.length;J++){var X,$,K,Q,ee,te=Z[J],re=t[te+"ref"]||te,ne=t["a"+te+"ref"],ae={x:y,y:x}[te],ie=(P+("x"===te?0:-90))*Math.PI/180,oe=F*Math.cos(ie),le=Y*Math.sin(ie),se=Math.abs(oe)+Math.abs(le),ue=t[te+"anchor"],ce=t[te+"shift"]*("x"===te?1:-1),fe=C[te],de=s.getRefType(re);if(ae&&"domain"!==de){var he=ae.r2fraction(t[te]);(he<0||he>1)&&(ne===re?((he=ae.r2fraction(t["a"+te]))<0||he>1)&&(W=!0):W=!0),X=ae._offset+ae.r2p(t[te]),Q=.5}else{var pe="domain"===de;"x"===te?(K=t[te],X=pe?ae._offset+ae._length*K:X=M.l+M.w*K):(K=1-t[te],X=pe?ae._offset+ae._length*K:X=M.t+M.h*K),Q=t.showarrow?.5:K}if(t.showarrow){fe.head=X;var ge=t["a"+te];if(ee=oe*U(.5,t.xanchor)-le*U(.5,t.yanchor),ne===re){var ve=s.getRefType(ne);"domain"===ve?("y"===te&&(ge=1-ge),fe.tail=ae._offset+ae._length*ge):"paper"===ve?"y"===te?(ge=1-ge,fe.tail=M.t+M.h*ge):fe.tail=M.l+M.w*ge:fe.tail=ae._offset+ae.r2p(ge),$=ee}else fe.tail=X+ge,$=ee+ge;fe.text=fe.tail+ee;var ye=w["x"===te?"width":"height"];if("paper"===re&&(fe.head=o.constrain(fe.head,1,ye-1)),"pixel"===ne){var me=-Math.max(fe.tail-3,fe.text),xe=Math.min(fe.tail+3,fe.text)-ye;me>0?(fe.tail+=me,fe.text+=me):xe>0&&(fe.tail-=xe,fe.text-=xe)}fe.tail+=ce,fe.head+=ce}else $=ee=se*U(Q,ue),fe.text=X+ee;fe.text+=ce,ee+=ce,$+=ce,t["_"+te+"padplus"]=se/2+$,t["_"+te+"padminus"]=se/2-$,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(W)N.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(k-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(I-_)*("middle"===t.valign?.5:1)),f)n.select("svg").attr({x:j+be-1,y:j+_e}).call(c.setClipUrl,H?D:null,e);else{var we=j+_e-g.top,Me=j+be-g.left;q.call(d.positionText,Me,we).call(c.setClipUrl,H?D:null,e)}G.select("rect").call(c.setRect,j,j,k,I),B.call(c.setRect,z/2,z/2,F-z,Y-z),N.call(c.setTranslate,Math.round(C.x.text-F/2),Math.round(C.y.text-Y/2)),R.attr({transform:"rotate("+P+","+C.x.text+","+C.y.text+")"});var Te,ke=function(r,n){O.selectAll(".annotation-arrow-g").remove();var s=C.x.head,f=C.y.head,d=C.x.tail+r,h=C.y.tail+n,g=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(P,g,b),w=o.apply2DTransform(_),k=o.apply2DTransform2(_),D=+B.attr("width"),E=+B.attr("height"),I=g-.5*D,z=I+D,F=b-.5*E,j=F+E,H=[[I,F,I,j],[I,j,z,j],[z,j,z,F],[z,F,I,F]].map(k);if(!H.reduce((function(e,t){return e^!!o.segmentsIntersect(s,f,s+1e6,f+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=o.segmentsIntersect(d,h,s,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,h=t.y)}));var G=t.arrowwidth,Y=t.arrowcolor,U=t.arrowside,q=O.append("g").style({opacity:u.opacity(Y)}).classed("annotation-arrow-g",!0),V=q.append("path").attr("d","M"+d+","+h+"L"+s+","+f).style("stroke-width",G+"px").call(u.stroke,u.rgb(Y));if(v(V,U,t),T.annotationPosition&&V.node().parentNode&&!i){var W=s,Z=f;if(t.standoff){var J=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-h,2));W+=t.standoff*(d-s)/J,Z+=t.standoff*(h-f)/J}var X,$,K=q.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-W)+","+(h-Z),transform:l(W,Z)}).style("stroke-width",G+6+"px").call(u.stroke,"rgba(0,0,0,0)").call(u.fill,"rgba(0,0,0,0)");p.init({element:K.node(),gd:e,prepFn:function(){var e=c.getTranslate(N);X=e.x,$=e.y,y&&y.autorange&&A(y._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0)},moveFn:function(e,r){var n=w(X,$),a=n[0]+e,i=n[1]+r;N.call(c.setTranslate,a,i),S("x",m(y,e,"x",M,t)),S("y",m(x,r,"y",M,t)),t.axref===t.xref&&S("ax",m(y,e,"ax",M,t)),t.ayref===t.yref&&S("ay",m(x,r,"ay",M,t)),q.attr("transform",l(e,r)),R.attr({transform:"rotate("+P+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,L());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};t.showarrow&&ke(0,0),E&&p.init({element:N.node(),gd:e,prepFn:function(){Te=R.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?S("ax",m(y,e,"ax",M,t)):S("ax",t.ax+e),t.ayref===t.yref?S("ay",m(x,r,"ay",M.w,t)):S("ay",t.ay+r),ke(e,r);else{if(i)return;var a,o;if(y)a=m(y,e,"x",M,t);else{var s=t._xsize/M.w,u=t.x+(t._xshift-t.xshift)/M.w-s/2;a=p.align(u+e/M.w,s,0,1,t.xanchor)}if(x)o=m(x,r,"y",M,t);else{var c=t._ysize/M.h,f=t.y-(t._yshift+t.yshift)/M.h-c/2;o=p.align(f-r/M.h,c,0,1,t.yanchor)}S("x",a),S("y",o),y&&x||(n=p.getCursor(y?.5:a,x?.5:o,t.xanchor,t.yanchor))}R.attr({transform:l(e,r)+Te}),h(N,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",V(n))},doneFn:function(){h(N),a.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}},3652:function(e,t,r){"use strict";var n=r(3428),a=r(6308),i=r(2196),o=r(3400),l=o.strScale,s=o.strRotate,u=o.strTranslate;e.exports=function(e,t,r){var o,c,f,d,h=e.node(),p=i[r.arrowhead||0],g=i[r.startarrowhead||0],v=(r.arrowwidth||1)*(r.arrowsize||1),y=(r.arrowwidth||1)*(r.startarrowsize||1),m=t.indexOf("start")>=0,x=t.indexOf("end")>=0,b=p.backoff*v+r.standoff,_=g.backoff*y+r.startstandoff;if("line"===h.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},c={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-c.x,M=o.y-c.y;if(d=(f=Math.atan2(M,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+M*M))return void E();if(b){if(b*b>w*w+M*M)return void E();var T=b*Math.cos(f),k=b*Math.sin(f);c.x+=T,c.y+=k,e.attr({x2:c.x,y2:c.y})}if(_){if(_*_>w*w+M*M)return void E();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,e.attr({x1:o.x,y1:o.y})}}else if("path"===h.nodeName){var L=h.getTotalLength(),D="";if(L<b+_)return void E();var C=h.getPointAtLength(0),P=h.getPointAtLength(.1);f=Math.atan2(C.y-P.y,C.x-P.x),o=h.getPointAtLength(Math.min(_,L)),D="0px,"+_+"px,";var O=h.getPointAtLength(L),R=h.getPointAtLength(L-.1);d=Math.atan2(O.y-R.y,O.x-R.x),c=h.getPointAtLength(Math.max(0,L-b)),D+=L-(D?_+b:b)+"px,"+L+"px",e.style("stroke-dasharray",D)}function E(){e.style("stroke-dasharray","0px,100px")}function I(t,i,o,c){t.path&&(t.noRotate&&(o=0),n.select(h.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:u(i.x,i.y)+s(180*o/Math.PI)+l(c)}).style({fill:a.rgb(r.arrowcolor),"stroke-width":0}))}m&&I(g,o,f,y),x&&I(p,c,d,v)}},9180:function(e,t,r){"use strict";var n=r(6196),a=r(2300);e.exports={moduleType:"component",name:"annotations",layoutAttributes:r(3916),supplyLayoutDefaults:r(5216),includeBasePlot:r(6632)("annotations"),calcAutorange:r(272),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:r(9208)}},5899:function(e,t,r){"use strict";var n=r(3916),a=r(7824).overrideAll,i=r(1780).templatedArray;e.exports=a(i("annotation",{visible:n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},76:function(e,t,r){"use strict";var n=r(3400),a=r(4460);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={},n.extendFlat(e._xa,o),a.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={},n.extendFlat(e._ya,o),a.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()}},2808:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(1272),o=r(7192),l=r(5899);function s(e,t,r,i){function s(r,a){return n.coerce(e,t,l,r,a)}function u(e){var n=e+"axis",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),u("x"),u("y"),u("z"),n.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),n.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},1836:function(e,t,r){"use strict";var n=r(6196).drawRaw,a=r(4424),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],u=!1,c=0;c<3;c++){var f=i[c],d=s[f],h=t[f+"axis"].r2fraction(d);if(h<0||h>1){u=!0;break}}u?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),n(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},6864:function(e,t,r){"use strict";var n=r(4040),a=r(3400);e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:r(5899)}}},layoutAttributes:r(5899),handleDefaults:r(2808),includeBasePlot:function(e,t){var r=n.subplotsRegistry.gl3d;if(r)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&&(a.pushUnique(t._basePlotModules,r),a.pushUnique(t._subplots.gl3d,s))}},convert:r(76),draw:r(1836)}},4976:function(e,t,r){"use strict";e.exports=r(8700),r(5168),r(7020),r(7411),r(5668),r(2787),r(2084),r(6368),r(4747),r(5616),r(632),r(3040),r(1104),r(9075),r(4592),r(5348)},7776:function(e,t,r){"use strict";var n=r(4976),a=r(3400),i=r(9032),o=i.EPOCHJD,l=i.ONEDAY,s={valType:"enumerated",values:a.sortObjectKeys(n.calendars),editType:"calc",dflt:"gregorian"},u=function(e,t,r,n){var i={};return i[r]=s,a.coerce(e,t,i,r,n)},c="##",f={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:c,w:c,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},d={};function h(e){var t=d[e];return t||(d[e]=n.instance(e))}function p(e){return a.extendFlat({},s,{description:e})}function g(e){return"Sets the calendar system to use with `"+e+"` date data."}var v={xcalendar:p(g("x"))},y=a.extendFlat({},v,{ycalendar:p(g("y"))}),m=a.extendFlat({},y,{zcalendar:p(g("z"))}),x=p(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));e.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:y,bar:y,box:y,heatmap:y,contour:y,histogram:y,histogram2d:y,histogram2dcontour:y,scatter3d:m,surface:m,mesh3d:m,scattergl:y,ohlc:v,candlestick:v},layout:{calendar:p(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:x},yaxis:{calendar:x},scene:{xaxis:{calendar:x},yaxis:{calendar:x},zaxis:{calendar:x}},polar:{radialaxis:{calendar:x}}},transforms:{filter:{valuecalendar:p(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:p(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:s,handleDefaults:u,handleTraceDefaults:function(e,t,r,n){for(var a=0;a<r.length;a++)u(e,t,r[a]+"calendar",n.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:h,worldCalFmt:function(e,t,r){for(var n,a,i,s,u,d=Math.floor((t+.05)/l)+o,p=h(r).fromJD(d),g=0;-1!==(g=e.indexOf("%",g));)"0"===(n=e.charAt(g+1))||"-"===n||"_"===n?(i=3,a=e.charAt(g+2),"_"===n&&(n="-")):(a=n,n="0",i=2),(s=f[a])?(u=s===c?c:p.formatDate(s[n]),e=e.substr(0,g)+u+e.substr(g+i),g+=u.length):g+=i;return e}}},2548:function(e,t){"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},6308:function(e,t,r){"use strict";var n=r(9760),a=r(8248),i=r(8116).isTypedArray,o=e.exports={},l=r(2548);o.defaults=l.defaults;var s=o.defaultLine=l.defaultLine;o.lightLine=l.lightLine;var u=o.background=l.background;function c(e){if(a(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 n=r[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===n.length;if(!i&&3!==n.length)return e;for(var o=0;o<n.length;o++){if(!n[o].length)return e;if(n[o]=Number(n[o]),!(n[o]>=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||u).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.interpolate=function(e,t,r){var a=n(e).toRgb(),i=n(t).toRgb(),o={r:r*a.r+(1-r)*i.r,g:r*a.g+(1-r)*i.g,b:r*a.b+(1-r)*i.b};return n(o).toRgbString()},o.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(o.combine(e,u))),(a.isDark()?t?a.lighten(t):u:r?a.darken(r):s).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,r,n,a,l=Object.keys(e);for(t=0;t<l.length;t++)if(a=e[n=l[t]],"color"===n.substr(n.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=c(a[r]);else e[n]=c(a);else if("colorscale"===n.substr(n.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=c(a[r][1]));else if(Array.isArray(a)){var s=a[0];if(!Array.isArray(s)&&s&&"object"==typeof s)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&"object"==typeof a&&!i(a)&&o.clean(a)}}},616:function(e,t,r){"use strict";var n=r(4724),a=r(5376),i=r(2880).extendFlat,o=r(7824).overrideAll;e.exports=o({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:n.minor.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:i({},n.ticks,{dflt:""}),ticklabeloverflow:i({},n.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,labelalias:n.labelalias,tickfont:a({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string"},font:a({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:a({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},3964:function(e){"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"}}},4013:function(e,t,r){"use strict";var n=r(3400),a=r(1780),i=r(6332),o=r(5404),l=r(5936),s=r(2568),u=r(616);e.exports=function(e,t,r){var c=a.newContainer(t,"colorbar"),f=e.colorbar||{};function d(e,t){return n.coerce(f,c,u,e,t)}var h=r.margin||{t:0,b:0,l:0,r:0},p=r.width-h.l-h.r,g=r.height-h.t-h.b,v="v"===d("orientation"),y=d("thicknessmode");d("thickness","fraction"===y?30/(v?p:g):30);var m=d("lenmode");d("len","fraction"===m?1:v?g:p);var x,b,_,w="paper"===d("yref"),M="paper"===d("xref"),T="left";v?(_="middle",T=M?"left":"right",x=M?1.02:1,b=.5):(_=w?"bottom":"top",T="center",x=.5,b=w?1.02:1),n.coerce(f,c,{x:{valType:"number",min:M?-2:0,max:M?3:1,dflt:x}},"x"),n.coerce(f,c,{y:{valType:"number",min:w?-2:0,max:w?3:1,dflt:b}},"y"),d("xanchor",T),d("xpad"),d("yanchor",_),d("ypad"),n.noneOrAll(f,c,["x","y"]),d("outlinecolor"),d("outlinewidth"),d("bordercolor"),d("borderwidth"),d("bgcolor");var k=n.coerce(f,c,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");d("ticklabeloverflow",-1!==k.indexOf("inside")?"hide past domain":"hide past div"),i(f,c,d,"linear");var A=r.font,S={noAutotickangles:!0,outerTicks:!1,font:A};-1!==k.indexOf("inside")&&(S.bgColor="black"),s(f,c,d,"linear",S),l(f,c,d,"linear",S),o(f,c,d,"linear",S),d("title.text",r._dfltTitle.colorbar);var L=c.showticklabels?c.tickfont:A,D=n.extendFlat({},L,{color:A.color,size:n.bigFont(L.size)});n.coerceFont(d,"title.font",D),d("title.side",v?"top":"right")}},7848:function(e,t,r){"use strict";var n=r(3428),a=r(9760),i=r(7316),o=r(4040),l=r(4460),s=r(6476),u=r(3400),c=u.strTranslate,f=r(2880).extendFlat,d=r(3972),h=r(3616),p=r(6308),g=r(1668),v=r(2736),y=r(4288).flipScale,m=r(5955),x=r(7668),b=r(4724),_=r(4284),w=_.LINE_SPACING,M=_.FROM_TL,T=_.FROM_BR,k=r(3964).cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+k.colorbar).data(function(e){var t,r,n,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return f(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){"function"==typeof a.calc?a.calc(e,n,t):(t._fillgradient=r.reversescale?y(r.colorscale):r.colorscale,t._zrange=[r[a.min],r[a.max]])}for(var c=0;c<o.length;c++){var d=o[c];if((n=d[0].trace)._module){var h=n._module.colorbar;if(!0===n.visible&&h)for(var p=Array.isArray(h),g=p?h:[h],v=0;v<g.length;v++){var m=(a=g[v]).container;(r=m?n[m]:n)&&r.showscale&&((t=s(r.colorbar))._id="cb"+n.uid+(p&&m?"-"+m:""),t._traceIndex=n.index,t._propPrefix=(m?m+".":"")+"colorbar.",t._meta=n._meta,u(),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,a={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(n=b[1],a.calc=n._module.colorbar.calc),u(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(k.colorbar,!0),t.each((function(t){var r=n.select(this);u.ensureSingle(r,"rect",k.cbbg),u.ensureSingle(r,"g",k.cbfills),u.ensureSingle(r,"g",k.cblines),u.ensureSingle(r,"g",k.cbaxis,(function(e){e.classed(k.crisp,!0)})),u.ensureSingle(r,"g",k.cbtitleunshift,(function(e){e.append("g").classed(k.cbtitle,!0)})),u.ensureSingle(r,"rect",k.cboutline);var y=function(e,t,r){var o="v"===t.orientation,s=t.len,d=t.lenmode,y=t.thickness,_=t.thicknessmode,A=t.outlinewidth,S=t.borderwidth,L=t.bgcolor,D=t.xanchor,C=t.yanchor,P=t.xpad,O=t.ypad,R=t.x,E=o?t.y:1-t.y,I="paper"===t.yref,N="paper"===t.xref,z=r._fullLayout,F=z._size,j=t._fillcolor,B=t._line,H=t.title,G=H.side,Y=t._zrange||n.extent(("function"==typeof j?j:B.color).domain()),U="function"==typeof B.color?B.color:function(){return B.color},q="function"==typeof j?j:function(){return j},V=t._levels,W=function(e,t,r){var n,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,u=i.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(a=0;a<1e5&&(n=i.start+a*u,!(u>0?n>=s:n<=s));a++)n>c&&n<f&&o.push(n);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var d=t._filllevels;if(d)for(s=d.end+d.size/100,u=d.size,a=0;a<1e5&&(n=d.start+a*u,!(u>0?n>=s:n<=s));a++)n>r[0]&&n<r[1]&&l.push(n);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]);return i.size<0&&(o.reverse(),l.reverse()),{line:o,fill:l}}(0,t,Y),Z=W.fill,J=W.line,X=Math.round(y*("fraction"===_?o?F.w:F.h:1)),$=X/(o?F.w:F.h),K=Math.round(s*("fraction"===d?o?F.h:F.w:1)),Q=K/(o?F.h:F.w),ee=N?F.w:r._fullLayout.width,te=I?F.h:r._fullLayout.height,re=Math.round(o?R*ee+P:E*te+O),ne={center:.5,right:1}[D]||0,ae={top:1,middle:.5}[C]||0,ie=o?R-ne*$:E-ae*$,oe=o?E-ae*Q:R-ne*Q,le=Math.round(o?te*(1-oe):ee*oe);t._lenFrac=Q,t._thickFrac=$,t._uFrac=ie,t._vFrac=oe;var se=t._axis=function(e,t,r){var n=e._fullLayout,a="v"===t.orientation,i={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,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,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:a?"right":"bottom",position:1},o=a?"y":"x",l={type:"linear",_id:o+t._id},s={letter:o,font:n.font,noAutotickangles:"y"===o,noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:n.calendar};function c(e,t){return u.coerce(i,l,b,e,t)}return m(i,l,c,s,n),x(i,l,c,s),l}(r,t,Y);se.position=$+(o?R+P/F.w:E+O/F.h);var ue=-1!==["top","bottom"].indexOf(G);if(o&&ue&&(se.title.side=G,se.titlex=R+P/F.w,se.titley=oe+("top"===H.side?Q-O/F.h:O/F.h)),o||ue||(se.title.side=G,se.titley=E+O/F.h,se.titlex=oe+P/F.w),B.color&&"auto"===t.tickmode){se.tickmode="linear",se.tick0=V.start;var ce=V.size,fe=u.constrain(K/50,4,15)+1,de=(Y[1]-Y[0])/((t.nticks||fe)*ce);if(de>1){var he=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));ce*=he*u.roundUp(de/he,[2,5,10]),(Math.abs(V.start)/V.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=ce}se.domain=o?[oe+O/F.h,oe+Q-O/F.h]:[oe+P/F.w,oe+Q-P/F.w],se.setScale(),e.attr("transform",c(Math.round(F.l),Math.round(F.t)));var pe,ge=e.select("."+k.cbtitleunshift).attr("transform",c(-Math.round(F.l),-Math.round(F.t))),ve=se.ticklabelposition,ye=se.title.font.size,me=e.select("."+k.cbaxis),xe=0,be=0;function _e(n,a){var i={propContainer:se,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:z._dfltTitle.colorbar,containerGroup:e.select("."+k.cbtitle)},o="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+o+",."+o+"-math-group").remove(),g.draw(r,n,f(i,a||{}))}return u.syncOrAsync([i.previousPromises,function(){var e,t;(o&&ue||!o&&!ue)&&("top"===G&&(e=P+F.l+ee*R,t=O+F.t+te*(1-oe-Q)+3+.75*ye),"bottom"===G&&(e=P+F.l+ee*R,t=O+F.t+te*(1-oe)-3-.25*ye),"right"===G&&(t=O+F.t+te*E+3+.75*ye,e=P+F.l+ee*oe),_e(se._id+"title",{attributes:{x:e,y:t,"text-anchor":o?"start":"middle"}}))},function(){if(!o&&!ue||o&&ue){var i,s=e.select("."+k.cbtitle),f=s.select("text"),d=[-A/2,A/2],p=s.select(".h"+se._id+"title-math-group").node(),g=15.6;if(f.node()&&(g=parseInt(f.node().style.fontSize,10)*w),p?(i=h.bBox(p),be=i.width,(xe=i.height)>g&&(d[1]-=(xe-g)/2)):f.node()&&!f.classed(k.jsPlaceholder)&&(i=h.bBox(f.node()),be=i.width,xe=i.height),o){if(xe){if(xe+=5,"top"===G)se.domain[1]-=xe/F.h,d[1]*=-1;else{se.domain[0]+=xe/F.h;var y=v.lineCount(f);d[1]+=(1-y)*g}s.attr("transform",c(d[0],d[1])),se.setScale()}}else be&&("right"===G&&(se.domain[0]+=(be+ye/2)/F.w),s.attr("transform",c(d[0],d[1])),se.setScale())}e.selectAll("."+k.cbfills+",."+k.cblines).attr("transform",o?c(0,Math.round(F.h*(1-se.domain[1]))):c(Math.round(F.w*se.domain[0]),0)),me.attr("transform",o?c(0,Math.round(-F.t)):c(Math.round(-F.l),0));var m=e.select("."+k.cbfills).selectAll("rect."+k.cbfill).attr("style","").data(Z);m.enter().append("rect").classed(k.cbfill,!0).attr("style",""),m.exit().remove();var x=Y.map(se.c2p).map(Math.round).sort((function(e,t){return e-t}));m.each((function(e,i){var l=[0===i?Y[0]:(Z[i]+Z[i-1])/2,i===Z.length-1?Y[1]:(Z[i]+Z[i+1])/2].map(se.c2p).map(Math.round);o&&(l[1]=u.constrain(l[1]+(l[1]>l[0])?1:-1,x[0],x[1]));var s=n.select(this).attr(o?"x":"y",re).attr(o?"y":"x",n.min(l)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(n.max(l)-n.min(l),2));if(t._fillgradient)h.gradient(s,r,t._id,o?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var c=q(e).replace("e-","");s.attr("fill",a(c).toHexString())}}));var b=e.select("."+k.cblines).selectAll("path."+k.cbline).data(B.color&&B.width?J:[]);b.enter().append("path").classed(k.cbline,!0),b.exit().remove(),b.each((function(e){var t=re,r=Math.round(se.c2p(e))+B.width/2%1;n.select(this).attr("d","M"+(o?t+","+r:r+","+t)+(o?"h":"v")+X).call(h.lineGroupStyle,B.width,U(e),B.dash)})),me.selectAll("g."+se._id+"tick,path").remove();var _=re+X+(A||0)/2-("outside"===t.ticks?1:0),M=l.calcTicks(se),T=l.getTickSigns(se)[2];return l.drawTicks(r,se,{vals:"inside"===se.ticks?l.clipEnds(se,M):M,layer:me,path:l.makeTickPath(se,_,T),transFn:l.makeTransTickFn(se)}),l.drawLabels(r,se,{vals:M,layer:me,transFn:l.makeTransTickLabelFn(se),labelFns:l.makeLabelFns(se,_)})},function(){if(o&&!ue||!o&&ue){var e,a,i=se.position||0,l=se._offset+se._length/2;if("right"===G)a=l,e=F.l+ee*i+10+ye*(se.showticklabels?1:.5);else if(e=l,"bottom"===G&&(a=F.t+te*i+10+(-1===ve.indexOf("inside")?se.tickfont.size:0)+("intside"!==se.ticks&&t.ticklen||0)),"top"===G){var s=H.text.split("<br>").length;a=F.t+te*i+10-X-w*ye*s}_e((o?"h":"v")+se._id+"title",{avoid:{selection:n.select(r).selectAll("g."+se._id+"tick"),side:G,offsetTop:o?0:F.t,offsetLeft:o?F.l:0,maxShift:o?z.width:z.height},attributes:{x:e,y:a,"text-anchor":"middle"},transform:{rotate:o?-90:0,offset:0}})}},i.previousPromises,function(){var n,l=X+A/2;-1===ve.indexOf("inside")&&(n=h.bBox(me.node()),l+=o?n.width:n.height),pe=ge.select("text");var u=0,f=o&&"top"===G,g=!o&&"right"===G,v=0;if(pe.node()&&!pe.classed(k.jsPlaceholder)){var m,x=ge.select(".h"+se._id+"title-math-group").node();x&&(o&&ue||!o&&!ue)?(u=(n=h.bBox(x)).width,m=n.height):(u=(n=h.bBox(ge.node())).right-F.l-(o?re:le),m=n.bottom-F.t-(o?le:re),o||"top"!==G||(l+=n.height,v=n.height)),g&&(pe.attr("transform",c(u/2+ye/2,0)),u*=2),l=Math.max(l,o?u:m)}var b=2*(o?P:O)+l+S+A/2,w=0;!o&&H.text&&"bottom"===C&&E<=0&&(b+=w=b/2,v+=w),z._hColorbarMoveTitle=w,z._hColorbarMoveCBTitle=v;var j=S+A,B=(o?re:le)-j/2-(o?P:0),Y=(o?le:re)-(o?K:O+v-w);e.select("."+k.cbbg).attr("x",B).attr("y",Y).attr(o?"width":"height",Math.max(b-w,2)).attr(o?"height":"width",Math.max(K+j,2)).call(p.fill,L).call(p.stroke,t.bordercolor).style("stroke-width",S);var U=g?Math.max(u-10,0):0;e.selectAll("."+k.cboutline).attr("x",(o?re:le+P)+U).attr("y",(o?le+O-K:re)+(f?xe:0)).attr(o?"width":"height",Math.max(X,2)).attr(o?"height":"width",Math.max(K-(o?2*O+xe:2*P+U),2)).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":A});var q=o?ne*b:0,V=o?0:(1-ae)*b-v;if(q=N?F.l-q:-q,V=I?F.t-V:-V,e.attr("transform",c(q,V)),!o&&(S||a(L).getAlpha()&&!a.equals(z.paper_bgcolor,L))){var W=me.selectAll("text"),Z=W[0].length,J=e.select("."+k.cbbg).node(),$=h.bBox(J),Q=h.getTranslate(e);W.each((function(e,t){var r=Z-1;if(0===t||t===r){var n,a=h.bBox(this),i=h.getTranslate(this);if(t===r){var o=a.right+i.x;(n=$.right+Q.x+le-S-2+R-o)>0&&(n=0)}else if(0===t){var l=a.left+i.x;(n=$.left+Q.x+le+S+2-l)<0&&(n=0)}n&&(Z<3?this.setAttribute("transform","translate("+n+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}}))}var ee={},te=M[D],ie=T[D],oe=M[C],ce=T[C],fe=b-X;o?("pixels"===d?(ee.y=E,ee.t=K*oe,ee.b=K*ce):(ee.t=ee.b=0,ee.yt=E+s*oe,ee.yb=E-s*ce),"pixels"===_?(ee.x=R,ee.l=b*te,ee.r=b*ie):(ee.l=fe*te,ee.r=fe*ie,ee.xl=R-y*te,ee.xr=R+y*ie)):("pixels"===d?(ee.x=R,ee.l=K*te,ee.r=K*ie):(ee.l=ee.r=0,ee.xl=R+s*te,ee.xr=R-s*ie),"pixels"===_?(ee.y=1-E,ee.t=b*oe,ee.b=b*ce):(ee.t=fe*oe,ee.b=fe*ce,ee.yt=E-y*oe,ee.yb=E+y*ce));var de=t.y<.5?"b":"t",he=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var be={r:z.width-B-q,l:B+ee.r,b:z.height-Y-V,t:Y+ee.b};N&&I?i.autoMargin(r,t._id,ee):N?r._fullLayout._reservedMargin[t._id][de]=be[de]:I||o?r._fullLayout._reservedMargin[t._id][he]=be[he]:r._fullLayout._reservedMargin[t._id][de]=be[de]}],r)}(r,t,e);y&&y.then&&(e._promises||[]).push(y),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,i,l="v"===t.orientation,u=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,o){e.attr("transform",n+c(r,o)),a=s.align((l?t._uFrac:t._vFrac)+r/u.w,l?t._thickFrac:t._lenFrac,0,1,t.xanchor),i=s.align((l?t._vFrac:1-t._uFrac)-o/u.h,l?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,f)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},553:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e){return n.isPlainObject(e.colorbar)}},5080:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:r(616),supplyDefaults:r(4013),draw:r(7848).draw,hasColorbar:r(553)}},9084:function(e,t,r){"use strict";var n=r(616),a=r(3756).counter,i=r(2996),o=r(8304).scales;function l(e){return"`"+e+"`"}i(o),e.exports=function(e,t){e=e||"";var r,i=(t=t||{}).cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),u="showScaleDflt"in t?t.showScaleDflt:"z"===i,c="string"==typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,t.colorAttr):l(d+(r={z:"z",c:"color"}[i]));var h=i+"auto",p=i+"min",g=i+"max",v=i+"mid",y=(l(d+h),l(d+p),l(d+g),{});y[p]=y[g]=void 0;var m={};m[h]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(x.color.anim=!0)),x[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},x[p]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:m},x[g]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:m},x[v]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},x.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:u,editType:"calc"},x.colorbar=n),t.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},7128:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=r(4288).extractOpts;e.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,u=r.containerStr,c=u?a.nestedProperty(t,u).get():t,f=i(c),d=!1!==f.auto,h=f.min,p=f.max,g=f.mid,v=function(){return a.aggNums(Math.min,null,s)},y=function(){return a.aggNums(Math.max,null,s)};void 0===h?h=v():d&&(h=c._colorAx&&n(h)?Math.min(h,v()):v()),void 0===p?p=y():d&&(p=c._colorAx&&n(p)?Math.max(p,y()):y()),d&&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),f._sync("min",h),f._sync("max",p),f.autocolorscale&&(o=h*p<0?l.colorscale.diverging:h>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},5504:function(e,t,r){"use strict";var n=r(3400),a=r(4288).hasColorscale,i=r(4288).extractOpts;e.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,a){var o=a.container?n.nestedProperty(e,a.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,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],u=s._module.colorbar;if(u)if(Array.isArray(u))for(var c=0;c<u.length;c++)o(s,u[c]);else o(s,u);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)o(t[f],{min:"cmin",max:"cmax"})}},7260:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=r(553),o=r(4013),l=r(8304).isValid,s=r(4040).traceIs;function u(e,t){var r=t.slice(0,t.length-1);return t?a.nestedProperty(e,r).get()||{}:e}e.exports=function e(t,r,c,f,d){var h=d.prefix,p=d.cLetter,g="_module"in r,v=u(t,h),y=u(r,h),m=u(r._template||{},h)||{},x=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,c,f,d)};if(g){var b=c._colorAxes||{},_=f(h+"coloraxis");if(_){var w=s(r,"contour")&&a.nestedProperty(r,"contours.coloring").get()||"heatmap",M=b[_];return void(M?(M[2].push(x),M[0]!==w&&(M[0]=!1,a.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[_]=[w,r,[x]])}}var T=v[p+"min"],k=v[p+"max"],A=n(T)&&n(k)&&T<k;f(h+p+"auto",!A)?f(h+p+"mid"):(f(h+p+"min"),f(h+p+"max"));var S,L,D=v.colorscale,C=m.colorscale;void 0!==D&&(S=!l(D)),void 0!==C&&(S=!l(C)),f(h+"autocolorscale",S),f(h+"colorscale"),f(h+"reversescale"),"marker.line."!==h&&(h&&g&&(L=i(v)),f(h+"showscale",L)&&(h&&m&&(y._template=m),o(v,y,c)))}},4288:function(e,t,r){"use strict";var n=r(3428),a=r(9760),i=r(8248),o=r(3400),l=r(6308),s=r(8304).isValid,u=["showscale","autocolorscale","colorscale","reversescale","colorbar"],c=["min","max","mid","auto"];function f(e){var t,r,n,a=e._colorAx,i=a||e,o={};for(r=0;r<u.length;r++)o[n=u[r]]=i[n];if(a)for(t="c",r=0;r<c.length;r++)o[n=c[r]]=i["c"+n];else{var l;for(r=0;r<c.length;r++)((l="c"+(n=c[r]))in i||(l="z"+n)in i)&&(o[n]=i[l]);t=l.charAt(0)}return o._sync=function(e,r){var n=-1!==c.indexOf(e)?t+e:e;i[n]=i["_"+n]=r},o}function d(e){for(var t=f(e),r=t.min,n=t.max,a=t.reversescale?h(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var u=a[s];o[s]=r+u[0]*(n-r),l[s]=u[1]}return{domain:o,range:l}}function h(e){for(var t=e.length,r=new Array(t),n=t-1,a=0;n>=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function p(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,u=new Array(s),c=0;c<s;c++){var f=a(o[c]).toRgb();u[c]=[f.r,f.g,f.b,f.a]}var d,h=n.scale.linear().domain(r).range(u).clamp(!0),p=t.noNumericCheck,v=t.returnArray;return(d=p&&v?h:p?function(e){return g(h(e))}:v?function(e){return i(e)?h(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?g(h(e)):a(e).isValid()?e:l.defaultLine}).domain=h.domain,d.range=function(){return o},d}function g(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports={hasColorscale:function(e,t,r){var n=t?o.nestedProperty(e,t).get()||{}:e,a=n[r||"color"];a&&a._inputArray&&(a=a._inputArray);var l=!1;if(o.isArrayOrTypedArray(a))for(var u=0;u<a.length;u++)if(i(a[u])){l=!0;break}return o.isPlainObject(n)&&(l||!0===n.showscale||i(n.cmin)&&i(n.cmax)||s(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:d,flipScale:h,makeColorScaleFunc:p,makeColorScaleFuncFromTrace:function(e,t){return p(d(e),t)}}},8932:function(e,t,r){"use strict";var n=r(8304),a=r(4288);e.exports={moduleType:"component",name:"colorscale",attributes:r(9084),layoutAttributes:r(2332),supplyLayoutDefaults:r(1608),handleDefaults:r(7260),crossTraceDefaults:r(5504),calc:r(7128),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},2332:function(e,t,r){"use strict";var n=r(2880).extendFlat,a=r(9084),i=r(8304).scales;e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc"}},coloraxis:n({_isSubplotObj:!0,editType:"calc"},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},1608:function(e,t,r){"use strict";var n=r(3400),a=r(1780),i=r(2332),o=r(7260);e.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var l,s,u=t._colorAxes;function c(e,t){return n.coerce(l,s,i.coloraxis,e,t)}for(var f in u){var d=u[f];if(d[0])l=e[f]||{},(s=a.newContainer(t,f,"coloraxis"))._name=f,o(l,s,t,c,{prefix:"",cLetter:"c"});else{for(var h=0;h<d[2].length;h++)d[2][h]();delete t._colorAxes[f]}}}},8304:function(e,t,r){"use strict";var n=r(9760),a={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=a.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 a=e[r];if(2!==a.length||+a[0]<t||!n(a[1]).isValid())return!1;t=+a[0]}return!0}e.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function r(){try{e=a[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!==a[e]||o(e)}}},8316:function(e){"use strict";e.exports=function(e,t,r,n,a){var i=(e-r)/(n-r),o=i+t/(n-r),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},7416:function(e,t,r){"use strict";var n=r(3400),a=[["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:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),a[t][e]}},2760:function(e,t){"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)}},6476:function(e,t,r){"use strict";var n=r(9128),a=r(2264),i=r(9184),o=r(3400).removeElement,l=r(3816),s=e.exports={};s.align=r(8316),s.getCursor=r(7416);var u=r(2616);function c(){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 f(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=u.wrapped,s.unhoverRaw=u.raw,s.init=function(e){var t,r,n,u,d,h,p,g,v=e.gd,y=1,m=v._context.doubleClickDelay,x=e.element;v._mouseDownTime||(v._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)<r&&(e=0),Math.abs(t)<r&&(t=0),[e,t]};function _(i){v._dragged=!1,v._dragging=!0;var o=f(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),(n=(new Date).getTime())-v._mouseDownTime<m?y+=1:(y=1,v._mouseDownTime=n),e.prepFn&&e.prepFn(i,t,r),a&&!g?(d=c()).style.cursor=window.getComputedStyle(x).cursor:a||(d=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",M),document.addEventListener("touchend",M),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(n){n.preventDefault();var a=f(n),i=e.minDrag||l.MINDRAG,o=b(a[0]-t,a[1]-r,i),u=o[0],c=o[1];(u||c)&&(v._dragged=!0,s.unhover(v,n)),v._dragged&&e.moveFn&&!g&&(v._dragdata={element:x,dx:u,dy:c},e.moveFn(u,c))}function M(t){if(delete v._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",M),document.removeEventListener("touchend",M),a?o(d):u&&(d.documentElement.style.cursor=u,u=null),v._dragging){if(v._dragging=!1,(new Date).getTime()-v._mouseDownTime>m&&(y=Math.max(y-1,1)),v._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 n=f(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(r)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},s.coverSlip=c},2616:function(e,t,r){"use strict";var n=r(5924),a=r(1200),i=r(2200).getGraphDiv,o=r(2456),l=e.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===n.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&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},8192:function(e,t){"use strict";t.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},t.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},3616:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=a.numberFormat,o=r(8248),l=r(9760),s=r(4040),u=r(6308),c=r(8932),f=a.strTranslate,d=r(2736),h=r(9616),p=r(4284).LINE_SPACING,g=r(3448).DESELECTDIM,v=r(3028),y=r(7152),m=r(624).appendArrayPointValue,x=e.exports={};function b(e,t,r,n){var a=t.fillpattern,i=t.fillgradient,o=a&&x.getPatternAttr(a.shape,0,"");if(o){var l=x.getPatternAttr(a.bgcolor,0,null),s=x.getPatternAttr(a.fgcolor,0,null),c=a.fgopacity,f=x.getPatternAttr(a.size,0,8),d=x.getPatternAttr(a.solidity,0,.3),h=t.uid;x.pattern(e,"point",r,h,o,f,d,void 0,a.fillmode,l,s,c)}else if(i&&"none"!==i.type){var p,g,v=i.type,y="scatterfill-"+t.uid;n&&(y="legendfill-"+t.uid),n||void 0===i.start&&void 0===i.stop?("horizontal"===v&&(v+="reversed"),e.call(x.gradient,r,y,v,i.colorscale,"fill")):("horizontal"===v?(p={x:i.start,y:0},g={x:i.stop,y:0}):"vertical"===v&&(p={x:0,y:i.start},g={x:0,y:i.stop}),p.x=t._xA.c2p(void 0===p.x?t._extremes.x.min[0].val:p.x,!0),p.y=t._yA.c2p(void 0===p.y?t._extremes.y.min[0].val:p.y,!0),g.x=t._xA.c2p(void 0===g.x?t._extremes.x.max[0].val:g.x,!0),g.y=t._yA.c2p(void 0===g.y?t._extremes.y.max[0].val:g.y,!0),e.call(A,r,y,"linear",i.colorscale,"fill",p,g,!0,!1))}else t.fillcolor&&e.call(u.fill,t.fillcolor)}x.font=function(e,t,r,n){a.isPlainObject(t)&&(n=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),n&&e.call(u.fill,n)},x.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},x.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},x.setRect=function(e,t,r,n,a){e.call(x.setPosition,t,r).call(x.setSize,n,a)},x.translatePoint=function(e,t,r,n){var a=r.c2p(e.x),i=n.c2p(e.y);return!!(o(a)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",i):t.attr("transform",f(a,i)),!0)},x.translatePoints=function(e,t,r){e.each((function(e){var a=n.select(this);x.translatePoint(e,a,t,r)}))},x.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},x.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,u=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each((function(e){x.hideOutsideRangePoint(e,n.select(this),r,a,o,l)}))}))}},x.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},x.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";u.stroke(t,n||i.color),x.dashLine(t,l,o)},x.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";n.select(this).call(u.stroke,r||i.color).call(x.dashLine,l,o)}))},x.dashLine=function(e,t,r){r=+r||0,t=x.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},x.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},x.singleFillStyle=function(e,t){var r=n.select(e.node());b(e,((r.data()[0]||[])[0]||{}).trace||{},t,!1)},x.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each((function(e){var a=n.select(this);e[0].trace&&b(a,e[0].trace,t,r)}))};var _=r(1984);x.symbolNames=[],x.symbolFuncs=[],x.symbolBackOffs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(_).forEach((function(e){var t=_[e],r=t.n;x.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),x.symbolNames[r]=e,x.symbolFuncs[r]=t.f,x.symbolBackOffs[r]=t.backoff||0,t.needLine&&(x.symbolNeedLines[r]=!0),t.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(x.symbolNoFill[r]=!0)}));var w=x.symbolNames.length;function M(e,t,r,n){var a=e%100;return x.symbolFuncs[a](t,r,n)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(e){if(o(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=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=w||e>=400?0:Math.floor(Math.max(e,0))};var T=i("~f"),k={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function A(e,t,r,i,o,s,c,f,d,h){var p,g=o.length;"linear"===i?p={node:"linearGradient",attrs:{x1:c.x,y1:c.y,x2:f.x,y2:f.y,gradientUnits:d?"userSpaceOnUse":"objectBoundingBox"},reversed:h}:"radial"===i&&(p={node:"radialGradient",reversed:h});for(var v=new Array(g),y=0;y<g;y++)p.reversed?v[g-1-y]=[T(100*(1-o[y][0])),o[y][1]]:v[y]=[T(100*o[y][0]),o[y][1]];var m=t._fullLayout,x="g"+m._uid+"-"+r,b=m._defs.select(".gradients").selectAll("#"+x).data([i+v.join(";")],a.identity);b.exit().remove(),b.enter().append(p.node).each((function(){var e=n.select(this);p.attrs&&e.attr(p.attrs),e.attr("id",x);var t=e.selectAll("stop").data(v);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=l(e[1]);n.select(this).attr({offset:e[0]+"%","stop-color":u.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,H(x,t)).style(s+"-opacity",null),e.classed("gradient_filled",!0)}x.gradient=function(e,t,r,n,a,i){var o=k[n];return A(e,t,r,o.type,a,i,o.start,o.stop,!1,o.reversed)},x.pattern=function(e,t,r,i,o,s,c,f,d,h,p,g){var v="legend"===t;f&&("overlay"===d?(h=f,p=u.contrast(h)):(h=void 0,p=f));var y,m,x,b,_,w,M,T,k,A=r._fullLayout,S="p"+A._uid+"-"+i,L={},D=l(p),C=u.tinyRGB(D),P=g*D.getAlpha();switch(o){case"/":y=s*Math.sqrt(2),m=s*Math.sqrt(2),w="path",L={d:x="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2,opacity:P,stroke:C,"stroke-width":(b=c*s)+"px"};break;case"\\":y=s*Math.sqrt(2),m=s*Math.sqrt(2),w="path",L={d:x="M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,opacity:P,stroke:C,"stroke-width":(b=c*s)+"px"};break;case"x":y=s*Math.sqrt(2),m=s*Math.sqrt(2),x="M-"+y/4+","+m/4+"l"+y/2+",-"+m/2+"M0,"+m+"L"+y+",0M"+y/4*3+","+m/4*5+"l"+y/2+",-"+m/2+"M"+y/4*3+",-"+m/4+"l"+y/2+","+m/2+"M0,0L"+y+","+m+"M-"+y/4+","+m/4*3+"l"+y/2+","+m/2,b=s-s*Math.sqrt(1-c),w="path",L={d:x,opacity:P,stroke:C,"stroke-width":b+"px"};break;case"|":w="path",w="path",L={d:x="M"+(y=s)/2+",0L"+y/2+","+(m=s),opacity:P,stroke:C,"stroke-width":(b=c*s)+"px"};break;case"-":w="path",w="path",L={d:x="M0,"+(m=s)/2+"L"+(y=s)+","+m/2,opacity:P,stroke:C,"stroke-width":(b=c*s)+"px"};break;case"+":w="path",x="M"+(y=s)/2+",0L"+y/2+","+(m=s)+"M0,"+m/2+"L"+y+","+m/2,b=s-s*Math.sqrt(1-c),w="path",L={d:x,opacity:P,stroke:C,"stroke-width":b+"px"};break;case".":y=s,m=s,c<Math.PI/4?_=Math.sqrt(c*s*s/Math.PI):(M=c,T=Math.PI/4,1,_=(k=s/2)+(s/Math.sqrt(2)-k)*(M-T)/(1-T)),w="circle",L={cx:y/2,cy:m/2,r:_,opacity:P,fill:C}}var O=[o||"noSh",h||"noBg",p||"noFg",s,c].join(";"),R=A._defs.select(".patterns").selectAll("#"+S).data([O],a.identity);R.exit().remove(),R.enter().append("pattern").each((function(){var e=n.select(this);if(e.attr({id:S,width:y+"px",height:m+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),h){var t=l(h),r=u.tinyRGB(t),a=t.getAlpha(),i=e.selectAll("rect").data([0]);i.exit().remove(),i.enter().append("rect").attr({width:y+"px",height:m+"px",fill:r,"fill-opacity":a})}var o=e.selectAll(w).data([0]);o.exit().remove(),o.enter().append(w).attr(L)})),e.style("fill",H(S,r)).style("fill-opacity",null),e.classed("pattern_filled",!0)},x.initGradients=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),n.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},x.initPatterns=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),n.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},x.getPatternAttr=function(e,t,r){return e&&a.isArrayOrTypedArray(e)?t<e.length?e[t]:r:e},x.pointStyle=function(e,t,r,a){if(e.size()){var i=x.makePointStyleFns(t);e.each((function(e){x.singlePointStyle(e,n.select(this),t,i,r,a)}))}},x.singlePointStyle=function(e,t,r,n,i,o){var l=r.marker,s=l.line;if(o&&o.i>=0&&void 0===e.i&&(e.i=o.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):void 0===e.mo?l.opacity:e.mo),n.ms2mrc){var c;c="various"===e.ms||"various"===l.size?3:n.ms2mrc(e.ms),e.mrc=c,n.selectedSizeFn&&(c=e.mrc=n.selectedSizeFn(e));var f=x.symbolNumber(e.mx||l.symbol)||0;e.om=f%200>=100;var d=te(e,r),h=U(e,r);t.attr("d",M(f,c,d,h))}var p,g,v,y=!1;if(e.so)v=s.outlierwidth,g=s.outliercolor,p=l.outliercolor;else{var m=(s||{}).width;v=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,g="mlc"in e?e.mlcc=n.lineScale(e.mlc):a.isArrayOrTypedArray(s.color)?u.defaultLine:s.color,a.isArrayOrTypedArray(l.color)&&(p=u.defaultLine,y=!0),p="mc"in e?e.mcc=n.markerScale(e.mc):l.color||l.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(p=n.selectedColorFn(e))}if(e.om)t.call(u.stroke,p).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var b=l.gradient,_=e.mgt;_?y=!0:_=b&&b.type,a.isArrayOrTypedArray(_)&&(_=_[0],k[_]||(_=0));var w=l.pattern,T=w&&x.getPatternAttr(w.shape,e.i,"");if(_&&"none"!==_){var A=e.mgc;A?y=!0:A=b.color;var S=r.uid;y&&(S+="-"+e.i),x.gradient(t,i,S,_,[[0,A],[1,p]],"fill")}else if(T){var L=!1,D=w.fgcolor;!D&&o&&o.color&&(D=o.color,L=!0);var C=x.getPatternAttr(D,e.i,o&&o.color||null),P=x.getPatternAttr(w.bgcolor,e.i,null),O=w.fgopacity,R=x.getPatternAttr(w.size,e.i,8),E=x.getPatternAttr(w.solidity,e.i,.3);L=L||e.mcc||a.isArrayOrTypedArray(w.shape)||a.isArrayOrTypedArray(w.bgcolor)||a.isArrayOrTypedArray(w.fgcolor)||a.isArrayOrTypedArray(w.size)||a.isArrayOrTypedArray(w.solidity);var I=r.uid;L&&(I+="-"+e.i),x.pattern(t,"point",i,I,T,R,E,e.mcc,w.fillmode,P,C,O)}else a.isArrayOrTypedArray(p)?u.fill(t,p[e.i]):u.fill(t,p);v&&u.stroke(t,g)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=v.isBubble(e)?y(e):function(){return(r.size||6)/2}),e.selectedpoints&&a.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},o=r.marker||{},l=n.marker||{},u=i.opacity,c=o.opacity,f=l.opacity,d=void 0!==c,h=void 0!==f;(a.isArrayOrTypedArray(u)||d||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?c:t:h?f:g*t});var p=i.color,v=o.color,y=l.color;(v||y)&&(t.selectedColorFn=function(e){var t=e.mcc||p;return e.selected?v||t:y||t});var m=i.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return s.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||m/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,c=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:c||(s?t:u.addOpacity(t,g))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){u.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,n){var i=n.mx||a.symbol||0,o=r.selectedSizeFn(n);e.attr("d",M(x.symbolNumber(i),o,te(n,t),U(n,t))),n.mrc2=o})),i.length&&e.each((function(e){for(var t=n.select(this),r=0;r<i.length;r++)i[r](t,e)}))}},x.tryColorscale=function(e,t){var r=t?a.nestedProperty(e,t).get():e;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&a.isArrayOrTypedArray(n))return c.makeColorScaleFuncFromTrace(r)}return a.identity};var S,L,D={start:1,end:-1,middle:0,bottom:1,top:-1};function C(e,t,r,a,i){var o=n.select(e.node().parentNode),l=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",s=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",u=a?a/.8+1:0,c=(d.lineCount(e)-1)*p+1,h=D[s]*u,g=.75*r+D[l]*u+(D[l]-1)*c*r/2;e.attr("text-anchor",s),i||o.attr("transform",f(h,g))}function P(e,t){var r=e.ts||t.textfont.size;return o(r)&&r>0?r:0}function O(e,t,r){return r&&(e=F(e)),t?E(e[1]):R(e[0])}function R(e){var t=n.round(e,2);return S=t,t}function E(e){var t=n.round(e,2);return L=t,t}function I(e,t,r,n){var a=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],l=r[1]-t[1],s=Math.pow(a*a+i*i,.25),u=Math.pow(o*o+l*l,.25),c=(u*u*a-s*s*o)*n,f=(u*u*i-s*s*l)*n,d=3*u*(s+u),h=3*s*(s+u);return[[R(t[0]+(d&&c/d)),E(t[1]+(d&&f/d))],[R(t[0]-(h&&c/h)),E(t[1]-(h&&f/h))]]}x.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each((function(e){var o=n.select(this),u=l?a.extractOption(e,t,"txt","texttemplate"):a.extractOption(e,t,"tx","text");if(u||0===u){if(l){var c=t._module.formatLabels,f=c?c(e,t,s):{},h={};m(h,t,e.i);var p=t._meta||{};u=a.texttemplateString(u,f,s._d3locale,h,e,p)}var g=e.tp||t.textposition,v=P(e,t),y=i?i(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,v,y).text(u).call(d.convertToTspans,r).call(C,g,v,e.mrc)}else o.remove()}))}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each((function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=P(e,t);u.fill(a,i);var c=s.traceIs(t,"bar-like");C(a,o,l,e.mrc2||e.mrc,c)}))}},x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r<e.length-1;r++)a.push(I(e[r-1],e[r],e[r+1],t));for(n+="Q"+a[0][0]+" "+e[1],r=2;r<e.length-1;r++)n+="C"+a[r-2][1]+" "+a[r-1][0]+" "+e[r];return n+"Q"+a[e.length-3][1]+" "+e[e.length-1]},x.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r,n="M"+e[0],a=e.length-1,i=[I(e[a],e[0],e[1],t)];for(r=1;r<a;r++)i.push(I(e[r-1],e[r],e[r+1],t));for(i.push(I(e[a-1],e[a],e[0],t)),r=1;r<=a;r++)n+="C"+i[r-1][1]+" "+i[r][0]+" "+e[r];return n+"C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var N={hv:function(e,t,r){return"H"+R(t[0])+"V"+O(t,1,r)},vh:function(e,t,r){return"V"+E(t[1])+"H"+O(t,0,r)},hvh:function(e,t,r){return"H"+R((e[0]+t[0])/2)+"V"+E(t[1])+"H"+O(t,0,r)},vhv:function(e,t,r){return"V"+E((e[1]+t[1])/2)+"H"+R(t[0])+"V"+O(t,1,r)}},z=function(e,t,r){return"L"+O(t,0,r)+","+O(t,1,r)};function F(e,t){var r=e.backoff,n=e.trace,i=e.d,o=e.i;if(r&&n&&n.marker&&n.marker.angle%360==0&&n.line&&"spline"!==n.line.shape){var l=a.isArrayOrTypedArray(r),s=e,u=t?t[0]:S||0,c=t?t[1]:L||0,f=s[0],d=s[1],h=f-u,p=d-c,g=Math.atan2(p,h),v=l?r[o]:r;if("auto"===v){var y=s.i;"scatter"===n.type&&y--;var m=s.marker,b=m.symbol;a.isArrayOrTypedArray(b)&&(b=b[y]);var _=m.size;a.isArrayOrTypedArray(_)&&(_=_[y]),v=m?x.symbolBackOffs[x.symbolNumber(b)]*_:0,v+=x.getMarkerStandoff(i[y],n)||0}var w=f-v*Math.cos(g),M=d-v*Math.sin(g);(w<=f&&w>=u||w>=f&&w<=u)&&(M<=d&&M>=c||M>=d&&M<=c)&&(e=[w,M])}return e}x.steps=function(e){var t=N[e]||z;return function(e){for(var r="M"+R(e[0][0])+","+E(e[0][1]),n=e.length,a=1;a<n;a++)r+=t(e[a-1],e[a],a===n-1);return r}},x.applyBackoff=F,x.makeTester=function(){var e=a.ensureSingleById(n.select("body"),"svg","js-plotly-tester",(function(e){e.attr(h.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=a.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));x.tester=e,x.testref=t},x.savedBBoxes={};var j=0;function B(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function H(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}x.bBox=function(e,t,r){var i,o,l;if(r||(r=B(e)),r){if(i=x.savedBBoxes[r])return a.extendFlat({},i)}else if(1===e.childNodes.length){var s=e.childNodes[0];if(r=B(s)){var u=+s.getAttribute("x")||0,c=+s.getAttribute("y")||0,f=s.getAttribute("transform");if(!f){var h=x.bBox(s,!1,r);return u&&(h.left+=u,h.right+=u),c&&(h.top+=c,h.bottom+=c),h}if(r+="~"+u+"~"+c+"~"+f,i=x.savedBBoxes[r])return a.extendFlat({},i)}}t?o=e:(l=x.tester.node(),o=e.cloneNode(!0),l.appendChild(o)),n.select(o).attr("transform",null).call(d.positionText,0,0);var p=o.getBoundingClientRect(),g=x.testref.node().getBoundingClientRect();t||l.removeChild(o);var v={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 j>=1e4&&(x.savedBBoxes={},j=0),r&&(x.savedBBoxes[r]=v),j++,a.extendFlat({},v)},x.setClipUrl=function(e,t,r){e.attr("clip-path",H(t,r))},x.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}},x.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=f(t,r)).trim(),e[a]("transform",i),i},x.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}},x.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[a]("transform",i),i};var G=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(G,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var Y=/translate\([^)]*\)\s*$/;function U(e,t){var r;return e&&(r=e.mf),void 0===r&&(r=t.marker&&t.marker.standoff||0),t._geo||t._xA?r:-r}x.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(Y);e=1===t&&1===r?[]:[f(o,l),"scale("+t+","+r+")",f(-o,-l)],s&&e.push(s),a.attr("transform",e.join(""))}}))},x.getMarkerStandoff=U;var q,V,W,Z,J,X,$=Math.atan2,K=Math.cos,Q=Math.sin;function ee(e,t){var r=t[0],n=t[1];return[r*K(e)-n*Q(e),r*Q(e)+n*K(e)]}function te(e,t){var r,n,i=e.ma;void 0===i&&((i=t.marker.angle)&&!a.isArrayOrTypedArray(i)||(i=0));var l=t.marker.angleref;if("previous"===l||"north"===l){if(t._geo){var s=t._geo.project(e.lonlat);r=s[0],n=s[1]}else{var u=t._xA,c=t._yA;if(!u||!c)return 90;r=u.c2p(e.x),n=c.c2p(e.y)}if(t._geo){var f,d=e.lonlat[0],h=e.lonlat[1],p=t._geo.project([d,h+1e-5]),g=t._geo.project([d+1e-5,h]),v=$(g[1]-n,g[0]-r),y=$(p[1]-n,p[0]-r);if("north"===l)f=i/180*Math.PI;else if("previous"===l){var m=d/180*Math.PI,x=h/180*Math.PI,b=q/180*Math.PI,_=V/180*Math.PI,w=b-m,M=K(_)*Q(w),T=Q(_)*K(x)-K(_)*Q(x)*K(w);f=-$(M,T)-Math.PI,q=d,V=h}var k=ee(v,[K(f),0]),A=ee(y,[Q(f),0]);i=$(k[1]+A[1],k[0]+A[0])/Math.PI*180,"previous"!==l||X===t.uid&&e.i===J+1||(i=null)}if("previous"===l&&!t._geo)if(X===t.uid&&e.i===J+1&&o(r)&&o(n)){var S=r-W,L=n-Z,D=t.line&&t.line.shape||"",C=D.slice(D.length-1);"h"===C&&(L=0),"v"===C&&(S=0),i+=$(L,S)/Math.PI*180+90}else i=null}return W=r,Z=n,J=e.i,X=t.uid,i}x.getMarkerAngle=te},1984:function(e,t,r){"use strict";var n,a,i,o,l=r(9604),s=r(3428).round,u="M0,0Z",c=Math.sqrt(2),f=Math.sqrt(3),d=Math.PI,h=Math.cos,p=Math.sin;function g(e){return null===e}function v(e,t,r){if(!(e&&e%360!=0||t))return r;if(i===e&&o===t&&n===r)return a;function s(e,r){var n=h(e),a=p(e),i=r[0],o=r[1]+(t||0);return[i*n-o*a,i*a+o*n]}i=e,o=t,n=r;for(var u=e/180*d,c=0,f=0,g=l(r),v="",y=0;y<g.length;y++){var m=g[y],x=m[0],b=c,_=f;if("M"===x||"L"===x)c=+m[1],f=+m[2];else if("m"===x||"l"===x)c+=+m[1],f+=+m[2];else if("H"===x)c=+m[1];else if("h"===x)c+=+m[1];else if("V"===x)f=+m[1];else if("v"===x)f+=+m[1];else if("A"===x){c=+m[1],f=+m[2];var w=s(u,[+m[6],+m[7]]);m[6]=w[0],m[7]=w[1],m[3]=+m[3]+e}"H"!==x&&"V"!==x||(x="L"),"h"!==x&&"v"!==x||(x="l"),"m"!==x&&"l"!==x||(c-=b,f-=_);var M=s(u,[c,f]);"H"!==x&&"V"!==x||(x="L"),"M"!==x&&"L"!==x&&"m"!==x&&"l"!==x||(m[1]=M[0],m[2]=M[1]),m[0]=x,v+=m[0]+m.slice(1).join(",")}return a=v,v}e.exports={circle:{n:0,f:function(e,t,r){if(g(t))return u;var n=s(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?v(t,r,a):a}},square:{n:1,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(g(t))return u;var n=s(1.3*e,2);return v(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(g(t))return u;var n=s(.4*e,2),a=s(1.2*e,2);return v(t,r,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(g(t))return u;var n=s(.8*e/c,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return v(t,r,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(g(t))return u;var n=s(2*e/f,2);return v(t,r,"M-"+n+","+s(e/2,2)+"H"+n+"L0,-"+s(e,2)+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(g(t))return u;var n=s(2*e/f,2);return v(t,r,"M-"+n+",-"+s(e/2,2)+"H"+n+"L0,"+s(e,2)+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(g(t))return u;var n=s(2*e/f,2);return v(t,r,"M"+s(e/2,2)+",-"+n+"V"+n+"L-"+s(e,2)+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(g(t))return u;var n=s(2*e/f,2);return v(t,r,"M-"+s(e/2,2)+",-"+n+"V"+n+"L"+s(e,2)+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(g(t))return u;var n=s(.6*e,2),a=s(1.2*e,2);return v(t,r,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(g(t))return u;var n=s(.6*e,2),a=s(1.2*e,2);return v(t,r,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(g(t))return u;var n=s(.6*e,2),a=s(1.2*e,2);return v(t,r,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(g(t))return u;var n=s(.6*e,2),a=s(1.2*e,2);return v(t,r,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(g(t))return u;var n=s(.951*e,2),a=s(.588*e,2),i=s(-e,2),o=s(-.309*e,2);return v(t,r,"M"+n+","+o+"L"+a+","+s(.809*e,2)+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,t,r){if(g(t))return u;var n=s(e,2),a=s(e/2,2),i=s(e*f/2,2);return v(t,r,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(g(t))return u;var n=s(e,2),a=s(e/2,2),i=s(e*f/2,2);return v(t,r,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(g(t))return u;var n=s(.924*e,2),a=s(.383*e,2);return v(t,r,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(g(t))return u;var n=1.4*e,a=s(.225*n,2),i=s(.951*n,2),o=s(.363*n,2),l=s(.588*n,2),c=s(-n,2),f=s(-.309*n,2),d=s(.118*n,2),h=s(.809*n,2);return v(t,r,"M"+a+","+f+"H"+i+"L"+o+","+d+"L"+l+","+h+"L0,"+s(.382*n,2)+"L-"+l+","+h+"L-"+o+","+d+"L-"+i+","+f+"H-"+a+"L0,"+c+"Z")}},hexagram:{n:18,f:function(e,t,r){if(g(t))return u;var n=s(.66*e,2),a=s(.38*e,2),i=s(.76*e,2);return v(t,r,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(g(t))return u;var n=s(e*f*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),l="A "+o+","+o+" 0 0 1 ";return v(t,r,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(g(t))return u;var n=s(e*f*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),l="A "+o+","+o+" 0 0 1 ";return v(t,r,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(g(t))return u;var n=s(1.1*e,2),a=s(2*e,2),i="A "+a+","+a+" 0 0 1 ";return v(t,r,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(g(t))return u;var n=s(1.4*e,2),a=s(1.9*e,2),i="A "+a+","+a+" 0 0 1 ";return v(t,r,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(g(t))return u;var n=s(.7*e,2),a=s(1.4*e,2);return v(t,r,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(g(t))return u;var n=s(1.4*e,2),a=s(.7*e,2);return v(t,r,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(g(t))return u;var n=s(e,2),a=s(e/c,2);return v(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(g(t))return u;var n=s(1.3*e,2);return v(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(g(t))return u;var n=s(1.3*e,2),a=s(.65*e,2);return v(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(g(t))return u;var n=s(1.4*e,2);return v(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(g(t))return u;var n=s(1.2*e,2),a=s(.85*e,2);return v(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(g(t))return u;var n=s(e/2,2),a=s(e,2);return v(t,r,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(g(t))return u;var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return v(t,r,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(g(t))return u;var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return v(t,r,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(g(t))return u;var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return v(t,r,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(g(t))return u;var n=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return v(t,r,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(g(t))return u;var n=s(1.4*e,2);return v(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(g(t))return u;var n=s(1.4*e,2);return v(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M0,0L-"+n+","+s(2*e,2)+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M0,0L-"+n+",-"+s(2*e,2)+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(g(t))return u;var n=s(2*e,2),a=s(e,2);return v(t,r,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(g(t))return u;var n=s(2*e,2),a=s(e,2);return v(t,r,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+s(2*e,2)+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(g(t))return u;var n=s(e,2);return v(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+s(2*e,2)+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(g(t))return u;var n=s(2*e,2),a=s(e,2);return v(t,r,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(g(t))return u;var n=s(2*e,2),a=s(e,2);return v(t,r,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(g(t))return u;var n=d/2.5,a=2*e*h(n),i=2*e*p(n);return v(t,r,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(g(t))return u;var n=d/4,a=2*e*h(n),i=2*e*p(n);return v(t,r,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}}},7644:function(e){"use strict";e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},4880:function(e,t,r){"use strict";var n=r(8248),a=r(4040),i=r(4460),o=r(3400),l=r(3792);function s(e,t,r,a){var s=t["error_"+a]||{},u=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var c=l(s),f=0;f<e.length;f++){var d=e[f],h=d.i;if(void 0===h)h=f;else if(null===h)continue;var p=d[a];if(n(r.c2l(p))){var g=c(p,h);if(n(g[0])&&n(g[1])){var v=d[a+"s"]=p-g[0],y=d[a+"h"]=p+g[1];u.push(v,y)}}}var m=r._id,x=t._extremes[m],b=i.findExtremes(r,u,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 n=t[r],o=n[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),u=i.getFromId(e,o.yaxis);s(n,o,l,"x"),s(n,o,u,"y")}}}},3792:function(e){"use strict";function t(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 r=e.type,n=e.symmetric;if("data"===r){var a=e.array||[];if(n)return function(e,t){var r=+a[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+a[t],n=+i[t];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=t(r,e.value),l=t(r,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},5200:function(e,t,r){"use strict";var n=r(8248),a=r(4040),i=r(3400),o=r(1780),l=r(7644);e.exports=function(e,t,r,s){var u="error_"+s.axis,c=o.newContainer(t,u),f=e[u]||{};function d(e,t){return i.coerce(f,c,l,e,t)}if(!1!==d("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var h=d("type","array"in f?"data":"percent"),p=!0;"sqrt"!==h&&(p=d("symmetric",!(("data"===h?"arrayminus":"valueminus")in f))),"data"===h?(d("array"),d("traceref"),p||(d("arrayminus"),d("tracerefminus"))):"percent"!==h&&"constant"!==h||(d("value"),p||d("valueminus"));var g="copy_"+s.inherit+"style";s.inherit&&(t["error_"+s.inherit]||{}).visible&&d(g,!(f.color||n(f.thickness)||n(f.width))),s.inherit&&c[g]||(d("color",r),d("thickness"),d("width",a.traceIs(t,"gl3d")?0:4))}}},4968:function(e,t,r){"use strict";var n=r(3400),a=r(7824).overrideAll,i=r(7644),o={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i),error_z:n.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:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:r(5200),calc:r(4880),makeComputeError:r(3792),plot:r(8512),style:r(2036),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))}}},8512:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(3616),o=r(3028);e.exports=function(e,t,r,l){var s=r.xaxis,u=r.yaxis,c=l&&l.duration>0,f=e._context.staticPlot;t.each((function(t){var d,h=t[0].trace,p=h.error_x||{},g=h.error_y||{};h.ids&&(d=function(e){return e.id});var v=o.hasMarkers(h)&&h.marker.maxdisplayed>0;g.visible||p.visible||(t=[]);var y=n.select(this).selectAll("g.errorbar").data(t,d);if(y.exit().remove(),t.length){p.visible||y.selectAll("path.xerror").remove(),g.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var m=y.enter().append("g").classed("errorbar",!0);c&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(y,r.layerClipId,e),y.each((function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}(e,s,u);if(!v||e.vis){var i,o=t.select("path.yerror");if(g.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var d=g.width;i="M"+(r.x-d)+","+r.yh+"h"+2*d+"m-"+d+",0V"+r.ys,r.noYS||(i+="m-"+d+",0h"+2*d),o.size()?c&&(o=o.transition().duration(l.duration).ease(l.easing)):o=t.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0),o.attr("d",i)}else o.remove();var h=t.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var y=(p.copy_ystyle?g:p).width;i="M"+r.xh+","+(r.y-y)+"v"+2*y+"m0,-"+y+"H"+r.xs,r.noXS||(i+="m0,-"+y+"v"+2*y),h.size()?c&&(h=h.transition().duration(l.duration).ease(l.easing)):h=t.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0),h.attr("d",i)}else h.remove()}}))}}))}},2036:function(e,t,r){"use strict";var n=r(3428),a=r(6308);e.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},5756:function(e,t,r){"use strict";var n=r(5376),a=r(5460).hoverlabel,i=r(2880).extendFlat;e.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},5056:function(e,t,r){"use strict";var n=r(3400),a=r(4040);function i(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}e.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l<t.length;l++){var s=t[l],u=s[0].trace;if(!a.traceIs(u,"pie-like")){var c=a.traceIs(u,"2dMap")?i:n.fillArray;c(u.hoverinfo,s,"hi",o(u)),u.hovertemplate&&c(u.hovertemplate,s,"ht"),u.hoverlabel&&(c(u.hoverlabel.bgcolor,s,"hbg"),c(u.hoverlabel.bordercolor,s,"hbc"),c(u.hoverlabel.font.size,s,"hts"),c(u.hoverlabel.font.color,s,"htc"),c(u.hoverlabel.font.family,s,"htf"),c(u.hoverlabel.namelength,s,"hnl"),c(u.hoverlabel.align,s,"hta"))}}}},2376:function(e,t,r){"use strict";var n=r(4040),a=r(3292).hover;e.exports=function(e,t,r){var i=n.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&a(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},2456:function(e){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},5448:function(e,t,r){"use strict";var n=r(3400),a=r(5756),i=r(6132);e.exports=function(e,t,r,o){var l=n.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(r,i){return n.coerce(e,t,a,r,i)}),l)}},624:function(e,t,r){"use strict";var n=r(3400);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,r){if("splom"===e.type){for(var n=e.xaxes||[],a=e.yaxes||[],i=0;i<n.length;i++)for(var o=0;o<a.length;o++)if(-1!==r.indexOf(n[i]+a[o]))return!0;return!1}return-1!==r.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=t;return r},t.p2c=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n].p2c(t);return r},t.getDistanceFunction=function(e,r,n,a){return"closest"===e?a||t.quadrature(r,n):"x"===e.charAt(0)?r:n},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 n=0;n<e.length;n++){var a=t(e[n]);a<=r.distance&&(r.index=n,r.distance=a)}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 n=e(r),a=t(r);return Math.sqrt(n*n+a*a)}},t.makeEventData=function(e,r,n){var a="index"in e?e.index:e.pointNumber,i={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};if(r._indexToPoints){var o=r._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return r._module.eventData?i=r._module.eventData(i,e,r,n,a):("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,a),i},t.appendArrayPointValue=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],u=i(s);if(void 0===e[u]){var c=o(n.nestedProperty(t,s).get(),r);void 0!==c&&(e[u]=c)}}},t.appendArrayMultiPointValues=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],u=i(s);if(void 0===e[u]){for(var c=n.nestedProperty(t,s).get(),f=new Array(r.length),d=0;d<r.length;d++)f[d]=o(c,r[d]);e[u]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[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]}},3292:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(9760),o=r(3400),l=o.pushUnique,s=o.strTranslate,u=o.strRotate,c=r(5924),f=r(2736),d=r(2213),h=r(3616),p=r(6308),g=r(6476),v=r(4460),y=r(4040),m=r(624),x=r(2456),b=r(7864),_=r(1140),w=x.YANGLE,M=Math.PI*w/180,T=1/Math.sin(M),k=Math.cos(M),A=Math.sin(M),S=x.HOVERARROWSIZE,L=x.HOVERTEXTPAD,D={box:!0,ohlc:!0,violin:!0,candlestick:!0},C={scatter:!0,scattergl:!0,splom:!0};function P(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}t.hover=function(e,t,r,i){e=o.getGraphDiv(e);var s=t.target;o.throttle(e._fullLayout._uid+x.HOVERID,x.HOVERMINTIME,(function(){!function(e,t,r,i,s){r||(r="xy");var u,f=Array.isArray(r)?r:[r],h=e._fullLayout,x=h.hoversubplots,b=h._plots||[],_=b[r],w=h._has("cartesian"),M=t.hovermode||h.hovermode,k="x"===(M||"").charAt(0),A="y"===(M||"").charAt(0);if(w&&(k||A)&&"axis"===x)for(var L=f.length,O=0;O<L;O++)if(b[u=f[O]]){var E=v.getFromId(e,u,k?"x":"y")._subplotsWith;if(E&&E.length)for(var B=0;B<E.length;B++)l(f,E[B])}if(_&&"single"!==x){var U=_.overlays.map((function(e){return e.id}));f=f.concat(U)}for(var q=f.length,V=new Array(q),W=new Array(q),Z=!1,J=0;J<q;J++)if(b[u=f[J]])Z=!0,V[J]=b[u].xaxis,W[J]=b[u].yaxis;else{if(!h[u]||!h[u]._subplot)return void o.warn("Unrecognized subplot: "+u);var X=h[u]._subplot;V[J]=X.xaxis,W[J]=X.yaxis}if(M&&!Z&&(M="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(M)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return g.unhoverRaw(e,t);var $=h.hoverdistance;-1===$&&($=1/0);var K=h.spikedistance;-1===K&&(K=1/0);var Q,ee,te,re,ne,ae,ie,oe,le,se,ue,ce,fe,de=[],he=[],pe={hLinePoint:null,vLinePoint:null},ge=!1;if(Array.isArray(t))for(M="array",te=0;te<t.length;te++)(ne=e.calcdata[t[te].curveNumber||0])&&(ae=ne[0].trace,"skip"!==ne[0].trace.hoverinfo&&(he.push(ne),"h"===ae.orientation&&(ge=!0)));else{var ve,ye,me=e.calcdata.slice();for(me.sort((function(e,t){return(e[0].trace.zorder||0)-(t[0].trace.zorder||0)})),re=0;re<me.length;re++)ne=me[re],"skip"!==(ae=ne[0].trace).hoverinfo&&m.isTraceInSubplots(ae,f)&&(he.push(ne),"h"===ae.orientation&&(ge=!0));if(s){if(!1===c.triggerHandler(e,"plotly_beforehover",t))return;var xe=s.getBoundingClientRect();ve=t.clientX-xe.left,ye=t.clientY-xe.top,h._calcInverseTransform(e);var be=o.apply3DTransform(h._invTransform)(ve,ye);if(ve=be[0],ye=be[1],ve<0||ve>V[0]._length||ye<0||ye>W[0]._length)return g.unhoverRaw(e,t)}else ve="xpx"in t?t.xpx:V[0]._length/2,ye="ypx"in t?t.ypx:W[0]._length/2;if(t.pointerX=ve+V[0]._offset,t.pointerY=ye+W[0]._offset,Q="xval"in t?m.flat(f,t.xval):m.p2c(V,ve),ee="yval"in t?m.flat(f,t.yval):m.p2c(W,ye),!a(Q[0])||!a(ee[0]))return o.warn("Fx.hover failed",t,e),g.unhoverRaw(e,t)}var _e=1/0;function we(r,n){for(re=0;re<he.length;re++)if((ne=he[re])&&ne[0]&&ne[0].trace&&!0===(ae=ne[0].trace).visible&&0!==ae._length&&-1===["carpet","contourcarpet"].indexOf(ae._module.name)){if(le=M,m.isUnifiedHover(le)&&(le=le.charAt(0)),"splom"===ae.type?ie=f[oe=0]:(ie=m.getSubplot(ae),oe=f.indexOf(ie)),ce={cd:ne,trace:ae,xa:V[oe],ya:W[oe],maxHoverDistance:$,maxSpikeDistance:K,index:!1,distance:Math.min(_e,$),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:ae.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},h[ie]&&(ce.subplot=h[ie]._subplot),h._splomScenes&&h._splomScenes[ae.uid]&&(ce.scene=h._splomScenes[ae.uid]),"array"===le){var i=t[re];"pointNumber"in i?(ce.index=i.pointNumber,le="closest"):(le="","xval"in i&&(se=i.xval,le="x"),"yval"in i&&(ue=i.yval,le=le?"closest":"y"))}else void 0!==r&&void 0!==n?(se=r,ue=n):(se=Q[oe],ue=ee[oe]);if(fe=de.length,0!==$)if(ae._module&&ae._module.hoverPoints){var l=ae._module.hoverPoints(ce,se,ue,le,{finiteRange:!0,hoverLayer:h._hoverlayer,hoversubplots:x,gd:e});if(l)for(var s,u=0;u<l.length;u++)s=l[u],a(s.x0)&&a(s.y0)&&de.push(z(s,M))}else o.log("Unrecognized trace type in hover:",ae);if("closest"===M&&de.length>fe&&(de.splice(0,fe),_e=de[0].distance),w&&0!==K&&0===de.length){ce.distance=K,ce.index=!1;var c=ae._module.hoverPoints(ce,se,ue,"closest",{hoverLayer:h._hoverlayer});if(c&&(c=c.filter((function(e){return e.spikeDistance<=K}))),c&&c.length){var d,g=c.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(g.length){var v=g[0];a(v.x0)&&a(v.y0)&&(d=Te(v),(!pe.vLinePoint||pe.vLinePoint.spikeDistance>d.spikeDistance)&&(pe.vLinePoint=d))}var y=c.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(y.length){var b=y[0];a(b.x0)&&a(b.y0)&&(d=Te(b),(!pe.hLinePoint||pe.hLinePoint.spikeDistance>d.spikeDistance)&&(pe.hLinePoint=d))}}}}}function Me(e,t,r){for(var n,a=null,i=1/0,o=0;o<e.length;o++)n=e[o].spikeDistance,r&&0===o&&(n=-1/0),n<=i&&n<=t&&(a=e[o],i=n);return a}function Te(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}we();var ke={fullLayout:h,container:h._hoverlayer,event:t},Ae=e._spikepoints,Se={vLinePoint:pe.vLinePoint,hLinePoint:pe.hLinePoint};e._spikepoints=Se;var Le=function(){"axis"!==x&&de.sort((function(e,t){return e.distance-t.distance})),de=function(e,t){for(var r=t.charAt(0),n=[],a=[],i=[],o=0;o<e.length;o++){var l=e[o];y.traceIs(l.trace,"bar-like")||y.traceIs(l.trace,"box-violin")?i.push(l):l.trace[r+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(i)}(de,M)};Le();var De=M.charAt(0),Ce=("x"===De||"y"===De)&&de[0]&&C[de[0].trace.type];if(w&&0!==K&&0!==de.length){var Pe=Me(de.filter((function(e){return e.ya.showspikes})),K,Ce);pe.hLinePoint=Te(Pe);var Oe=Me(de.filter((function(e){return e.xa.showspikes})),K,Ce);pe.vLinePoint=Te(Oe)}if(0===de.length){var Re=g.unhoverRaw(e,t);return!w||null===pe.hLinePoint&&null===pe.vLinePoint||j(Ae)&&F(e,pe,ke),Re}if(w&&j(Ae)&&F(e,pe,ke),m.isXYhover(le)&&0!==de[0].length&&"splom"!==de[0].trace.type){var Ee=de[0],Ie=(de=D[Ee.trace.type]?de.filter((function(e){return e.trace.index===Ee.trace.index})):[Ee]).length;we(H("x",Ee,h),H("y",Ee,h));var Ne,ze=[],Fe={},je=0,Be=function(e){var t=D[e.trace.type]?P(e):e.trace.index;if(Fe[t]){var r=Fe[t]-1,n=ze[r];r>0&&Math.abs(e.distance)<Math.abs(n.distance)&&(ze[r]=e)}else je++,Fe[t]=je,ze.push(e)};for(Ne=0;Ne<Ie;Ne++)Be(de[Ne]);for(Ne=de.length-1;Ne>Ie-1;Ne--)Be(de[Ne]);de=ze,Le()}var He=e._hoverdata,Ge=[],Ye=G(e),Ue=Y(e);for(te=0;te<de.length;te++){var qe=de[te],Ve=m.makeEventData(qe,qe.trace,qe.cd);if(!1!==qe.hovertemplate){var We=!1;qe.cd[qe.index]&&qe.cd[qe.index].ht&&(We=qe.cd[qe.index].ht),qe.hovertemplate=We||qe.trace.hovertemplate||!1}if(qe.xa&&qe.ya){var Ze=qe.x0+qe.xa._offset,Je=qe.x1+qe.xa._offset,Xe=qe.y0+qe.ya._offset,$e=qe.y1+qe.ya._offset,Ke=Math.min(Ze,Je),Qe=Math.max(Ze,Je),et=Math.min(Xe,$e),tt=Math.max(Xe,$e);Ve.bbox={x0:Ke+Ue,x1:Qe+Ue,y0:et+Ye,y1:tt+Ye}}qe.eventData=[Ve],Ge.push(Ve)}e._hoverdata=Ge;var rt="y"===M&&(he.length>1||de.length>1)||"closest"===M&&ge&&de.length>1,nt=p.combine(h.plot_bgcolor||p.background,h.paper_bgcolor),at=R(de,{gd:e,hovermode:M,rotateLabels:rt,bgColor:nt,container:h._hoverlayer,outerContainer:h._paper.node(),commonLabelOpts:h.hoverlabel,hoverdistance:h.hoverdistance}),it=at.hoverLabels;if(m.isUnifiedHover(M)||(function(e,t,r,n){var a,i,o,l,s,u,c,f=t?"xa":"ya",d=t?"ya":"xa",h=0,p=1,g=e.size(),v=new Array(g),y=0,m=n.minX,x=n.maxX,b=n.minY,_=n.maxY,w=function(e){return e*r._invScaleX},M=function(e){return e*r._invScaleY};function k(e){var t=e[0],r=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,o=r.pos+r.dp+r.size-t.pmax,i>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=i;a=!1}if(!(o<.01)){if(i<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=o;a=!1}if(a){var n=0;for(l=0;l<e.length;l++)(u=e[l]).pos+u.dp+u.size>t.pmax&&n++;for(l=e.length-1;l>=0&&!(n<=0);l--)(u=e[l]).pos>t.pmax-1&&(u.del=!0,n--);for(l=0;l<e.length&&!(n<=0);l++)if((u=e[l]).pos<t.pmin+1)for(u.del=!0,n--,o=2*u.size,s=e.length-1;s>=0;s--)e[s].dp-=o;for(l=e.length-1;l>=0&&!(n<=0);l--)(u=e[l]).pos+u.dp+u.size>t.pmax&&(u.del=!0,n--)}}}for(e.each((function(e){var n=e[f],a=e[d],i="x"===n._id.charAt(0),o=n.range;0===y&&o&&o[0]>o[1]!==i&&(p=-1);var l=0,s=i?r.width:r.height;if("x"===r.hovermode||"y"===r.hovermode){var u,c,h=I(e,t),g=e.anchor,k="end"===g?-1:1;if("middle"===g)c=(u=e.crossPos+(i?M(h.y-e.by/2):w(e.bx/2+e.tx2width/2)))+(i?M(e.by):w(e.bx));else if(i)c=(u=e.crossPos+M(S+h.y)-M(e.by/2-S))+M(e.by);else{var A=w(k*S+h.x),L=A+w(k*e.bx);u=e.crossPos+Math.min(A,L),c=e.crossPos+Math.max(A,L)}i?void 0!==b&&void 0!==_&&Math.min(c,_)-Math.max(u,b)>1&&("left"===a.side?(l=a._mainLinePosition,s=r.width):s=a._mainLinePosition):void 0!==m&&void 0!==x&&Math.min(c,x)-Math.max(u,m)>1&&("top"===a.side?(l=a._mainLinePosition,s=r.height):s=a._mainLinePosition)}v[y++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?T:1)/2,pmin:l,pmax:s}]})),v.sort((function(e,t){return e[0].posref-t[0].posref||p*(t[0].traceIndex-e[0].traceIndex)}));!a&&h<=g;){for(h++,a=!0,l=0;l<v.length-1;){var A=v[l],L=v[l+1],D=A[A.length-1],C=L[0];if((i=D.pos+D.dp+D.size-C.pos-C.dp+C.size)>.01&&D.pmin===C.pmin&&D.pmax===C.pmax){for(s=L.length-1;s>=0;s--)L[s].dp+=i;for(A.push.apply(A,L),v.splice(l+1,1),c=0,s=A.length-1;s>=0;s--)c+=A[s].dp;for(o=c/A.length,s=A.length-1;s>=0;s--)A[s].dp-=o;a=!1}else l++}v.forEach(k)}for(l=v.length-1;l>=0;l--){var P=v[l];for(s=P.length-1;s>=0;s--){var O=P[s],R=O.datum;R.offset=O.dp,R.del=O.del}}}(it,rt,h,at.commonLabelBoundingBox),N(it,rt,h._invScaleX,h._invScaleY)),s&&s.tagName){var ot=y.getComponentMethod("annotations","hasClickToShow")(e,Ge);d(n.select(s),ot?"pointer":"")}s&&!i&&function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,He)&&(He&&e.emit("plotly_unhover",{event:t,points:He}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Q,yvals:ee}))}(e,t,r,i,s)}))},t.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=t.gd,i=G(a),o=Y(a),l=R(e.map((function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,u=e.eventData;if(u){var c=Math.min(r,n),f=Math.max(r,n),d=Math.min(l,s),h=Math.max(l,s),g=e.trace;if(y.traceIs(g,"gl3d")){var v=a._fullLayout[g.scene]._scene.container,m=v.offsetLeft,x=v.offsetTop;c+=m,f+=m,d+=x,h+=x}u.bbox={x0:c+o,x1:f+o,y0:d+i,y1:h+i},t.inOut_bbox&&t.inOut_bbox.push(u.bbox)}else u=!1;return{color:e.color||p.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,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:u}})),{gd:a,hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||p.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}).hoverLabels,s=0,u=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var n=e.y0-e.by/2;e.offset=n-5<s?s-n+5:0,s=n+e.by+e.offset,r===t.anchorIndex&&(u=e.offset)})).each((function(e){e.offset-=u})),N(l,!1,a._fullLayout._invScaleX,a._fullLayout._invScaleY),r?l:l.node()};var O=/<extra>([\s\S]*)<\/extra>/;function R(e,t){var r=t.gd,a=r._fullLayout,i=t.hovermode,l=t.rotateLabels,c=t.bgColor,d=t.container,g=t.outerContainer,v=t.commonLabelOpts||{};if(0===e.length)return[[]];var M=t.fontFamily||x.HOVERFONT,T=t.fontSize||x.HOVERFONTSIZE,k=e[0],A=k.xa,D=k.ya,C=i.charAt(0),O=C+"Label",R=k[O];if(void 0===R&&"multicategory"===A.type)for(var I=0;I<e.length&&void 0===(R=e[I][O]);I++);var N=U(r,g),z=N.top,F=N.width,j=N.height,B=void 0!==R&&k.distance<=t.hoverdistance&&("x"===i||"y"===i);if(B){var H,G,Y=!0;for(H=0;H<e.length;H++)if(Y&&void 0===e[H].zLabel&&(Y=!1),G=e[H].hoverinfo||e[H].trace.hoverinfo){var q=Array.isArray(G)?G:G.split("+");if(-1===q.indexOf("all")&&-1===q.indexOf(i)){B=!1;break}}Y&&(B=!1)}var V=d.selectAll("g.axistext").data(B?[0]:[]);V.enter().append("g").classed("axistext",!0),V.exit().remove();var W={minX:0,maxX:0,minY:0,maxY:0};if(V.each((function(){var e=n.select(this),t=o.ensureSingle(e,"path","",(function(e){e.style({"stroke-width":"1px"})})),l=o.ensureSingle(e,"text","",(function(e){e.attr("data-notex",1)})),u=v.bgcolor||p.defaultLine,c=v.bordercolor||p.contrast(u),d=p.contrast(u),g={family:v.font.family||M,size:v.font.size||T,color:v.font.color||d};t.style({fill:u,stroke:c}),l.text(R).call(h.font,g).call(f.positionText,0,0).call(f.convertToTspans,r),e.attr("transform","");var y,m,x=U(r,l.node());if("x"===i){var b="top"===A.side?"-":"";l.attr("text-anchor","middle").call(f.positionText,0,"top"===A.side?z-x.bottom-S-L:z-x.top+S+L),y=A._offset+(k.x0+k.x1)/2,m=D._offset+("top"===A.side?0:D._length);var _=x.width/2+L,w=y;y<_?w=_:y>a.width-_&&(w=a.width-_),t.attr("d","M"+(y-w)+",0L"+(y-w+S)+","+b+S+"H"+_+"v"+b+(2*L+x.height)+"H"+-_+"V"+b+S+"H"+(y-w-S)+"Z"),y=w,W.minX=y-_,W.maxX=y+_,"top"===A.side?(W.minY=m-(2*L+x.height),W.maxY=m-L):(W.minY=m+L,W.maxY=m+(2*L+x.height))}else{var C,P,O;"right"===D.side?(C="start",P=1,O="",y=A._offset+A._length):(C="end",P=-1,O="-",y=A._offset),m=D._offset+(k.y0+k.y1)/2,l.attr("text-anchor",C),t.attr("d","M0,0L"+O+S+","+S+"V"+(L+x.height/2)+"h"+O+(2*L+x.width)+"V-"+(L+x.height/2)+"H"+O+S+"V-"+S+"Z"),W.minY=m-(L+x.height/2),W.maxY=m+(L+x.height/2),"right"===D.side?(W.minX=y+S,W.maxX=y+S+(2*L+x.width)):(W.minX=y-S-(2*L+x.width),W.maxX=y-S);var E,I=x.height/2,N=z-x.top-I,F="clip"+a._uid+"commonlabel"+D._id;if(y<x.width+2*L+S){E="M-"+(S+L)+"-"+I+"h-"+(x.width-L)+"V"+I+"h"+(x.width-L)+"Z";var j=x.width-y+L;f.positionText(l,j,N),"end"===C&&l.selectAll("tspan").each((function(){var e=n.select(this),t=h.tester.append("text").text(e.text()).call(h.font,g),a=U(r,t.node());Math.round(a.width)<Math.round(x.width)&&e.attr("x",j-a.width),t.remove()}))}else f.positionText(l,P*(L+S),N),E=null;var B=a._topclips.selectAll("#"+F).data(E?[0]:[]);B.enter().append("clipPath").attr("id",F).append("path"),B.exit().remove(),B.select("path").attr("d",E),h.setClipUrl(l,E?F:null,r)}e.attr("transform",s(y,m))})),m.isUnifiedHover(i)){d.selectAll("g.hovertext").remove();var Z=e.filter((function(e){return"none"!==e.hoverinfo}));if(0===Z.length)return[];var J=a.hoverlabel,X=J.font,$={showlegend:!0,legend:{title:{text:R,font:X},font:X,bgcolor:J.bgcolor,bordercolor:J.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:X};b($,K,r._fullData);var Q=K.legend;Q.entries=[];for(var ee=0;ee<Z.length;ee++){var te=Z[ee];if("none"!==te.hoverinfo){var re=E(te,!0,i,a,R),ne=re[0],ae=re[1];te.name=ae,te.text=""!==ae?ae+" : "+ne:ne;var ie=te.cd[te.index];ie&&(ie.mc&&(te.mc=ie.mc),ie.mcc&&(te.mc=ie.mcc),ie.mlc&&(te.mlc=ie.mlc),ie.mlcc&&(te.mlc=ie.mlcc),ie.mlw&&(te.mlw=ie.mlw),ie.mrc&&(te.mrc=ie.mrc),ie.dir&&(te.dir=ie.dir)),te._distinct=!0,Q.entries.push([te])}}Q.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),Q.layer=d,Q._inHover=!0,Q._groupTitleFont=J.grouptitlefont,_(r,Q);var oe,le,se,ue,ce=d.select("g.legend"),fe=U(r,ce.node()),de=fe.width+2*L,he=fe.height+2*L,pe=Z[0],ge=(pe.x0+pe.x1)/2,ve=(pe.y0+pe.y1)/2,ye=!(y.traceIs(pe.trace,"bar-like")||y.traceIs(pe.trace,"box-violin"));"y"===C?ye?(le=ve-L,oe=ve+L):(le=Math.min.apply(null,Z.map((function(e){return Math.min(e.y0,e.y1)}))),oe=Math.max.apply(null,Z.map((function(e){return Math.max(e.y0,e.y1)})))):le=oe=o.mean(Z.map((function(e){return(e.y0+e.y1)/2})))-he/2,"x"===C?ye?(se=ge+L,ue=ge-L):(se=Math.max.apply(null,Z.map((function(e){return Math.max(e.x0,e.x1)}))),ue=Math.min.apply(null,Z.map((function(e){return Math.min(e.x0,e.x1)})))):se=ue=o.mean(Z.map((function(e){return(e.x0+e.x1)/2})))-de/2;var me,xe,be=A._offset,_e=D._offset;return ue+=be-de,le+=_e-he,me=(se+=be)+de<F&&se>=0?se:ue+de<F&&ue>=0?ue:be+de<F?be:se-ge<ge-ue+de?F-de:0,me+=L,xe=(oe+=_e)+he<j&&oe>=0?oe:le+he<j&&le>=0?le:_e+he<j?_e:oe-ve<ve-le+he?j-he:0,xe+=L,ce.attr("transform",s(me-1,xe-1)),ce}var we=d.selectAll("g.hovertext").data(e,(function(e){return P(e)}));return we.enter().append("g").classed("hovertext",!0).each((function(){var e=n.select(this);e.append("rect").call(p.fill,p.addOpacity(c,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(h.font,M,T)})),we.exit().remove(),we.each((function(e){var t=n.select(this).attr("transform",""),o=e.color;Array.isArray(o)&&(o=o[e.eventData[0].pointNumber]);var d=e.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,c),v=p.combine(p.opacity(o)?o:p.defaultLine,c),y=e.borderColor||p.contrast(g),m=E(e,B,i,a,R,t),x=m[0],b=m[1],_=t.select("text.nums").call(h.font,e.fontFamily||M,e.fontSize||T,e.fontColor||y).text(x).attr("data-notex",1).call(f.positionText,0,0).call(f.convertToTspans,r),k=t.select("text.name"),A=0,D=0;if(b&&b!==x){k.call(h.font,e.fontFamily||M,e.fontSize||T,v).text(b).attr("data-notex",1).call(f.positionText,0,0).call(f.convertToTspans,r);var C=U(r,k.node());A=C.width+2*L,D=C.height+2*L}else k.remove(),t.select("rect").remove();t.select("path").style({fill:g,stroke:y});var P=e.xa._offset+(e.x0+e.x1)/2,O=e.ya._offset+(e.y0+e.y1)/2,I=Math.abs(e.x1-e.x0),N=Math.abs(e.y1-e.y0),H=U(r,_.node()),G=H.width/a._invScaleX,Y=H.height/a._invScaleY;e.ty0=(z-H.top)/a._invScaleY,e.bx=G+2*L,e.by=Math.max(Y+2*L,D),e.anchor="start",e.txwidth=G,e.tx2width=A,e.offset=0;var q,V,W=(G+S+L+A)*a._invScaleX;if(l)e.pos=P,q=O+N/2+W<=j,V=O-N/2-W>=0,"top"!==e.idealAlign&&q||!V?q?(O+=N/2,e.anchor="start"):e.anchor="middle":(O-=N/2,e.anchor="end"),e.crossPos=O;else{if(e.pos=O,q=P+I/2+W<=F,V=P-I/2-W>=0,"left"!==e.idealAlign&&q||!V)if(q)P+=I/2,e.anchor="start";else{e.anchor="middle";var Z=W/2,J=P+Z-F,X=P-Z;J>0&&(P-=J),X<0&&(P+=-X)}else P-=I/2,e.anchor="end";e.crossPos=P}_.attr("text-anchor",e.anchor),A&&k.attr("text-anchor",e.anchor),t.attr("transform",s(P,O)+(l?u(w):""))})),{hoverLabels:we,commonLabelBoundingBox:W}}function E(e,t,r,n,a,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=B(e.name,e.nameLength));var u=r.charAt(0),c="x"===u?"y":"x";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[u+"Label"]===a?s=e[c+"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 f=e.hovertemplate||!1;if(f){var d=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(d[u+"other"]=d[u+"Val"],d[u+"otherLabel"]=d[u+"Label"]),s=(s=o.hovertemplateString(f,d,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(O,(function(t,r){return l=B(r,e.nameLength),""}))}return[s,l]}function I(e,t){var r=0,n=e.offset;return t&&(n*=-A,r=e.offset*k),{x:r,y:n}}function N(e,t,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each((function(e){var r=n.select(this);if(e.del)return r.remove();var a,l,s,u,c=r.select("text.nums"),d=e.anchor,p="end"===d?-1:1,g=(u=(s=(l={start:1,end:-1,middle:0}[(a=e).anchor])*(S+L))+l*(a.txwidth+L),"middle"===a.anchor&&(s-=a.tx2width/2,u+=a.txwidth/2+L),{alignShift:l,textShiftX:s,text2ShiftX:u}),v=I(e,t),y=v.x,m=v.y,x="middle"===d;r.select("path").attr("d",x?"M-"+i(e.bx/2+e.tx2width/2)+","+o(m-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(p*S+y)+","+o(S+m)+"v"+o(e.by/2-S)+"h"+i(p*e.bx)+"v-"+o(e.by)+"H"+i(p*S+y)+"V"+o(m-S)+"Z");var b=y+g.textShiftX,_=m+e.ty0-e.by/2+L,w=e.textAlign||"auto";"auto"!==w&&("left"===w&&"start"!==d?(c.attr("text-anchor","start"),b=x?-e.bx/2-e.tx2width/2+L:-e.bx-L):"right"===w&&"end"!==d&&(c.attr("text-anchor","end"),b=x?e.bx/2-e.tx2width/2-L:e.bx+L)),c.call(f.positionText,i(b),o(_)),e.tx2width&&(r.select("text.name").call(f.positionText,i(g.text2ShiftX+g.alignShift*L+y),o(m+e.ty0-e.by/2+L)),r.select("rect").call(h.setRect,i(g.text2ShiftX+(g.alignShift-1)*e.tx2width/2+y),o(m-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function z(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var u=Array.isArray(r)?function(e,t){var a=o.castOption(i,r,e);return s(a)?a:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(l,n,e,t)};function c(t,r,n){var a=u(r,n);s(a)&&(e[t]=a)}if(c("hoverinfo","hi","hoverinfo"),c("bgcolor","hbg","hoverlabel.bgcolor"),c("borderColor","hbc","hoverlabel.bordercolor"),c("fontFamily","htf","hoverlabel.font.family"),c("fontSize","hts","hoverlabel.font.size"),c("fontColor","htc","hoverlabel.font.color"),c("nameLength","hnl","hoverlabel.namelength"),c("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.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:v.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:v.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),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 f=v.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+v.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=v.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+v.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"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 F(e,t,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,u=r.event,c=!!t.hLinePoint,f=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),f||c){var d=p.combine(l.plot_bgcolor,l.paper_bgcolor);if(c){var g,y,m=t.hLinePoint;n=m&&m.xa,"cursor"===(a=m&&m.ya).spikesnap?(g=u.pointerX,y=u.pointerY):(g=n._offset+m.x,y=a._offset+m.y);var x,b,_=i.readability(m.color,d)<1.5?p.contrast(d):m.color,w=a.spikemode,M=a.spikethickness,T=a.spikecolor||_,k=v.getPxPosition(e,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=k,b=g),-1!==w.indexOf("across")){var A=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),S=Math.max(S,a.position)),x=s.l+A*s.w,b=s.l+S*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":M,stroke:T,"stroke-dasharray":h.dashStyle(a.spikedash,M)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:y,y2:y,"stroke-width":M+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:k+("right"!==a.side?M:-M),cy:y,r:M,fill:T}).classed("spikeline",!0)}if(f){var L,D,C=t.vLinePoint;n=C&&C.xa,a=C&&C.ya,"cursor"===n.spikesnap?(L=u.pointerX,D=u.pointerY):(L=n._offset+C.x,D=a._offset+C.y);var P,O,R=i.readability(C.color,d)<1.5?p.contrast(d):C.color,E=n.spikemode,I=n.spikethickness,N=n.spikecolor||R,z=v.getPxPosition(e,n);if(-1!==E.indexOf("toaxis")||-1!==E.indexOf("across")){if(-1!==E.indexOf("toaxis")&&(P=z,O=D),-1!==E.indexOf("across")){var F=n._counterDomainMin,j=n._counterDomainMax;"free"===n.anchor&&(F=Math.min(F,n.position),j=Math.max(j,n.position)),P=s.t+(1-j)*s.h,O=s.t+(1-F)*s.h}o.insert("line",":first-child").attr({x1:L,x2:L,y1:P,y2:O,"stroke-width":I,stroke:N,"stroke-dasharray":h.dashStyle(n.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:L,x2:L,y1:P,y2:O,"stroke-width":I+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}-1!==E.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:L,cy:z-("top"!==n.side?I:-I),r:I,fill:N}).classed("spikeline",!0)}}}function j(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function B(e,t){return f.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function H(e,t,r){var n=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===n.type||"multicategory"===n.type)a=n._categoriesMap[a];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var u=l[e+"End"];void 0===u&&(u=l[e]);var c=u-s;"end"===o?a+=c:"middle"===o&&(a+=c/2)}a=n.d2c(a)}return i&&i.t&&i.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(a+=i.t.dPos)),a}function G(e){return e.offsetTop+e.clientTop}function Y(e){return e.offsetLeft+e.clientLeft}function U(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),a=n.left,i=n.top,l=a+n.width,s=i+n.height,u=o.apply3DTransform(r._invTransform)(a,i),c=o.apply3DTransform(r._invTransform)(l,s),f=u[0],d=u[1],h=c[0],p=c[1];return{x:f,y:d,width:h-f,height:p-d,top:Math.min(d,p),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(d,p)}}},6132:function(e,t,r){"use strict";var n=r(3400),a=r(6308),i=r(624).isUnifiedHover;e.exports=function(e,t,r,o){o=o||{};var l=t.legend;function s(e){o.font[e]||(o.font[e]=l?t.legend.font[e]:t.font[e])}t&&i(t.hovermode)&&(o.font||(o.font={}),s("size"),s("family"),s("color"),l?(o.bgcolor||(o.bgcolor=a.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),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},1008:function(e,t,r){"use strict";var n=r(3400),a=r(5460);e.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:n.coerce(e,t,a,r,i)}return r("clickmode"),r("hoversubplots"),r("hovermode")}},3024:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(6476),o=r(624),l=r(5460),s=r(3292);e.exports={moduleType:"component",name:"fx",constants:r(2456),schema:{layout:l},attributes:r(5756),layoutAttributes:l,supplyLayoutGlobalDefaults:r(1976),supplyDefaults:r(5448),supplyLayoutDefaults:r(8336),calc:r(5056),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return a.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return a.castOption(e,r,"hoverinfo",(function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:r(2376)}},5460:function(e,t,r){"use strict";var n=r(2456),a=r(5376),i=a({editType:"none"});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:a({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},8336:function(e,t,r){"use strict";var n=r(3400),a=r(5460),i=r(1008),o=r(6132);e.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),u=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===u||l&&s&&2===u)&&(t.dragmode="pan"),o(e,t,r),n.coerceFont(r,"hoverlabel.grouptitlefont",t.hoverlabel.font)}},1976:function(e,t,r){"use strict";var n=r(3400),a=r(6132),i=r(5460);e.exports=function(e,t){a(e,t,(function(r,a){return n.coerce(e,t,i,r,a)}))}},2704:function(e,t,r){"use strict";var n=r(3400),a=r(3756).counter,i=r(6968).u,o=r(3816).idRegex,l=r(1780),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function u(e,t,r){var n=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(n)?n:a.length?a:void 0}function c(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),u=l[0],c=(l[1]-u)/(a-o),f=c*(1-o),d=0;d<a;d++){var h=u+c*d;s[i?a-1-d:d]=[h,h+f]}return s}function f(e,t,r,n,a){var i,o=new Array(r);function l(e,r){-1!==t.indexOf(r)&&void 0===n[r]?(o[e]=r,n[r]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<r;i++)l(i,e[i]);else for(l(0,a),i=1;i<r;i++)l(i,a+(i+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},a=u(t,r,"x"),i=u(t,r,"y");if(e.grid||a||i){var o,f,d=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),h=Array.isArray(a),p=Array.isArray(i),g=h&&a!==r.xaxes&&p&&i!==r.yaxes;d?(o=r.subplots.length,f=r.subplots[0].length):(p&&(o=i.length),h&&(f=a.length));var v=l.newContainer(t,"grid"),y=T("rows",o),m=T("columns",f);if(y*m>1){d||h||p||"independent"===T("pattern")&&(d=!0),v._hasSubplotGrid=d;var x,b,_="top to bottom"===T("roworder"),w=d?.2:.1,M=d?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),v._domains={x:c("x",T,w,x,m),y:c("y",T,M,b,y,_)}}else delete t.grid}function T(e,t){return n.coerce(r,v,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,s,c,d=e.grid||{},h=t._subplots,p=r._hasSubplotGrid,g=r.rows,v=r.columns,y="independent"===r.pattern,m=r._axisMap={};if(p){var x=d.subplots||[];s=r.subplots=new Array(g);var b=1;for(n=0;n<g;n++){var _=s[n]=new Array(v),w=x[n]||[];for(a=0;a<v;a++)if(y?(l=1===b?"xy":"x"+b+"y"+b,b++):l=w[a],_[a]="",-1!==h.cartesian.indexOf(l)){if(c=l.indexOf("y"),i=l.slice(0,c),o=l.slice(c),void 0!==m[i]&&m[i]!==a||void 0!==m[o]&&m[o]!==n)continue;_[a]=l,m[i]=a,m[o]=n}}}else{var M=u(t,d,"x"),T=u(t,d,"y");r.xaxes=f(M,h.xaxis,v,m,"x"),r.yaxes=f(T,h.yaxis,g,m,"y")}var k=r._anchors={},A="top to bottom"===r.roworder;for(var S in m){var L,D,C,P=S.charAt(0),O=r[P+"side"];if(O.length<8)k[S]="free";else if("x"===P){if("t"===O.charAt(0)===A?(L=0,D=1,C=g):(L=g-1,D=-1,C=-1),p){var R=m[S];for(n=L;n!==C;n+=D)if((l=s[n][R])&&(c=l.indexOf("y"),l.slice(0,c)===S)){k[S]=l.slice(c);break}}else for(n=L;n!==C;n+=D)if(o=r.yaxes[n],-1!==h.cartesian.indexOf(S+o)){k[S]=o;break}}else if("l"===O.charAt(0)?(L=0,D=1,C=v):(L=v-1,D=-1,C=-1),p){var E=m[S];for(n=L;n!==C;n+=D)if((l=s[E][n])&&(c=l.indexOf("y"),l.slice(c)===S)){k[S]=l.slice(0,c);break}}else for(n=L;n!==C;n+=D)if(i=r.xaxes[n],-1!==h.cartesian.indexOf(i+S)){k[S]=i;break}}}}}},5760:function(e,t,r){"use strict";var n=r(3816),a=r(1780).templatedArray;r(6208),e.exports=a("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},3556:function(e,t,r){"use strict";var n=r(8248),a=r(6896);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,u,c=e._fullLayout.images,f=t._id.charAt(0),d=0;d<c.length;d++)if(u="images["+d+"].",(s=c[d])[f+"ref"]===t._id){var h=s[f],p=s["size"+f],g=null,v=null;if(o){g=a(h,t.range);var y=p/Math.pow(10,g)/2;v=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else v=(g=Math.pow(10,h))*(Math.pow(10,p/2)-Math.pow(10,-p/2));n(g)?n(v)||(v=null):(g=null,v=null),i(u+f,g),i(u+"size"+f,v)}}},7404:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(1272),o=r(5760);function l(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}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},u=["x","y"],c=0;c<2;c++){var f=u[c],d=a.coerceRef(e,t,s,f,"paper",void 0);"paper"!==d&&a.getFromId(s,d)._imgIndices.push(t._index),a.coercePosition(t,s,i,d,f,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},963:function(e,t,r){"use strict";var n=r(3428),a=r(3616),i=r(4460),o=r(9811),l=r(9616);e.exports=function(e){var t,r,s=e._fullLayout,u=[],c={},f=[];for(r=0;r<s.images.length;r++){var d=s.images[r];if(d.visible)if("below"===d.layer&&"paper"!==d.xref&&"paper"!==d.yref){t=o.ref2id(d.xref)+o.ref2id(d.yref);var h=s._plots[t];if(!h){f.push(d);continue}h.mainplot&&(t=h.mainplot.id),c[t]||(c[t]=[]),c[t].push(d)}else"above"===d.layer?u.push(d):f.push(d)}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 v(t){var r=n.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 a=new Promise(function(e){var n=new Image;function a(){r.remove(),e()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=a,n.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var n=t.toDataURL("image/png");r.attr("xlink:href",n),e()},r.on("error",a),n.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function y(t){var r,o,l=n.select(this),u=i.getFromId(e,t.xref),c=i.getFromId(e,t.yref),f="domain"===i.getRefType(t.xref),d="domain"===i.getRefType(t.yref),h=s._size;r=void 0!==u?"string"==typeof t.xref&&f?u._length*t.sizex:Math.abs(u.l2p(t.sizex)-u.l2p(0)):t.sizex*h.w,o=void 0!==c?"string"==typeof t.yref&&d?c._length*t.sizey:Math.abs(c.l2p(t.sizey)-c.l2p(0)):t.sizey*h.h;var v,y,m=r*p[t.xanchor].offset,x=o*g[t.yanchor].offset,b=p[t.xanchor].sizing+g[t.yanchor].sizing;switch(v=void 0!==u?"string"==typeof t.xref&&f?u._length*t.x+u._offset:u.r2p(t.x)+u._offset:t.x*h.w+h.l,v+=m,y=void 0!==c?"string"==typeof t.yref&&d?c._length*(1-t.y)+c._offset:c.r2p(t.y)+c._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:v,y:y,width:r,height:o,preserveAspectRatio:b,opacity:t.opacity});var _=(u&&"domain"!==i.getRefType(t.xref)?u._id:"")+(c&&"domain"!==i.getRefType(t.yref)?c._id:"");a.setClipUrl(l,_?"clip"+s._uid+_:null,e)}var m=s._imageLowerLayer.selectAll("image").data(f),x=s._imageUpperLayer.selectAll("image").data(u);m.enter().append("image"),x.enter().append("image"),m.exit().remove(),x.exit().remove(),m.each((function(e){v.bind(this)(e),y.bind(this)(e)})),x.each((function(e){v.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(c[t]||[]);w.enter().append("image"),w.exit().remove(),w.each((function(e){v.bind(this)(e),y.bind(this)(e)}))}}}},7402:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:r(5760),supplyLayoutDefaults:r(7404),includeBasePlot:r(6632)("images"),draw:r(963),convertCoords:r(3556)}},3800:function(e,t,r){"use strict";var n=r(5376),a=r(2548);e.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:n({editType:"legend"}),grouptitlefont:n({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:n({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},5196:function(e){"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}},7864:function(e,t,r){"use strict";var n=r(4040),a=r(3400),i=r(1780),o=r(5464),l=r(3800),s=r(4859),u=r(2451);function c(e,t,r,c){var f=t[e]||{},d=i.newContainer(r,e);function h(e,t){return a.coerce(f,d,l,e,t)}var p=a.coerceFont(h,"font",r.font);if(h("bgcolor",r.paper_bgcolor),h("bordercolor"),h("visible")){for(var g,v=function(e,t){var r=g._input,n=g;return a.coerce(r,n,o,e,t)},y=r.font||{},m=a.coerceFont(h,"grouptitlefont",a.extendFlat({},y,{size:Math.round(1.1*y.size)})),x=0,b=!1,_="normal",w=(r.shapes||[]).filter((function(e){return e.showlegend})),M=c.concat(w).filter((function(t){return e===(t.legend||"legend")})),T=0;T<M.length;T++)if((g=M[T]).visible){var k=g._isShape;(g.showlegend||g._dfltShowLegend&&!(g._module&&g._module.attributes&&g._module.attributes.showlegend&&!1===g._module.attributes.showlegend.dflt))&&(x++,g.showlegend&&(b=!0,(!k&&n.traceIs(g,"pie-like")||!0===g._input.showlegend)&&x++),a.coerceFont(v,"legendgrouptitle.font",m)),(!k&&n.traceIs(g,"bar")&&"stack"===r.barmode||-1!==["tonextx","tonexty"].indexOf(g.fill))&&(_=u.isGrouped({traceorder:_})?"grouped+reversed":"reversed"),void 0!==g.legendgroup&&""!==g.legendgroup&&(_=u.isReversed({traceorder:_})?"reversed+grouped":"grouped")}var A=a.coerce(t,r,s,"showlegend",b&&x>("legend"===e?1:0));if(!1===A&&(r[e]=void 0),(!1!==A||f.uirevision)&&(h("uirevision",r.uirevision),!1!==A)){h("borderwidth");var S,L,D,C="h"===h("orientation"),P="paper"===h("yref"),O="paper"===h("xref"),R="left";if(C?(S=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?P?(L=1.1,D="bottom"):(L=1,D="top"):P?(L=-.1,D="top"):(L=0,D="bottom")):(L=1,D="auto",O?S=1.02:(S=1,R="right")),a.coerce(f,d,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:S}},"x"),a.coerce(f,d,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:L}},"y"),h("traceorder",_),u.isGrouped(r[e])&&h("tracegroupgap"),h("entrywidth"),h("entrywidthmode"),h("indentation"),h("itemsizing"),h("itemwidth"),h("itemclick"),h("itemdoubleclick"),h("groupclick"),h("xanchor",R),h("yanchor",D),h("valign"),a.noneOrAll(f,d,["x","y"]),h("title.text")){h("title.side",C?"left":"top");var E=a.extendFlat({},p,{size:a.bigFont(p.size)});a.coerceFont(h,"title.font",E)}}}}e.exports=function(e,t,r){var n,i=r.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var u=["legend"];for(n=0;n<i.length;n++)a.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];c(f,e,t,i),t[f]&&t[f].visible&&(t[f]._id=f),t._legends.push(f)}}},1140:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(7316),o=r(4040),l=r(5924),s=r(6476),u=r(3616),c=r(6308),f=r(2736),d=r(3048),h=r(5196),p=r(4284),g=p.LINE_SPACING,v=p.FROM_TL,y=p.FROM_BR,m=r(3076),x=r(2012),b=r(2451),_=1,w=/^legend[0-9]*$/;function M(e,t){var r,l,d=t||{},p=e._fullLayout,w=O(d),M=d._inHover;if(M?(l=d.layer,r="hover"):(l=p._infolayer,r=w),l){var S;if(r+=p._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0),M){if(!d.entries)return;S=m(d.entries,d)}else{for(var R=(e.calcdata||[]).slice(),E=p.shapes,I=0;I<E.length;I++){var N=E[I];if(N.showlegend){var z={_isShape:!0,_fullInput:N,index:N._index,name:N.name||N.label.text||"shape "+N._index,legend:N.legend,legendgroup:N.legendgroup,legendgrouptitle:N.legendgrouptitle,legendrank:N.legendrank,legendwidth:N.legendwidth,showlegend:N.showlegend,visible:N.visible,opacity:N.opacity,mode:"line"===N.type?"lines":"markers",line:N.line,marker:{line:N.line,color:N.fillcolor,size:12,symbol:"rect"===N.type?"square":"circle"===N.type?"circle":"hexagon2"}};R.push([{trace:z}])}}S=p.showlegend&&m(R,d,p._legends.length>1)}var F=p.hiddenlabels||[];if(!(M||p.showlegend&&S.length))return l.selectAll("."+w).remove(),p._topdefs.select("#"+r).remove(),i.autoMargin(e,w);var j=a.ensureSingle(l,"g",w,(function(e){M||e.attr("pointer-events","all")})),B=a.ensureSingleById(p._topdefs,"clipPath",r,(function(e){e.append("rect")})),H=a.ensureSingle(j,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));H.call(c.stroke,d.bordercolor).call(c.fill,d.bgcolor).style("stroke-width",d.borderwidth+"px");var G,Y=a.ensureSingle(j,"g","scrollbox"),U=d.title;d._titleWidth=0,d._titleHeight=0,U.text?((G=a.ensureSingle(Y,"text",w+"titletext")).attr("text-anchor","start").call(u.font,U.font).text(U.text),D(G,Y,e,d,_)):Y.selectAll("."+w+"titletext").remove();var q=a.ensureSingle(j,"rect","scrollbar",(function(e){e.attr(h.scrollBarEnterAttrs).call(c.fill,h.scrollBarColor)})),V=Y.selectAll("g.groups").data(S);V.enter().append("g").attr("class","groups"),V.exit().remove();var W=V.selectAll("g.traces").data(a.identity);W.enter().append("g").attr("class","traces"),W.exit().remove(),W.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==F.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){n.select(this).call(A,e,d)})).call(x,e,d).each((function(){M||n.select(this).call(L,e,w)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,r,a){var i=e._fullLayout,o=O(a);a||(a=i[o]);var l=i._size,s=b.isVertical(a),c=b.isGrouped(a),f="fraction"===a.entrywidthmode,d=a.borderwidth,p=2*d,g=h.itemGap,v=a.indentation+a.itemwidth+2*g,y=2*(d+g),m=P(a),x=a.y<0||0===a.y&&"top"===m,_=a.y>1||1===a.y&&"bottom"===m,w=a.tracegroupgap,M={};a._maxHeight=Math.max(x||_?i.height/2:l.h,30);var k=0;a._width=0,a._height=0;var A=function(e){var t=0,r=0,n=e.title.side;return n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight)),[t,r]}(a);if(s)r.each((function(e){var t=e[0].height;u.setTranslate(this,d+A[0],d+A[1]+a._height+t/2+g),a._height+=t,a._width=Math.max(a._width,e[0].width)})),k=v+a._width,a._width+=g+v+p,a._height+=y,c&&(t.each((function(e,t){u.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var S=C(a),L=a.x<0||0===a.x&&"right"===S,D=a.x>1||1===a.x&&"left"===S,R=_||x,E=i.width/2;a._maxWidth=Math.max(L?R&&"left"===S?l.l+l.w:E:D?R&&"right"===S?l.r+l.w:E:l.w,2*v);var I=0,N=0;r.each((function(e){var t=T(e,a,v);I=Math.max(I,t),N+=t})),k=null;var z=0;if(c){var F=0,j=0,B=0;t.each((function(){var e=0,t=0;n.select(this).selectAll("g.traces").each((function(r){var n=T(r,a,v),i=r[0].height;u.setTranslate(this,A[0],A[1]+d+g+i/2+t),t+=i,e=Math.max(e,n),M[r[0].trace.legendgroup]=e}));var r=e+g;j>0&&r+d+j>a._maxWidth?(z=Math.max(z,j),j=0,B+=F+w,F=t):F=Math.max(F,t),u.setTranslate(this,j,B),j+=r})),a._width=Math.max(z,j)+d,a._height=B+F+y}else{var H=r.size(),G=N+p+(H-1)*g<a._maxWidth,Y=0,U=0,q=0,V=0;r.each((function(e){var t=e[0].height,r=T(e,a,v),n=G?r:I;f||(n+=g),n+d+U-g>=a._maxWidth&&(z=Math.max(z,V),U=0,q+=Y,a._height+=Y,Y=0),u.setTranslate(this,A[0]+d+U,A[1]+d+q+t/2+g),V=U+r+g,U+=n,Y=Math.max(Y,t)})),G?(a._width=U+p,a._height=Y+y):(a._width=Math.max(z,V)+p,a._height+=Y+y)}}a._width=Math.ceil(Math.max(a._width+A[0],a._titleWidth+2*(d+h.titlePad))),a._height=Math.ceil(Math.max(a._height+A[1],a._titleHeight+2*(d+h.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var W=e._context.edits,Z=W.legendText||W.legendPosition;r.each((function(e){var t=n.select(this).select("."+o+"toggle"),r=e[0].height,i=e[0].trace.legendgroup,l=T(e,a,v);c&&""!==i&&(l=M[i]);var d=Z?v:k||l;s||f||(d+=g/2),u.setRect(t,0,-r/2,d,r)}))}(e,V,W,d)},function(){var t,c,m,x,b=p._size,_=d.borderwidth,T="paper"===d.xref,A="paper"===d.yref;if(U.text&&function(e,t,r){if("top center"===t.title.side||"top right"===t.title.side){var n=t.title.font.size*g,a=0,i=e.node(),o=u.bBox(i).width;"top center"===t.title.side?a=.5*(t._width-2*r-2*h.titlePad-o):"top right"===t.title.side&&(a=t._width-2*r-2*h.titlePad-o),f.positionText(e,r+h.titlePad+a,r+n)}}(G,d,_),!M){var S,L;S=T?b.l+b.w*d.x-v[C(d)]*d._width:p.width*d.x-v[C(d)]*d._width,L=A?b.t+b.h*(1-d.y)-v[P(d)]*d._effHeight:p.height*(1-d.y)-v[P(d)]*d._effHeight;var D=function(e,t,r,n){var a=e._fullLayout,o=a[t],l=C(o),s=P(o),u="paper"===o.xref,c="paper"===o.yref;e._fullLayout._reservedMargin[t]={};var f=o.y<.5?"b":"t",d=o.x<.5?"l":"r",h={r:a.width-r,l:r+o._width,b:a.height-n,t:n+o._effHeight};if(u&&c)return i.autoMargin(e,t,{x:o.x,y:o.y,l:o._width*v[l],r:o._width*y[l],b:o._effHeight*y[s],t:o._effHeight*v[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:c||"v"===o.orientation?e._fullLayout._reservedMargin[t][d]=h[d]:e._fullLayout._reservedMargin[t][f]=h[f]}(e,w,S,L);if(D)return;if(p.margin.autoexpand){var O=S,R=L;S=T?a.constrain(S,0,p.width-d._width):O,L=A?a.constrain(L,0,p.height-d._effHeight):R,S!==O&&a.log("Constrain "+w+".x to make legend fit inside graph"),L!==R&&a.log("Constrain "+w+".y to make legend fit inside graph")}u.setTranslate(j,S,L)}if(q.on(".drag",null),j.on("wheel",null),M||d._height<=d._maxHeight||e._context.staticPlot){var E=d._effHeight;M&&(E=d._height),H.attr({width:d._width-_,height:E-_,x:_/2,y:_/2}),u.setTranslate(Y,0,0),B.select("rect").attr({width:d._width-2*_,height:E-2*_,x:_,y:_}),u.setClipUrl(Y,r,e),u.setRect(q,0,0,0,0),delete d._scrollY}else{var I,N,z,F=Math.max(h.scrollBarMinHeight,d._effHeight*d._effHeight/d._height),V=d._effHeight-F-2*h.scrollBarMargin,W=d._height-d._effHeight,Z=V/W,J=Math.min(d._scrollY||0,W);H.attr({width:d._width-2*_+h.scrollBarWidth+h.scrollBarMargin,height:d._effHeight-_,x:_/2,y:_/2}),B.select("rect").attr({width:d._width-2*_+h.scrollBarWidth+h.scrollBarMargin,height:d._effHeight-2*_,x:_,y:_+J}),u.setClipUrl(Y,r,e),K(J,F,Z),j.on("wheel",(function(){K(J=a.constrain(d._scrollY+n.event.deltaY/V*W,0,W),F,Z),0!==J&&J!==W&&n.event.preventDefault()}));var X=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;I="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,z=J})).on("drag",(function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(N="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,J=function(e,t,r){var n=(r-t)/Z+e;return a.constrain(n,0,W)}(z,I,N),K(J,F,Z))}));q.call(X);var $=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(I=e.changedTouches[0].clientY,z=J)})).on("drag",(function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(N=e.changedTouches[0].clientY,J=function(e,t,r){var n=(t-r)/Z+e;return a.constrain(n,0,W)}(z,I,N),K(J,F,Z))}));Y.call($)}function K(t,r,n){d._scrollY=e._fullLayout[w]._scrollY=t,u.setTranslate(Y,0,-t),u.setRect(q,d._width,h.scrollBarMargin+t*n,h.scrollBarWidth,r),B.select("rect").attr("y",_+t)}e._context.edits.legendPosition&&(j.classed("cursor-move",!0),s.init({element:j.node(),gd:e,prepFn:function(){var e=u.getTranslate(j);m=e.x,x=e.y},moveFn:function(e,r){var n=m+e,a=x+r;u.setTranslate(j,n,a),t=s.align(n,d._width,b.l,b.l+b.w,d.xanchor),c=s.align(a+d._height,-d._height,b.t+b.h,b.t,d.yanchor)},doneFn:function(){if(void 0!==t&&void 0!==c){var r={};r[w+".x"]=t,r[w+".y"]=c,o.call("_guiRelayout",e,r)}},clickFn:function(t,r){var n=l.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));n.size()>0&&k(e,j,n,t,r)}}))}],e)}}function T(e,t,r){var n=e[0],a=n.width,i=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return"fraction"===i?t._maxWidth*o:r+(o||a)}function k(e,t,r,n,a){var i=r.data()[0][0].trace,s={event:a,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};i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label);var u=l.triggerHandler(e,"plotly_legendclick",s);if(1===n){if(!1===u)return;t._clickTimeout=setTimeout((function(){e._fullLayout&&d(r,e,n)}),e._context.doubleClickDelay)}else 2===n&&(t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&!1!==u&&d(r,e,n))}function A(e,t,r){var n,i,l=O(r),s=e.data()[0][0],c=s.trace,d=o.traceIs(c,"pie-like"),p=!r._inHover&&t._context.edits.legendText&&!d,g=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,i=s.groupTitle.font):(i=r.font,r.entries?n=s.text:(n=d?s.label:c.name,c._meta&&(n=a.templateString(n,c._meta))));var v=a.ensureSingle(e,"text",l+"text");v.attr("text-anchor","start").call(u.font,i).text(p?S(n,g):n);var y=r.indentation+r.itemwidth+2*h.itemGap;f.positionText(v,y,0),p?v.call(f.makeEditable,{gd:t,text:n}).call(D,e,t,r).on("edit",(function(n){this.text(S(n,g)).call(D,e,t,r);var i=s.trace._fullInput||{},l={};if(o.hasTransform(i,"groupby")){var u=o.getTransformIndices(i,"groupby"),f=u[u.length-1],d=a.keyedContainer(i,"transforms["+f+"].styles","target","value.name");d.set(s.trace._group,n),l=d.constructUpdate()}else l.name=n;return i._isShape?o.call("_guiRelayout",t,"shapes["+c.index+"].name",l.name):o.call("_guiRestyle",t,l,c.index)})):D(v,e,t,r)}function S(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function L(e,t,r){var i,o=t._context.doubleClickDelay,l=1,s=a.ensureSingle(e,"rect",r+"toggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(s.on("mousedown",(function(){(i=(new Date).getTime())-t._legendMouseDownTime<o?l+=1:(l=1,t._legendMouseDownTime=i)})),s.on("mouseup",(function(){if(!t._dragged&&!t._editing){var a=t._fullLayout[r];(new Date).getTime()-t._legendMouseDownTime>o&&(l=Math.max(l-1,1)),k(t,a,e,l,n.event)}})))}function D(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),f.convertToTspans(e,r,(function(){!function(e,t,r,n){var a=e.data()[0][0];if(r._inHover||!a||a.trace.showlegend){var i=e.select("g[class*=math-group]"),o=i.node(),l=O(r);r||(r=t._fullLayout[l]);var s,c,d=r.borderwidth,p=(n===_?r.title.font:a.groupTitle?a.groupTitle.font:r.font).size*g;if(o){var v=u.bBox(o);s=v.height,c=v.width,n===_?u.setTranslate(i,d,d+.75*s):u.setTranslate(i,0,.25*s)}else{var y="."+l+(n===_?"title":"")+"text",m=e.select(y),x=f.lineCount(m),b=m.node();if(s=p*x,c=b?u.bBox(b).width:0,n===_)"left"===r.title.side&&(c+=2*h.itemGap),f.positionText(m,d+h.titlePad,d+p);else{var w=2*h.itemGap+r.indentation+r.itemwidth;a.groupTitle&&(w=h.itemGap,c-=r.indentation+r.itemwidth),f.positionText(m,w,-p*((x-1)/2-.3))}}n===_?(r._titleWidth=c,r._titleHeight=s):(a.lineHeight=p,a.height=Math.max(s,16)+3,a.width=c)}else e.remove()}(t,r,n,a)}))}function C(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function P(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}function O(e){return e._id||"legend"}e.exports=function(e,t){if(t)M(e,t);else{var r=e._fullLayout,a=r._legends;r._infolayer.selectAll('[class^="legend"]').each((function(){var e=n.select(this),t=e.attr("class").split(" ")[0];t.match(w)&&-1===a.indexOf(t)&&e.remove()}));for(var i=0;i<a.length;i++){var o=a[i];M(e,e._fullLayout[o])}}}},3076:function(e,t,r){"use strict";var n=r(4040),a=r(2451);e.exports=function(e,t,r){var i,o,l=t._inHover,s=a.isGrouped(t),u=a.isReversed(t),c={},f=[],d=!1,h={},p=0,g=0;function v(e,n,i){if(!1!==t.visible&&(!r||e===t._id))if(""!==n&&a.isGrouped(t))-1===f.indexOf(n)?(f.push(n),d=!0,c[n]=[i]):c[n].push(i);else{var o="~~i"+p;f.push(o),c[o]=[i],p++}}for(i=0;i<e.length;i++){var y=e[i],m=y[0],x=m.trace,b=x.legend,_=x.legendgroup;if(l||x.visible&&x.showlegend)if(n.traceIs(x,"pie-like"))for(h[_]||(h[_]={}),o=0;o<y.length;o++){var w=y[o].label;h[_][w]||(v(b,_,{label:w,color:y[o].color,i:y[o].i,trace:x,pts:y[o].pts}),h[_][w]=!0,g=Math.max(g,(w||"").length))}else v(b,_,m),g=Math.max(g,(x.name||"").length)}if(!f.length)return[];var M=!d||!s,T=[];for(i=0;i<f.length;i++){var k=c[f[i]];M?T.push(k[0]):T.push(k)}for(M&&(T=[T]),i=0;i<T.length;i++){var A=1/0;for(o=0;o<T[i].length;o++){var S=T[i][o].trace.legendrank;A>S&&(A=S)}T[i][0]._groupMinRank=A,T[i][0]._preGroupSort=i}var L=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(T.forEach((function(e,t){e[0]._preGroupSort=t})),T.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),i=0;i<T.length;i++){T[i].forEach((function(e,t){e._preSort=t})),T[i].sort(L);var D=T[i][0].trace,C=null;for(o=0;o<T[i].length;o++){var P=T[i][o].trace.legendgrouptitle;if(P&&P.text){C=P,l&&(P.font=t._groupTitleFont);break}}if(u&&T[i].reverse(),C){var O=!1;for(o=0;o<T[i].length;o++)if(n.traceIs(T[i][o].trace,"pie-like")){O=!0;break}T[i].unshift({i:-1,groupTitle:C,noClick:O,trace:{showlegend:D.showlegend,legendgroup:D.legendgroup,visible:"toggleitem"===t.groupclick||D.visible}})}for(o=0;o<T[i].length;o++)T[i][o]=[T[i][o]]}return t._lgroupsLength=T.length,t._maxNameLength=g,T}},3048:function(e,t,r){"use strict";var n=r(4040),a=r(3400),i=a.pushUnique,o=!0;e.exports=function(e,t,r){var l=t._fullLayout;if(!t._dragged&&!t._editing){var s,u=l.legend.itemclick,c=l.legend.itemdoubleclick,f=l.legend.groupclick;if(1===r&&"toggle"===u&&"toggleothers"===c&&o&&t.data&&t._context.showTips?(a.notifier(a._(t,"Double-click on legend to isolate one trace"),"long"),o=!1):o=!1,1===r?s=u:2===r&&(s=c),s){var d="togglegroup"===f,h=l.hiddenlabels?l.hiddenlabels.slice():[],p=e.data()[0][0];if(!p.groupTitle||!p.noClick){var g=t._fullData,v=(l.shapes||[]).filter((function(e){return e.showlegend})),y=g.concat(v),m=p.trace;m._isShape&&(m=m._fullInput);var x,b,_,w,M,T=m.legendgroup,k={},A=[],S=[],L=[],D=(l.shapes||[]).map((function(e){return e._input})),C=!1,P=m.legend,O=m._fullInput;if(O&&O._isShape||!n.traceIs(m,"pie-like")){var R,E=T&&T.length,I=[];if(E)for(x=0;x<y.length;x++)(R=y[x]).visible&&R.legendgroup===T&&I.push(x);if("toggle"===s){var N;switch(m.visible){case!0:N="legendonly";break;case!1:N=!1;break;case"legendonly":N=!0}if(E)if(d)for(x=0;x<y.length;x++){var z=y[x];!1!==z.visible&&z.legendgroup===T&&ee(z,N)}else ee(m,N);else ee(m,N)}else if("toggleothers"===s){var F,j,B,H,G=!0;for(x=0;x<y.length;x++)if(F=(H=y[x])===m,j=!0!==H.showlegend,!(F||j||E&&H.legendgroup===T||H.legend!==P||!0!==H.visible||n.traceIs(H,"notLegendIsolatable"))){G=!1;break}for(x=0;x<y.length;x++)if(!1!==(H=y[x]).visible&&H.legend===P&&!n.traceIs(H,"notLegendIsolatable"))switch(m.visible){case"legendonly":ee(H,!0);break;case!0:B=!!G||"legendonly",F=H===m,j=!0!==H.showlegend&&!H.legendgroup,ee(H,!!(F||E&&H.legendgroup===T||j)||B)}}for(x=0;x<S.length;x++)if(_=S[x]){var Y=_.constructUpdate(),U=Object.keys(Y);for(b=0;b<U.length;b++)w=U[b],(k[w]=k[w]||[])[L[x]]=Y[w]}for(M=Object.keys(k),x=0;x<M.length;x++)for(w=M[x],b=0;b<A.length;b++)k[w].hasOwnProperty(b)||(k[w][b]=void 0);C?n.call("_guiUpdate",t,k,{shapes:D},A):n.call("_guiRestyle",t,k,A)}else{var q=p.label,V=h.indexOf(q);if("toggle"===s)-1===V?h.push(q):h.splice(V,1);else if("toggleothers"===s){var W=-1!==V,Z=[];for(x=0;x<t.calcdata.length;x++){var J=t.calcdata[x];for(b=0;b<J.length;b++){var X=J[b].label;P===J[0].trace.legend&&q!==X&&(-1===h.indexOf(X)&&(W=!0),i(h,X),Z.push(X))}}if(!W)for(var $=0;$<Z.length;$++){var K=h.indexOf(Z[$]);-1!==K&&h.splice(K,1)}}n.call("_guiRelayout",t,"hiddenlabels",h)}}}}function Q(e,t){var r=A.indexOf(e),n=k.visible;return n||(n=k.visible=[]),-1===A.indexOf(e)&&(A.push(e),r=A.length-1),n[r]=t,r}function ee(e,t){if(!p.groupTitle||d){var r,i=e._fullInput||e,o=i._isShape,l=i.index;if(void 0===l&&(l=i._index),n.hasTransform(i,"groupby")){var s=S[l];if(!s){var u=n.getTransformIndices(i,"groupby"),c=u[u.length-1];s=a.keyedContainer(i,"transforms["+c+"].styles","target","value.visible"),S[l]=s}var f=s.get(e._group);void 0===f&&(f=!0),!1!==f&&s.set(e._group,t),L[l]=Q(l,!1!==i.visible)}else{var h=!1!==i.visible&&t;o?(r=h,D[l].visible=r,C=!0):Q(l,h)}}}}},2451:function(e,t){"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")}},2780:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:r(3800),supplyLayoutDefaults:r(7864),draw:r(1140),style:r(2012)}},2012:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(3400),o=i.strTranslate,l=r(3616),s=r(6308),u=r(4288).extractOpts,c=r(3028),f=r(528),d=r(9656).castOption,h=r(5196);function p(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function g(e){var t=e[0].trace,r=t.contours,n=c.hasLines(t),a=c.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,l=!1;if(r){var s=r.coloring;"lines"===s?o=!0:n="none"===s||"heatmap"===s||r.showlines,"constraint"===r.type?i="="!==r._operation:"fill"!==s&&"heatmap"!==s||(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function v(e,t,r){return e&&i.isArrayOrTypedArray(e)?t:e>r?r:e}e.exports=function(e,t,r){var y=t._fullLayout;r||(r=y.legend);var m="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*h.itemGap)/2,_=o(b,0),w=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return m?n:Math.min(a,r)};function M(e,i,o){var c=e[0].trace,f=c.marker||{},d=f.line||{},h=f.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",p=o?c.visible&&c.type===o:a.traceIs(c,"bar"),g=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(p?[e]:[]);g.enter().append("path").classed("legend"+o,!0).attr("d",h).attr("transform",_),g.exit().remove(),g.each((function(e){var a=n.select(this),i=e[0],o=w(i.mlw,f.line,5,2);a.style("stroke-width",o+"px");var h=i.mcc;if(!r._inHover&&"mc"in i){var p=u(f),g=p.mid;void 0===g&&(g=(p.max+p.min)/2),h=l.tryColorscale(f,"")(g)}var y=h||i.mc||f.color,m=f.pattern,x=m&&l.getPatternAttr(m.shape,0,"");if(x){var b=l.getPatternAttr(m.bgcolor,0,null),_=l.getPatternAttr(m.fgcolor,0,null),M=m.fgopacity,T=v(m.size,8,10),k=v(m.solidity,.5,1),A="legend-"+c.uid;a.call(l.pattern,"legend",t,A,x,T,k,h,m.fillmode,b,_,M)}else a.call(s.fill,y);o&&s.stroke(a,i.mlc||d.color)}))}function T(e,r,o){var l=e[0],s=l.trace,u=o?s.visible&&s.type===o:a.traceIs(s,o),c=n.select(r).select("g.legendpoints").selectAll("path.legend"+o).data(u?[e]:[]);if(c.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var h=s.marker||{},p=w(d(h.line.width,l.pts),h.line,5,2),g="pieLike",v=i.minExtend(s,{marker:{line:{width:p}}},g),y=i.minExtend(l,{trace:v},g);f(c,y,v,t)}}e.each((function(e){var t=n.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var l=r.indentation,s=r.valign,u=e[0].lineHeight,c=e[0].height;if("middle"===s&&0===l||!u||!c)a.attr("transform",null);else{var f={top:1,bottom:-1}[s]*(.5*(u-c+3))||0,d=r.indentation;a.attr("transform",o(d,f))}a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var h=a.selectAll("g.legendsymbols").data([e]);h.enter().append("g").classed("legendsymbols",!0),h.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,a=e[0].trace,o=[];if(a.visible)switch(a.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 c=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);c.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),c.exit().remove(),c.each((function(e,o){var c,f=n.select(this),d=u(a),h=d.colorscale,g=d.reversescale;if(h){if(!r){var v=h.length;c=0===o?h[g?v-1:0][1]:1===o?h[g?0:v-1][1]:h[Math.floor((v-1)/2)][1]}}else{var y=a.vertexcolor||a.facecolor||a.color;c=i.isArrayOrTypedArray(y)?y[o]||y[0]:y}f.attr("d",e[0]),c?f.call(s.fill,c):f.call((function(e){if(e.size()){var n="legendfill-"+a.uid;l.gradient(e,t,n,p(g,"radial"===r),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,M(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=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=n.select(this),a=t[e[0]].marker,i=w(void 0,a.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)}))})).each((function(e){M(e,this,"funnel")})).each((function(e){M(e,this)})).each((function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var a=w(void 0,r.line,5,2);e.style("stroke-width",a+"px").call(s.fill,r.fillcolor),a&&s.stroke(e,r.line.color)}else{var u=i.minExtend(r,{marker:{size:m?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,u,t)}}))})).each((function(e){T(e,this,"funnelarea")})).each((function(e){T(e,this,"pie")})).each((function(e){var r,a,o=g(e),s=o.showFill,f=o.showLine,d=o.showGradientLine,h=o.showGradientFill,v=o.anyFill,y=o.anyLine,m=e[0],b=m.trace,_=u(b),M=_.colorscale,T=_.reversescale,k=c.hasMarkers(b)||!v?"M5,0":y?"M5,-2":"M5,-3",A=n.select(this),S=A.select(".legendfill").selectAll("path").data(s||h?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",k+"h"+x+"v6h-"+x+"z").call((function(e){if(e.size())if(s)l.fillGroupStyle(e,t,!0);else{var r="legendfill-"+b.uid;l.gradient(e,t,r,p(T),M,"fill")}})),f||d){var L=w(void 0,b.line,10,5);a=i.minExtend(b,{line:{width:L}}),r=[i.minExtend(m,{trace:a})]}var D=A.select(".legendlines").selectAll("path").data(f||d?[r]:[]);D.enter().append("path").classed("js-line",!0),D.exit().remove(),D.attr("d",k+(d?"l"+x+",0.0001":"h"+x)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+b.uid;l.lineGroupStyle(e),l.gradient(e,t,r,p(T),M,"stroke")}})})).each((function(e){var r,a,o=g(e),s=o.anyFill,u=o.anyLine,f=o.showLine,d=o.showMarker,h=e[0],p=h.trace,v=!d&&!u&&!s&&c.hasText(p);function y(e,t,r,n){var a=i.nestedProperty(p,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(m&&o&&void 0!==n&&(o=n),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function x(e){return h._distinct&&h.index&&e[h.index]?e[h.index]:e[0]}if(d||v||f){var b={},w={};if(d){b.mc=y("marker.color",x),b.mx=y("marker.symbol",x),b.mo=y("marker.opacity",i.mean,[.2,1]),b.mlc=y("marker.line.color",x),b.mlw=y("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var M=y("marker.size",i.mean,[2,16],12);b.ms=M,w.marker.size=M}f&&(w.line={width:y("line.width",x,[0,10],5)}),v&&(b.tx="Aa",b.tp=y("textposition",x),b.ts=10,b.tc=y("textfont.color",x),b.tf=y("textfont.family",x)),r=[i.minExtend(h,b)],(a=i.minExtend(p,w)).selectedpoints=null,a.texttemplate=null}var T=n.select(this).select("g.legendpoints"),k=T.selectAll("path.scatterpts").data(d?r:[]);k.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),k.exit().remove(),k.call(l.pointStyle,a,t),d&&(r[0].mrc=3);var A=T.selectAll("g.pointtext").data(v?r:[]);A.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),A.exit().remove(),A.selectAll("text").call(l.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,r=n.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",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,r=n.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",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(a,i.line.color)}))}))}},6540:function(e,t,r){"use strict";r(6052),e.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},1868:function(e,t,r){"use strict";var n=r(4040),a=r(7316),i=r(9811),o=r(9224),l=r(4016).eraseActiveShape,s=r(3400),u=s._,c=e.exports={};function f(e,t){var r,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,u=e._fullLayout,c={},f=i.list(e,null,!0),d=u._cartesianSpikesEnabled;if("zoom"===l){var h,p="in"===s?.5:2,g=(1+p)/2,v=(1-p)/2;for(a=0;a<f.length;a++)if(!(r=f[a]).fixedrange)if(h=r._name,"auto"===s)c[h+".autorange"]=!0;else if("reset"===s)void 0===r._rangeInitial0&&void 0===r._rangeInitial1?c[h+".autorange"]=!0:void 0===r._rangeInitial0?(c[h+".autorange"]=r._autorangeInitial,c[h+".range"]=[null,r._rangeInitial1]):void 0===r._rangeInitial1?(c[h+".range"]=[r._rangeInitial0,null],c[h+".autorange"]=r._autorangeInitial):c[h+".range"]=[r._rangeInitial0,r._rangeInitial1],void 0!==r._showSpikeInitial&&(c[h+".showspikes"]=r._showSpikeInitial,"on"!==d||r._showSpikeInitial||(d="off"));else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],m=[g*y[0]+v*y[1],g*y[1]+v*y[0]];c[h+".range[0]"]=r.l2r(m[0]),c[h+".range[1]"]=r.l2r(m[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=u._isHoriz?"y":"x",o.setAttribute("data-val",s)),c[l]=s;u._cartesianSpikesEnabled=d,n.call("_guiRelayout",e,c)}function d(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),u=0;u<o.length;u++)l[o[u]+"."+s[1]]=i;var c="pan"===i?i:"zoom";l.dragmode=c,n.call("_guiRelayout",e,l)}function h(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),a="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,l=o._subplots.gl3d||[],s={},u=0;u<l.length;u++){var c,f=l[u],d=f+".camera",h=f+".aspectratio",p=f+".aspectmode",g=o[f]._scene;a?(s[d+".up"]=g.viewInitial.up,s[d+".eye"]=g.viewInitial.eye,s[d+".center"]=g.viewInitial.center,c=!0):i&&(s[d+".up"]=null,s[d+".eye"]=null,s[d+".center"]=null,c=!0),c&&(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)}n.call("_guiRelayout",e,s)}function p(e,t){var r=t.currentTarget,n=r._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(n)s=n,r._previousVal=null;else{for(var u=0;u<i.length;u++){var c=i[u],f=a[c],d=c+".hovermode";l[d]=f.hovermode,s[d]=!1;for(var h=0;h<3;h++){var p=o[h],g=c+"."+p+".showspikes";s[g]=!1,l[g]=f[p].showspikes}}r._previousVal=l}return s}function g(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var u=l[s],c=o[u];if("zoom"===a){var f=c.projection.scale,d="in"===i?2*f:.5*f;n.call("_guiRelayout",e,u+".projection.scale",d)}}"reset"===a&&x(e,"geo")}function v(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function y(e){var t=v(e);n.call("_guiRelayout",e,"hovermode",t)}function m(e,t){for(var r=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],u=a[s].zoom,c="in"===r?1.05*u:u/1.05;o[s+".zoom"]=c}n.call("_guiRelayout",e,o)}function x(e,t){for(var r=e._fullLayout,a=r._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=r[l]._subplot.viewInitial,u=Object.keys(s),c=0;c<u.length;c++){var f=u[c];i[l+"."+f]=s[f]}n.call("_guiRelayout",e,i)}c.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return u(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(u(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&s.isIE()&&(s.notifier(u(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])})),n.call("downloadImage",e,r).then((function(t){s.notifier(u(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(u(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},c.sendDataToCloud={name:"sendDataToCloud",title:function(e){return u(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},c.editInChartStudio={name:"editInChartStudio",title:function(e){return u(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},c.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return u(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},c.pan2d={name:"pan2d",_cat:"pan",title:function(e){return u(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},c.select2d={name:"select2d",_cat:"select",title:function(e){return u(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},c.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return u(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},c.drawclosedpath={name:"drawclosedpath",title:function(e){return u(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},c.drawopenpath={name:"drawopenpath",title:function(e){return u(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},c.drawline={name:"drawline",title:function(e){return u(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},c.drawrect={name:"drawrect",title:function(e){return u(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},c.drawcircle={name:"drawcircle",title:function(e){return u(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},c.eraseshape={name:"eraseshape",title:function(e){return u(e,"Erase active shape")},icon:o.eraseshape,click:l},c.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},c.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},c.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return u(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},c.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return u(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},c.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return u(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},c.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return u(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},c.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return u(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:d},c.pan3d={name:"pan3d",_cat:"pan",title:function(e){return u(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:d},c.orbitRotation={name:"orbitRotation",title:function(e){return u(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:d},c.tableRotation={name:"tableRotation",title:function(e){return u(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:d},c.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return u(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:h},c.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return u(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:h},c.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return u(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);n.call("_guiRelayout",e,r)}},c.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:g},c.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:g},c.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return u(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:g},c.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},c.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:y},c.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:y},c.resetViewSankey={name:"resetSankeyGroup",title:function(e){return u(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 a=e._fullData[r]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}n.call("restyle",e,t)}},c.toggleHover={name:"toggleHover",title:function(e){return u(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=v(e),n.call("_guiRelayout",e,r)}},c.resetViews={name:"resetViews",title:function(e){return u(e,"Reset views")},icon:o.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),f(e,t),r.setAttribute("data-attr","resetLastSave"),h(e,t),x(e,"geo"),x(e,"mapbox")}},c.toggleSpikelines={name:"toggleSpikelines",title:function(e){return u(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",n.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,r=i.list(e,null,!0),n={},a=0;a<r.length;a++){var o=r[a];n[o._name+".showspikes"]=!!t||o._showSpikeInitial}return n}(e))}},c.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return u(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},c.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:m},c.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:m}},6052:function(e,t,r){"use strict";var n=r(1868),a=Object.keys(n),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),l=[];a.forEach((function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===l.indexOf(t)&&l.push(t),-1===l.indexOf(r)&&l.push(r)}}(n[e])})),l.sort(),e.exports={DRAW_MODES:i,backButtons:o,foreButtons:l}},824:function(e,t,r){"use strict";var n=r(3400),a=r(6308),i=r(1780),o=r(6540);e.exports=function(e,t){var r=e.modebar||{},l=i.newContainer(t,"modebar");function s(e,t){return n.coerce(r,l,o,e,t)}s("orientation"),s("bgcolor",a.addOpacity(t.paper_bgcolor,.5));var u=a.contrast(a.rgb(t.modebar.bgcolor));s("color",a.addOpacity(u,.3)),s("activecolor",a.addOpacity(u,.7)),s("uirevision",t.uirevision),s("add"),s("remove")}},3080:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"modebar",layoutAttributes:r(6540),supplyLayoutDefaults:r(824),manage:r(8816)}},8816:function(e,t,r){"use strict";var n=r(9811),a=r(3028),i=r(4040),o=r(624).isUnifiedHover,l=r(6400),s=r(1868),u=r(6052).DRAW_MODES,c=r(3400).extendDeep;e.exports=function(e){var t=e._fullLayout,r=e._context,f=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 d,h=r.modeBarButtons;d=Array.isArray(h)&&h.length?function(e){for(var t=c([],e),r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++){var i=n[a];if("string"==typeof i){if(void 0===s[i])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));t[r][a]=s[i]}}return t}(h):!r.displayModeBar&&r.watermark?[]:function(e){var t=e._fullLayout,r=e._fullData,l=e._context;function c(e,t){if("string"==typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var r=t.name,n=t._cat||t.name;if(r===e||n===e.toLowerCase())return!0}return!1}var f=t.modebar.add;"string"==typeof f&&(f=[f]);var d=t.modebar.remove;"string"==typeof d&&(d=[d]);var h=l.modeBarButtonsToAdd.concat(f.filter((function(e){for(var t=0;t<l.modeBarButtonsToRemove.length;t++)if(c(e,l.modeBarButtonsToRemove[t]))return!1;return!0}))),p=l.modeBarButtonsToRemove.concat(d.filter((function(e){for(var t=0;t<l.modeBarButtonsToAdd.length;t++)if(c(e,l.modeBarButtonsToAdd[t]))return!1;return!0}))),g=t._has("cartesian"),v=t._has("gl3d"),y=t._has("geo"),m=t._has("pie"),x=t._has("funnelarea"),b=t._has("gl2d"),_=t._has("ternary"),w=t._has("mapbox"),M=t._has("polar"),T=t._has("smith"),k=t._has("sankey"),A=function(e){for(var t=n.list({_fullLayout:e},null,!0),r=0;r<t.length;r++)if(!t[r].fixedrange)return!1;return!0}(t),S=o(t.hovermode),L=[];function D(e){if(e.length){for(var t=[],r=0;r<e.length;r++){for(var n=e[r],a=s[n],i=a.name.toLowerCase(),o=(a._cat||a.name).toLowerCase(),l=!1,u=0;u<p.length;u++){var c=p[u].toLowerCase();if(c===i||c===o){l=!0;break}}l||t.push(s[n])}L.push(t)}}var C=["toImage"];l.showEditInChartStudio?C.push("editInChartStudio"):l.showSendToCloud&&C.push("sendDataToCloud"),D(C);var P=[],O=[],R=[],E=[];(g||b||m||x||_)+y+v+w+M+T>1?(O=["toggleHover"],R=["resetViews"]):y?(P=["zoomInGeo","zoomOutGeo"],O=["hoverClosestGeo"],R=["resetGeo"]):v?(O=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(P=["zoomInMapbox","zoomOutMapbox"],O=["toggleHover"],R=["resetViewMapbox"]):b?O=["hoverClosestGl2d"]:m?O=["hoverClosestPie"]:k?(O=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):O=["toggleHover"],g&&(O=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(r)||S)&&(O=[]),!g&&!b||A||(P=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==R[0]&&(R=["resetScale2d"])),v?E=["zoom3d","pan3d","orbitRotation","tableRotation"]:(g||b)&&!A||_?E=["zoom2d","pan2d"]:w||y?E=["pan2d"]:M&&(E=["zoom2d"]),function(e){for(var t=!1,r=0;r<e.length&&!t;r++){var n=e[r];n._module&&n._module.selectPoints&&(i.traceIs(n,"scatter-like")?(a.hasMarkers(n)||a.hasText(n))&&(t=!0):i.traceIs(n,"box-violin")&&"all"!==n.boxpoints&&"all"!==n.points||(t=!0))}return t}(r)&&E.push("select2d","lasso2d");var I=[],N=function(e){-1===I.indexOf(e)&&-1!==O.indexOf(e)&&I.push(e)};if(Array.isArray(h)){for(var z=[],F=0;F<h.length;F++){var j=h[F];"string"==typeof j?(j=j.toLowerCase(),-1!==u.indexOf(j)?(t._has("mapbox")||t._has("cartesian"))&&E.push(j):"togglespikelines"===j?N("toggleSpikelines"):"togglehover"===j?N("toggleHover"):"hovercompare"===j?N("hoverCompareCartesian"):"hoverclosest"===j?(N("hoverClosestCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestGl2d"),N("hoverClosestPie")):"v1hovermode"===j&&(N("toggleHover"),N("hoverClosestCartesian"),N("hoverCompareCartesian"),N("hoverClosestGeo"),N("hoverClosest3d"),N("hoverClosestGl2d"),N("hoverClosestPie"))):z.push(j)}h=z}return D(E),D(P.concat(R)),D(I),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}(L,h)}(e),f?f.update(e,d):t._modeBar=l(e,d)}else f&&(f.destroy(),delete t._modeBar)}},6400:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(3400),o=r(9224),l=r(5788).version,s=new DOMParser;function u(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=u.prototype;c.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=n.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,c=this.locale!==r.locale;if(this.locale=r.locale,(s||u||c)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),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 n=e.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var a=t.createButton(e);t.buttonElements.push(a),r.appendChild(a)})),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 a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&r.setAttribute("data-title",a),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&&n.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=a(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(n,"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)}return e.svg&&(t=s.parseFromString(e.svg,"application/xml").childNodes[0]),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 a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=n.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var u=null===o?o:i.nestedProperty(t,o).get();s.classed("active",u===a)}}))},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 n=0;n<e[r].length;n++)if(e[r][n].name!==t[r][n].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.js")+" (v"+l+")"),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,a=new u({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&n.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},6680:function(e,t,r){"use strict";var n=r(5376),a=r(2548),i=(0,r(1780).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});e.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:n({editType:"plot"}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},5984:function(e){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},2148:function(e,t,r){"use strict";var n=r(3400),a=r(6308),i=r(1780),o=r(1272),l=r(6680),s=r(5984);function u(e,t,r,a){var i=a.calendar;function o(r,a){return n.coerce(e,t,l.buttons,r,a)}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,c,f){var d=e.rangeselector||{},h=i.newContainer(t,"rangeselector");function p(e,t){return n.coerce(d,h,l,e,t)}if(p("visible",o(d,h,{name:"buttons",handleItemDefaults:u,calendar:f}).length>0)){var g=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),a=0,i=0;i<n.length;i++){var o=t[n[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,r,c);p("x",g[0]),p("y",g[1]),n.noneOrAll(e,t,["x","y"]),p("xanchor"),p("yanchor"),n.coerceFont(p,"font",r.font);var v=p("bgcolor");p("activecolor",a.contrast(v,s.lightAmount,s.darkAmount)),p("bordercolor"),p("borderwidth")}}},216:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(7316),o=r(6308),l=r(3616),s=r(3400),u=s.strTranslate,c=r(2736),f=r(9811),d=r(4284),h=d.LINE_SPACING,p=d.FROM_TL,g=d.FROM_BR,v=r(5984),y=r(8040);function m(e){return e._id}function x(e,t,r){var n=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));n.attr({rx:v.rx,ry:v.ry}),n.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,n){var a,i;s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(l.font,t.font).text((a=r,i=n._fullLayout._meta,a.label?i?s.templateString(a.label,i):a.label:"all"===a.step?"all":a.count+a.step.charAt(0))).call((function(e){c.convertToTspans(e,n)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=f.list(e,"x",!0),r=[],n=0;n<t.length;n++){var a=t[n];a.rangeselector&&a.rangeselector.visible&&r.push(a)}return r}(e),m);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var r=n.select(this),o=t,f=o.rangeselector,d=r.selectAll("g.button").data(s.filterVisible(f.buttons));d.enter().append("g").classed("button",!0),d.exit().remove(),d.each((function(t){var r=n.select(this),i=y(o,t);t._isActive=function(e,t,r){if("all"===t.step)return!0===e.autorange;var n=Object.keys(r);return e.range[0]===r[n[0]]&&e.range[1]===r[n[1]]}(o,t,i),r.call(x,f,t),r.call(b,f,t,e),r.on("click",(function(){e._dragged||a.call("_guiRelayout",e,i)})),r.on("mouseover",(function(){t._isHovered=!0,r.call(x,f,t)})),r.on("mouseout",(function(){t._isHovered=!1,r.call(x,f,t)}))})),function(e,t,r,a,o){var f=0,d=0,y=r.borderwidth;t.each((function(){var e=n.select(this).select(".selector-text"),t=r.font.size*h,a=Math.max(t*c.lineCount(e),16)+3;d=Math.max(d,a)})),t.each((function(){var e=n.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=r.font.size*h,s=c.lineCount(a),p=Math.max(i+10,v.minButtonWidth);e.attr("transform",u(y+f,y)),t.attr({x:0,y:0,width:p,height:d}),c.positionText(a,p/2,d/2-(s-1)*o/2+3),f+=p+5}));var m=e._fullLayout._size,x=m.l+m.w*r.x,b=m.t+m.h*(1-r.y),_="left";s.isRightAnchor(r)&&(x-=f,_="right"),s.isCenterAnchor(r)&&(x-=f/2,_="center");var w="top";s.isBottomAnchor(r)&&(b-=d,w="bottom"),s.isMiddleAnchor(r)&&(b-=d/2,w="middle"),f=Math.ceil(f),d=Math.ceil(d),x=Math.round(x),b=Math.round(b),i.autoMargin(e,a+"-range-selector",{x:r.x,y:r.y,l:f*p[_],r:f*g[_],b:d*g[w],t:d*p[w]}),o.attr("transform",u(x,b))}(e,d,f,o._name,r)}))}},8040:function(e,t,r){"use strict";var n=r(3220),a=r(3400).titleCase;e.exports=function(e,t){var r=e._name,i={};if("all"===t.step)i[r+".autorange"]=!0;else{var o=function(e,t){var r,i=e.range,o=new Date(e.r2l(i[1])),l=t.step,s=n["utc"+a(l)],u=t.count;switch(t.stepmode){case"backward":r=e.l2r(+s.offset(o,-u));break;case"todate":var c=s.offset(o,-u);r=e.l2r(+s.ceil(c))}return[r,i[1]]}(e,t);i[r+".range[0]"]=o[0],i[r+".range[1]"]=o[1]}return i}},1152:function(e,t,r){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:r(6680)}}},layoutAttributes:r(6680),handleDefaults:r(2148),draw:r(216)}},8820:function(e,t,r){"use strict";var n=r(2548);e.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},6652:function(e,t,r){"use strict";var n=r(9811).list,a=r(9280).getAutoRange,i=r(4636);e.exports=function(e){for(var t=n(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=a(e,o))}}},4636:function(e){"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}},1659:function(e,t,r){"use strict";var n=r(3400),a=r(1780),i=r(9811),o=r(8820),l=r(936);e.exports=function(e,t,r){var s=e[r],u=t[r];if(s.rangeslider||t._requestRangeslider[u._id]){n.isPlainObject(s.rangeslider)||(s.rangeslider={});var c,f,d=s.rangeslider,h=a.newContainer(u,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!u.isValidRange(d.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)})),v=n.simpleMap(g,i.id2name),y=0;y<v.length;y++){var m=v[y];c=d[m]||{},f=a.newContainer(h,m,"yaxis");var x,b=t[m];c.range&&b.isValidRange(c.range)&&(x="fixed"),"match"!==w("rangemode",x)&&w("range",b.range.slice())}h._input=d}}function _(e,t){return n.coerce(d,h,o,e,t)}function w(e,t){return n.coerce(c,f,l,e,t)}}},60:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(7316),o=r(3400),l=o.strTranslate,s=r(3616),u=r(6308),c=r(1668),f=r(7952),d=r(9811),h=r(6476),p=r(3972),g=r(4636);function v(e){return"number"==typeof e.clientX?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function y(e,t,r,n){var a=o.ensureSingle(e,"rect",g.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,f=s.crispRound(t,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:l(c,c),"stroke-width":f}).call(u.stroke,n.bordercolor).call(u.fill,n.bgcolor)}function m(e,t,r,n){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",n._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function x(e,t,r,a){var l,u=t.calcdata,c=e.selectAll("g."+g.rangePlotClassName).data(r._subplotsWith,o.identity);c.enter().append("g").attr("class",(function(e){return g.rangePlotClassName+" "+e})).call(s.setClipUrl,a._clipId,t),c.order(),c.exit().remove(),c.each((function(e,o){var s=n.select(this),c=0===o,h=d.getFromId(t,e,"y"),p=h._name,g=a[p],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:a.range.slice(),calendar:r.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(v.layout.xaxis.rangebreaks=r.rangebreaks),v.layout[p]={type:h.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(v.layout[p].rangebreaks=h.rangebreaks),i.supplyDefaults(v);var y=v._fullLayout.xaxis,m=v._fullLayout[p];y.clearCalc(),y.setScale(),m.clearCalc(),m.setScale();var x={id:e,plotgroup:s,xaxis:y,yaxis:m,isRangePlot:!0};c?l=x:(x.mainplot="xy",x.mainplotinfo=l),f.rangePlot(t,x,function(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=a[0].trace;i.xaxis+i.yaxis===t&&r.push(a)}return r}(u,e))}))}function b(e,t,r,n,a){o.ensureSingle(e,"rect",g.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(u.fill,g.maskColor),o.ensureSingle(e,"rect",g.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(u.fill,g.maskColor),"match"!==a.rangemode&&(o.ensureSingle(e,"rect",g.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).call(u.fill,g.maskOppAxisColor),o.ensureSingle(e,"rect",g.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).style("border-top",g.maskOppBorder).call(u.fill,g.maskOppAxisColor))}function _(e,t,r,n){t._context.staticPlot||o.ensureSingle(e,"rect",g.slideBoxClassName,(function(e){e.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:n._height,fill:g.slideBoxFill})}function w(e,t,r,n){var a=o.ensureSingle(e,"g",g.grabberMinClassName),i=o.ensureSingle(e,"g",g.grabberMaxClassName),l={x:0,width:g.handleWidth,rx:g.handleRadius,fill:u.background,stroke:u.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(a,"rect",g.handleMinClassName,(function(e){e.attr(l)})).attr(s),o.ensureSingle(i,"rect",g.handleMaxClassName,(function(e){e.attr(l)})).attr(s);var c={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:t._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(a,"rect",g.grabAreaMinClassName,(function(e){e.attr(c)})).attr("height",n._height),o.ensureSingle(i,"rect",g.grabAreaMaxClassName,(function(e){e.attr(c)})).attr("height",n._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 u=t._infolayer.selectAll("g."+g.containerClassName).data(r,(function(e){return e._name}));u.exit().each((function(e){var r=e[g.name];t._topdefs.select("#"+r._clipId).remove()})).remove(),0!==r.length&&(u.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),u.each((function(r){var i=n.select(this),s=r[g.name],u=t[d.id2name(r.anchor)],f=s[d.id2name(r.anchor)];if(s.range){var M,T=o.simpleMap(s.range,r.r2l),k=o.simpleMap(r.range,r.r2l);M=k[0]<k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],s.range=s._input.range=o.simpleMap(M,r.l2r)}r.cleanRange("rangeslider.range");var A=t._size,S=r.domain;s._width=A.w*(S[1]-S[0]);var L=Math.round(A.l+A.w*S[0]),D=Math.round(A.t+A.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+s._offsetShift+g.extraPad);i.attr("transform",l(L,D)),s._rl=o.simpleMap(s.range,r.r2l);var C=s._rl[0],P=s._rl[1],O=P-C;if(s.p2d=function(e){return e/s._width*O+C},s.d2p=function(e){return(e-C)/O*s._width},r.rangebreaks){var R=r.locateBreaks(C,P);if(R.length){var E,I,N=0;for(E=0;E<R.length;E++)N+=(I=R[E]).max-I.min;var z=s._width/(P-C-N),F=[-z*C];for(E=0;E<R.length;E++)I=R[E],F.push(F[F.length-1]-z*(I.max-I.min));for(s.d2p=function(e){for(var t=F[0],r=0;r<R.length;r++){var n=R[r];if(e>=n.max)t=F[r+1];else if(e<n.min)break}return t+z*e},E=0;E<R.length;E++)(I=R[E]).pmin=s.d2p(I.min),I.pmax=s.d2p(I.max);s.p2d=function(e){for(var t=F[0],r=0;r<R.length;r++){var n=R[r];if(e>=n.pmax)t=F[r+1];else if(e<n.pmin)break}return(e-t)/z}}}if("match"!==f.rangemode){var j=u.r2l(f.range[0]),B=u.r2l(f.range[1])-j;s.d2pOppAxis=function(e){return(e-j)/B*s._height}}i.call(y,e,r,s).call(m,e,r,s).call(x,e,r,s).call(b,e,r,s,f).call(_,e,r,s).call(w,e,r,s),function(e,t,r,i){if(!t._context.staticPlot){var l=e.select("rect."+g.slideBoxClassName).node(),s=e.select("rect."+g.grabAreaMinClassName).node(),u=e.select("rect."+g.grabAreaMaxClassName).node();e.on("mousedown",c),e.on("touchstart",c)}function c(){var c=n.event,f=c.target,d=v(c),g=d-e.node().getBoundingClientRect().left,y=i.d2p(r._rl[0]),m=i.d2p(r._rl[1]),x=h.coverSlip();function b(e){var c,h,b,_=+v(e)-d;switch(f){case l:if(b="ew-resize",y+_>r._length||m+_<0)return;c=y+_,h=m+_;break;case s:if(b="col-resize",y+_>r._length)return;c=y+_,h=m;break;case u:if(b="col-resize",m+_<0)return;c=y,h=m+_;break;default:b="ew-resize",c=g,h=g+_}if(h<c){var w=h;h=c,c=w}i._pixelMin=c,i._pixelMax=h,p(n.select(x),b),function(e,t,r,n){function i(e){return r.l2r(o.constrain(e,n._rl[0],n._rl[1]))}var l=i(n.p2d(n._pixelMin)),s=i(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,r._name+".range",[l,s])}))}(0,t,r,i)}function _(){x.removeEventListener("mousemove",b),x.removeEventListener("mouseup",_),this.removeEventListener("touchmove",b),this.removeEventListener("touchend",_),o.removeElement(x)}this.addEventListener("touchmove",b),this.addEventListener("touchend",_),x.addEventListener("mousemove",b),x.addEventListener("mouseup",_)}}(i,e,r,s),function(e,t,r,n,a,i){var s=g.handleWidth/2;function u(e){return o.constrain(e,0,n._width)}function c(e){return o.constrain(e,0,n._height)}function f(e){return o.constrain(e,-s,n._width+s)}var d=u(n.d2p(r._rl[0])),h=u(n.d2p(r._rl[1]));if(e.select("rect."+g.slideBoxClassName).attr("x",d).attr("width",h-d),e.select("rect."+g.maskMinClassName).attr("width",d),e.select("rect."+g.maskMaxClassName).attr("x",h).attr("width",n._width-h),"match"!==i.rangemode){var p=n._height-c(n.d2pOppAxis(a._rl[1])),v=n._height-c(n.d2pOppAxis(a._rl[0]));e.select("rect."+g.maskMinOppAxisClassName).attr("x",d).attr("height",p).attr("width",h-d),e.select("rect."+g.maskMaxOppAxisClassName).attr("x",d).attr("y",v).attr("height",n._height-v).attr("width",h-d),e.select("rect."+g.slideBoxClassName).attr("y",p).attr("height",v-p)}var y=.5,m=Math.round(f(d-s))-y,x=Math.round(f(h-s))+y;e.select("g."+g.grabberMinClassName).attr("transform",l(m,y)),e.select("g."+g.grabberMaxClassName).attr("transform",l(x,y))}(i,0,r,s,u,f),"bottom"===r.side&&c.draw(e,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:t._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:D+s._height+s._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})})))}},7944:function(e,t,r){"use strict";var n=r(9811),a=r(2736),i=r(4636),o=r(4284).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=n.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var u=o[l];u._id=l+o._id,u._height=(e.height-r.b-r.t)*u.thickness,u._offsetShift=Math.floor(u.borderwidth/2)}}e._rangeSliderData=a},t.autoMarginOpts=function(e,t){var r=e._fullLayout,n=t[l],s=t._id.charAt(0),u=0,c=0;return"bottom"===t.side&&(u=t._depth,t.title.text!==r._dfltTitle[s]&&(c=1.5*t.title.font.size+10+n._offsetShift,c+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o)),{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:n._height+u+Math.max(r.margin.b,c),pad:i.extraPad+2*n._offsetShift}}},9692:function(e,t,r){"use strict";var n=r(3400),a=r(8820),i=r(936),o=r(7944);e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},a,{yaxis:i})}}},layoutAttributes:r(8820),handleDefaults:r(1659),calcAutorange:r(6652),draw:r(60),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},936:function(e){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},3956:function(e,t,r){"use strict";var n=r(3916),a=r(2904).line,i=r(8192).u,o=r(2880).extendFlat,l=r(7824).overrideAll,s=r(1780).templatedArray;r(6208),e.exports=l(s("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:o({},n.xref,{}),yref:o({},n.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:a.color,width:o({},a.width,{min:1,dflt:1}),dash:o({},i,{dflt:"dot"})}}),"arraydraw","from-root")},3280:function(e){"use strict";e.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},4224:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(1272),o=r(3956),l=r(5152);function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}var s=i("path"),u="path"!==i("type",s?"path":"rect");u&&delete t.path,i("opacity"),i("line.color"),i("line.width"),i("line.dash");for(var c=["x","y"],f=0;f<2;f++){var d,h,p,g=c[f],v={_fullLayout:r},y=a.coerceRef(e,t,v,g);if((d=a.getFromId(v,y))._selectionIndices.push(t._index),p=l.rangeToShapePosition(d),h=l.shapePositionToRange(d),u){var m=g+"0",x=g+"1",b=e[m],_=e[x];e[m]=h(e[m],!0),e[x]=h(e[x],!0),a.coercePosition(t,v,i,y,m),a.coercePosition(t,v,i,y,x);var w=t[m],M=t[x];void 0!==w&&void 0!==M&&(t[m]=p(w),t[x]=p(M),e[m]=b,e[x]=_)}}u&&n.noneOrAll(e,t,["x0","x1","y0","y1"])}e.exports=function(e,t){i(e,t,{name:"selections",handleItemDefaults:s});for(var r=t.selections,n=0;n<r.length;n++){var a=r[n];a&&void 0===a.path&&(void 0!==a.x0&&void 0!==a.x1&&void 0!==a.y0&&void 0!==a.y1||(t.selections[n]=null))}}},3640:function(e,t,r){"use strict";var n=r(9856).readPaths,a=r(5496),i=r(1936).clearOutlineControllers,o=r(6308),l=r(3616),s=r(1780).arrayEditor,u=r(5152),c=u.getPathString;function f(e){var t=e._fullLayout;for(var r in i(e),t._selectionLayer.selectAll("path").remove(),t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a<t.selections.length;a++)h(e,a)}function d(e){return e._context.editSelection}function h(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var r=u.makeSelectionsOptionsAndPlotinfo(e,t),i=r.options,h=r.plotinfo;i._input&&function(r){var u=c(e,i),v={"data-index":t,"fill-rule":"evenodd",d:u},y=i.opacity,m="rgba(0,0,0,0)",x=i.line.color||o.contrast(e._fullLayout.plot_bgcolor),b=i.line.width,_=i.line.dash;b||(b=5,_="solid");var w=d(e)&&e._fullLayout._activeSelectionIndex===t;w&&(m=e._fullLayout.activeselection.fillcolor,y=e._fullLayout.activeselection.opacity);for(var M=[],T=1;T>=0;T--){var k=r.append("path").attr(v).style("opacity",T?.1:y).call(o.stroke,x).call(o.fill,m).call(l.dashLine,T?"solid":_,T?4+b:b);if(p(k,e,i),w){var A=s(e.layout,"selections",i);k.style({cursor:"move"});var S={element:k.node(),plotinfo:h,gd:e,editHelpers:A,isActiveSelection:!0},L=n(u,e);a(L,k,S)}else k.style("pointer-events",T?"all":"none");M[T]=k}var D=M[0];M[1].node().addEventListener("click",(function(){return function(e,t){if(d(e)){var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeSelectionIndex)return void g(e);e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=g,f(e)}}}(e,D)}))}(e._fullLayout._selectionLayer)}function p(e,t,r){var n=r.xref+r.yref;l.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function g(e){d(e)&&e._fullLayout._activeSelectionIndex>=0&&(i(e),delete e._fullLayout._activeSelectionIndex,f(e))}e.exports={draw:f,drawOne:h,activateLastSelection:function(e){if(d(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=g,f(e)}}}},4200:function(e,t,r){"use strict";var n=r(8192).u,a=r(2880).extendFlat;e.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:a({},n,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},1004:function(e){"use strict";e.exports=function(e,t,r){r("newselection.mode"),r("newselection.line.width")&&(r("newselection.line.color"),r("newselection.line.dash")),r("activeselection.fillcolor"),r("activeselection.opacity")}},5968:function(e,t,r){"use strict";var n=r(2760).selectMode,a=r(1936).clearOutline,i=r(9856),o=i.readPaths,l=i.writePaths,s=i.fixDatesForPaths;e.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var i=r.getAttribute("d"),u=t.gd,c=u._fullLayout.newselection,f=t.plotinfo,d=f.xaxis,h=f.yaxis,p=t.isActiveSelection,g=t.dragmode,v=(u.layout||{}).selections||[];if(!n(g)&&void 0!==p){var y=u._fullLayout._activeSelectionIndex;if(y<v.length)switch(u._fullLayout.selections[y].type){case"rect":g="select";break;case"path":g="lasso"}}var m,x=o(i,u,f,p),b={xref:d._id,yref:h._id,opacity:c.opacity,line:{color:c.line.color,width:c.line.width,dash:c.line.dash}};1===x.length&&(m=x[0]),m&&5===m.length&&"select"===g?(b.type="rect",b.x0=m[0][1],b.y0=m[0][2],b.x1=m[2][1],b.y1=m[2][2]):(b.type="path",d&&h&&s(x,d,h),b.path=l(x),m=null),a(u);for(var _=t.editHelpers,w=(_||{}).modifyItem,M=[],T=0;T<v.length;T++){var k=u._fullLayout.selections[T];if(k){if(M[T]=k._input,void 0!==p&&T===u._fullLayout._activeSelectionIndex){var A=b;switch(k.type){case"rect":w("x0",A.x0),w("x1",A.x1),w("y0",A.y0),w("y1",A.y1);break;case"path":w("path",A.path)}}}else M[T]=k}return void 0===p?(M.push(b),M):_?_.getUpdateObj():{}}}}},5840:function(e,t,r){"use strict";var n=r(3400).strTranslate;function a(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:a,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 a(e,r[t])}},getTransform:function(e){return n(e.xaxis._offset,e.yaxis._offset)}}},2676:function(e,t,r){"use strict";var n=r(3640),a=r(3156);e.exports={moduleType:"component",name:"selections",layoutAttributes:r(3956),supplyLayoutDefaults:r(4224),supplyDrawNewSelectionDefaults:r(1004),includeBasePlot:r(6632)("selections"),draw:n.draw,drawOne:n.drawOne,reselect:a.reselect,prepSelect:a.prepSelect,clearOutline:a.clearOutline,clearSelectionsCache:a.clearSelectionsCache,selectOnClick:a.selectOnClick}},3156:function(e,t,r){"use strict";var n=r(4756),a=r(1456),i=r(4040),o=r(3616).dashStyle,l=r(6308),s=r(3024),u=r(624).makeEventData,c=r(2760),f=c.freeMode,d=c.rectMode,h=c.drawMode,p=c.openMode,g=c.selectMode,v=r(5152),y=r(3068),m=r(5496),x=r(1936).clearOutline,b=r(9856),_=b.handleEllipse,w=b.readPaths,M=r(3940).newShapes,T=r(5968),k=r(3640).activateLastSelection,A=r(3400),S=A.sorterAsc,L=r(2065),D=r(1200),C=r(9811).getFromId,P=r(3696),O=r(9172).redrawReglTraces,R=r(3280),E=R.MINSELECT,I=L.filter,N=L.tester,z=r(5840),F=z.p2r,j=z.axValue,B=z.getTransform;function H(e){return void 0!==e.subplot}function G(e,t,r,n,a,i,o){var l,s,u,c,f,d,h,g,v,y=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(y)){V(e,t,i);var _=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n<t.length;n++)if(r=t[n],a.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:r}}(y,l=J(t,r,n,a));if(_.pointNumbers.length>0?function(e,t){var r,n,a,i=[];for(a=0;a<e.length;a++)(r=e[a]).cd[0].trace.selectedpoints&&r.cd[0].trace.selectedpoints.length>0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a<t.pointNumbers.length;a++)if(n.selectedpoints.indexOf(t.pointNumbers[a])<0)return!1;return!0}return!1}(l,_):function(e){var t,r,n=0;for(r=0;r<e.length;r++)if((t=e[r].cd[0].trace).selectedpoints){if(t.selectedpoints.length>1)return!1;if((n+=t.selectedpoints.length)>1)return!1}return 1===n}(l)&&(d=$(_))){for(o&&o.remove(),v=0;v<l.length;v++)(s=l[v])._module.selectPoints(s,!1);K(t,l),W(i),x&&de(t)}else{for(h=e.shiftKey&&(void 0!==d?d:$(_)),u=function(e,t,r){return{pointNumber:e,searchInfo:t,subtract:!!r}}(_.pointNumber,_.searchInfo,h),c=q(i.selectionDefs.concat([u])),v=0;v<l.length;v++)if(f=ee(l[v]._module.selectPoints(l[v],c),l[v]),b.length)for(var w=0;w<f.length;w++)b.push(f[w]);else b=f;if(K(t,l,g={points:b}),u&&i&&i.selectionDefs.push(u),o){var M=i.mergedPolygons,T=p(i.dragmode);m(te(M,T),o,i)}x&&fe(t,g)}}}function Y(e){return"pointNumber"in e&&"searchInfo"in e}function U(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,r,n,a){var i=e.searchInfo.cd[0].trace._expandedIndex;return a.cd[0].trace._expandedIndex===i&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function q(e){if(e.length){for(var t=[],r=Y(e[0])?0:e[0][0][0],n=r,a=Y(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(Y(e[o]))t.push(U(e[o]));else{var l=N(e[o]);l.subtract=!!e[o].subtract,t.push(l),r=Math.min(r,l.xmin),n=Math.max(n,l.xmax),a=Math.min(a,l.ymin),i=Math.max(i,l.ymax)}return{xmin:r,xmax:n,ymin:a,ymax:i,pts:[],contains:function(e,r,n,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,r,n,a)&&(i=!t[o].subtract);return i},isRect:!1,degenerate:!1}}}function V(e,t,r){var n=t._fullLayout,a=r.plotinfo,i=r.dragmode,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(h(i)&&p(i));o&&l&&a.selection&&a.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=a.selection.selectionDefs,r.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||W(r),o||(x(t),n._lastSelectedSubplot=a.id)}function W(e,t){var r=e.dragmode,n=e.plotinfo,a=e.gd;(function(e){return e._fullLayout._activeShapeIndex>=0})(a)&&a._fullLayout._deactivateShape(a),function(e){return e._fullLayout._activeSelectionIndex>=0}(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout._zoomlayer,l=h(r),s=g(r);if(l||s){var u,c,f=o.selectAll(".select-outline-"+n.id);f&&a._fullLayout._outlining&&(l&&(u=M(f,e)),u&&i.call("_guiRelayout",a,{shapes:u}),s&&!H(e)&&(c=T(f,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",a,{selections:c}).then((function(){t&&k(a)}))),a._fullLayout._outlining=!1)}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Z(e){return e._id}function J(e,t,r,n){if(!e.calcdata)return[];var a,i,o,l=[],s=t.map(Z),u=r.map(Z);for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!H({subplot:n})||i.subplot!==n&&i.geo!==n)if("splom"===i.type){if(i._xaxes[s[0]]&&i._yaxes[u[0]]){var c=X(i._module,a,t[0],r[0]);c.scene=e._fullLayout._splomScenes[i.uid],l.push(c)}}else if("sankey"===i.type){var f=X(i._module,a,t[0],r[0]);l.push(f)}else{if(!(-1!==s.indexOf(i.xaxis)||i._xA&&i._xA.overlaying))continue;if(!(-1!==u.indexOf(i.yaxis)||i._yA&&i._yA.overlaying))continue;l.push(X(i._module,a,C(e,i.xaxis),C(e,i.yaxis)))}else l.push(X(i._module,a,t[0],r[0]));return l}function X(e,t,r,n){return{_module:e,cd:t,xaxis:r,yaxis:n}}function $(e){var t=e.searchInfo.cd[0].trace,r=e.pointNumber,n=e.pointNumbers,a=n.length>0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function K(e,t,r){var n,a;for(n=0;n<t.length;n++){var o=t[n].cd[0].trace._fullInput,l=e._fullLayout._tracePreGUI[o.uid]||{};void 0===l.selectedpoints&&(l.selectedpoints=o._input.selectedpoints||null)}if(r){var s=r.points||[];for(n=0;n<t.length;n++)(a=t[n].cd[0].trace)._input.selectedpoints=a._fullInput.selectedpoints=[],a._fullInput!==a&&(a.selectedpoints=[]);for(var u=0;u<s.length;u++){var c=s[u],f=c.data,d=c.fullData,h=c.pointIndex,p=c.pointIndices;p?([].push.apply(f.selectedpoints,p),a._fullInput!==a&&[].push.apply(d.selectedpoints,p)):(f.selectedpoints.push(h),a._fullInput!==a&&d.selectedpoints.push(h))}}else for(n=0;n<t.length;n++)delete(a=t[n].cd[0].trace).selectedpoints,delete a._input.selectedpoints,a._fullInput!==a&&delete a._fullInput.selectedpoints;!function(e,t){for(var r=!1,n=0;n<t.length;n++){var a=t[n],o=a.cd;i.traceIs(o[0].trace,"regl")&&(r=!0);var l=a._module,s=l.styleOnSelect||l.style;s&&(s(e,o,o[0].node3),o[0].nodeRangePlot3&&s(e,o,o[0].nodeRangePlot3))}r&&(P(e),O(e))}(e,t)}function Q(e,t,r){for(var a=(r?n.difference:n.union)({regions:e},{regions:[t]}).regions.reverse(),i=0;i<a.length;i++){var o=a[i];o.subtract=le(o,a.slice(0,i))}return a}function ee(e,t){if(Array.isArray(e))for(var r=t.cd,n=t.cd[0].trace,a=0;a<e.length;a++)e[a]=u(e[a],n,r);return e}function te(e,t){for(var r=[],n=0;n<e.length;n++){r[n]=[];for(var a=0;a<e[n].length;a++){r[n][a]=[],r[n][a][0]=a?"L":"M";for(var i=0;i<e[n][a].length;i++)r[n][a].push(e[n][a][i])}t||r[n].push(["Z",r[n][0][1],r[n][0][2]])}return r}function re(e,t){for(var r,n,a=[],i=[],o=0;o<t.length;o++){var l=t[o];n=l._module.selectPoints(l,e),i.push(n),r=ee(n,l),a=a.concat(r)}return a}function ne(e,t,r,n,a){var i,o,l,s=!!n;a&&(i=a.plotinfo,o=a.xaxes[0]._id,l=a.yaxes[0]._id);var u=[],c=[],f=oe(e),d=e._fullLayout;if(i){var p=d._zoomlayer,v=d.dragmode,y=h(v),m=g(v);if(y||m){var x=C(e,o,"x"),b=C(e,l,"y");if(x&&b){var _=p.selectAll(".select-outline-"+i.id);if(_&&e._fullLayout._outlining&&_.length){for(var M=_[0][0].getAttribute("d"),T=w(M,e,i),k=[],A=0;A<T.length;A++){for(var S=T[A],L=[],D=0;D<S.length;D++)L.push([se(x,S[D][1]),se(b,S[D][2])]);L.xref=o,L.yref=l,L.subtract=le(L,k),k.push(L)}f=f.concat(k)}}}}var P=o&&l?[o+l]:d._subplots.cartesian;!function(e){var t=e.calcdata;if(t)for(var r=0;r<t.length;r++){var n=t[r][0].trace,a=e._fullLayout._splomScenes;if(a){var i=a[n.uid];i&&(i.selectBatch=[])}}}(e);for(var O={},R=0;R<P.length;R++){var E=P[R],I=E.indexOf("y"),N=E.slice(0,I),z=E.slice(I),F=o&&l?r:void 0;if(F=ie(f,N,z,F)){var j=n;if(!s){var B=C(e,N,"x"),H=C(e,z,"y");j=J(e,[B],[H],E);for(var G=0;G<j.length;G++){var Y=j[G],U=Y.cd[0],q=U.trace;if("scattergl"===Y._module.name&&!U.t.xpx){var V=q.x,W=q.y,Z=q._length;U.t.xpx=[],U.t.ypx=[];for(var X=0;X<Z;X++)U.t.xpx[X]=B.c2p(V[X]),U.t.ypx[X]=H.c2p(W[X])}"splom"===Y._module.name&&(O[q.uid]||(O[q.uid]=!0))}}var $=re(F,j);u=u.concat($),c=c.concat(j)}}var Q={points:u};K(e,c,Q);var ee=d.clickmode.indexOf("event")>-1&&t;if(!i&&t){var te=oe(e,!0);if(te.length){var ne=te[0].xref,he=te[0].yref;if(ne&&he){var pe=ue(te);ce([C(e,ne,"x"),C(e,he,"y")])(Q,pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&fe(e,Q),d._reselect=!1}if(!i&&d._deselect){var ge=d._deselect;(function(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===t)return!0}return!1})(o=ge.xref,l=ge.yref,c)||ae(e,o,l,n),ee&&(Q.points.length?fe(e,Q):de(e)),d._deselect=!1}return{eventData:Q,selectionTesters:r}}function ae(e,t,r,n){n=J(e,[C(e,t,"x")],[C(e,r,"y")],t+r);for(var a=0;a<n.length;a++){var i=n[a];i._module.selectPoints(i,!1)}K(e,n)}function ie(e,t,r,n){for(var a,i=0;i<e.length;i++){var o=e[i];t===o.xref&&r===o.yref&&(a?n=q(a=Q(a,o,!!o.subtract)):(a=[o],n=N(o)))}return n}function oe(e,t){for(var r=[],n=e._fullLayout,a=n.selections,i=a.length,o=0;o<i;o++)if(!t||o===n._activeSelectionIndex){var l=a[o];if(l){var s,u,c,f,d,h=l.xref,p=l.yref,g=C(e,h,"x"),m=C(e,p,"y");if("rect"===l.type){d=[];var x=se(g,l.x0),b=se(g,l.x1),_=se(m,l.y0),w=se(m,l.y1);d=[[x,_],[x,w],[b,w],[b,_]],s=Math.min(x,b),u=Math.max(x,b),c=Math.min(_,w),f=Math.max(_,w),d.xmin=s,d.xmax=u,d.ymin=c,d.ymax=f,d.xref=h,d.yref=p,d.subtract=!1,d.isRect=!0,r.push(d)}else if("path"===l.type)for(var M=l.path.split("Z"),T=[],k=0;k<M.length;k++){var A=M[k];if(A){A+="Z";var S=v.extractPathCoords(A,y.paramIsX,"raw"),L=v.extractPathCoords(A,y.paramIsY,"raw");s=1/0,u=-1/0,c=1/0,f=-1/0,d=[];for(var D=0;D<S.length;D++){var P=se(g,S[D]),O=se(m,L[D]);d.push([P,O]),s=Math.min(P,s),u=Math.max(P,u),c=Math.min(O,c),f=Math.max(O,f)}d.xmin=s,d.xmax=u,d.ymin=c,d.ymax=f,d.xref=h,d.yref=p,d.subtract=le(d,T),T.push(d),r.push(d)}}}}return r}function le(e,t){for(var r=!1,n=0;n<t.length;n++)for(var i=t[n],o=0;o<e.length;o++)if(a(e[o],i)){r=!r;break}return r}function se(e,t){return"date"===e.type&&(t=t.replace("_"," ")),"log"===e.type?e.c2p(t):e.r2p(t,null,e.calendar)}function ue(e){for(var t=e.length,r=[],n=0;n<t;n++){var a=e[n];r=(r=r.concat(a)).concat([a[0]])}return(i=r).isRect=5===i.length&&i[0][0]===i[4][0]&&i[0][1]===i[4][1]&&i[0][0]===i[1][0]&&i[2][0]===i[3][0]&&i[0][1]===i[3][1]&&i[1][1]===i[2][1]||i[0][1]===i[1][1]&&i[2][1]===i[3][1]&&i[0][0]===i[3][0]&&i[1][0]===i[2][0],i.isRect&&(i.xmin=Math.min(i[0][0],i[2][0]),i.xmax=Math.max(i[0][0],i[2][0]),i.ymin=Math.min(i[0][1],i[2][1]),i.ymax=Math.max(i[0][1],i[2][1])),i;var i}function ce(e){return function(t,r){for(var n,a,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(r.isRect){n||(n={});var u=r[s+"min"],c=r[s+"max"];void 0!==u&&void 0!==c&&(n[l]=[F(o,u),F(o,c)].sort(S))}else a||(a={}),a[l]=r.map(j(o))}n&&(t.range=n),a&&(t.lassoPoints=a)}}function fe(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function de(e){e.emit("plotly_deselect",null)}e.exports={reselect:ne,prepSelect:function(e,t,r,n,a){var u=!H(n),c=f(a),v=d(a),y=p(a),x=h(a),b=g(a),w="drawcircle"===a,M="drawline"===a||w,T=n.gd,k=T._fullLayout,S=b&&"immediate"===k.newselection.mode&&u,L=k._zoomlayer,C=n.element.getBoundingClientRect(),P=n.plotinfo,O=B(P),z=t-C.left,F=r-C.top;k._calcInverseTransform(T);var j=A.apply3DTransform(k._invTransform)(z,F);z=j[0],F=j[1];var Y,U,Z,X,$,ee,ie,oe=k._invScaleX,le=k._invScaleY,se=z,he=F,pe="M"+z+","+F,ge=n.xaxes[0],ve=n.yaxes[0],ye=ge._length,me=ve._length,xe=e.altKey&&!(h(a)&&y);V(e,T,n),c&&(Y=I([[z,F]],R.BENDPX));var be=L.selectAll("path.select-outline-"+P.id).data([1]),_e=x?k.newshape:k.newselection;x&&(n.hasText=_e.label.text||_e.label.texttemplate);var we=x&&!y?_e.fillcolor:"rgba(0,0,0,0)",Me=_e.line.color||(u?l.contrast(T._fullLayout.plot_bgcolor):"#7f7f7f");be.enter().append("path").attr("class","select-outline select-outline-"+P.id).style({opacity:x?_e.opacity/2:1,"stroke-dasharray":o(_e.line.dash,_e.line.width),"stroke-width":_e.line.width+"px","shape-rendering":"crispEdges"}).call(l.stroke,Me).call(l.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!x).attr("transform",O).attr("d",pe+"Z");var Te=L.append("path").attr("class","zoombox-corners").style({fill:l.background,stroke:l.defaultLine,"stroke-width":1}).attr("transform",O).attr("d","M0,0Z");if(x&&n.hasText){var ke=L.select(".label-temp");ke.empty()&&(ke=L.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=k._uid+R.SELECTID,Se=[],Le=J(T,n.xaxes,n.yaxes,n.subplot);S&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(u){var e=ge._id,t=ve._id;ae(T,e,t,Le);for(var r=(T.layout||{}).selections||[],n=[],a=!1,o=0;o<r.length;o++){var l=k.selections[o];l.xref!==e||l.yref!==t?n.push(r[o]):a=!0}a&&(T._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",T,{selections:n}))}});var De=function(e){return e.plotinfo.fillRangeItems||ce(e.xaxes.concat(e.yaxes))}(n);n.moveFn=function(e,t){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),se=Math.max(0,Math.min(ye,oe*e+z)),he=Math.max(0,Math.min(me,le*t+F));var r=Math.abs(se-z),a=Math.abs(he-F);if(v){var i,o,l;if(b){var s=k.selectdirection;switch(i="any"===s?a<Math.min(.6*r,E)?"h":r<Math.min(.6*a,E)?"v":"d":s){case"h":o=w?me/2:0,l=me;break;case"v":o=w?ye/2:0,l=ye}}if(x)switch(k.newshape.drawdirection){case"vertical":i="h",o=w?me/2:0,l=me;break;case"horizontal":i="v",o=w?ye/2:0,l=ye;break;case"ortho":r<a?(i="h",o=F,l=he):(i="v",o=z,l=se);break;default:i="d"}"h"===i?((X=M?_(w,[se,o],[se,l]):[[z,o],[z,l],[se,l],[se,o]]).xmin=M?se:Math.min(z,se),X.xmax=M?se:Math.max(z,se),X.ymin=Math.min(o,l),X.ymax=Math.max(o,l),Te.attr("d","M"+X.xmin+","+(F-E)+"h-4v"+2*E+"h4ZM"+(X.xmax-1)+","+(F-E)+"h4v"+2*E+"h-4Z")):"v"===i?((X=M?_(w,[o,he],[l,he]):[[o,F],[o,he],[l,he],[l,F]]).xmin=Math.min(o,l),X.xmax=Math.max(o,l),X.ymin=M?he:Math.min(F,he),X.ymax=M?he:Math.max(F,he),Te.attr("d","M"+(z-E)+","+X.ymin+"v-4h"+2*E+"v4ZM"+(z-E)+","+(X.ymax-1)+"v4h"+2*E+"v-4Z")):"d"===i&&((X=M?_(w,[z,F],[se,he]):[[z,F],[z,he],[se,he],[se,F]]).xmin=Math.min(z,se),X.xmax=Math.max(z,se),X.ymin=Math.min(F,he),X.ymax=Math.max(F,he),Te.attr("d","M0,0Z"))}else c&&(Y.addPt([se,he]),X=Y.filtered);if(n.selectionDefs&&n.selectionDefs.length?(Z=Q(n.mergedPolygons,X,xe),X.subtract=xe,U=q(n.selectionDefs.concat([X]))):(Z=[X],U=N(X)),m(te(Z,y),be,n),b){var u,f=ne(T,!1),d=f.eventData?f.eventData.points.slice():[];f=ne(T,!1,U,Le,n),U=f.selectionTesters,ie=f.eventData,u=Y?Y.filtered:ue(Z),D.throttle(Ae,R.SELECTDELAY,(function(){for(var e=(Se=re(U,Le)).slice(),t=0;t<d.length;t++){for(var r=d[t],n=!1,a=0;a<e.length;a++)if(e[a].curveNumber===r.curveNumber&&e[a].pointNumber===r.pointNumber){n=!0;break}n||e.push(r)}e.length&&(ie||(ie={}),ie.points=e),De(ie,u),function(e,t){e.emit("plotly_selecting",t)}(T,ie)}))}},n.clickFn=function(e,t){if(Te.remove(),T._fullLayout._activeShapeIndex>=0)T._fullLayout._deactivateShape(T);else if(!x){var r=k.clickmode;D.done(Ae).then((function(){if(D.clear(Ae),2===e){for(be.remove(),$=0;$<Le.length;$++)(ee=Le[$])._module.selectPoints(ee,!1);if(K(T,Le),W(n),de(T),Le.length){var a=Le[0].xaxis,o=Le[0].yaxis;if(a&&o){for(var l=[],u=T._fullLayout.selections,c=0;c<u.length;c++){var f=u[c];f&&(f.xref===a._id&&f.yref===o._id||l.push(f))}l.length<u.length&&(T._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",T,{selections:l}))}}}else r.indexOf("select")>-1&&G(t,T,n.xaxes,n.yaxes,n.subplot,n,be),"event"===r&&fe(T,void 0);s.click(T,t,P.id)})).catch(A.error)}},n.doneFn=function(){Te.remove(),D.done(Ae).then((function(){D.clear(Ae),!S&&X&&n.selectionDefs&&(X.subtract=xe,n.selectionDefs.push(X),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,Z)),(S||x)&&W(n,S),n.doneFnCompleted&&n.doneFnCompleted(Se),b&&fe(T,ie)})).catch(A.error)}},clearOutline:x,clearSelectionsCache:W,selectOnClick:G}},6056:function(e,t,r){"use strict";var n=r(3916),a=r(5376),i=r(2904).line,o=r(8192).u,l=r(2880).extendFlat,s=r(1780).templatedArray,u=(r(6208),r(5464)),c=r(1776).ye,f=r(7728);e.exports=s("shape",{visible:l({},u.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:l({},u.legend,{editType:"calc+arraydraw"}),legendgroup:l({},u.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:l({},u.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:a({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:l({},u.legendrank,{editType:"calc+arraydraw"}),legendwidth:l({},u.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:l({},n.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:l({},n.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:l({},i.color,{editType:"arraydraw"}),width:l({},i.width,{editType:"calc+arraydraw"}),dash:l({},o,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:c({},{keys:Object.keys(f)}),font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},6084:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(3068),o=r(5152);function l(e){return u(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return u(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function u(e,t,r,a,l,s){var u=e/2,c=s;if("pixel"===t){var f=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,a],d=n.aggNums(Math.max,null,f),h=n.aggNums(Math.min,null,f),p=h<0?Math.abs(h)+u:u,g=d>0?d+u:u;return{ppad:u,ppadplus:c?p:g,ppadminus:c?g:p}}return{ppad:u}}function c(e,t,r,n,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(n){var s,u,c,f,d=1/0,h=-1/0,p=n.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<p.length;s++)void 0!==(u=a[p[s].charAt(0)].drawn)&&(!(c=p[s].substr(1).match(i.paramRE))||c.length<u||((f=l(c[u]))<d&&(d=f),f>h&&(h=f)));return h>=d?[d,h]:void 0}}e.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o<r.length;o++){var u,f,d=r[o];d._extremes={};var h=a.getRefType(d.xref),p=a.getRefType(d.yref);if("paper"!==d.xref&&"domain"!==h){var g="pixel"===d.xsizemode?d.xanchor:d.x0,v="pixel"===d.xsizemode?d.xanchor:d.x1;(f=c(u=a.getFromId(e,d.xref),g,v,d.path,i.paramIsX))&&(d._extremes[u._id]=a.findExtremes(u,f,l(d)))}if("paper"!==d.yref&&"domain"!==p){var y="pixel"===d.ysizemode?d.yanchor:d.y0,m="pixel"===d.ysizemode?d.yanchor:d.y1;(f=c(u=a.getFromId(e,d.yref),y,m,d.path,i.paramIsY))&&(d._extremes[u._id]=a.findExtremes(u,f,s(d)))}}}},3068:function(e){"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}}},3712:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(1272),o=r(6056),l=r(5152);function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}if(t._isShape=!0,i("visible")){i("showlegend")&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),n.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var s=i("path"),u=i("type",s?"path":"rect"),c="path"!==u;c&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var f=i("xsizemode"),d=i("ysizemode"),h=["x","y"],p=0;p<2;p++){var g,v,y,m=h[p],x=m+"anchor",b="x"===m?f:d,_={_fullLayout:r},w=a.coerceRef(e,t,_,m,void 0,"paper");if("range"===a.getRefType(w)?((g=a.getFromId(_,w))._shapeIndices.push(t._index),y=l.rangeToShapePosition(g),v=l.shapePositionToRange(g)):v=y=n.identity,c){var M=m+"0",T=m+"1",k=e[M],A=e[T];e[M]=v(e[M],!0),e[T]=v(e[T],!0),"pixel"===b?(i(M,0),i(T,10)):(a.coercePosition(t,_,i,w,M,.25),a.coercePosition(t,_,i,w,T,.75)),t[M]=y(t[M]),t[T]=y(t[T]),e[M]=k,e[T]=A}if("pixel"===b){var S=e[x];e[x]=v(e[x],!0),a.coercePosition(t,_,i,w,x,.25),t[x]=y(t[x]),e[x]=S}}c&&n.noneOrAll(e,t,["x0","x1","y0","y1"]);var L,D,C="line"===u;if(c&&(L=i("label.texttemplate")),L||(D=i("label.text")),D||L){i("label.textangle");var P=i("label.textposition",C?"middle":"middle center");i("label.xanchor"),i("label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(C,P)),i("label.padding"),n.coerceFont(i,"label.font",r.font)}}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},728:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(2736),o=r(3616),l=r(9856).readPaths,s=r(5152),u=s.getPathString,c=r(7728),f=r(4284).FROM_TL;e.exports=function(e,t,r,d){if(d.selectAll(".shape-label").remove(),r.label.text||r.label.texttemplate){var h;if(r.label.texttemplate){var p={};if("path"!==r.type){var g=a.getFromId(e,r.xref),v=a.getFromId(e,r.yref);for(var y in c){var m=c[y](r,g,v);void 0!==m&&(p[y]=m)}}h=n.texttemplateStringForShapes(r.label.texttemplate,{},e._fullLayout._d3locale,p)}else h=r.label.text;var x,b,_,w,M={"data-index":t},T=r.label.font,k=d.append("g").attr(M).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(h);if(r.path){var A=u(e,r),S=l(A,e);x=1/0,_=1/0,b=-1/0,w=-1/0;for(var L=0;L<S.length;L++)for(var D=0;D<S[L].length;D++)for(var C=S[L][D],P=1;P<C.length;P+=2){var O=C[P],R=C[P+1];x=Math.min(x,O),b=Math.max(b,O),_=Math.min(_,R),w=Math.max(w,R)}}else{var E=a.getFromId(e,r.xref),I=a.getRefType(r.xref),N=a.getFromId(e,r.yref),z=a.getRefType(r.yref),F=s.getDataToPixel(e,E,!1,I),j=s.getDataToPixel(e,N,!0,z);x=F(r.x0),b=F(r.x1),_=j(r.y0),w=j(r.y1)}var B=r.label.textangle;"auto"===B&&(B="line"===r.type?function(e,t,r,n){var a,i;return i=Math.abs(r-e),a=r>=e?t-n:n-t,-180/Math.PI*Math.atan2(a,i)}(x,_,b,w):0),k.call((function(t){return t.call(o.font,T).attr({}),i.convertToTspans(t,e),t}));var H=function(e,t,r,n,a,i,o){var l,s,u,c,d=a.label.textposition,h=a.label.textangle,p=a.label.padding,g=a.type,v=Math.PI/180*i,y=Math.sin(v),m=Math.cos(v),x=a.label.xanchor,b=a.label.yanchor;if("line"===g){"start"===d?(l=e,s=t):"end"===d?(l=r,s=n):(l=(e+r)/2,s=(t+n)/2),"auto"===x&&(x="start"===d?"auto"===h?r>e?"left":r<e?"right":"center":r>e?"right":r<e?"left":"center":"end"===d?"auto"===h?r>e?"right":r<e?"left":"center":r>e?"left":r<e?"right":"center":"center");var _={bottom:-1,middle:0,top:1};if("auto"===h){var w=_[b];u=-p*y*w,c=p*m*w}else u=p*{left:1,center:0,right:-1}[x],c=p*_[b];l+=u,s+=c}else u=p+3,-1!==d.indexOf("right")?(l=Math.max(e,r)-u,"auto"===x&&(x="right")):-1!==d.indexOf("left")?(l=Math.min(e,r)+u,"auto"===x&&(x="left")):(l=(e+r)/2,"auto"===x&&(x="center")),s=-1!==d.indexOf("top")?Math.min(t,n):-1!==d.indexOf("bottom")?Math.max(t,n):(t+n)/2,c=p,"bottom"===b?s-=c:"top"===b&&(s+=c);var M=f[b],T=a.label.font.size,k=o.height;return{textx:l+(k*M-T)*y,texty:s+-(k*M-T)*m,xanchor:x}}(x,_,b,w,r,B,o.bBox(k.node())),G=H.textx,Y=H.texty,U=H.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[U],y:Y,x:G,transform:"rotate("+B+","+G+","+Y+")"}).call(i.positionText,G,Y)}}},5496:function(e,t,r){"use strict";var n=r(3400).strTranslate,a=r(6476),i=r(2760),o=i.drawMode,l=i.selectMode,s=r(4040),u=r(6308),c=r(7e3),f=c.i000,d=c.i090,h=c.i180,p=c.i270,g=r(1936).clearOutlineControllers,v=r(9856),y=v.pointsOnRectangle,m=v.pointsOnEllipse,x=v.writePaths,b=r(3940).newShapes,_=r(3940).createShapeObj,w=r(5968),M=r(728);function T(e,t){var r,n,a,i=e[t][1],o=e[t][2],l=e.length;return n=e[r=(t+1)%l][1],a=e[r][2],n===i&&a===o&&(n=e[r=(t+2)%l][1],a=e[r][2]),[r,n,a]}e.exports=function e(t,r,i,c){c||(c=0);var v=i.gd;function k(){e(t,r,i,c++),(m(t[0])||i.hasText)&&A({redrawing:!0})}function A(e){var t={};void 0!==i.isActiveShape&&(i.isActiveShape=!1,t=b(r,i)),void 0!==i.isActiveSelection&&(i.isActiveSelection=!1,t=w(r,i),v._fullLayout._reselect=!0),Object.keys(t).length&&s.call((e||{}).redrawing?"relayout":"_guiRelayout",v,t)}var S,L,D,C,P,O=v._fullLayout._zoomlayer,R=i.dragmode,E=o(R),I=l(R);if((E||I)&&(v._fullLayout._outlining=!0),g(v),r.attr("d",x(t)),c||!i.isActiveShape&&!i.isActiveSelection||(P=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];e[r]=[];for(var a=0;a<n.length;a++){e[r][a]=[];for(var i=0;i<n[a].length;i++)e[r][a][i]=n[a][i]}}return e}([],t),function(e){S=[];for(var r=0;r<t.length;r++){var o=t[r],l=y(o),s=!l&&m(o);S[r]=[];for(var c=o.length,g=0;g<c;g++)if("Z"!==o[g][0]&&(!s||g===f||g===d||g===h||g===p)){var x,b=l&&i.isActiveSelection;b&&(x=T(o,g));var _=o[g][1],w=o[g][2],M=e.append(b?"rect":"circle").attr("data-i",r).attr("data-j",g).style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(b){var k=x[1]-_,A=x[2]-w,L=A?5:Math.max(Math.min(25,Math.abs(k)-5),5),D=k?5:Math.max(Math.min(25,Math.abs(A)-5),5);M.classed(A?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",L).attr("height",D).attr("x",_-L/2).attr("y",w-D/2).attr("transform",n(k/2,A/2))}else M.classed("cursor-grab",!0).attr("r",5).attr("cx",_).attr("cy",w);S[r][g]={element:M.node(),gd:v,prepFn:F,doneFn:B,clickFn:H},a.init(S[r][g])}}}(O.append("g").attr("class","outline-controllers")),function(){if(L=[],t.length){L[0]={element:r[0][0],gd:v,prepFn:Y,doneFn:U,clickFn:q},a.init(L[0])}}()),E&&i.hasText){var N=O.select(".label-temp"),z=_(r,i,i.dragmode);M(v,"label-temp",z,N)}function F(e){D=+e.srcElement.getAttribute("data-i"),C=+e.srcElement.getAttribute("data-j"),S[D][C].moveFn=j}function j(e,r){if(t.length){var n=P[D][C][1],a=P[D][C][2],o=t[D],l=o.length;if(y(o)){var s=e,u=r;i.isActiveSelection&&(T(o,C)[1]===o[C][1]?u=0:s=0);for(var c=0;c<l;c++)if(c!==C){var f=o[c];f[1]===o[C][1]&&(f[1]=n+s),f[2]===o[C][2]&&(f[2]=a+u)}if(o[C][1]=n+s,o[C][2]=a+u,!y(o))for(var d=0;d<l;d++)for(var h=0;h<o[d].length;h++)o[d][h]=P[D][d][h]}else o[C][1]=n+e,o[C][2]=a+r;k()}}function B(){A()}function H(e,r){if(2===e){D=+r.srcElement.getAttribute("data-i"),C=+r.srcElement.getAttribute("data-j");var n=t[D];y(n)||m(n)||function(){if(t.length&&t[D]&&t[D].length){for(var e=[],r=0;r<t[D].length;r++)r!==C&&e.push(t[D][r]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===C&&(e[0][0]="M"),t[D]=e,k(),A())}}()}}function G(e,r){!function(e,r){if(t.length)for(var n=0;n<t.length;n++)for(var a=0;a<t[n].length;a++)for(var i=0;i+2<t[n][a].length;i+=2)t[n][a][i+1]=P[n][a][i+1]+e,t[n][a][i+2]=P[n][a][i+2]+r}(e,r),k()}function Y(e){(D=+e.srcElement.getAttribute("data-i"))||(D=0),L[D].moveFn=G}function U(){A()}function q(e){2===e&&function(e){if(l(e._fullLayout.dragmode)){g(e);var t=e._fullLayout._activeSelectionIndex,r=(e.layout||{}).selections||[];if(t<r.length){for(var n=[],a=0;a<r.length;a++)a!==t&&n.push(r[a]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[t];e._fullLayout._deselect={xref:i.xref,yref:i.yref},s.call("_guiRelayout",e,{selections:n})}}}(v)}}},4016:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(3400),o=r(4460),l=r(9856).readPaths,s=r(5496),u=r(728),c=r(1936).clearOutlineControllers,f=r(6308),d=r(3616),h=r(1780).arrayEditor,p=r(6476),g=r(3972),v=r(3068),y=r(5152),m=y.getPathString;function x(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove(),t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a<t.shapes.length;a++)!0===t.shapes[a].visible&&w(e,a)}function b(e){return!!e._fullLayout._outlining}function _(e){return!e._context.edits.shapePosition}function w(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=y.makeShapesOptionsAndPlotinfo(e,t),c=r.options,w=r.plotinfo;function A(r){var A=m(e,c),S={"data-index":t,"fill-rule":c.fillrule,d:A},L=c.opacity,D=c.fillcolor,C=c.line.width?c.line.color:"rgba(0,0,0,0)",P=c.line.width,O=c.line.dash;P||!0!==c.editable||(P=5,O="solid");var R="Z"!==A[A.length-1],E=_(e)&&c.editable&&e._fullLayout._activeShapeIndex===t;E&&(D=R?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,L=e._fullLayout.activeshape.opacity);var I,N=r.append("g").classed("shape-group",!0).attr({"data-index":t}),z=N.append("path").attr(S).style("opacity",L).call(f.stroke,C).call(f.fill,D).call(d.dashLine,O,P);if(M(N,e,c),u(e,t,c,N),(E||e._context.edits.shapePosition)&&(I=h(e.layout,"shapes",c)),E){z.style({cursor:"move"});var F={element:z.node(),plotinfo:w,gd:e,editHelpers:I,hasText:c.label.text||c.label.texttemplate,isActiveShape:!0},j=l(A,e);s(j,z,F)}else e._context.edits.shapePosition?function(e,t,r,l,s,c){var f,h,x,_,w,k,A,S,L,D,C,P,O,R,E,I,N=10,z=10,F="pixel"===r.xsizemode,j="pixel"===r.ysizemode,B="line"===r.type,H="path"===r.type,G=c.modifyItem,Y=n.select(t.node().parentNode),U=o.getFromId(e,r.xref),q=o.getRefType(r.xref),V=o.getFromId(e,r.yref),W=o.getRefType(r.yref),Z=y.getDataToPixel(e,U,!1,q),J=y.getDataToPixel(e,V,!0,W),X=y.getPixelToData(e,U,!1,q),$=y.getPixelToData(e,V,!0,W),K=B?function(){var e=10,n=Math.max(r.line.width,e),a=s.append("g").attr("data-index",l).attr("drag-helper",!0);a.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":n,"stroke-opacity":"0"});var i={"fill-opacity":"0"},o=Math.max(n/2,e);return a.append("circle").attr({"data-line-point":"start-point",cx:F?Z(r.xanchor)+r.x0:Z(r.x0),cy:j?J(r.yanchor)-r.y0:J(r.y0),r:o}).style(i).classed("cursor-grab",!0),a.append("circle").attr({"data-line-point":"end-point",cx:F?Z(r.xanchor)+r.x1:Z(r.x1),cy:j?J(r.yanchor)-r.y1:J(r.y1),r:o}).style(i).classed("cursor-grab",!0),a}():t,Q={element:K.node(),gd:e,prepFn:function(n){b(e)||(F&&(w=Z(r.xanchor)),j&&(k=J(r.yanchor)),"path"===r.type?E=r.path:(f=F?r.x0:Z(r.x0),h=j?r.y0:J(r.y0),x=F?r.x1:Z(r.x1),_=j?r.y1:J(r.y1)),f<x?(L=f,O="x0",D=x,R="x1"):(L=x,O="x1",D=f,R="x0"),!j&&h<_||j&&h>_?(A=h,C="y0",S=_,P="y1"):(A=_,C="y1",S=h,P="y0"),ee(n),ne(s,r),function(e,t,r){var n=t.xref,a=t.yref,i=o.getFromId(r,n),l=o.getFromId(r,a),s="";"paper"===n||i.autorange||(s+=n),"paper"===a||l.autorange||(s+=a),d.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}(t,r,e),Q.moveFn="move"===I?te:re,Q.altKey=n.altKey)},doneFn:function(){b(e)||(g(t),ae(s),M(t,e,r),a.call("_guiRelayout",e,c.getUpdateObj()))},clickFn:function(){b(e)||ae(s)}};function ee(r){if(b(e))I=null;else if(B)I="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=Q.element.getBoundingClientRect(),a=n.right-n.left,i=n.bottom-n.top,o=r.clientX-n.left,l=r.clientY-n.top,s=!H&&a>N&&i>z&&!r.shiftKey?p.getCursor(o/a,1-l/i):"move";g(t,s),I=s.split("-")[0]}}function te(n,a){if("path"===r.type){var i=function(e){return e},o=i,c=i;F?G("xanchor",r.xanchor=X(w+n)):(o=function(e){return X(Z(e)+n)},U&&"date"===U.type&&(o=y.encodeDate(o))),j?G("yanchor",r.yanchor=$(k+a)):(c=function(e){return $(J(e)+a)},V&&"date"===V.type&&(c=y.encodeDate(c))),G("path",r.path=T(E,o,c))}else F?G("xanchor",r.xanchor=X(w+n)):(G("x0",r.x0=X(f+n)),G("x1",r.x1=X(x+n))),j?G("yanchor",r.yanchor=$(k+a)):(G("y0",r.y0=$(h+a)),G("y1",r.y1=$(_+a)));t.attr("d",m(e,r)),ne(s,r),u(e,l,r,Y)}function re(n,a){if(H){var i=function(e){return e},o=i,c=i;F?G("xanchor",r.xanchor=X(w+n)):(o=function(e){return X(Z(e)+n)},U&&"date"===U.type&&(o=y.encodeDate(o))),j?G("yanchor",r.yanchor=$(k+a)):(c=function(e){return $(J(e)+a)},V&&"date"===V.type&&(c=y.encodeDate(c))),G("path",r.path=T(E,o,c))}else if(B){if("resize-over-start-point"===I){var d=f+n,p=j?h-a:h+a;G("x0",r.x0=F?d:X(d)),G("y0",r.y0=j?p:$(p))}else if("resize-over-end-point"===I){var g=x+n,v=j?_-a:_+a;G("x1",r.x1=F?g:X(g)),G("y1",r.y1=j?v:$(v))}}else{var b=function(e){return-1!==I.indexOf(e)},M=b("n"),q=b("s"),W=b("w"),K=b("e"),Q=M?A+a:A,ee=q?S+a:S,te=W?L+n:L,re=K?D+n:D;j&&(M&&(Q=A-a),q&&(ee=S-a)),(!j&&ee-Q>z||j&&Q-ee>z)&&(G(C,r[C]=j?Q:$(Q)),G(P,r[P]=j?ee:$(ee))),re-te>N&&(G(O,r[O]=F?te:X(te)),G(R,r[R]=F?re:X(re)))}t.attr("d",m(e,r)),ne(s,r),u(e,l,r,Y)}function ne(e,t){(F||j)&&function(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]);n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var a=Z(F?t.xanchor:i.midRange(r?[t.x0,t.x1]:y.extractPathCoords(t.path,v.paramIsX))),o=J(j?t.yanchor:i.midRange(r?[t.y0,t.y1]:y.extractPathCoords(t.path,v.paramIsY)));if(a=y.roundPositionForSharpStrokeRendering(a,1),o=y.roundPositionForSharpStrokeRendering(o,1),F&&j){var l="M"+(a-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",l)}else if(F){var s="M"+(a-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";n.attr("d",s)}else{var u="M"+(a-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";n.attr("d",u)}}()}function ae(e){e.selectAll(".visual-cue").remove()}p.init(Q),K.node().onmousemove=ee}(e,z,c,t,r,I):!0===c.editable&&z.style("pointer-events",R||f.opacity(D)*L<=.5?"stroke":"all");z.node().addEventListener("click",(function(){return function(e,t){if(_(e)){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,x(e)}}}(e,z)}))}c._input&&!0===c.visible&&("above"===c.layer?A(e._fullLayout._shapeUpperLayer):"paper"===c.xref||"paper"===c.yref?A(e._fullLayout._shapeLowerLayer):"between"===c.layer?A(w.shapelayerBetween):w._hadPlotinfo?A((w.mainplotinfo||w).shapelayer):A(e._fullLayout._shapeLowerLayer))}function M(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");d.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function T(e,t,r){return e.replace(v.segmentRE,(function(e){var n=0,a=e.charAt(0),i=v.paramIsX[a],o=v.paramIsY[a],l=v.numParams[a];return a+e.substr(1).replace(v.paramRE,(function(e){return n>=l||(i[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}function k(e){_(e)&&e._fullLayout._activeShapeIndex>=0&&(c(e),delete e._fullLayout._activeShapeIndex,x(e))}e.exports={draw:x,drawOne:w,eraseActiveShape:function(e){if(_(e)){c(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]);return delete e._fullLayout._activeShapeIndex,a.call("_guiRelayout",e,{shapes:n})}}},drawLabel:u}},2872:function(e,t,r){"use strict";var n=r(7824).overrideAll,a=r(5464),i=r(5376),o=r(8192).u,l=r(2880).extendFlat,s=r(1776).ye,u=r(7728);e.exports=n({newshape:{visible:l({},a.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:l({},a.legend,{}),legendgroup:l({},a.legendgroup,{}),legendgrouptitle:{text:l({},a.legendgrouptitle.text,{}),font:i({})},legendrank:l({},a.legendrank,{}),legendwidth:l({},a.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:l({},o,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:l({},a.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:s({newshape:!0},{keys:Object.keys(u)}),font:i({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},7e3:function(e){"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)}},5144:function(e,t,r){"use strict";var n=r(6308),a=r(3400);e.exports=function(e,t,r){if(r("newshape.visible"),r("newshape.name"),r("newshape.showlegend"),r("newshape.legend"),r("newshape.legendwidth"),r("newshape.legendgroup"),r("newshape.legendgrouptitle.text"),a.coerceFont(r,"newshape.legendgrouptitle.font"),r("newshape.legendrank"),r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var i=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(i)),r("newshape.line.dash")}var o="drawline"===e.dragmode,l=r("newshape.label.text"),s=r("newshape.label.texttemplate");if(l||s){r("newshape.label.textangle");var u=r("newshape.label.textposition",o?"middle":"middle center");r("newshape.label.xanchor"),r("newshape.label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(o,u)),r("newshape.label.padding"),a.coerceFont(r,"newshape.label.font",t.font)}r("activeshape.fillcolor"),r("activeshape.opacity")}},9856:function(e,t,r){"use strict";var n=r(9604),a=r(7e3),i=a.CIRCLE_SIDES,o=a.SQRT2,l=r(5840),s=l.p2r,u=l.r2p,c=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function d(e,t){return Math.abs(e-t)<=1e-6}function h(e,t){var r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+n*n)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n<t;n++)for(var a=e[n].length,i=0;i<a;i++){var o=e[n][i][0];if("Z"===o)r+="Z";else for(var l=e[n][i].length,s=0;s<l;s++){var u=s;"Q"===o||"S"===o?u=f[s]:"C"===o&&(u=c[s]),r+=e[n][i][u],s>0&&s<l-1&&(r+=",")}}return r},t.readPaths=function(e,t,r,a){var o,l,c,f=n(e),d=[],h=-1,p=0,g=0,v=function(){l=p,c=g};v();for(var y=0;y<f.length;y++){var m,x,b,_,w=[],M=f[y][0],T=M;switch(M){case"M":d[++h]=[],p=+f[y][1],g=+f[y][2],w.push([T,p,g]),v();break;case"Q":case"S":m=+f[y][1],b=+f[y][2],p=+f[y][3],g=+f[y][4],w.push([T,p,g,m,b]);break;case"C":m=+f[y][1],b=+f[y][2],x=+f[y][3],_=+f[y][4],p=+f[y][5],g=+f[y][6],w.push([T,p,g,m,b,x,_]);break;case"T":case"L":p=+f[y][1],g=+f[y][2],w.push([T,p,g]);break;case"H":T="L",p=+f[y][1],w.push([T,p,g]);break;case"V":T="L",g=+f[y][1],w.push([T,p,g]);break;case"A":T="L";var k=+f[y][1],A=+f[y][2];+f[y][4]||(k=-k,A=-A);var S=p-k,L=g;for(o=1;o<=i/2;o++){var D=2*Math.PI*o/i;w.push([T,S+k*Math.cos(D),L+A*Math.sin(D)])}break;case"Z":p===l&&g===c||(p=l,g=c,w.push([T,p,g]))}for(var C=(r||{}).domain,P=t._fullLayout._size,O=r&&"pixel"===r.xsizemode,R=r&&"pixel"===r.ysizemode,E=!1===a,I=0;I<w.length;I++){for(o=0;o+2<7;o+=2){var N=w[I][o+1],z=w[I][o+2];void 0!==N&&void 0!==z&&(p=N,g=z,r&&(r.xaxis&&r.xaxis.p2r?(E&&(N-=r.xaxis._offset),N=O?u(r.xaxis,r.xanchor)+N:s(r.xaxis,N)):(E&&(N-=P.l),C?N=C.x[0]+N/P.w:N/=P.w),r.yaxis&&r.yaxis.p2r?(E&&(z-=r.yaxis._offset),z=R?u(r.yaxis,r.yanchor)-z:s(r.yaxis,z)):(E&&(z-=P.t),z=C?C.y[1]-z/P.h:1-z/P.h)),w[I][o+1]=N,w[I][o+2]=z)}d[h].push(w[I].slice())}}return d},t.pointsOnRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!d(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!d(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!d(e[0][1],e[1][1])&&!d(e[0][1],e[3][1])||!(h(e[0],e[1])*h(e[0],e[3])))},t.pointsOnEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var r=0;r<t;r++){var n=(2*t-r)%t,a=(t/2+n)%t,o=(t/2+r)%t;if(!d(h(e[r],e[o]),h(e[n],e[a])))return!1}return!0},t.handleEllipse=function(e,r,n){if(!e)return[r,n];var a=t.ellipseOver({x0:r[0],y0:r[1],x1:n[0],y1:n[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,u=(a.x1-a.x0)/2,c=(a.y1-a.y0)/2;u||(u=c/=o),c||(c=u/=o);for(var f=[],d=0;d<i;d++){var h=2*d*Math.PI/i;f.push([l+u*Math.cos(h),s+c*Math.sin(h)])}return f},t.ellipseOver=function(e){var t=e.x0,r=e.y0,n=e.x1,a=e.y1,i=n-t,l=a-r,s=((t-=i)+n)/2,u=((r-=l)+a)/2;return{x0:s-(i*=o),y0:u-(l*=o),x1:s+i,y1:u+l}},t.fixDatesForPaths=function(e,t,r){var n="date"===t.type,a="date"===r.type;if(!n&&!a)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)n&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}},3940:function(e,t,r){"use strict";var n=r(2760),a=n.drawMode,i=n.openMode,o=r(7e3),l=o.i000,s=o.i090,u=o.i180,c=o.i270,f=o.cos45,d=o.sin45,h=r(5840),p=h.p2r,g=h.r2p,v=r(1936).clearOutline,y=r(9856),m=y.readPaths,x=y.writePaths,b=y.ellipseOver,_=y.fixDatesForPaths;function w(e,t,r){var n,a=e[0][0],o=t.gd,h=a.getAttribute("d"),v=o._fullLayout.newshape,y=t.plotinfo,w=t.isActiveShape,M=y.xaxis,T=y.yaxis,k=!!y.domain||!y.xaxis,A=!!y.domain||!y.yaxis,S=i(r),L=m(h,o,y,w),D={editable:!0,visible:v.visible,name:v.name,showlegend:v.showlegend,legend:v.legend,legendwidth:v.legendwidth,legendgroup:v.legendgroup,legendgrouptitle:{text:v.legendgrouptitle.text,font:v.legendgrouptitle.font},legendrank:v.legendrank,label:v.label,xref:k?"paper":M._id,yref:A?"paper":T._id,layer:v.layer,opacity:v.opacity,line:{color:v.line.color,width:v.line.width,dash:v.line.dash}};if(S||(D.fillcolor=v.fillcolor,D.fillrule=v.fillrule),1===L.length&&(n=L[0]),n&&5===n.length&&"drawrect"===r)D.type="rect",D.x0=n[0][1],D.y0=n[0][2],D.x1=n[2][1],D.y1=n[2][2];else if(n&&"drawline"===r)D.type="line",D.x0=n[0][1],D.y0=n[0][2],D.x1=n[1][1],D.y1=n[1][2];else if(n&&"drawcircle"===r){D.type="circle";var C=n[l][1],P=n[s][1],O=n[u][1],R=n[c][1],E=n[l][2],I=n[s][2],N=n[u][2],z=n[c][2],F=y.xaxis&&("date"===y.xaxis.type||"log"===y.xaxis.type),j=y.yaxis&&("date"===y.yaxis.type||"log"===y.yaxis.type);F&&(C=g(y.xaxis,C),P=g(y.xaxis,P),O=g(y.xaxis,O),R=g(y.xaxis,R)),j&&(E=g(y.yaxis,E),I=g(y.yaxis,I),N=g(y.yaxis,N),z=g(y.yaxis,z));var B=(P+R)/2,H=(E+N)/2,G=b({x0:B,y0:H,x1:B+(R-P+O-C)/2*f,y1:H+(z-I+N-E)/2*d});F&&(G.x0=p(y.xaxis,G.x0),G.x1=p(y.xaxis,G.x1)),j&&(G.y0=p(y.yaxis,G.y0),G.y1=p(y.yaxis,G.y1)),D.x0=G.x0,D.y0=G.y0,D.x1=G.x1,D.y1=G.y1}else D.type="path",M&&T&&_(L,M,T),D.path=x(L),n=null;return D}e.exports={newShapes:function(e,t){if(e.length&&e[0][0]){var r=t.gd,n=t.isActiveShape,i=t.dragmode,o=(r.layout||{}).shapes||[];if(!a(i)&&void 0!==n){var l=r._fullLayout._activeShapeIndex;if(l<o.length)switch(r._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=o[l].path||"";i="Z"===s[s.length-1]?"drawclosedpath":"drawopenpath"}}var u=w(e,t,i);v(r);for(var c=t.editHelpers,f=(c||{}).modifyItem,d=[],h=0;h<o.length;h++){var p=r._fullLayout.shapes[h];if(d[h]=p._input,void 0!==n&&h===r._fullLayout._activeShapeIndex){var g=u;switch(p.type){case"line":case"rect":case"circle":f("x0",g.x0),f("x1",g.x1),f("y0",g.y0),f("y1",g.y1);break;case"path":f("path",g.path)}}}return void 0===n?(d.push(u),d):c?c.getUpdateObj():{}}},createShapeObj:w}},1936:function(e){"use strict";e.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearOutline:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}}},5152:function(e,t,r){"use strict";var n=r(3068),a=r(3400),i=r(4460);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,r){var i=[];return e.match(n.segmentRE).forEach((function(e){var o=t[e.charAt(0)].drawn;if(void 0!==o){var l=e.substr(1).match(n.paramRE);if(l&&!(l.length<o)){var s=l[o],u=r?s:a.cleanNumber(s);i.push(u)}}})),i},t.getDataToPixel=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){return r._length*(n?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=n?function(e){return o.t+o.h*(1-e)}:function(e){return o.l+o.w*e};return i},t.getPixelToData=function(e,r,n,a){var i,o=e._fullLayout._size;if(r)if("domain"===a)i=function(e){var t=(e-r._offset)/r._length;return n?1-t:t};else{var l=t.rangeToShapePosition(r);i=function(e){return l(r.p2r(e-r._offset))}}else i=n?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),n=Math.round(e);return r?n+.5:n},t.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return n?n._hadPlotinfo=!0:(n={},r.xref&&"paper"!==r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}},t.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return n?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}},t.getPathString=function(e,r){var o,l,s,u,c,f,d,h,p=r.type,g=i.getRefType(r.xref),v=i.getRefType(r.yref),y=i.getFromId(e,r.xref),m=i.getFromId(e,r.yref),x=e._fullLayout._size;if(y?"domain"===g?l=function(e){return y._offset+y._length*e}:(o=t.shapePositionToRange(y),l=function(e){return y._offset+y.r2p(o(e,!0))}):l=function(e){return x.l+x.w*e},m?"domain"===v?u=function(e){return m._offset+m._length*(1-e)}:(s=t.shapePositionToRange(m),u=function(e){return m._offset+m.r2p(s(e,!0))}):u=function(e){return x.t+x.h*(1-e)},"path"===p)return y&&"date"===y.type&&(l=t.decodeDate(l)),m&&"date"===m.type&&(u=t.decodeDate(u)),function(e,t,r){var i=e.path,o=e.xsizemode,l=e.ysizemode,s=e.xanchor,u=e.yanchor;return i.replace(n.segmentRE,(function(e){var i=0,c=e.charAt(0),f=n.paramIsX[c],d=n.paramIsY[c],h=n.numParams[c],p=e.substr(1).replace(n.paramRE,(function(e){return f[i]?e="pixel"===o?t(s)+Number(e):t(e):d[i]&&(e="pixel"===l?r(u)-Number(e):r(e)),++i>h&&(e="X"),e}));return i>h&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(r,l,u);if("pixel"===r.xsizemode){var b=l(r.xanchor);c=b+r.x0,f=b+r.x1}else c=l(r.x0),f=l(r.x1);if("pixel"===r.ysizemode){var _=u(r.yanchor);d=_-r.y0,h=_-r.y1}else d=u(r.y0),h=u(r.y1);if("line"===p)return"M"+c+","+d+"L"+f+","+h;if("rect"===p)return"M"+c+","+d+"H"+f+"V"+h+"H"+c+"Z";var w=(c+f)/2,M=(d+h)/2,T=Math.abs(w-c),k=Math.abs(M-d),A="A"+T+","+k,S=w+T+","+M;return"M"+S+A+" 0 1,1 "+w+","+(M-k)+A+" 0 0,1 "+S+"Z"}},1592:function(e,t,r){"use strict";var n=r(4016);e.exports={moduleType:"component",name:"shapes",layoutAttributes:r(6056),supplyLayoutDefaults:r(3712),supplyDrawNewShapeDefaults:r(5144),includeBasePlot:r(6632)("shapes"),calcAutorange:r(6084),draw:n.draw,drawOne:n.drawOne}},7728:function(e){"use strict";function t(e,t){return t?t.d2l(e):e}function r(e,t){return t?t.l2d(e):e}function n(e,r){return t(e.x1,r)-t(e.x0,r)}function a(e,r,n){return t(e.y1,n)-t(e.y0,n)}e.exports={x0:function(e){return e.x0},x1:function(e){return e.x1},y0:function(e){return e.y0},y1:function(e){return e.y1},slope:function(e,t,r){return"line"!==e.type?void 0:a(e,0,r)/n(e,t)},dx:n,dy:a,width:function(e,t){return Math.abs(n(e,t))},height:function(e,t,r){return Math.abs(a(e,0,r))},length:function(e,t,r){return"line"!==e.type?void 0:Math.sqrt(Math.pow(n(e,t),2)+Math.pow(a(e,0,r),2))},xcenter:function(e,n){return r((t(e.x1,n)+t(e.x0,n))/2,n)},ycenter:function(e,n,a){return r((t(e.y1,a)+t(e.y0,a))/2,a)}}},9861:function(e,t,r){"use strict";var n=r(5376),a=r(6741),i=r(2880).extendDeepAll,o=r(7824).overrideAll,l=r(5656),s=r(1780).templatedArray,u=r(876),c=s("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});e.exports=o(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(a({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:l.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:n({})},font:n({}),activebgcolor:{valType:"color",dflt:u.gripBgActiveColor},bgcolor:{valType:"color",dflt:u.railBgColor},bordercolor:{valType:"color",dflt:u.railBorderColor},borderwidth:{valType:"number",min:0,dflt:u.railBorderWidth},ticklen:{valType:"number",min:0,dflt:u.tickLength},tickcolor:{valType:"color",dflt:u.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:u.minorTickLength}}),"arraydraw","from-root")},876:function(e){"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}},8132:function(e,t,r){"use strict";var n=r(3400),a=r(1272),i=r(9861),o=r(876).name,l=i.steps;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:u}),s=0,c=0;c<l.length;c++)l[c].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var f=t._visibleSteps=n.filterVisible(l);(l[o("active")]||{}).visible||(t.active=f[0]._index),o("x"),o("y"),n.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"),n.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.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 u(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var a=r("label","step-"+t._index);r("value",a),r("execute")}}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},9664:function(e,t,r){"use strict";var n=r(3428),a=r(7316),i=r(6308),o=r(3616),l=r(3400),s=l.strTranslate,u=r(2736),c=r(1780).arrayEditor,f=r(876),d=r(4284),h=d.LINE_SPACING,p=d.FROM_TL,g=d.FROM_BR;function v(e){return f.autoMarginIdRoot+e._index}function y(e){return e._index}function m(e,t){var r=o.tester.selectAll("g."+f.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(f.labelGroupClass,!0);var i=0,s=0;r.each((function(e){var r=_(n.select(this),{step:e},t).node();if(r){var a=o.bBox(r);s=Math.max(s,a.height),i=Math.max(i,a.width)}})),r.remove();var c=t._dims={};c.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var d=e._fullLayout._size;c.lx=d.l+d.w*t.x,c.ly=d.t+d.h*(1-t.y),"fraction"===t.lenmode?c.outerLength=Math.round(d.w*t.len):c.outerLength=t.len,c.inputAreaStart=0,c.inputAreaLength=Math.round(c.outerLength-t.pad.l-t.pad.r);var h=(c.inputAreaLength-2*f.stepInset)/(t._stepCount-1),y=i+f.labelPadding;if(c.labelStride=Math.max(1,Math.ceil(y/h)),c.labelHeight=s,c.currentValueMaxWidth=0,c.currentValueHeight=0,c.currentValueTotalHeight=0,c.currentValueMaxLines=1,t.currentvalue.visible){var m=o.tester.append("g");r.each((function(e){var r=x(m,t,e.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},a=u.lineCount(r);c.currentValueMaxWidth=Math.max(c.currentValueMaxWidth,Math.ceil(n.width)),c.currentValueHeight=Math.max(c.currentValueHeight,Math.ceil(n.height)),c.currentValueMaxLines=Math.max(c.currentValueMaxLines,a)})),c.currentValueTotalHeight=c.currentValueHeight+t.currentvalue.offset,m.remove()}c.height=c.currentValueTotalHeight+f.tickOffset+t.ticklen+f.labelOffset+c.labelHeight+t.pad.t+t.pad.b;var b="left";l.isRightAnchor(t)&&(c.lx-=c.outerLength,b="right"),l.isCenterAnchor(t)&&(c.lx-=c.outerLength/2,b="center");var w="top";l.isBottomAnchor(t)&&(c.ly-=c.height,w="bottom"),l.isMiddleAnchor(t)&&(c.ly-=c.height/2,w="middle"),c.outerLength=Math.ceil(c.outerLength),c.height=Math.ceil(c.height),c.lx=Math.round(c.lx),c.ly=Math.round(c.ly);var M={y:t.y,b:c.height*g[w],t:c.height*p[w]};"fraction"===t.lenmode?(M.l=0,M.xl=t.x-t.len*p[b],M.r=0,M.xr=t.x+t.len*g[b]):(M.x=t.x,M.l=c.outerLength*p[b],M.r=c.outerLength*g[b]),a.autoMargin(e,v(t),M)}function x(e,t,r){if(t.currentvalue.visible){var n,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":n=i.inputAreaLength-f.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":n=.5*i.inputAreaLength,a="middle";break;default:n=f.currentValueInset,a="left"}var s=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":a,"data-notex":1})})),c=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof r)c+=r;else{var d=t.steps[t.active].label,p=t._gd._fullLayout._meta;p&&(d=l.templateString(d,p)),c+=d}t.currentvalue.suffix&&(c+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(c).call(u.convertToTspans,t._gd);var g=u.lineCount(s),v=(i.currentValueMaxLines+1-g)*t.currentvalue.font.size*h;return u.positionText(s,n,v),s}}function b(e,t,r){l.ensureSingle(e,"rect",f.gripRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _(e,t,r){var n=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,i=r._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),n.call(o.font,r.font).text(a).call(u.convertToTspans,r._gd),n}function w(e,t){var r=l.ensureSingle(e,"g",f.labelsClass),a=t._dims,i=r.selectAll("g."+f.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(f.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var r=n.select(this);r.call(_,e,t),o.setTranslate(r,L(t,e.fraction),f.tickOffset+t.ticklen+t.font.size*h+f.labelOffset+a.currentValueTotalHeight)}))}function M(e,t,r,n,a){var i=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&T(e,t,r,o,!0,a)}function T(e,t,r,n,i,o){var l=r.active;r.active=n,c(e.layout,f.name,r).applyUpdate("active",n);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&&a.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function k(e,t,r){if(!t._context.staticPlot){var a=r.node(),o=n.select(t);e.on("mousedown",s),e.on("touchstart",s)}function l(){return r.data()[0]}function s(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),s.call(i.fill,e.activebgcolor);var u=D(e,n.mouse(a)[0]);function c(){var e=l(),i=D(e,n.mouse(a)[0]);M(t,r,e,i,!1)}function d(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}M(t,r,e,u,!0),e._dragging=!0,o.on("mousemove",c),o.on("touchmove",c),o.on("mouseup",d),o.on("touchend",d)}}function A(e,t){var r=e.selectAll("rect."+f.tickRectClass).data(t._visibleSteps),a=t._dims;r.enter().append("rect").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(e,r){var l=r%a.labelStride==0,s=n.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?f.tickOffset:f.minorTickOffset)+a.currentValueTotalHeight)}))}function S(e,t,r){for(var n=e.select("rect."+f.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=L(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=n;r&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*f.gripWidth,t._dims.currentValueTotalHeight))}}function L(e,t){var r=e._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,t))}function D(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(e,t,r){var n=r._dims,a=l.ensureSingle(e,"rect",f.railTouchRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")}));a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function P(e,t){var r=t._dims,n=r.inputAreaLength-2*f.railInset,a=l.ensureSingle(e,"rect",f.railRectClass);a.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(e){var t=e._context.staticPlot,r=e._fullLayout,i=function(e,t){for(var r=e[f.name],n=[],a=0;a<r.length;a++){var i=r[a];i.visible&&(i._gd=t,n.push(i))}return n}(r,e),l=r._infolayer.selectAll("g."+f.containerClassName).data(i.length>0?[0]:[]);function s(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,v(t))}if(l.enter().append("g").classed(f.containerClassName,!0).style("cursor",t?null:"ew-resize"),l.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(s)})).remove(),0!==i.length){var u=l.selectAll("g."+f.groupClassName).data(i,y);u.enter().append("g").classed(f.groupClassName,!0),u.exit().each(s).remove();for(var c=0;c<i.length;c++){var d=i[c];m(e,d)}u.each((function(t){var r=n.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,n=0;n<r;n+=t.labelStride)t.labelSteps.push({fraction:n/(r-1),step:e._visibleSteps[n]})}(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var n=r.data()[0];n.active!==t.index&&(n._dragging||T(e,r,n,t.index,!1,!0))})),function(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index),t.call(x,r).call(P,r).call(w,r).call(A,r).call(C,e,r).call(b,e,r);var n=r._dims;o.setTranslate(t,n.lx+r.pad.l,n.ly+r.pad.t),t.call(S,r,!1),t.call(x,r)}(e,n.select(this),t)}))}}},7544:function(e,t,r){"use strict";var n=r(876);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(9861),supplyLayoutDefaults:r(8132),draw:r(9664)}},1668:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(7316),o=r(4040),l=r(3400),s=l.strTranslate,u=r(3616),c=r(6308),f=r(2736),d=r(3448),h=r(4284).OPPOSITE_SIDE,p=/ [XY][0-9]* /;e.exports={draw:function(e,t,r){var g,v=r.propContainer,y=r.propName,m=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,M=r.containerGroup,T=e._fullLayout,k=1,A=!1,S=v.title,L=(S&&S.text?S.text:"").trim(),D=S&&S.font?S.font:{},C=D.family,P=D.size,O=D.color;"title.text"===y?g="titleText":-1!==y.indexOf("axis")?g="axisTitleText":y.indexOf(!0)&&(g="colorbarTitleText");var R=e._context.edits[g];""===L?k=0:L.replace(p," % ")===m.replace(p," % ")&&(k=.2,A=!0,R||(L="")),r._meta?L=l.templateString(L,r._meta):T._meta&&(L=l.templateString(L,T._meta));var E,I=L||R;M||(M=l.ensureSingle(T._infolayer,"g","g-"+t),E=T._hColorbarMoveTitle);var N=M.selectAll("text").data(I?[0]:[]);if(N.enter().append("text"),N.text(L).attr("class",t),N.exit().remove(),!I)return M;function z(e){l.syncOrAsync([F,j],e)}function F(t){var r;return!w&&E&&(w={}),w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),(w.offset||E)&&(r+=s(0,(w.offset||0)-(E||0)))):r=null,t.attr("transform",r),t.style({"font-family":C,"font-size":n.round(P,2)+"px",fill:c.rgb(O),opacity:k*c.opacity(O),"font-weight":i.fontWeight}).attr(_).call(f.convertToTspans,e),i.previousPromises(e)}function j(t){var r=n.select(t.node().parentNode);if(b&&b.selection&&b.side&&L){r.attr("transform",null);var i=h[b.side],o="left"===b.side||"top"===b.side?-1:1,c=a(b.pad)?b.pad:2,f=u.bBox(r.node()),d={t:0,b:0,l:0,r:0},p=e._fullLayout._reservedMargin;for(var g in p)for(var y in p[g]){var m=p[g][y];d[y]=Math.max(d[y],m)}var x={left:d.l,top:d.t,right:T.width-d.r,bottom:T.height-d.b},_=b.maxShift||o*(x[b.side]-f[b.side]),w=0;if(_<0)w=_;else{var M=b.offsetLeft||0,k=b.offsetTop||0;f.left-=M,f.right-=M,f.top-=k,f.bottom-=k,b.selection.each((function(){var e=u.bBox(this);l.bBoxIntersect(f,e,c)&&(w=Math.max(w,o*(e[b.side]-f[i])+c))})),w=Math.min(_,w),v._titleScoot=Math.abs(w)}if(w>0||_<0){var A={left:[-w,0],right:[w,0],top:[0,-w],bottom:[0,w]}[b.side];r.attr("transform",s(A[0],A[1]))}}}return N.call(z),R&&(L?N.on(".opacity",null):(k=0,A=!0,N.text(m).on("mouseover.opacity",(function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),N.call(f.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(z)})).on("input",(function(e){this.text(e||" ").call(f.positionText,_.x,_.y)}))),N.classed("js-placeholder",A),M}}},8444:function(e,t,r){"use strict";var n=r(5376),a=r(2548),i=r(2880).extendFlat,o=r(7824).overrideAll,l=r(6741),s=r(1780).templatedArray,u=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});e.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:u,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(l({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},1331:function(e){"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:"▼"}}},1384:function(e,t,r){"use strict";var n=r(3400),a=r(1272),i=r(8444),o=r(1331).name,l=i.buttons;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:u}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function u(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},4420:function(e,t,r){"use strict";var n=r(3428),a=r(7316),i=r(6308),o=r(3616),l=r(3400),s=r(2736),u=r(1780).arrayEditor,c=r(4284).LINE_SPACING,f=r(1331),d=r(7400);function h(e){return e._index}function p(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function g(e,t,r,n,a,i,o,l){t.active=o,u(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?y(e,n,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),v(e,n,a,i,t),l||y(e,n,a,i,t))}function v(e,t,r,n,a){var i=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,u=a.active,c=a.buttons[u]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},h={width:s.headerWidth,height:s.headerHeight};i.call(m,a,c,e).call(A,a,d,h),l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])})).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",(function(){r.call(S,String(p(r,a)?-1:a._index)),y(e,t,r,n,a)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(M,a)})),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(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,u="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,c=r.selectAll("g."+u).data(l.filterVisible(s)),d=c.enter().append("g").classed(u,!0),h=c.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var p=0,v=0,y=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?v=y.headerHeight+f.gapButtonHeader:p=y.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-f.gapButtonHeader+f.gapButton-y.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-f.gapButtonHeader+f.gapButton-y.openWidth);var b={x:y.lx+p+o.pad.l,y:y.ly+v+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};c.each((function(l,s){var u=n.select(this);u.call(m,o,l,e).call(A,o,b),u.on("click",(function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(e,o,0,t,r,i,-1),a.executeAPICommand(e,l.method,l.args2)):(g(e,o,0,t,r,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),u.on("mouseover",(function(){u.call(w)})),u.on("mouseout",(function(){u.call(M,o),c.call(_,o)}))})),c.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&&(c.size()?function(e,t,r,n,a,i){var o,l,s,u=a.direction,c="up"===u||"down"===u,d=a._dims,h=a.active;if(c)for(l=0,s=0;s<h;s++)l+=d.heights[s]+f.gapButton;else for(o=0,s=0;s<h;s++)o+=d.widths[s]+f.gapButton;n.enable(i,o,l),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.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 m(e,t,r,n){e.call(x,t).call(b,t,r,n)}function x(e,t){l.ensureSingle(e,"rect",f.itemRectClassName,(function(e){e.attr({rx:f.rx,ry:f.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,n){var a=l.ensureSingle(e,"text",f.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),i=r.label,u=n._fullLayout._meta;u&&(i=l.templateString(i,u)),a.call(o.font,t.font).text(i).call(s.convertToTspans,n)}function _(e,t){var r=t.active;e.each((function(e,a){var o=n.select(this);a===r&&t.showactive&&o.select("rect."+f.itemRectClassName).call(i.fill,f.activeColor)}))}function w(e){e.select("rect."+f.itemRectClassName).call(i.fill,f.hoverColor)}function M(e,t){e.select("rect."+f.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."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(f.dropdownButtonClassName,!0);var u=-1!==["up","down"].indexOf(t.direction);i.each((function(a,i){var l=n.select(this);l.call(m,t,a,e);var d=l.select("."+f.itemTextClassName),h=d.node()&&o.bBox(d.node()).width,p=Math.max(h+f.textPadX,f.minWidth),g=t.font.size*c,v=s.lineCount(d),y=Math.max(g*v,f.minHeight)+f.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),u?(r.totalWidth=Math.max(r.totalWidth,p),r.openWidth=r.totalWidth,r.totalHeight+=y+f.gapButton,r.openHeight+=y+f.gapButton):(r.totalWidth+=p+f.gapButton,r.openWidth+=p+f.gapButton,r.totalHeight=Math.max(r.totalHeight,y),r.openHeight=r.totalHeight)})),u?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,"dropdown"===t.type&&(u?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),i.remove();var d=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-=d,g="right"),l.isCenterAnchor(t)&&(r.lx-=d/2,g="center");var v="top";l.isBottomAnchor(t)&&(r.ly-=h,v="bottom"),l.isMiddleAnchor(t)&&(r.ly-=h/2,v="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),a.autoMargin(e,k(t),{x:t.x,y:t.y,l:d*({right:1,center:.5}[g]||0),r:d*({left:1,center:.5}[g]||0),b:h*({top:1,middle:.5}[v]||0),t:h*({bottom:1,middle:.5}[v]||0)})}function k(e){return f.autoMarginIdRoot+e._index}function A(e,t,r,n){n=n||{};var a=e.select("."+f.itemRectClassName),i=e.select("."+f.itemTextClassName),l=t.borderwidth,u=r.index,d=t._dims;o.setTranslate(e,l+r.x,l+r.y);var h=-1!==["up","down"].indexOf(t.direction),p=n.height||(h?d.heights[u]:d.height1);a.attr({x:0,y:0,width:n.width||(h?d.width1:d.widths[u]),height:p});var g=t.font.size*c,v=(s.lineCount(i)-1)*g/2;s.positionText(i,f.textOffsetX,p/2-v+f.textOffsetY),h?r.y+=d.heights[u]+r.yPad:r.x+=d.widths[u]+r.xPad,r.index++}function S(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,r=l.filterVisible(t[f.name]);function i(t){a.autoMargin(e,k(t))}var o=t._menulayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,h);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var u=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),c=0;c<r.length;c++){var m=r[c];T(e,m)}var x="updatemenus"+t._uid,b=new d(e,u,x);s.enter().size()&&(u.node().parentNode.appendChild(u.node()),u.call(S)),s.exit().each((function(e){u.call(S),i(e)})).remove(),s.each((function(t){var r=n.select(this),i="dropdown"===t.type?u:null;a.manageCommandObserver(e,t,t.buttons,(function(n){g(e,t,t.buttons[n.index],r,i,b,n.index,!0)})),"dropdown"===t.type?(v(e,r,u,b,t),p(u,t)&&y(e,r,u,b,t)):y(e,r,null,null,t)}))}}},6908:function(e,t,r){"use strict";var n=r(1331);e.exports={moduleType:"component",name:n.name,layoutAttributes:r(8444),supplyLayoutDefaults:r(1384),draw:r(4420)}},7400:function(e,t,r){"use strict";e.exports=l;var n=r(3428),a=r(6308),i=r(3616),o=r(3400);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,u=o.height;this.position=e;var c,f,d,h,p=this.position.l,g=this.position.w,v=this.position.t,y=this.position.h,m=this.position.direction,x="down"===m,b="left"===m,_="up"===m,w=g,M=y;x||b||"right"===m||_||(this.position.direction="down",x=!0),x||_?(f=(c=p)+w,x?(d=v,M=(h=Math.min(d+M,u))-d):M=(h=v+M)-(d=Math.max(h-M,0))):(h=(d=v)+M,b?w=(f=p+w)-(c=Math.max(f-w,0)):(c=p,w=(f=Math.min(c+w,s))-c)),this._box={l:c,t:d,w:w,h:M};var T=g>w,k=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,S=p,L=v+y;L+A>u&&(L=u-A);var D=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=D.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:L,width:k,height:A}),this._hbarXMin=S+k/2,this._hbarTranslateMax=w-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=y>M,P=l.barWidth+2*l.barPad,O=l.barLength+2*l.barPad,R=p+g,E=v;R+P>s&&(R=s-P);var I=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),C?(this.vbar=I.attr({rx:l.barRadius,ry:l.barRadius,x:R,y:E,width:P,height:O}),this._vbarYMin=E+O/2,this._vbarTranslateMax=M-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var N=this.id,z=c-.5,F=C?f+P+.5:f+.5,j=d-.5,B=T?h+A+.5:h+.5,H=o._topdefs.selectAll("#"+N).data(T||C?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",N).append("rect"),T||C?(this._clipRect=H.select("rect").attr({x:Math.floor(z),y:Math.floor(j),width:Math.ceil(F)-Math.floor(z),height:Math.ceil(B)-Math.floor(j)}),this.container.call(i.setClipUrl,N,this.gd),this.bg.attr({x:p,y:v,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||C){var G=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var Y=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(Y),C&&this.vbar.on(".drag",null).call(Y)}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-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.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,a=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(n.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,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),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 a=e/r;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},4284:function(e){"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"}}},6208:function(e){"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(" ")}}},6880:function(e){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},9104:function(e){"use strict";e.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},3448:function(e){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},9032:function(e){"use strict";e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,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:"−"}},9616:function(e,t){"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}},4884:function(e,t,r){"use strict";t.version=r(5788).version,r(8324),r(9288);for(var n=r(4040),a=t.register=n.register,i=r(2448),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(t[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(r(5875)),a([r(9180),r(6864),r(2676),r(1592),r(7402),r(6908),r(7544),r(9692),r(1152),r(2704),r(4968),r(8932),r(5080),r(2780),r(3024),r(3080)]),a([r(6580),r(1680)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=r(9224);var u=r(3024),c=r(7316);t.Plots={resize:c.resize,graphJson:c.graphJson,sendDataToCloud:c.sendDataToCloud},t.Fx={hover:u.hover,unhover:u.unhover,loneHover:u.loneHover,loneUnhover:u.loneUnhover},t.Snapshot=r(8904),t.PlotSchema=r(3060)},9224:function(e){"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-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' 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-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},8308:function(e,t){"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}},1864:function(e,t,r){"use strict";var n=r(435),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function u(e,t){return i(t-e,l)}function c(e,t){if(s(t))return!0;var r,n;t[0]<t[1]?(r=t[0],n=t[1]):(r=t[1],n=t[0]),(r=a(r,l))>(n=a(n,l))&&(n+=l);var i=a(e,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(e,t,r,n,a,i,u){a=a||0,i=i||0;var c,f,d,h,p,g=s([r,n]);function v(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}g?(c=0,f=o,d=l):r<n?(c=r,d=n):(c=n,d=r),e<t?(h=e,p=t):(h=t,p=e);var y,m=Math.abs(d-c)<=o?0:1;function x(e,t,r){return"A"+[e,e]+" "+[0,m,r]+" "+v(e,t)}return g?y=null===h?"M"+v(p,c)+x(p,f,0)+x(p,d,0)+"Z":"M"+v(h,c)+x(h,f,0)+x(h,d,0)+"ZM"+v(p,c)+x(p,f,1)+x(p,d,1)+"Z":null===h?(y="M"+v(p,c)+x(p,d,0),u&&(y+="L0,0Z")):y="M"+v(h,c)+"L"+v(p,c)+x(p,d,0)+"L"+v(h,d)+x(h,c,1)+"Z",y}e.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:u,angleDist:function(e,t){return Math.abs(u(e,t))},isFullCircle:s,isAngleInsideSector:c,isPtInsideSector:function(e,t,r,n){return!!c(t,n)&&(r[0]<r[1]?(a=r[0],i=r[1]):(a=r[1],i=r[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return f(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return f(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return f(e,t,r,n,a,i,1)}}},8116:function(e,t,r){"use strict";var n=r(3160).decode,a=r(3620),i=Array.isArray,o=ArrayBuffer,l=DataView;function s(e){return o.isView(e)&&!(e instanceof l)}function u(e){return i(e)||s(e)}t.isTypedArray=s,t.isArrayOrTypedArray=u,t.isArray1D=function(e){return!u(e[0])},t.ensureArray=function(e,t){return i(e)||(e=[]),e.length=t,e};var c={u1c:"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,i1:"undefined"==typeof Int8Array?void 0:Int8Array,u1:"undefined"==typeof Uint8Array?void 0:Uint8Array,i2:"undefined"==typeof Int16Array?void 0:Int16Array,u2:"undefined"==typeof Uint16Array?void 0:Uint16Array,i4:"undefined"==typeof Int32Array?void 0:Int32Array,u4:"undefined"==typeof Uint32Array?void 0:Uint32Array,f4:"undefined"==typeof Float32Array?void 0:Float32Array,f8:"undefined"==typeof Float64Array?void 0:Float64Array};function f(e){return e.constructor===ArrayBuffer}function d(e,t,r){if(u(e)){if(u(e[0])){for(var n=r,a=0;a<e.length;a++)n=t(n,e[a].length);return n}return e.length}return 0}c.uint8c=c.u1c,c.uint8=c.u1,c.int8=c.i1,c.uint16=c.u2,c.int16=c.i2,c.uint32=c.u4,c.int32=c.i4,c.float32=c.f4,c.float64=c.f8,t.isArrayBuffer=f,t.decodeTypedArraySpec=function(e){var t=[],r=function(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}(e),a=r.dtype,i=c[a];if(!i)throw new Error('Error in dtype: "'+a+'"');var o=i.BYTES_PER_ELEMENT,l=r.bdata;f(l)||(l=n(l));var s=void 0===r.shape?[l.byteLength/o]:(""+r.shape).split(",");s.reverse();var u,d,h=s.length,p=+s[0],g=o*p,v=0;if(1===h)t=new i(l);else if(2===h)for(u=+s[1],d=0;d<u;d++)t[d]=new i(l,v,p),v+=g;else{if(3!==h)throw new Error("ndim: "+h+'is not supported with the shape:"'+r.shape+'"');u=+s[1];for(var y=+s[2],m=0;m<y;m++)for(t[m]=[],d=0;d<u;d++)t[m][d]=new i(l,v,p),v+=g}return t.bdata=r.bdata,t.dtype=r.dtype,t.shape=s.reverse().join(","),e._inputArray=t,t},t.isTypedArraySpec=function(e){return a(e)&&e.hasOwnProperty("dtype")&&"string"==typeof e.dtype&&e.hasOwnProperty("bdata")&&("string"==typeof e.bdata||f(e.bdata))&&(void 0===e.shape||e.hasOwnProperty("shape")&&("string"==typeof e.shape||"number"==typeof e.shape))},t.concat=function(){var e,t,r,n,a,o,l,s,u=[],c=!0,f=0;for(r=0;r<arguments.length;r++)(o=(n=arguments[r]).length)&&(t?u.push(n):(t=n,a=o),i(n)?e=!1:(c=!1,f?e!==n.constructor&&(e=!1):e=n.constructor),f+=o);if(!f)return[];if(!u.length)return t;if(c)return t.concat.apply(t,u);if(e){for((l=new e(f)).set(t),r=0;r<u.length;r++)n=u[r],l.set(n,a),a+=n.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(r=0;r<u.length;r++){for(n=u[r],s=0;s<n.length;s++)l[a+s]=n[s];a+=s}return l},t.maxRowLength=function(e){return d(e,Math.max,0)},t.minRowLength=function(e){return d(e,Math.min,1/0)}},4037:function(e,t,r){"use strict";var n=r(8248),a=r(9032).BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),n(e)?Number(e):a}},3696:function(e){"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})}))}},5352:function(e){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},3064:function(e,t,r){"use strict";var n=r(8248),a=r(9760),i=r(5464),o=r(8304),l=r(6308),s=r(3448).DESELECTDIM,u=r(2296),c=r(3756).counter,f=r(435).modHalf,d=r(8116).isArrayOrTypedArray,h=r(8116).isTypedArraySpec,p=r(8116).decodeTypedArraySpec;function g(e,r){var n=t.valObjectMeta[r.valType];if(r.arrayOk&&d(e))return!0;if(n.validateFunction)return n.validateFunction(e,r);var a={},i=a,o={set:function(e){i=e}};return n.coerceFunction(e,o,a,r),i!==a}t.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(d(e)?e:h(e)?p(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),-1===n.values.indexOf(e)?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;n<r.length;n++){var a=String(r[n]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.substr(1,a.length-2)).test(e))return!0}else if(e===r[n])return!0}return!1}},boolean:{coerceFunction:function(e,t,r){!0===e||!1===e?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,a){!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,a){e%1||!n(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if("string"!=typeof e){var a="number"==typeof e;!0!==n.strict&&a?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){a(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(f(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var a=n.regex||c(r);"string"==typeof e&&a.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:{coerceFunction:function(e,t,r,n){if(-1===(n.extras||[]).indexOf(e))if("string"==typeof e){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===n.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(r)}else t.set(r);else t.set(e)}},any:{coerceFunction:function(e,t,r){void 0===e?t.set(r):t.set(h(e)?p(e):e)}},info_array:{coerceFunction:function(e,r,n,a){function i(e,r,n){var a,i={set:function(e){a=e}};return void 0===n&&(n=r.dflt),t.valObjectMeta[r.valType].coerceFunction(e,i,n,r),a}if(h(e)&&(e=p(e)),d(e)){var o,l,s,u,c,f,g=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&d(e[0]),v=a.items,y=[],m=Array.isArray(v),x=m&&g&&d(v[0]),b=g&&m&&!x,_=m&&!b?v.length:e.length;if(n=Array.isArray(n)?n:[],g)for(o=0;o<_;o++)for(y[o]=[],s=d(e[o])?e[o]:[],c=b?v.length:m?v[o].length:s.length,l=0;l<c;l++)u=b?v[l]:m?v[o][l]:v,void 0!==(f=i(s[l],u,(n[o]||[])[l]))&&(y[o][l]=f);else for(o=0;o<_;o++)void 0!==(f=i(e[o],m?v[o]:v,n[o]))&&(y[o]=f);r.set(y)}else r.set(n)},validateFunction:function(e,t){if(!d(e))return!1;var r=t.items,n=Array.isArray(r),a=2===t.dimensions;if(!t.freeLength&&e.length!==r.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!d(e[i])||!t.freeLength&&e[i].length!==r[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!g(e[i][o],n?r[i][o]:r))return!1}else if(!g(e[i],n?r[i]:r))return!1;return!0}}},t.coerce=function(e,r,n,a,i){var o=u(n,a).get(),l=u(e,a),s=u(r,a),c=l.get(),f=r._template;if(void 0===c&&f&&(c=u(f,a).get(),f=0),void 0===i&&(i=o.dflt),o.arrayOk){if(d(c))return s.set(c),c;if(h(c))return c=p(c),s.set(c),c}var v=t.valObjectMeta[o.valType].coerceFunction;v(c,s,i,o);var y=s.get();return f&&y===i&&!g(c,o)&&(v(c=u(f,a).get(),s,i,o),y=s.get()),y},t.coerce2=function(e,r,n,a,i){var o=u(e,a),l=t.coerce(e,r,n,a,i);return null!=o.get()&&l},t.coerceFont=function(e,t,r){var n={};return r=r||{},n.family=e(t+".family",r.family),n.size=e(t+".size",r.size),n.color=e(t+".color",r.color),n},t.coercePattern=function(e,t,r,n){if(e(t+".shape")){e(t+".solidity"),e(t+".size");var a="overlay"===e(t+".fillmode");if(!n){var i=e(t+".bgcolor",a?r:void 0);e(t+".fgcolor",a?l.contrast(i):r)}e(t+".fgopacity",a?.5:1)}},t.coerceHoverinfo=function(e,r,n){var a,o=r._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===n._dataLength){var u="all"===s.dflt?s.flags.slice():s.dflt.split("+");u.splice(u.indexOf("name"),1),a=u.join("+")}return t.coerce(e,r,l,"hoverinfo",a)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var r,n,a=e.marker.opacity;void 0!==a&&(d(a)||e.selected||e.unselected||(r=a,n=s*a),t("selected.marker.opacity",r),t("unselected.marker.opacity",n))}},t.validate=g},7555:function(e,t,r){"use strict";var n,a,i=r(4336).Yn,o=r(8248),l=r(4248),s=r(435).mod,u=r(9032),c=u.BADNUM,f=u.ONEDAY,d=u.ONEHOUR,h=u.ONEMIN,p=u.ONESEC,g=u.EPOCHJD,v=r(4040),y=r(4336).E9,m=/^\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&&v.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 n=function(e,t){return _(e)?t?v.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:v.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(e,!!r);if(r<2)return n;var a=t.dateTime2ms(n,e);return a+=f*(r-1),t.ms2DateTime(a,0,e)},t.dfltRange=function(e){return _(e)?v.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)>=n&&e<=a?e:c}if("string"!=typeof e&&"number"!=typeof e)return c;e=String(e);var u=_(r),y=e.charAt(0);!u||"G"!==y&&"g"!==y||(e=e.substr(1),r="");var w=u&&"chinese"===r.substr(0,7),M=e.match(w?x:m);if(!M)return c;var T=M[1],k=M[3]||"1",A=Number(M[5]||1),S=Number(M[7]||0),L=Number(M[9]||0),D=Number(M[11]||0);if(u){if(2===T.length)return c;var C;T=Number(T);try{var P=v.getComponentMethod("calendars","getCal")(r);if(w){var O="i"===k.charAt(k.length-1);k=parseInt(k,10),C=P.newDate(T,P.toMonthIndex(T,k,O),A)}else C=P.newDate(T,Number(k),A)}catch(e){return c}return C?(C.toJD()-g)*f+S*d+L*h+D*p:c}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),k-=1;var R=new Date(Date.UTC(2e3,k,A,S,L));return R.setUTCFullYear(T),R.getUTCMonth()!==k||R.getUTCDate()!==A?c:R.getTime()+D*p},n=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,r){return t.dateTime2ms(e,r)!==c};var M=90*f,T=3*d,k=5*h;function A(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+w(t,2)+":"+w(r,2),(n||a)&&(e+=":"+w(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}t.ms2DateTime=function(e,t,r){if("number"!=typeof e||!(e>=n&&e<=a))return c;t||(t=0);var i,o,l,u,m,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var S=Math.floor(w/f)+g,L=Math.floor(s(e,f));try{i=v.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<M?Math.floor(L/d):0,l=t<M?Math.floor(L%d/h):0,u=t<T?Math.floor(L%h/p):0,m=t<k?L%p*10+b:0}else x=new Date(w),i=y("%Y-%m-%d")(x),o=t<M?x.getUTCHours():0,l=t<M?x.getUTCMinutes():0,u=t<T?x.getUTCSeconds():0,m=t<k?10*x.getUTCMilliseconds()+b:0;return A(i,o,l,u,m)},t.ms2DateTimeLocal=function(e){if(!(e>=n+f&&e<=a-f))return c;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return A(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},t.cleanDate=function(e,r,n){if(e===c)return r;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(n))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,n))return l.error("unrecognized date",e),r;return e};var S=/%\d?f/g,L=/%h/g,D={1:"1",2:"1",3:"2",4:"2"};function C(e,t,r,n){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 a=new Date(Math.floor(t+.05));if(e=e.replace(L,(function(){return D[r("%q")(a)]})),_(n))try{e=v.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return r(e)(a)}var P=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,r,n,a,i){if(a=_(a)&&a,!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,f),n=w(Math.floor(r/d),2)+":"+w(s(Math.floor(r/h),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/p,60),P[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+C(i.dayMonthYear,e,n,a);t=i.dayMonth+"\n"+i.year}return C(t,e,n,a)};var O=3*f;t.incrementMonth=function(e,t,r){r=_(r)&&r;var n=s(e,f);if(e=Math.round(e-n),r)try{var a=Math.round(e/f)+g,i=v.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-g)*f+n}catch(t){l.error("invalid ms "+e+" in calendar "+r)}var u=new Date(e+O);return u.setUTCMonth(u.getUTCMonth()+t)+n-O},t.findExactDates=function(e,t){for(var r,n,a=0,i=0,l=0,s=0,u=_(t)&&v.getComponentMethod("calendars","getCal")(t),c=0;c<e.length;c++)if(n=e[c],o(n)){if(!(n%f))if(u)try{1===(r=u.fromJD(n/f+g)).day()?1===r.month()?a++:i++:l++}catch(e){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?a++:i++:l++}else s++;l+=i+=a;var d=e.length-s;return{exactYears:a/d,exactMonths:i/d,exactDays:l/d}}},2200:function(e,t,r){"use strict";var n=r(3428),a=r(4248),i=r(2248),o=r(6524);function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);i||((i=document.createElement("style")).setAttribute("id",n),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):a.warn("addStyleRule failed")}function u(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 c(e){for(var t=[];f(e);)t.push(e),e=e.parentNode;return t}function f(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=n.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=c(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=u(e);if(t){var n=i.convertCssMatrix(t);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:u,getElementAndAncestors:c,equalDomRects:function(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}},5924:function(e,t,r){"use strict";var n=r(1252).EventEmitter,a={init:function(e){if(e._ev instanceof n)return e;var t=new n,r=new n;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,a){"undefined"!=typeof jQuery&&jQuery(e).trigger(n,a),t.emit(n,a),r.emit(n,a)},e},triggerHandler:function(e,t,r){var n,a;"undefined"!=typeof jQuery&&(n=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return n;var o,l=i._events[t];if(!l)return n;function s(e){return e.listener?(i.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(i,[r]))):e.apply(i,[r])}for(l=Array.isArray(l)?l:[l],o=0;o<l.length-1;o++)s(l[o]);return a=s(l[o]),void 0!==n?n:a},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=a},2880:function(e,t,r){"use strict";var n=r(3620),a=Array.isArray;function i(e,t,r,o){var l,s,u,c,f,d,h,p=e[0],g=e.length;if(2===g&&a(p)&&a(e[1])&&0===p.length){if(h=function(e,t){var r,n;for(r=0;r<e.length;r++){if(null!==(n=e[r])&&"object"==typeof n)return!1;void 0!==n&&(t[r]=n)}return!0}(e[1],p),h)return p;p.splice(0,p.length)}for(var v=1;v<g;v++)for(s in l=e[v])u=p[s],c=l[s],o&&a(c)?p[s]=c:t&&c&&(n(c)||(f=a(c)))?(f?(f=!1,d=u&&a(u)?u:[]):d=u&&n(u)?u:{},p[s]=i([d,c],t,r,o)):(void 0!==c||r)&&(p[s]=c);return p}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)}},8944:function(e){"use strict";e.exports=function(e){for(var t={},r=[],n=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,r[n++]=i)}return r}},3880:function(e){"use strict";function t(e){return!0===e.visible}function r(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var n,a=(n=e,Array.isArray(n)&&Array.isArray(n[0])&&n[0][0]&&n[0][0].trace?r:t),i=[],o=0;o<e.length;o++){var l=e[o];a(l)&&i.push(l)}return i}},7144:function(e,t,r){"use strict";var n=r(3428),a=r(6116),i=r(440),o=r(7844),l=r(2428),s=r(5536),u=r(4248),c=r(3620),f=r(2296),d=r(2065),h=Object.keys(a),p={"ISO-3":s,"USA-states":s,"country names":function(e){for(var t=0;t<h.length;t++){var r=h[t];if(new RegExp(a[r]).test(e.trim().toLowerCase()))return r}return u.log("Unrecognized country name: "+e+"."),!1}};function g(e){var t=e.geojson,r=window.PlotlyGeoAssets||{},n="string"==typeof t?r[t]:t;return c(n)?n:(u.error("Oops ... something went wrong when fetching "+t),!1)}e.exports={locationToFeature:function(e,t,r){if(!t||"string"!=typeof t)return!1;var n,a,i,o=p[e](t);if(o){if("USA-states"===e)for(n=[],i=0;i<r.length;i++)(a=r[i]).properties&&a.properties.gu&&"USA"===a.properties.gu&&n.push(a);else n=r;for(i=0;i<n.length;i++)if((a=n[i]).id===o)return a;u.log(["Location with id",o,"does not have a matching topojson feature at this resolution."].join(" "))}return!1},feature2polygons:function(e){var t,r,n,a,i=e.geometry,o=i.coordinates,l=e.id,s=[];function u(e){for(var t=0;t<e.length-1;t++)if(e[t][0]>0&&e[t+1][0]<0)return t;return null}switch(t="RUS"===l||"FJI"===l?function(e){var t;if(null===u(e))t=e;else for(t=new Array(e.length),a=0;a<e.length;a++)t[a]=[e[a][0]<0?e[a][0]+360:e[a][0],e[a][1]];s.push(d.tester(t))}:"ATA"===l?function(e){var t=u(e);if(null===t)return s.push(d.tester(e));var r=new Array(e.length+1),n=0;for(a=0;a<e.length;a++)a>t?r[n++]=[e[a][0]+360,e[a][1]]:a===t?(r[n++]=e[a],r[n++]=[e[a][0],-90]):r[n++]=e[a];var i=d.tester(r);i.pts.pop(),s.push(i)}:function(e){s.push(d.tester(e))},i.type){case"MultiPolygon":for(r=0;r<o.length;r++)for(n=0;n<o[r].length;n++)t(o[r][n]);break;case"Polygon":for(r=0;r<o.length;r++)t(o[r])}return s},getTraceGeojson:g,extractTraceFeature:function(e){var t=e[0].trace,r=g(t);if(!r)return!1;var n,a={},l=[];for(n=0;n<t._length;n++){var s=e[n];(s.loc||0===s.loc)&&(a[s.loc]=s)}function c(e){var r=f(e,t.featureidkey||"id").get(),n=a[r];if(n){var s=e.geometry;if("Polygon"===s.type||"MultiPolygon"===s.type){var c={type:"Feature",id:r,geometry:s,properties:{}};c.properties.ct=function(e){var t,r=e.geometry;if("MultiPolygon"===r.type)for(var n=r.coordinates,a=0,l=0;l<n.length;l++){var s={type:"Polygon",coordinates:n[l]},u=i.default(s);u>a&&(a=u,t=s)}else t=r;return o.default(t).geometry.coordinates}(c),n.fIn=e,n.fOut=c,l.push(c)}else u.log(["Location",n.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[r]}switch(r.type){case"FeatureCollection":var d=r.features;for(n=0;n<d.length;n++)c(d[n]);break;case"Feature":c(r);break;default:return u.warn(["Invalid GeoJSON type",(r.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var h in a)u.log(["Location *"+h+"*","does not have a matching feature with id-key","*"+t.featureidkey+"*."].join(" "));return l},fetchTraceGeoData:function(e){var t=window.PlotlyGeoAssets||{},r=[];function a(e){return new Promise((function(r,a){n.json(e,(function(n,i){if(n){delete t[e];var o=404===n.status?'GeoJSON at URL "'+e+'" does not exist.':"Unexpected error while fetching from "+e;return a(new Error(o))}return t[e]=i,r(i)}))}))}function i(e){return new Promise((function(r,n){var a=0,i=setInterval((function(){return t[e]&&"pending"!==t[e]?(clearInterval(i),r(t[e])):a>100?(clearInterval(i),n("Unexpected error while fetching from "+e)):void a++}),50)}))}for(var o=0;o<e.length;o++){var l=e[o][0].trace.geojson;"string"==typeof l&&(t[l]?"pending"===t[l]&&r.push(i(l)):(t[l]="pending",r.push(a(l))))}return r},computeBbox:function(e){return l.default(e)}}},4808:function(e,t,r){"use strict";var n=r(9032).BADNUM;t.calcTraceToLineCoords=function(e){for(var t=e[0].trace.connectgaps,r=[],a=[],i=0;i<e.length;i++){var o=e[i].lonlat;o[0]!==n?a.push(o):!t&&a.length>0&&(r.push(a),a=[])}return a.length>0&&r.push(a),r},t.makeLine=function(e){return 1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}},t.makePolygon=function(e){if(1===e.length)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=[e[r]];return{type:"MultiPolygon",coordinates:t}},t.makeBlank=function(){return{type:"Point",coordinates:[]}}},2348:function(e,t,r){"use strict";var n,a,i,o=r(435).mod;function l(e,t,r,n,a,i,o,l){var s=r-e,u=a-e,c=o-a,f=n-t,d=i-t,h=l-i,p=s*h-c*f;if(0===p)return null;var g=(u*h-c*d)/p,v=(u*f-s*d)/p;return v<0||v>1||g<0||g>1?null:{x:e+s*g,y:t+f*g}}function s(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}var s=n*t-a*e;return s*s/r}t.segmentsIntersect=l,t.segmentDistance=function(e,t,r,n,a,i,o,u){if(l(e,t,r,n,a,i,o,u))return 0;var c=r-e,f=n-t,d=o-a,h=u-i,p=c*c+f*f,g=d*d+h*h,v=Math.min(s(c,f,p,a-e,i-t),s(c,f,p,o-e,u-t),s(d,h,g,e-a,t-i),s(d,h,g,r-a,n-i));return Math.sqrt(v)},t.getTextLocation=function(e,t,r,l){if(e===a&&l===i||(n={},a=e,i=l),n[r])return n[r];var s=e.getPointAtLength(o(r-l/2,t)),u=e.getPointAtLength(o(r+l/2,t)),c=Math.atan((u.y-s.y)/(u.x-s.x)),f=e.getPointAtLength(o(r,t)),d={x:(4*f.x+s.x+u.x)/6,y:(4*f.y+s.y+u.y)/6,theta:c};return n[r]=d,d},t.clearLocationCache=function(){a=null},t.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,u=0,c=e.getTotalLength(),f=c;function d(t){var r=e.getPointAtLength(t);0===t?n=r:t===c&&(a=r);var u=r.x<i?i-r.x:r.x>o?r.x-o:0,f=r.y<l?l-r.y:r.y>s?r.y-s:0;return Math.sqrt(u*u+f*f)}for(var h=d(u);h;){if((u+=h+r)>f)return;h=d(u)}for(h=d(f);h;){if(u>(f-=h+r))return;h=d(f)}return{min:u,max:f,len:f-u,total:c,isClosed:0===u&&f===c&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},t.findPointOnPath=function(e,t,r,n){for(var a,i,o,l=(n=n||{}).pathLength||e.getTotalLength(),s=n.tolerance||.001,u=n.iterationLimit||30,c=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,f=0,d=0,h=l;f<u;){if(a=(d+h)/2,o=(i=e.getPointAtLength(a))[r]-t,Math.abs(o)<s)return i;c*o>0?h=a:d=a,f++}return i}},5536:function(e){"use strict";e.exports=function(e){return e}},1396:function(e){"use strict";e.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,a=String(n).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},3400:function(e,t,r){"use strict";var n=r(3428),a=r(4336).E9,i=r(7624).E9,o=r(8248),l=r(9032),s=l.FP_SAFE,u=-s,c=l.BADNUM,f=e.exports={};f.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};f.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,f.warn('encountered bad format: "'+t+'"'))},f.noFormat=function(e){return String(e)},f.numberFormat=function(e){var t;try{t=i(f.adjustFormat(e))}catch(t){return f.warnBadFormat(e),f.noFormat}return t},f.nestedProperty=r(2296),f.keyedContainer=r(7804),f.relativeAttr=r(3193),f.isPlainObject=r(3620),f.toLogRange=r(6896),f.relinkPrivateKeys=r(1528);var h=r(8116);f.isArrayBuffer=h.isArrayBuffer,f.isTypedArray=h.isTypedArray,f.isArrayOrTypedArray=h.isArrayOrTypedArray,f.isArray1D=h.isArray1D,f.ensureArray=h.ensureArray,f.concat=h.concat,f.maxRowLength=h.maxRowLength,f.minRowLength=h.minRowLength;var p=r(435);f.mod=p.mod,f.modHalf=p.modHalf;var g=r(3064);f.valObjectMeta=g.valObjectMeta,f.coerce=g.coerce,f.coerce2=g.coerce2,f.coerceFont=g.coerceFont,f.coercePattern=g.coercePattern,f.coerceHoverinfo=g.coerceHoverinfo,f.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,f.validate=g.validate;var v=r(7555);f.dateTime2ms=v.dateTime2ms,f.isDateTime=v.isDateTime,f.ms2DateTime=v.ms2DateTime,f.ms2DateTimeLocal=v.ms2DateTimeLocal,f.cleanDate=v.cleanDate,f.isJSDate=v.isJSDate,f.formatDate=v.formatDate,f.incrementMonth=v.incrementMonth,f.dateTick0=v.dateTick0,f.dfltRange=v.dfltRange,f.findExactDates=v.findExactDates,f.MIN_MS=v.MIN_MS,f.MAX_MS=v.MAX_MS;var y=r(4952);f.findBin=y.findBin,f.sorterAsc=y.sorterAsc,f.sorterDes=y.sorterDes,f.distinctVals=y.distinctVals,f.roundUp=y.roundUp,f.sort=y.sort,f.findIndexOfMin=y.findIndexOfMin,f.sortObjectKeys=r(2996);var m=r(3084);f.aggNums=m.aggNums,f.len=m.len,f.mean=m.mean,f.median=m.median,f.midRange=m.midRange,f.variance=m.variance,f.stdev=m.stdev,f.interp=m.interp;var x=r(2248);f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=r(1864);f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=r(8308);f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=r(2348);f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var M=r(2880);f.extendFlat=M.extendFlat,f.extendDeep=M.extendDeep,f.extendDeepAll=M.extendDeepAll,f.extendDeepNoArrays=M.extendDeepNoArrays;var T=r(4248);f.log=T.log,f.warn=T.warn,f.error=T.error;var k=r(3756);f.counterRegex=k.counter;var A=r(1200);f.throttle=A.throttle,f.throttleDone=A.done,f.clearThrottle=A.clear;var S=r(2200);function L(e){var t={};for(var r in e)for(var n=e[r],a=0;a<n.length;a++)t[n[a]]=+r;return t}f.getGraphDiv=S.getGraphDiv,f.isPlotDiv=S.isPlotDiv,f.removeElement=S.removeElement,f.addStyleRule=S.addStyleRule,f.addRelatedStyleRule=S.addRelatedStyleRule,f.deleteRelatedStyleRule=S.deleteRelatedStyleRule,f.getFullTransformMatrix=S.getFullTransformMatrix,f.getElementTransformMatrix=S.getElementTransformMatrix,f.getElementAndAncestors=S.getElementAndAncestors,f.equalDomRects=S.equalDomRects,f.clearResponsive=r(5352),f.preserveDrawingBuffer=r(4296),f.makeTraceGroups=r(988),f._=r(8356),f.notifier=r(1792),f.filterUnique=r(8944),f.filterVisible=r(3880),f.pushUnique=r(2416),f.increment=r(1396),f.cleanNumber=r(4037),f.ensureNumber=function(e){return o(e)?(e=Number(e))>s||e<u?c:e:c},f.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&o(e)&&e>=0&&e%1==0},f.noop=r(6628),f.identity=r(5536),f.repeat=function(e,t){for(var r=new Array(t),n=0;n<t;n++)r[n]=e;return r},f.swapAttrs=function(e,t,r,n){r||(r="x"),n||(n="y");for(var a=0;a<t.length;a++){var i=t[a],o=f.nestedProperty(e,i.replace("?",r)),l=f.nestedProperty(e,i.replace("?",n)),s=o.get();o.set(l.get()),l.set(s)}},f.raiseToTop=function(e){e.parentNode.appendChild(e)},f.cancelTransition=function(e){return e.transition().duration(0)},f.constrain=function(e,t,r){return t>r?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},f.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},f.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=t(e[l],r,n,a);return o},f.randstr=function e(t,r,n,a){if(n||(n=16),void 0===r&&(r=24),r<=0)return"0";var i,o,l=Math.log(Math.pow(2,r))/Math.log(n),s="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,r/i))/Math.log(n)*i;var u=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)s=Math.floor(Math.random()*n).toString(n)+s;u&&(o=Math.pow(n,u),s=Math.floor(Math.random()*o).toString(n)+s);var c=parseInt(s,n);return t&&t[s]||c!==1/0&&c>=Math.pow(2,r)?a>10?(f.warn("randstr failed uniqueness"),s):e(t,r,n,(a||0)+1):s},f.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},f.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,a,i,o=e.length,l=2*o,s=2*t-1,u=new Array(s),c=new Array(o);for(r=0;r<s;r++)u[r]=(1-Math.cos(Math.PI*(r+1)/t))/(2*t);for(r=0;r<o;r++){for(i=0,n=0;n<s;n++)(a=r+n+1-t)<-o?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*u[n];c[r]=i}return c},f.syncOrAsync=function(e,t,r){var n;function a(){return f.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a);return r&&r(t)},f.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},f.noneOrAll=function(e,t,r){if(e){var n,a=!1,i=!0;for(n=0;n<r.length;n++)null!=e[r[n]]?a=!0:i=!1;if(a&&!i)for(n=0;n<r.length;n++)e[r[n]]=t[r[n]]}},f.mergeArray=function(e,t,r,n){var a="function"==typeof n;if(f.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][r]=a?n(l):l}},f.mergeArrayCastPositive=function(e,t,r){return f.mergeArray(e,t,r,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},f.fillArray=function(e,t,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][r]=n(e[a])},f.castOption=function(e,t,r,n){n=n||f.identity;var a=f.nestedProperty(e,r).get();return f.isArrayOrTypedArray(a)?Array.isArray(t)&&f.isArrayOrTypedArray(a[t[0]])?n(a[t[0]][t[1]]):n(a[t]):a},f.extractOption=function(e,t,r,n){if(r in e)return e[r];var a=f.nestedProperty(t,n).get();return Array.isArray(a)?void 0:a},f.tagSelected=function(e,t,r){var n,a,i=t.selectedpoints,o=t._indexToPoints;o&&(n=L(o));for(var l=0;l<i.length;l++){var s=i[l];if(f.isIndex(s)||f.isArrayOrTypedArray(s)&&f.isIndex(s[0])&&f.isIndex(s[1])){var u=n?n[s]:s,c=r?r[u]:u;void 0!==(a=c)&&a<e.length&&(e[c].selected=1)}}},f.selIndices2selPoints=function(e){var t=e.selectedpoints,r=e._indexToPoints;if(r){for(var n=L(r),a=[],i=0;i<t.length;i++){var o=t[i];if(f.isIndex(o)){var l=n[o];f.isIndex(l)&&a.push(l)}}return a}return t},f.getTargetArray=function(e,t){var r=t.target;if("string"==typeof r&&r){var n=f.nestedProperty(e,r).get();return!!f.isArrayOrTypedArray(n)&&n}return!!f.isArrayOrTypedArray(r)&&r},f.minExtend=function e(t,r,n){var a={};"object"!=typeof r&&(r={});var i,o,l,s="pieLike"===n?-1:3,u=Object.keys(t);for(i=0;i<u.length;i++)l=t[o=u[i]],"_"!==o.charAt(0)&&"function"!=typeof l&&("module"===o?a[o]=l:Array.isArray(l)?a[o]="colorscale"===o||-1===s?l.slice():l.slice(0,s):f.isTypedArray(l)?a[o]=-1===s?l.subarray():l.subarray(0,s):a[o]=l&&"object"==typeof l?e(t[o],r[o],n):l);for(u=Object.keys(r),i=0;i<u.length;i++)"object"==typeof(l=r[o=u[i]])&&o in a&&"object"==typeof a[o]||(a[o]=l);return a},f.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},f.containsAny=function(e,t){for(var r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))return!0;return!1},f.isIE=function(){return void 0!==window.navigator.msSaveBlob};var D=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return D.test(window.navigator.userAgent)};var C=/iPad|iPhone|iPod/;f.isIOS=function(){return C.test(window.navigator.userAgent)};var P=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var e=P.exec(window.navigator.userAgent);if(e&&2===e.length){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},f.isD3Selection=function(e){return e instanceof n.selection},f.ensureSingle=function(e,t,r,n){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var i=e.append(t);return r&&i.classed(r,!0),n&&i.call(n),i},f.ensureSingleById=function(e,t,r,n){var a=e.select(t+"#"+r);if(a.size())return a;var i=e.append(t).attr("id",r);return n&&i.call(n),i},f.objectFromPath=function(e,t){for(var r,n=e.split("."),a=r={},i=0;i<n.length;i++){var o=n[i],l=null,s=n[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],r=r[o]=[],i===n.length-1?r[l]=t:r[l]={},r=r[l]):(i===n.length-1?r[o]=t:r[o]={},r=r[o])}return a};var O=/^([^\[\.]+)\.(.+)?/,R=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function E(e){return"__"===e.slice(0,2)}f.expandObjectPaths=function(e){var t,r,n,a,i,o,l;if("object"==typeof e&&!Array.isArray(e))for(r in e)if(e.hasOwnProperty(r))if(t=r.match(O)){if(a=e[r],E(n=t[1]))continue;delete e[r],e[n]=f.extendDeepNoArrays(e[n]||{},f.objectFromPath(r,f.expandObjectPaths(a))[n])}else if(t=r.match(R)){if(a=e[r],E(n=t[1]))continue;if(i=parseInt(t[2]),delete e[r],e[n]=e[n]||[],"."===t[3])l=t[4],o=e[n][i]=e[n][i]||{},f.extendDeepNoArrays(o,f.objectFromPath(l,f.expandObjectPaths(a)));else{if(E(n))continue;e[n][i]=f.expandObjectPaths(a)}}else{if(E(r))continue;e[r]=f.expandObjectPaths(e[r])}return e},f.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 n=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;f.templateString=function(e,t){var r={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,n){var a;return I.test(n)?a=t[n]:(r[n]=r[n]||f.nestedProperty(t,n).get,a=r[n]()),f.isValidTextValue(a)?a:""}))};var N={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return H.apply(N,arguments)};var z={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return H.apply(z,arguments)};var F=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,j={max:10,count:0,name:"texttemplate",parseMultDiv:!0};f.texttemplateStringForShapes=function(){return H.apply(j,arguments)};var B=/^[:|\|]/;function H(e,t,r){var n=this,i=arguments;t||(t={});var o={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,l,s){var u="_xother"===l||"_yother"===l,c="_xother_"===l||"_yother_"===l,d="xother_"===l||"yother_"===l,h="xother"===l||"yother"===l||u||d||c,p=l;(u||c)&&(p=p.substring(1)),(d||c)&&(p=p.substring(0,p.length-1));var g,v,y,m=null,x=null;if(n.parseMultDiv){var b=function(e){var t=e.match(F);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}(p);p=b.key,m=b.op,x=b.number}if(h){if(void 0===(g=t[p]))return""}else for(y=3;y<i.length;y++)if(v=i[y]){if(v.hasOwnProperty(p)){g=v[p];break}if(I.test(p)||(g=f.nestedProperty(v,p).get(),(g=o[p]||f.nestedProperty(v,p).get())&&(o[p]=g)),void 0!==g)break}if(void 0!==g&&("*"===m&&(g*=x),"/"===m&&(g/=x)),void 0===g&&n)return n.count<n.max&&(f.warn("Variable '"+p+"' in "+n.name+" could not be found!"),g=e),n.count===n.max&&f.warn("Too many "+n.name+" warnings - additional warnings will be suppressed"),n.count++,e;if(s){var _;if(":"===s[0]&&(_=r?r.numberFormat:f.numberFormat,""!==g&&(g=_(s.replace(B,""))(g))),"|"===s[0]){_=r?r.timeFormat:a;var w=f.dateTime2ms(g);g=f.formatDate(w,s.replace(B,""),!1,_)}}else{var M=p+"Label";t.hasOwnProperty(M)&&(g=t[M])}return h&&(g="("+g+")",(u||c)&&(g=" "+g),(d||c)&&(g+=" ")),g}))}f.subplotSort=function(e,t){for(var r=Math.min(e.length,t.length)+1,n=0,a=0,i=0;i<r;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,u=l>=48&&l<=57;if(s&&(n=10*n+o-48),u&&(a=10*a+l-48),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var G=2e9;f.seedPseudoRandom=function(){G=2e9},f.pseudoRandom=function(){var e=G;return G=(69069*G+1)%4294967296,Math.abs(G-e)<429496729?f.pseudoRandom():G/4294967296},f.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=f.extractOption(e,t,"htx","hovertext");if(f.isValidTextValue(a))return n(a);var i=f.extractOption(e,t,"tx","text");return f.isValidTextValue(i)?n(i):void 0},f.isValidTextValue=function(e){return e||0===e},f.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n<t;n++)-1!==r.indexOf(".")&&(r=(r=r.replace("0%","%")).replace(".%","%"));return r},f.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},f.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},f.strRotate=function(e){return e?"rotate("+e+")":""},f.strScale=function(e){return 1!==e?"scale("+e+")":""},f.getTextTransform=function(e){var t=e.noCenter,r=e.textX,n=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,f.strTranslate(a-u*(r+o),i-u*(n+l))+f.strScale(u)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},f.setTransormAndDisplay=function(e,t){e.attr("transform",f.getTextTransform(t)),e.style("display",t.scale?null:"none")},f.ensureUniformFontSize=function(e,t){var r=f.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},f.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},f.bigFont=function(e){return Math.round(1.2*e)};var Y=f.getFirefoxVersion(),U=null!==Y&&Y<86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},3620:function(e){"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).hasOwnProperty("hasOwnProperty")}},7804:function(e,t,r){"use strict";var n=r(2296),a=/^\w*$/;e.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var u={};t&&t.length?(s=n(e,t),l=s.get()):l=e,t=t||"";var c={};if(l)for(o=0;o<l.length;o++)c[l[o][r]]=o;var f=a.test(i),d={set:function(e,t){var a=null===t?4:0;if(!l){if(!s||4===a)return;l=[],s.set(l)}var o=c[e];if(void 0===o){if(4===a)return;a|=3,o=l.length,c[e]=o}else t!==(f?l[o][i]:n(l[o],i).get())&&(a|=2);var h=l[o]=l[o]||{};return h[r]=e,f?h[i]=t:n(h,i).set(t),null!==t&&(a&=-5),u[o]=u[o]|a,d},get:function(e){if(l){var t=c[e];return void 0===t?void 0:f?l[t][i]:n(l[t],i).get()}},rename:function(e,t){var n=c[e];return void 0===n||(u[n]=1|u[n],c[t]=n,delete c[e],l[n][r]=t),d},remove:function(e){var t=c[e];if(void 0===t)return d;var a=l[t];if(Object.keys(a).length>2)return u[t]=2|u[t],d.set(e,null);if(f){for(o=t;o<l.length;o++)u[o]=3|u[o];for(o=t;o<l.length;o++)c[l[o][r]]--;l.splice(t,1),delete c[e]}else n(a,i).set(null),u[t]=6|u[t];return d},constructUpdate:function(){for(var e,a,o={},s=Object.keys(u),c=0;c<s.length;c++)a=s[c],e=t+"["+a+"]",l[a]?(1&u[a]&&(o[e+"."+r]=l[a][r]),2&u[a]&&(o[e+"."+i]=f?4&u[a]?null:l[a][i]:4&u[a]?null:n(l[a],i).get())):o[e]=null;return o}};return d}},8356:function(e,t,r){"use strict";var n=r(4040);e.exports=function(e,t){for(var r=e._context.locale,a=0;a<2;a++){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=n.localeRegistry}var u=r.split("-")[0];if(u===r)break;r=u}return t}},4248:function(e,t,r){"use strict";var n=r(556).dfltConfig,a=r(1792),i=e.exports={};i.log=function(){var e;if(n.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>1){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"long")}},i.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}},i.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(n.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);a(r.join("<br>"),"stick")}}},988:function(e,t,r){"use strict";var n=r(3428);e.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=n.select(this)})),a}},2248:function(e,t,r){"use strict";var n=r(6524);t.init2dArray=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(t);return r},t.transposeRagged=function(e){var t,r,n=0,a=e.length;for(t=0;t<a;t++)n=Math.max(n,e[t].length);var i=new Array(n);for(t=0;t<n;t++)for(i[t]=new Array(a),r=0;r<a;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 n,a,i=e.length;if(e[0].length)for(n=new Array(i),a=0;a<i;a++)n[a]=t.dot(e[a],r);else if(r[0].length){var o=t.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=t.dot(e,o[a])}else for(n=0,a=0;a<i;a++)n+=e[a]*r[a];return n},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,n){return t.dot(t.dot(t.translationMatrix(r,n),t.rotationMatrix(e)),t.translationMatrix(-r,-n))},t.apply3DTransform=function(e){return function(){var r=arguments,n=1===arguments.length?r[0]:[r[0],r[1],r[2]||0];return t.dot(e,[n[0],n[1],n[2],1]).slice(0,3)}},t.apply2DTransform=function(e){return function(){var r=arguments;3===r.length&&(r=r[0]);var n=1===arguments.length?r[0]:[r[0],r[1]];return t.dot(e,[n[0],n[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 n.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]]]}},435:function(e){"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}}},2296:function(e,t,r){"use strict";var n=r(8248),a=r(8116).isArrayOrTypedArray;function i(e,t){return function(){var r,n,o,l,s,u=e;for(l=0;l<t.length-1;l++){if(-1===(r=t[l])){for(n=!0,o=[],s=0;s<u.length;s++)o[s]=i(u[s],t.slice(l+1))(),o[s]!==o[0]&&(n=!1);return n?o[0]:o}if("number"==typeof r&&!a(u))return;if("object"!=typeof(u=u[r])||null===u)return}if("object"==typeof u&&null!==u&&null!==(o=u[t[l]]))return o}}e.exports=function(e,t){if(n(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";var r,a,o,l,u=t.split(".");for(l=0;l<u.length;l++)if("__"===String(u[l]).slice(0,2))throw"bad property string";for(l=0;l<u.length;){if(r=String(u[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])u[l]=r[1];else{if(0!==l)throw"bad property string";u.splice(0,1)}for(a=r[2].substr(1,r[2].length-2).split("]["),o=0;o<a.length;o++)l++,u.splice(l,0,Number(a[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,u):{set:s(e,u,t),get:i(e,u),astr:t,parts:u,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(n){var i,o,s=e,d="",h=[[e,d]],p=l(n,r);for(o=0;o<t.length-1;o++){if("number"==typeof(i=t[o])&&!a(s))throw"array index but container is not an array";if(-1===i){if(p=!c(s,t.slice(o+1),n,r))break;return}if(!f(s,i,t[o+1],p))break;if("object"!=typeof(s=s[i])||null===s)throw"container is not an object";d=u(d,i),h.push([s,d])}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]]=n}}function u(e,t){var r=t;return n(t)?r="["+t+"]":e&&(r="."+t),e+r}function c(e,t,r,n){var i,o=a(r),u=!0,c=r,d=n.replace("-1",0),h=!o&&l(r,d),p=t[0];for(i=0;i<e.length;i++)d=n.replace("-1",i),o&&(h=l(c=r[i%r.length],d)),h&&(u=!1),f(e,i,p,h)&&s(e[i],t,n.replace("-1",i))(c);return u}function f(e,t,r,n){if(void 0===e[t]){if(n)return!1;e[t]="number"==typeof r?[]:{}}return!0}},6628:function(e){"use strict";e.exports=function(){}},1792:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var r=1e3;a(t)?r=t:"long"===t&&(r=3e3);var o=n.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 a=n.select(this);a.append("button").classed("notifier-close",!0).html("×").on("click",(function(){a.transition().call(l)}));for(var i=a.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?a.transition().duration(350).style("opacity",1):a.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),n.select(this).remove()}))}}},2213:function(e,t,r){"use strict";var n=r(3972),a="data-savedcursor";e.exports=function(e,t){var r=e.attr(a);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(a,l.substr(7)).classed(l,!1)}e.attr(a)||e.attr(a,"!!")}n(e,t)}else r&&(e.attr(a,null),"!!"===r?n(e):n(e,r))}},2065:function(e,t,r){"use strict";var n=r(2248).dot,a=r(9032).BADNUM,i=e.exports={};i.tester=function(e){var t,r=e.slice(),n=r[0][0],i=n,o=r[0][1],l=o;for(r[r.length-1][0]===r[0][0]&&r[r.length-1][1]===r[0][1]||r.push(r[0]),t=1;t<r.length;t++)n=Math.min(n,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,u=!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]&&(u=!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]&&(u=!0,s=function(e){return e[1]===r[0][1]}));var c=!0,f=r[0];for(t=1;t<r.length;t++)if(f[0]!==r[t][0]||f[1]!==r[t][1]){c=!1;break}return{xmin:n,xmax:i,ymin:o,ymax:l,pts:r,contains:u?function(e,t){var r=e[0],u=e[1];return!(r===a||r<n||r>i||u===a||u<o||u>l||t&&s(e))}:function(e,t){var s=e[0],u=e[1];if(s===a||s<n||s>i||u===a||u<o||u>l)return!1;var c,f,d,h,p,g=r.length,v=r[0][0],y=r[0][1],m=0;for(c=1;c<g;c++)if(f=v,d=y,v=r[c][0],y=r[c][1],!(s<(h=Math.min(f,v))||s>Math.max(f,v)||u>Math.max(d,y)))if(u<Math.min(d,y))s!==h&&m++;else{if(u===(p=v===f?u:d+(s-f)*(y-d)/(v-f)))return 1!==c||!t;u<=p&&s!==h&&m++}return m%2==1},isRect:u,degenerate:c}},i.isSegmentBent=function(e,t,r,a){var i,o,l,s=e[t],u=[e[r][0]-s[0],e[r][1]-s[1]],c=n(u,u),f=Math.sqrt(c),d=[-u[1]/f,u[0]/f];for(i=t+1;i<r;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=n(o,u))<0||l>c||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(e,t){var r=[e[0]],n=0,a=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(a+1);for(var u=s+1;u<e.length;u++)(u===e.length-1||i.isSegmentBent(e,s,u+1,t))&&(r.push(e[u]),r.length<l-2&&(n=u,a=r.length-1),s=u)}return e.length>1&&o(e.pop()),{addPt:o,raw:e,filtered:r}}},4296:function(e,t,r){"use strict";var n=r(8248),a=r(5928);e.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;return"undefined"!=typeof navigator&&(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),e}()))return!0;var r=a({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 u=s.substr(8).split(".")[0];if(n(u)&&(u=+u),u>=13)return!0}}return r}},2416:function(e){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;n<e.length;n++)if(e[n]instanceof RegExp&&e[n].toString()===r)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},4552:function(e,t,r){"use strict";var n=r(3400),a=r(556).dfltConfig,i={add:function(e,t,r,n,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(n),o.redo.args.push(i)),e.undoQueue.queue.length>a.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(!(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(!(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++}},plotDo:function(e,t,r){e.autoplay=!0,r=function(e,t){for(var r,a=[],i=0;i<t.length;i++)r=t[i],a[i]=r===e?r:"object"==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return a}(e,r),t.apply(null,r)}};e.exports=i},3756:function(e,t){"use strict";t.counter=function(e,t,r,n){var a=(t||"")+(r?"":"$"),i=!1===n?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}},3193:function(e){"use strict";var t=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,r=/^[^\.\[\]]+$/;e.exports=function(e,n){for(;n;){var a=e.match(t);if(a)e=a[1];else{if(!e.match(r))throw new Error("bad relativeAttr call:"+[e,n]);e=""}if("^"!==n.charAt(0))break;n=n.slice(1)}return e&&"["!==n.charAt(0)?e+"."+n:e+n}},1528:function(e,t,r){"use strict";var n=r(8116).isArrayOrTypedArray,a=r(3620);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(n(o)&&n(l)&&a(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),u=0;u<s;u++)l[u]!==o[u]&&a(o[u])&&a(l[u])&&e(l[u],o[u])}else a(o)&&a(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},4952:function(e,t,r){"use strict";var n=r(8248),a=r(4248),i=r(5536),o=r(9032).BADNUM,l=1e-9;function s(e,t){return e<t}function u(e,t){return e<=t}function c(e,t){return e>t}function f(e,t){return e>=t}t.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var i,o,d=0,h=t.length,p=0,g=h>1?(t[h-1]-t[0])/(h-1):1;for(o=g>=0?r?s:u:r?f:c,e+=g*l*(r?-1:1)*(g>=0?1:-1);d<h&&p++<100;)o(t[i=Math.floor((d+h)/2)],e)?d=i+1:h=i;return p>90&&a.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var r,n=e.slice();for(n.sort(t.sorterAsc),r=n.length-1;r>-1&&n[r]===o;r--);for(var a,i=n[r]-n[0]||1,l=i/(r||1)/1e4,s=[],u=0;u<=r;u++){var c=n[u],f=c-a;void 0===a?(s.push(c),a=c):f>l&&(i=Math.min(i,f),s.push(c),a=c)}return{vals:s,minDiff:i}},t.roundUp=function(e,t,r){for(var n,a=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,u=r?Math.ceil:Math.floor;a<i&&o++<100;)t[n=u((a+i)/2)]<=e?a=n+l:i=n-s;return t[a]},t.sort=function(e,t){for(var r=0,n=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?r=1:i>0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var r,n=1/0,a=0;a<e.length;a++){var o=t(e[a]);o<n&&(n=o,r=a)}return r}},3972:function(e){"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)}},2996:function(e){"use strict";e.exports=function(e){return Object.keys(e).sort()}},3084:function(e,t,r){"use strict";var n=r(8248),a=r(8116).isArrayOrTypedArray;t.aggNums=function(e,r,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),n(r)||(r=!1),a(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++)n(r)?n(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,a){return r||(r=t.len(e)),n(a)||(a=t.mean(e,r)),t.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/r},t.stdev=function(e,r,n){return Math.sqrt(t.variance(e,r,n))},t.median=function(e){var r=e.slice().sort();return t.interp(r,.5)},t.interp=function(e,t){if(!n(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)]}},2736:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=a.strTranslate,o=r(9616),l=r(4284).LINE_SPACING,s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,r,v){var S=e.text(),L=!e.attr("data-notex")&&r&&r._context.typesetMath&&"undefined"!=typeof MathJax&&S.match(s),P=n.select(e.node().parentNode);if(!P.empty()){var O=e.attr("class")?e.attr("class").split(" ")[0]:"text";return O+="-math",P.selectAll("svg."+O).remove(),P.selectAll("g."+O+"-group").remove(),e.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),L?(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,d=parseInt((MathJax.version||"").split(".")[0]);if(2===d||3===d){var h=function(){var r="math-output-"+a.randstr({},64),i=(s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(e.replace(u,"\\lt ").replace(c,"\\gt "))).node();return 2===d?MathJax.Hub.Typeset(i):MathJax.typeset([i])},p=function(){var t=s.select(2===d?".MathJax_SVG":".MathJax"),i=!t.empty()&&s.select("svg").node();if(i){var o,l=i.getBoundingClientRect();o=2===d?n.select("body").select("#MathJax_SVG_glyphs"):t.select("defs"),r(t,o,l)}else a.log("There was an error in the tex syntax.",e),r();s.remove()};2===d?MathJax.Hub.Queue((function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:f},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),h,p,(function(){if("SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)})):3===d&&(o=a.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=f,"svg"!==(i=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then((function(){h(),p(),"svg"!==i&&(MathJax.config.startup.output=i),MathJax.config=o})))}else a.warn("No MathJax version:",MathJax.version)}(L[2],o,(function(n,a,o){P.selectAll("svg."+O).remove(),P.selectAll("g."+O+"-group").remove();var l=n&&n.select("svg");if(!l||!l.node())return R(),void t();var s=P.append("g").classed(O+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});s.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild);var u=o.width,c=o.height;l.attr({class:O,height:c,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var f=e.node().style.fill||"black",d=l.select("g");d.attr({fill:f,stroke:f});var h=d.node().getBoundingClientRect(),p=h.width,g=h.height;(p>u||g>c)&&(l.style("overflow","hidden"),p=(h=l.node().getBoundingClientRect()).width,g=h.height);var y=+e.attr("x"),m=+e.attr("y"),x=-(r||e.node().getBoundingClientRect().height)/4;if("y"===O[0])s.attr({transform:"rotate("+[-90,y,m]+")"+i(-p/2,x-g/2)});else if("l"===O[0])m=x-g/2;else if("a"===O[0]&&0!==O.indexOf("atitle"))y=0,m=x;else{var b=e.attr("text-anchor");y-=p*("middle"===b?.5:"end"===b?1:0),m=m+x-g/2}l.attr({x:y,y:m}),v&&v.call(e,s),t(s)}))}))):R(),e}function R(){P.empty()||(O=e.attr("class")+"-math",P.select("svg."+O).remove()),e.text("").style("white-space","pre");var r=function(e,t){t=t.replace(y," ");var r,i=!1,s=[],u=-1;function c(){u++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:u*l+"em"}),e.appendChild(t),r=t;var a=s;if(s=[{node:t}],a.length>1)for(var i=1;i<a.length;i++)f(a[i])}function f(e){var t,a=e.type,i={};if("a"===a){t="a";var l=e.target,u=e.href,c=e.popup;u&&(i={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":u},c&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+c+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var f=document.createElementNS(o.svg,t);if("sup"===a||"sub"===a){v(r,g),r.appendChild(f);var d=document.createElementNS(o.svg,"tspan");v(d,g),n.select(d).attr("dy",p[a]),i.dy=h[a],r.appendChild(f),r.appendChild(d)}else r.appendChild(f);n.select(f).attr(i),r=e.node=f,s.push(e)}function v(e,t){e.appendChild(document.createTextNode(t))}function S(e){if(1!==s.length){var n=s.pop();e!==n.type&&a.log("Start tag <"+n.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}b.test(t)?c():(r=e,s=[{node:e}]);for(var L=t.split(m),P=0;P<L.length;P++){var O=L[P],R=O.match(x),E=R&&R[2].toLowerCase(),I=d[E];if("br"===E)c();else if(void 0===I)v(r,D(O));else if(R[1])S(E);else{var N=R[4],z={type:E},F=k(N,_);if(F?(F=F.replace(A,"$1 fill:"),I&&(F+=";"+I)):I&&(F=I),F&&(z.style=F),"a"===E){i=!0;var j=k(N,w);if(j){var B=C(j);B&&(z.href=B,z.target=k(N,M)||"_blank",z.popup=k(N,T))}}f(z)}}return i}(e.node(),S);r&&e.style("pointer-events","all"),t.positionText(e),v&&v.call(e)}};var u=/(<|<|<)/g,c=/(>|>|>)/g,f=[["$","$"],["\\(","\\)"]],d={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="",v=["http:","https:","mailto:","",void 0,":"],y=t.NEWLINES=/(\r\n?|\n)/g,m=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&D(n)}var A=/(^|;)\s*color:/;t.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],a=e.split(m),i=[],o="",l=0,s=0;s<a.length;s++){var u=a[s],c=u.match(x),f=c&&c[2].toLowerCase();if(f)-1!==n.indexOf(f)&&(i.push(u),o=f);else{var d=u.length;if(l+d<r)i.push(u),l+=d;else if(l<r){var h=r-l;o&&("br"!==o||h<=3||d<=3)&&i.pop(),r>3?i.push(u.substr(0,h-3)+"..."):i.push(u.substr(0,h));break}o=""}}return i.join("")};var S={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},L=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function D(e){return e.replace(L,(function(e,t){return("#"===t.charAt(0)?function(e){if(!(e>1114111)){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)):S[t])||e}))}function C(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var a=r.protocol,i=n.protocol;return-1!==v.indexOf(a)&&-1!==v.indexOf(i)?t:""}function P(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",u=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return i="bottom"===s?function(){return u.bottom-n.height}:"middle"===s?function(){return u.top+(u.height-n.height)/2}:function(){return u.top},o="right"===l?function(){return u.right-n.width}:"center"===l?function(){return u.left+(u.width-n.width)/2}:function(){return u.left},function(){n=this.node().getBoundingClientRect();var e=o()-c.left,t=i()-c.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.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=D,t.sanitizeHTML=function(e){e=e.replace(y," ");for(var t=document.createElement("p"),r=t,a=[],i=e.split(m),o=0;o<i.length;o++){var l=i[o],s=l.match(x),u=s&&s[2].toLowerCase();if(u in d)if(s[1])a.length&&(r=a.pop());else{var c=s[4],f=k(c,_),h=f?{style:f}:{};if("a"===u){var p=k(c,w);if(p){var g=C(p);if(g){h.href=g;var v=k(c,M);v&&(h.target=v)}}}var b=document.createElement(u);r.appendChild(b),n.select(b).attr(h),r=b,a.push(b)}else r.appendChild(document.createTextNode(D(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=n.select(this);function a(t,r){return void 0===r?null===(r=e.attr(t))&&(e.attr(t,0),r=0):e.attr(t,r),r}var i=a("x",t),o=a("y",r);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))};var O="1px ";t.makeTextShadow=function(e){return O+O+O+e+", -"+O+"-"+O+O+e+", "+O+"-"+O+O+e+", -"+O+O+O+e},t.makeEditable=function(e,t){var r=t.gd,a=t.delegate,i=n.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){var a,l,u,c,f;a=n.select(r).select(".svg-container"),l=a.append("div"),u=e.node().style,c=parseFloat(u.fontSize||12),void 0===(f=t.text)&&(f=e.attr("data-unformatted")),l.classed("plugin-editable editable",!0).style({position:"absolute","font-family":u.fontFamily||"Arial","font-size":c,color:t.fill||u.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(f).call(P(e,a,t)).on("blur",(function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=n.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;r._editing=!0,n.select(document).on("mouseup",(function(){if(n.event.target===e)return!1;document.activeElement===l.node()&&l.node().blur()}))})).on("keyup",(function(){27===n.event.which?(r._editing=!1,e.style({opacity:1}),n.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),n.select(this).call(P(e,a,t)))})).on("keydown",(function(){13===n.event.which&&this.blur()})).call(s),e.style({opacity:0});var d,h=o.attr("class");(d=h?"."+h.split(" ")[0]+"-math-group":"[class*=-math-group]")&&n.select(e.node().parentNode).select(d).style({opacity:0})}function s(e){var t=e.node(),r=document.createRange();r.selectNodeContents(t);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),t.focus()}return t.immediate?l():o.on("click",l),n.rebind(e,i,"on")}},1200:function(e,t){"use strict";var r={};function n(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,a){var i=r[e],o=Date.now();if(!i){for(var l in r)r[l].ts<o-6e4&&delete r[l];i=r[e]={ts:0,timer:null}}function s(){a(),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=r[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(r[e]),delete r[e];else for(var a in r)t.clear(a)}},6896:function(e,t,r){"use strict";var n=r(8248);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 n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},9972:function(e,t,r){"use strict";var n=e.exports={},a=r(9552).locationmodeToLayer,i=r(5712).NO;n.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},n.getTopojsonPath=function(e,t){return e+t+".json"},n.getTopojsonFeatures=function(e,t){var r=a[e.locationmode],n=t.objects[r];return i(t,n).features}},1680:function(e){"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"}}},6580:function(e){"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"}}},9820:function(e,t,r){"use strict";var n=r(4040);e.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.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=a[a.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:""}}},7824:function(e,t,r){"use strict";var n=r(2880).extendFlat,a=r(3620),i={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},o={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},l=i.flags.slice().concat(["fullReplot"]),s=o.flags.slice().concat("layoutReplot");function u(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!1;return t}function c(e,t,r){var i=n({},e);for(var o in i){var l=i[o];a(l)&&(i[o]=f(l,t,0,o))}return"from-root"===r&&(i.editType=t),i}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)}return i}return c(e,t,"_"===a.charAt(0)?"nested":"from-root")}e.exports={traces:i,layout:o,traceFlags:function(){return u(l)},layoutFlags:function(){return u(s)},update:function(e,t){var r=t.editType;if(r&&"none"!==r)for(var n=r.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:c}},3404:function(e,t,r){"use strict";var n=r(8248),a=r(1784),i=r(4040),o=r(3400),l=r(7316),s=r(9811),u=r(6308),c=s.cleanId,f=s.getFromTrace,d=i.traceIs;function h(e,t){var r=e[t],n=t.charAt(0);r&&"paper"!==r&&(e[t]=c(r,n,!0))}function p(e){function t(t,r){var n=e[t],a=e.title&&e.title[r];n&&!a&&(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 v(e,t,r,n){if(r&&!n)return e;if(n&&!r)return t;if(!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.substr(0,a).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 m(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,n;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,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(r=0;r<g.length;r++){var v=g[r];if(i&&i.test(v)){var y=e[v];y.anchor&&"free"!==y.anchor&&(y.anchor=c(y.anchor)),y.overlaying&&(y.overlaying=c(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"),y.insiderange&&delete y.range,delete y.islog,delete y.isdate,delete y.categories,m(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(v))p(e[v].radialaxis);else if(f&&f.test(v)){var x=e[v];p(x.aaxis),p(x.baxis),p(x.caxis)}else if(d&&d.test(v)){var b=e[v],_=b.cameraposition;if(Array.isArray(_)&&4===_[0].length){var w=_[0],M=_[1],T=_[2],k=a([],w),A=[];for(n=0;n<3;++n)A[n]=M[n]+T*k[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:M[0],y:M[1],z:M[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 D=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<D;r++){var C=e.shapes[r];o.isPlainObject(C)&&(h(C,"xref"),h(C,"yref"))}var P=Array.isArray(e.images)?e.images.length:0;for(r=0;r<P;r++){var O=e.images[r];o.isPlainObject(O)&&(h(O,"xref"),h(O,"yref"))}var R=e.legend;return R&&(R.x>3?(R.x=1.02,R.xanchor="left"):R.x<-2&&(R.x=-.02,R.xanchor="right"),R.y>3?(R.y=1.02,R.yanchor="bottom"):R.y<-2&&(R.y=-.02,R.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),u.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 n,a=e[r];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=u.defaults,f=a.error_y.color||(d(a,"bar")?u.defaultLine:s[r%s.length]);a.error_y.color=u.addOpacity(u.rgb(f),u.opacity(f)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!d(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",t.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&t.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=c(a.xaxis,"x")),a.yaxis&&(a.yaxis=c(a.yaxis,"y")),d(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!d(a,"pie-like")&&!d(a,"bar-like"))if(Array.isArray(a.textposition))for(n=0;n<a.textposition.length;n++)a.textposition[n]=y(a.textposition[n]);else a.textposition&&(a.textposition=y(a.textposition));var h=i.getModule(a);if(h&&h.colorbar){var x=h.colorbar.container,b=x?a[x]:a;b&&b.colorscale&&("YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd"))}if("surface"===a.type&&o.isPlainObject(a.contours)){var _=["x","y","z"];for(n=0;n<_.length;n++){var w=a.contours[_[n]];o.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var M=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,k=g(a.increasing),A=g(a.decreasing);if(!1!==k&&!1!==A){var S=v(k,A,M,T);S&&(a.name=S)}else!k&&!A||a.name||(a.name=k||A)}if(Array.isArray(a.transforms)){var L=a.transforms;for(n=0;n<L.length;n++){var D=L[n];if(o.isPlainObject(D))switch(D.type){case"filter":D.filtersrc&&(D.target=D.filtersrc,delete D.filtersrc),D.calendar&&(D.valuecalendar||(D.valuecalendar=D.calendar),delete D.calendar);break;case"groupby":if(D.styles=D.styles||D.style,D.styles&&!Array.isArray(D.styles)){var C=D.styles,P=Object.keys(C);D.styles=[];for(var O=0;O<P.length;O++)D.styles.push({target:P[O],value:C[P[O]]})}}}}m(a,"line")&&delete a.line,"marker"in a&&(m(a.marker,"line")&&delete a.marker.line,m(a,"marker")&&delete a.marker),u.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),p(a),a.colorbar&&p(a.colorbar),a.marker&&a.marker.colorbar&&p(a.marker.colorbar),a.line&&a.line.colorbar&&p(a.line.colorbar),a.aaxis&&p(a.aaxis),a.baxis&&p(a.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,n="copy_ystyle"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(e,["error_?.copy_ystyle"]),n&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},t.coerceTraceIndices=function(e,t){if(n(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=[],a=0;a<t.length;a++)o.isIndex(t[a],e.data.length)?r.push(t[a]):o.warn("trace index (",t[a],") is not a number or is out of bounds");return r}return t},t.manageArrayContainers=function(e,t,r){var a=e.obj,i=e.parts,l=i.length,s=i[l-1],u=n(s);if(u&&null===t){var c=i.slice(0,l-1).join(".");o.nestedProperty(a,c).get().splice(s,1)}else u&&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 n=0;n<t.length;n++)for(var a=e._fullData[n],i=0;i<3;i++){var l=f(e,a,_[i]);if(l&&"log"!==l.type){var s=l._name,u=l._id.substr(1);if("scene"===u.substr(0,5)){if(void 0!==r[u])continue;s=u+"."+s}var c=s+".type";void 0===r[s]&&void 0===r[c]&&o.nestedProperty(e.layout,c).set(null)}}}},2448:function(e,t,r){"use strict";var n=r(6424);t._doPlot=n._doPlot,t.newPlot=n.newPlot,t.restyle=n.restyle,t.relayout=n.relayout,t.redraw=n.redraw,t.update=n.update,t._guiRestyle=n._guiRestyle,t._guiRelayout=n._guiRelayout,t._guiUpdate=n._guiUpdate,t._storeDirectGUIEdit=n._storeDirectGUIEdit,t.react=n.react,t.extendTraces=n.extendTraces,t.prependTraces=n.prependTraces,t.addTraces=n.addTraces,t.deleteTraces=n.deleteTraces,t.moveTraces=n.moveTraces,t.purge=n.purge,t.addFrames=n.addFrames,t.deleteFrames=n.deleteFrames,t.animate=n.animate,t.setPlotConfig=n.setPlotConfig;var a=r(2200).getGraphDiv,i=r(4016).eraseActiveShape;t.deleteActiveShape=function(e){return i(a(e))},t.toImage=r(7024),t.validate=r(1480),t.downloadImage=r(7412);var o=r(4828);t.makeTemplate=o.makeTemplate,t.validateTemplate=o.validateTemplate},7680:function(e,t,r){"use strict";var n=r(3620),a=r(6628),i=r(4248),o=r(4952).sorterAsc,l=r(4040);t.containerArrayMatch=r(9820);var s=t.isAddVal=function(e){return"add"===e||n(e)},u=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,r,n,c){var f=t.astr,d=l.getComponentMethod(f,"supplyLayoutDefaults"),h=l.getComponentMethod(f,"draw"),p=l.getComponentMethod(f,"drawOne"),g=n.replot||n.recalc||d===a||h===a,v=e.layout,y=e._fullLayout;if(r[""]){Object.keys(r).length>1&&i.warn("Full array edits are incompatible with other edits",f);var m=r[""][""];if(u(m))t.set(null);else{if(!Array.isArray(m))return i.warn("Unrecognized full array edit value",f,m),!0;t.set(m)}return!g&&(d(v,y),h(e),!0)}var x,b,_,w,M,T,k,A,S=Object.keys(r).map(Number).sort(o),L=t.get(),D=L||[],C=c(y,f).get(),P=[],O=-1,R=D.length;for(x=0;x<S.length;x++)if(w=r[_=S[x]],M=Object.keys(w),T=w[""],k=s(T),_<0||_>D.length-(k?0:1))i.warn("index out of range",f,_);else if(void 0!==T)M.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),u(T)?P.push(_):k?("add"===T&&(T={}),D.splice(_,0,T),C&&C.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,T),-1===O&&(O=_);else for(b=0;b<M.length;b++)A=f+"["+_+"].",c(D[_],M[b],A).set(w[M[b]]);for(x=P.length-1;x>=0;x--)D.splice(P[x],1),C&&C.splice(P[x],1);if(D.length?L||t.set(D):t.set(null),g)return!1;if(d(v,y),p!==a){var E;if(-1===O)E=S;else{for(R=Math.max(D.length,R),E=[],x=0;x<S.length&&!((_=S[x])>=O);x++)E.push(_);for(x=O;x<R;x++)E.push(x)}for(x=0;x<E.length;x++)p(e,E[x])}else h(e);return!0}},6424:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(2264),o=r(3400),l=o.nestedProperty,s=r(5924),u=r(4552),c=r(4040),f=r(3060),d=r(7316),h=r(4460),p=r(6312),g=r(4724),v=r(3616),y=r(6308),m=r(2464).initInteractions,x=r(9616),b=r(2676).clearOutline,_=r(556).dfltConfig,w=r(7680),M=r(3404),T=r(9172),k=r(7824),A=r(3816).AX_NAME_PATTERN,S=0;function L(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function D(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){o.error(e)}}function C(e,t){D(e,y.combine(t,"white"))}function P(e,t){if(!e._context){e._context=o.extendDeep({},_);var r=n.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,u=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)"editable"!==(s=l[a])&&"edits"!==s&&s in u&&("setBackground"===s&&"opaque"===t[s]?u[s]=C:u[s]=t[s]);t.plot3dPixelRatio&&!u.plotGlPixelRatio&&(u.plotGlPixelRatio=u.plot3dPixelRatio);var c=t.editable;if(void 0!==c)for(u.editable=c,l=Object.keys(u.edits),a=0;a<l.length;a++)u.edits[l[a]]=c;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)(s=l[a])in u.edits&&(u.edits[s]=t.edits[s]);u._exportedPlot=t._exportedPlot}u.staticPlot&&(u.editable=!1,u.edits={},u.autosizable=!1,u.scrollZoom=!1,u.doubleClick=!1,u.showTips=!1,u.showLink=!1,u.displayModeBar=!1),"hover"!==u.displayModeBar||i||(u.displayModeBar=!0),"transparent"!==u.setBackground&&"function"==typeof u.setBackground||(u.setBackground=D),u._hasZeroHeight=u._hasZeroHeight||0===e.clientHeight,u._hasZeroWidth=u._hasZeroWidth||0===e.clientWidth;var f=u.scrollZoom,d=u._scrollZoom={};if(!0===f)d.cartesian=1,d.gl3d=1,d.geo=1,d.mapbox=1;else if("string"==typeof f){var h=f.split("+");for(a=0;a<h.length;a++)d[h[a]]=1}else!1!==f&&(d.gl3d=1,d.geo=1,d.mapbox=1)}function O(e,t){var r,n,a=t+1,i=[];for(r=0;r<e.length;r++)(n=e[r])<0?i.push(a+n):i.push(n);return i}function R(e,t,r){var n,a;for(n=0;n<t.length;n++){if((a=t[n])!==parseInt(a,10))throw new Error("all values in "+r+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,n+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function E(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]),R(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&R(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function I(e,t,r,n,i){!function(e,t,r,n){var a=o.isPlainObject(n);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 R(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(a&&(!(i in n)||!Array.isArray(n[i])||n[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,n);for(var s=function(e,t,r,n){var i,s,u,c,f,d=o.isPlainObject(n),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=(u=l(i,p)).get(),c=t[p][g],!o.isArrayOrTypedArray(c))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!==c.constructor)throw new Error("cannot extend array with an array of a different type: "+p);f=d?n[p][g]:n,a(f)||(f=-1),h.push({prop:u,target:s,insert:c,maxp:Math.floor(f)})}return h}(e,t,r,n),u={},c={},f=0;f<s.length;f++){var d=s[f].prop,h=s[f].maxp,p=i(s[f].target,s[f].insert,h);d.set(p[0]),Array.isArray(u[d.astr])||(u[d.astr]=[]),u[d.astr].push(p[1]),Array.isArray(c[d.astr])||(c[d.astr]=[]),c[d.astr].push(s[f].target.length)}return{update:u,maxPoints:c}}function N(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}function z(e,r,n,a){e=o.getGraphDiv(e),M.clearPromiseQueue(e);var i={};if("string"==typeof r)i[r]=n;else{if(!o.isPlainObject(r))return o.warn("Restyle fail.",r,n,a),Promise.reject();i=o.extendFlat({},r),void 0===a&&(a=n)}Object.keys(i).length&&(e.changed=!0);var l=M.coerceTraceIndices(e,a),s=H(e,i,l),c=s.flags;c.calc&&(e.calcdata=void 0),c.clearAxisTypes&&M.clearAxisTypes(e,l,{});var f=[];c.fullReplot?f.push(t._doPlot):(f.push(d.previousPromises),d.supplyDefaults(e),c.markerSize&&(d.doCalcdata(e),q(f)),c.style&&f.push(T.doTraceStyle),c.colorbars&&f.push(T.doColorBars),f.push(L)),f.push(d.rehover,d.redrag,d.reselect),u.add(e,z,[e,s.undoit,s.traces],z,[e,s.redoit,s.traces]);var h=o.syncOrAsync(f,e);return h&&h.then||(h=Promise.resolve()),h.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function F(e){return void 0===e?null:e}function j(e,t){return t?function(t,r,n){var a=l(t,r),i=a.set;return a.set=function(t){B((n||"")+r,a.get(),t,e),i(t)},a}:l}function B(e,t,r,n){if(Array.isArray(t)||Array.isArray(r))for(var a=Array.isArray(t)?t:[],i=Array.isArray(r)?r:[],l=Math.max(a.length,i.length),s=0;s<l;s++)B(e+"["+s+"]",a[s],i[s],n);else if(o.isPlainObject(t)||o.isPlainObject(r)){var u=o.isPlainObject(t)?t:{},c=o.isPlainObject(r)?r:{},f=o.extendFlat({},u,c);for(var d in f)B(e+"."+d,u[d],c[d],n)}else void 0===n[e]&&(n[e]=F(t))}function H(e,t,r){var n,a=e._fullLayout,i=e._fullData,s=e.data,u=a._guiEditing,p=j(a._preGUI,u),g=o.extendDeepAll({},t);G(t);var v,y=k.traceFlags(),m={},x={};function b(){return r.map((function(){}))}function _(e){var t=h.id2name(e);-1===v.indexOf(t)&&v.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function A(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function S(n,i,o){if(Array.isArray(n))n.forEach((function(e){S(e,i,o)}));else if(!(n in t)&&!M.hasParent(t,n)){var l;if("LAYOUT"===n.substr(0,6))l=p(e.layout,n.replace("LAYOUT",""));else{var c=r[o];l=j(a._tracePreGUI[A(c)._fullInput.uid],u)(s[c],n)}n in x||(x[n]=b()),void 0===x[n][o]&&(x[n][o]=F(l.get())),void 0!==i&&l.set(i)}}function L(e){return function(t){return i[t][e]}}function D(e){return function(t,n){return!1===t?i[r[n]][e]:null}}for(var C in t){if(M.hasParent(t,C))throw new Error("cannot set "+C+" and a parent attribute simultaneously");var P,O,R,E,I,N,z=t[C];if("autobinx"!==C&&"autobiny"!==C||(C=C.charAt(C.length-1)+"bins",z=Array.isArray(z)?z.map(D(C)):!1===z?r.map(L(C)):null),m[C]=z,"LAYOUT"!==C.substr(0,6)){for(x[C]=b(),n=0;n<r.length;n++)if(P=s[r[n]],O=A(r[n]),E=(R=j(a._tracePreGUI[O._fullInput.uid],u)(P,C)).get(),void 0!==(I=Array.isArray(z)?z[n%z.length]:z)){var B=R.parts[R.parts.length-1],H=C.substr(0,C.length-B.length-1),Y=H?H+".":"",U=H?l(O,H).get():O;if((N=f.getTraceValObject(O,R.parts))&&N.impliedEdits&&null!==I)for(var q in N.impliedEdits)S(o.relativeAttr(C,q),N.impliedEdits[q],n);else if("thicknessmode"!==B&&"lenmode"!==B||E===I||"fraction"!==I&&"pixels"!==I||!U){if("type"===C&&("pie"===I!=("pie"===E)||"funnelarea"===I!=("funnelarea"===E))){var V="x",W="y";"bar"!==I&&"bar"!==E||"h"!==P.orientation||(V="y",W="x"),o.swapAttrs(P,["?","?src"],"labels",V),o.swapAttrs(P,["d?","?0"],"label",V),o.swapAttrs(P,["?","?src"],"values",W),"pie"===E||"funnelarea"===E?(l(P,"marker.color").set(l(P,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):c.traceIs(P,"cartesian")&&l(P,"marker.colors").set(l(P,"marker.color").get())}}else{var Z=a._size,J=U.orient,X="top"===J||"bottom"===J;if("thicknessmode"===B){var $=X?Z.h:Z.w;S(Y+"thickness",U.thickness*("fraction"===I?1/$:$),n)}else{var K=X?Z.w:Z.h;S(Y+"len",U.len*("fraction"===I?1/K:K),n)}}if(x[C][n]=F(E),-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(C)){if("orientation"===C){R.set(I);var Q=P.x&&!P.y?"h":"v";if((R.get()||Q)===O.orientation)continue}else"orientationaxes"===C&&(P.orientation={v:"h",h:"v"}[O.orientation]);M.swapXYData(P),y.calc=y.clearAxisTypes=!0}else-1!==d.dataArrayContainers.indexOf(R.parts[0])?(M.manageArrayContainers(R,I,x),y.calc=!0):(N?N.arrayOk&&!c.traceIs(O,"regl")&&(o.isArrayOrTypedArray(I)||o.isArrayOrTypedArray(E))?y.calc=!0:k.update(y,N):y.calc=!0,R.set(I))}if(-1!==["swapxyaxes","orientationaxes"].indexOf(C)&&h.swap(e,r),"orientationaxes"===C){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(C)){for(v=[],n=0;n<r.length;n++){var re=s[r[n]];c.traceIs(re,"cartesian")&&(_(re.xaxis||"x"),_(re.yaxis||"y"))}S(v.map(w),!0,0),S(v.map(T),[0,1],0)}}else R=p(e.layout,C.replace("LAYOUT","")),x[C]=[F(R.get())],R.set(Array.isArray(z)?z[0]:z),y.calc=!0}return(y.calc||y.plot)&&(y.fullReplot=!0),{flags:y,undoit:x,redoit:m,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function G(e){var t,r,n,a=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)r=l[t],n=e[r],"title"!==r&&!a.test(r)&&!i.test(r)||"string"!=typeof n&&"number"!=typeof n?r.indexOf("titlefont")>-1&&-1===r.indexOf("grouptitlefont")?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 Y(e,t,r){e=o.getGraphDiv(e),M.clearPromiseQueue(e);var n={};if("string"==typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=J(e,n),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(n).length&&(U(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&q(l,a.rangesAltered),i.ticks&&l.push(T.doTicksRelayout),i.modebar&&l.push(T.doModeBar),i.camera&&l.push(T.doCamera),i.colorbars&&l.push(T.doColorBars),l.push(L)),l.push(d.rehover,d.redrag,d.reselect),u.add(e,Y,[e,a.undoit],Y,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function U(e,t,r){var n,a,i=e._fullLayout;if(!t.axrange)return!1;for(var l in t)if("axrange"!==l&&t[l])return!1;var s=function(e,t){return o.coerce(n,a,g,e,t)},u={};for(var c in r.rangesAltered){var f=h.id2name(c);if(n=e.layout[f],a=i[f],p(n,a,s,u),a._matchGroup)for(var d in a._matchGroup)if(d!==c){var v=i[h.id2name(d)];v.autorange=a.autorange,v.range=a.range.slice(),v._input.range=a.range.slice()}}return!0}function q(e,t){var r=t?function(e){var r=[];for(var n in t){var a=h.getFromId(e,n);if(r.push(n),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&r.push(a._anchorAxis._id),a._matchGroup)for(var i in a._matchGroup)t[i]||r.push(i)}return h.draw(e,r,{skipTitle:!0})}:function(e){return h.draw(e,"redraw")};e.push(b,T.doAutoRangeAndConstraints,r,T.drawData,T.finalDraw)}var V=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Z=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function J(e,t){var r,n,a,i=e.layout,s=e._fullLayout,u=s._guiEditing,d=j(s._preGUI,u),p=Object.keys(t),g=h.list(e),v=o.extendDeepAll({},t),y={};for(G(t),p=Object.keys(t),n=0;n<p.length;n++)if(0===p[n].indexOf("allaxes")){for(a=0;a<g.length;a++){var m=g[a]._id.substr(1),x=-1!==m.indexOf("scene")?m+".":"",b=p[n].replace("allaxes",x+g[a]._name);t[b]||(t[b]=t[p[n]])}delete t[p[n]]}var _=k.layoutFlags(),T={},S={};function L(e,r){if(Array.isArray(e))e.forEach((function(e){L(e,r)}));else if(!(e in t)&&!M.hasParent(t,e)){var n=d(i,e);e in S||(S[e]=F(n.get())),void 0!==r&&n.set(r)}}var D,C={};function P(e){var t=h.name2id(e.split(".")[0]);return C[t]=1,t}for(var O in t){if(M.hasParent(t,O))throw new Error("cannot set "+O+" and a parent attribute simultaneously");for(var R=d(i,O),E=t[O],I=R.parts.length-1;I>0&&"string"!=typeof R.parts[I];)I--;var N=R.parts[I],z=R.parts[I-1]+"."+N,B=R.parts.slice(0,I).join("."),H=l(e.layout,B).get(),Y=l(s,B).get(),U=R.get();if(void 0!==E){T[O]=E,S[O]="reverse"===N?E:F(U);var q=f.getLayoutValObject(s,R.parts);if(q&&q.impliedEdits&&null!==E)for(var J in q.impliedEdits)L(o.relativeAttr(O,J),q.impliedEdits[J]);if(-1!==["width","height"].indexOf(O))if(E){L("autosize",null);var $="height"===O?"width":"height";L($,s[$])}else s[O]=e._initialAutoSize[O];else if("autosize"===O)L("width",E?null:s.width),L("height",E?null:s.height);else if(z.match(V))P(z),l(s,B+"._inputRange").set(null);else if(z.match(W)){P(z),l(s,B+"._inputRange").set(null);var K=l(s,B).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else z.match(Z)&&l(s,B+"._inputDomain").set(null);if("type"===N){D=H;var Q="linear"===Y.type&&"log"===E,ee="log"===Y.type&&"linear"===E;if(Q||ee){if(D&&D.range)if(Y.autorange)Q&&(D.range=D.range[1]>D.range[0]?[1,2]:[2,1]);else{var te=D.range[0],re=D.range[1];Q?(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[R.parts[0]]&&"radialaxis"===R.parts[1]&&delete s[R.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,Y,E,L),c.getComponentMethod("images","convertCoords")(e,Y,E,L)}else L(B+".autorange",!0),L(B+".range",null);l(s,B+"._inputRange").set(null)}else if(N.match(A)){var ne=l(s,O).get(),ae=(E||{}).type;ae&&"-"!==ae||(ae="linear"),c.getComponentMethod("annotations","convertCoords")(e,ne,ae,L),c.getComponentMethod("images","convertCoords")(e,ne,ae,L)}var ie=w.containerArrayMatch(O);if(ie){r=ie.array,n=ie.index;var oe=ie.property,le=q||{editType:"calc"};""!==n&&""===oe&&(w.isAddVal(E)?S[O]=null:w.isRemoveVal(E)?S[O]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",t)),k.update(_,le),y[r]||(y[r]={});var se=y[r][n];se||(se=y[r][n]={}),se[oe]=E,delete t[O]}else"reverse"===N?(H.range?H.range.reverse():(L(B+".autorange",!0),H.range=[1,0]),Y.autorange?_.calc=!0:_.plot=!0):("dragmode"===O&&(!1===E&&!1!==U||!1!==E&&!1===U)||s._has("scatter-like")&&s._has("regl")&&"dragmode"===O&&("lasso"===E||"select"===E)&&"lasso"!==U&&"select"!==U||s._has("gl2d")?_.plot=!0:q?k.update(_,q):_.calc=!0,R.set(E))}}for(r in y)w.applyContainerArrayChanges(e,d(i,r),y[r],_,d)||(_.plot=!0);for(var ue in C){var ce=(D=h.getFromId(e,ue))&&D._constraintGroup;if(ce)for(var fe in _.calc=!0,ce)C[fe]||(h.getFromId(e,fe)._constraintShrinkable=!0)}(X(e)||t.height||t.width)&&(_.plot=!0);var de=s.shapes;for(n=0;n<de.length;n++)if(de[n].showlegend){_.calc=!0;break}return(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:C,undoit:S,redoit:T,eventData:v}}function X(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function $(e,r,n,a){e=o.getGraphDiv(e),M.clearPromiseQueue(e),o.isPlainObject(r)||(r={}),o.isPlainObject(n)||(n={}),Object.keys(r).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var i=M.coerceTraceIndices(e,a),l=H(e,o.extendFlat({},r),i),s=l.flags,c=J(e,o.extendFlat({},n)),f=c.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&M.clearAxisTypes(e,i,n);var h=[];f.layoutReplot?h.push(T.layoutReplot):s.fullReplot?h.push(t._doPlot):(h.push(d.previousPromises),U(e,f,c)||d.supplyDefaults(e),s.style&&h.push(T.doTraceStyle),(s.colorbars||f.colorbars)&&h.push(T.doColorBars),f.legend&&h.push(T.doLegend),f.layoutstyle&&h.push(T.layoutStyles),f.axrange&&q(h,c.rangesAltered),f.ticks&&h.push(T.doTicksRelayout),f.modebar&&h.push(T.doModeBar),f.camera&&h.push(T.doCamera),h.push(L)),h.push(d.rehover,d.redrag,d.reselect),u.add(e,$,[e,l.undoit,c.undoit,l.traces],$,[e,l.redoit,c.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:c.eventData}),e}))}function K(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var Q=[{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 n=t[r],a=e.match(n.pattern);if(a){var i=a[1]||"";return{head:i,tail:e.substr(i.length+1),attr:n.attr}}}}function re(e,t){var r=l(t,e).get();if(void 0!==r)return r;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),void 0!==(r=l(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function ne(e,t){for(var r=0;r<t.length;r++)if(t[r]._fullInput.uid===e)return r;return-1}function ae(e,t,r){for(var n=0;n<t.length;n++)if(t[n].uid===e)return n;return!t[r]||t[r].uid?-1:r}function ie(e,t){var r=o.isPlainObject(e),n=Array.isArray(e);return r||n?(r&&o.isPlainObject(t)||n&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function oe(e,t,r,n){var a,i,s,u=n.getValObject,c=n.flags,f=n.immutable,d=n.inArray,h=n.arrayIndex;function p(){var e=a.editType;d&&-1!==e.indexOf("arraydraw")?o.pushUnique(c.arrays[d],h):(k.update(c,a),"none"!==e&&c.nChanges++,n.transition&&a.anim&&c.nChangesAnim++,(V.test(s)||W.test(s))&&(c.rangesAltered[r[0]]=1),Z.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(c.newDataRevision=1))}function g(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(c.calc&&!n.transition)return;var v=e[i],y=t[i],m=r.concat(i);if(s=m.join("."),"_"!==i.charAt(0)&&"function"!=typeof v&&v!==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)&&(a=u(m))&&(!a._compareAsJSON||JSON.stringify(v)!==JSON.stringify(y))){var b,_=a.valType,w=g(a),M=Array.isArray(v),T=Array.isArray(y);if(M&&T){var A="_input_"+i,S=e[A],L=t[A];if(Array.isArray(S)&&S===L)continue}if(void 0===y)w&&M?c.calc=!0:p();else if(a._isLinkedToArray){var D=[],C=!1;d||(c.arrays[i]=D);var P=Math.min(v.length,y.length),O=Math.max(v.length,y.length);if(P!==O){if("arraydraw"!==a.editType){p();continue}C=!0}for(b=0;b<P;b++)oe(v[b],y[b],m.concat(b),o.extendFlat({inArray:i,arrayIndex:b},n));if(C)for(b=P;b<O;b++)D.push(b)}else!_&&o.isPlainObject(v)?oe(v,y,m,n):w?M&&T?(f&&(c.calc=!0),(f||n.newDataRevision)&&p()):M!==T?c.calc=!0:p():M&&T&&v.length===y.length&&String(v)===String(y)||p()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!=typeof t[i]){if(g(a=u(r.concat(i)))&&Array.isArray(t[i]))return void(c.calc=!0);p()}}function le(e,t){var r;for(r in e)if("_"!==r.charAt(0)){var n=e[r],a=t[r];if(n!==a)if(o.isPlainObject(n)&&o.isPlainObject(a)){if(le(n,a))return!0}else{if(!Array.isArray(n)||!Array.isArray(a))return!0;if(n.length!==a.length)return!0;for(var i=0;i<n.length;i++)if(n[i]!==a[i]){if(!o.isPlainObject(n[i])||!o.isPlainObject(a[i]))return!0;if(le(n[i],a[i]))return!0}}}}function se(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!o.equalDomRects(r,t._lastBBox)){var n=t._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}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 n=e._transitionData;n._frameQueue||(n._frameQueue=[]);var a=(r=d.supplyAnimationDefaults(r)).transition,i=r.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function u(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(i,c){function f(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var t=function(){n._animationRaf=window.requestAnimationFrame(t),Date.now()-n._lastFrameAt>n._timeToNext&&function(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,M.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(n._animationRaf),n._animationRaf=null}()};t()}var h,p,g=0;function v(e){return Array.isArray(a)?g>=a.length?e.transitionOpts=a[g]:e.transitionOpts=a[0]:e.transitionOpts=a,g++,e}var y=[],m=null==t,x=Array.isArray(t);if(m||x||!o.isPlainObject(t)){if(m||-1!==["string","number"].indexOf(typeof t))for(h=0;h<n._frames.length;h++)(p=n._frames[h])&&(m||String(p.group)===String(t))&&y.push({type:"byname",name:String(p.name),data:v({name:p.name})});else if(x)for(h=0;h<t.length;h++){var b=t[h];-1!==["number","string"].indexOf(typeof b)?(b=String(b),y.push({type:"byname",name:b,data:v({name:b})})):o.isPlainObject(b)&&y.push({type:"object",data:v(o.extendFlat({},b))})}}else y.push({type:"object",data:v(o.extendFlat({},t))});for(h=0;h<y.length;h++)if("byname"===(p=y[h]).type&&!n._frameHash[p.data.name])return o.warn('animate failure: frame not found: "'+p.data.name+'"'),void c();-1!==["next","immediate"].indexOf(r.mode)&&function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var t=n._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===r.direction&&y.reverse();var _=e._fullLayout._currentFrame;if(_&&r.fromcurrent){var w=-1;for(h=0;h<y.length;h++)if("byname"===(p=y[h]).type&&p.name===_){w=h;break}if(w>0&&w<y.length-1){var T=[];for(h=0;h<y.length;h++)p=y[h],("byname"!==y[h].type||h>w)&&T.push(p);y=T}}y.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var o;o="byname"===t[a].type?d.computeFrame(e,t[a].name):t[a].data;var h=s(a),p=l(a);p.duration=Math.min(p.duration,h.duration);var g={frame:o,name:t[a].name,frameOpts:h,transitionOpts:p};a===t.length-1&&(g.onComplete=u(i,2),g.onInterrupt=c),n._frameQueue.push(g)}"immediate"===r.mode&&(n._lastFrameAt=-1/0),n._animationRaf||f()}}(y):(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 n,a,i,l,s=e._transitionData._frames,c=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var f=s.length+2*t.length,h=[],p={};for(n=t.length-1;n>=0;n--)if(o.isPlainObject(t[n])){var g=t[n].name,v=(c[g]||p[g]||{}).name,y=t[n].name,m=c[v]||p[v];v&&y&&"number"==typeof y&&m&&S<5&&(S++,o.warn('addFrames: overwriting frame "'+(c[v]||p[v]).name+'" with a frame whose name of type "number" also equates to "'+v+'". 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:d.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}h.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var x=[],b=[],_=s.length;for(n=h.length-1;n>=0;n--){if("number"==typeof(a=h[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;c[a.name="frame "+e._transitionData._counter++];);if(c[a.name]){for(i=0;i<s.length&&(s[i]||{}).name!==a.name;i++);x.push({type:"replace",index:i,value:a}),b.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(h[n].index,_)),x.push({type:"insert",index:l,value:a}),b.unshift({type:"delete",index:l}),_++}var w=d.modifyFrames,M=d.modifyFrames,T=[e,b],k=[e,x];return u&&u.add(e,w,T,M,k),d.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,n,a=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],r=0;r<a.length;r++)t.push(r);for((t=t.slice()).sort(),r=t.length-1;r>=0;r--)n=t[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,c=d.modifyFrames,f=[e,l],h=[e,i];return u&&u.add(e,s,f,c,h),d.modifyFrames(e,i)},t.addTraces=function e(r,n,a){r=o.getGraphDiv(r);var i,l,s=[],c=t.deleteTraces,f=e,d=[r,s],h=[r,n];for(function(e,t,r){var n,a;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]),n=0;n<t.length;n++)if("object"!=typeof(a=t[n])||Array.isArray(a)||null===a)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,n,a),Array.isArray(n)||(n=[n]),n=n.map((function(e){return o.extendFlat({},e)})),M.cleanData(n),i=0;i<n.length;i++)r.data.push(n[i]);for(i=0;i<n.length;i++)s.push(-n.length+i);if(void 0===a)return l=t.redraw(r),u.add(r,c,d,f,h),l;Array.isArray(a)||(a=[a]);try{E(r,s,a)}catch(e){throw r.data.splice(r.data.length-n.length,n.length),e}return u.startSequence(r),u.add(r,c,d,f,h),l=t.moveTraces(r,s,a),u.stopSequence(r),l},t.deleteTraces=function e(r,n){r=o.getGraphDiv(r);var a,i,l=[],s=t.addTraces,c=e,f=[r,l,n],d=[r,n];if(void 0===n)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(n)||(n=[n]),R(r,n,"indices"),(n=O(n,r.data.length-1)).sort(o.sorterDes),a=0;a<n.length;a+=1)i=r.data.splice(n[a],1)[0],l.push(i);var h=t.redraw(r);return u.add(r,s,f,c,d),h},t.extendTraces=function e(r,n,a,i){var l=I(r=o.getGraphDiv(r),n,a,i,(function(e,t,r){var n,a;if(o.isTypedArray(e))if(r<0){var i=new e.constructor(0),l=N(e,t);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var u=r-t.length,c=e.length-u;n.set(e.subarray(c)),n.set(t,u),a.set(e.subarray(0,c))}else n=e.concat(t),a=r>=0&&r<n.length?n.splice(0,n.length-r):[];return[n,a]})),s=t.redraw(r),c=[r,l.update,a,l.maxPoints];return u.add(r,t.prependTraces,c,e,arguments),s},t.moveTraces=function e(r,n,a){var i,l=[],s=[],c=e,f=e,d=[r=o.getGraphDiv(r),a,n],h=[r,n,a];if(E(r,n,a),n=Array.isArray(n)?n:[n],void 0===a)for(a=[],i=0;i<n.length;i++)a.push(-n.length+i);for(a=Array.isArray(a)?a:[a],n=O(n,r.data.length-1),a=O(a,r.data.length-1),i=0;i<r.data.length;i++)-1===n.indexOf(i)&&l.push(r.data[i]);for(i=0;i<n.length;i++)s.push({newIndex:a[i],trace:r.data[n[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 u.add(r,c,d,f,h),p},t.prependTraces=function e(r,n,a,i){var l=I(r=o.getGraphDiv(r),n,a,i,(function(e,t,r){var n,a;if(o.isTypedArray(e))if(r<=0){var i=new e.constructor(0),l=N(t,e);r<0?(n=l,a=i):(n=i,a=l)}else if(n=new e.constructor(r),a=new e.constructor(e.length+t.length-r),r===t.length)n.set(t),a.set(e);else if(r<t.length){var s=t.length-r;n.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var u=r-t.length;n.set(t),n.set(e.subarray(0,u),t.length),a.set(e.subarray(u))}else n=t.concat(e),a=r>=0&&r<n.length?n.splice(r,n.length):[];return[n,a]})),s=t.redraw(r),c=[r,l.update,a,l.maxPoints];return u.add(r,t.extendTraces,c,e,arguments),s},t.newPlot=function(e,r,n,a){return e=o.getGraphDiv(e),d.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),d.purge(e),t._doPlot(e,r,n,a)},t._doPlot=function(e,r,a,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(r)){var u=r;r=u.data,a=u.layout,i=u.config,l=u.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[r,a,i]))return Promise.reject();r||a||o.isPlotDiv(e)||o.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e),P(e,i),a||(a={}),n.select(e).classed("js-plotly-plot",!0),v.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var f=0===(e.data||[]).length&&Array.isArray(r);Array.isArray(r)&&(M.cleanData(r),f?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),e.layout&&!f||(e.layout=M.cleanLayout(a)),d.supplyDefaults(e);var p=e._fullLayout,g=p._has("cartesian");p._replotting=!0,(f||p._shouldCreateBgLayer)&&(function(e){var t=n.select(e),r=e._fullLayout;if(r._calcInverseTransform=se,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 a={};n.selectAll("defs").each((function(){this.id&&(a[this.id.split("-")[1]]=1)})),r._uid=o.randstr(a)}r._paperdiv.selectAll(".main-svg").attr(x.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._smithlayer=r._paper.append("g").classed("smithlayer",!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._iciclelayer=r._paper.append("g").classed("iciclelayer",!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._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!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")}(e),p._shouldCreateBgLayer&&delete p._shouldCreateBgLayer),v.initGradients(e),v.initPatterns(e),f&&h.saveShowSpikeInitial(e);var y=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;y&&d.doCalcdata(e);for(var b=0;b<e.calcdata.length;b++)e.calcdata[b][0].trace=e._fullData[b];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||d.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var _=o.extendFlat({},p._size),w=0;function k(){if(d.clearAutoMarginIds(e),T.drawMarginPushers(e),h.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&d.allowAutoMargin(e,"title.automargin"),p._has("pie"))for(var t=e._fullData,r=0;r<t.length;r++){var n=t[r];"pie"===n.type&&n.automargin&&d.allowAutoMargin(e,"pie."+n.uid+".automargin")}return d.doAutoMargin(e),d.previousPromises(e)}function A(){e._transitioning||(T.doAutoRangeAndConstraints(e),f&&h.saveRangeInitial(e),c.getComponentMethod("rangeslider","calcAutorange")(e))}var S=[d.previousPromises,function(){if(l)return t.addFrames(e,l)},function t(){for(var r=p._basePlotModules,n=0;n<r.length;n++)r[n].drawFramework&&r[n].drawFramework(e);!p._glcanvas&&p._has("gl")&&(p._glcanvas=p._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})),p._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"}));var a=e._context.plotGlPixelRatio;if(p._glcanvas){p._glcanvas.attr("width",p.width*a).attr("height",p.height*a).style("width",p.width+"px").style("height",p.height+"px");var i=p._glcanvas.data()[0].regl;if(i&&(Math.floor(p.width*a)!==i._gl.drawingBufferWidth||Math.floor(p.height*a)!==i._gl.drawingBufferHeight)){var l="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!w)return o.log(l+" Clearing graph and plotting again."),d.cleanPlot([],{},e._fullData,p),d.supplyDefaults(e),p=e._fullLayout,d.doCalcdata(e),w++,t();o.error(l)}}return"h"===p.modebar.orientation?p._modebardiv.style("height",null).style("width","100%"):p._modebardiv.style("width",null).style("height",p.height+"px"),d.previousPromises(e)},k,function(){if(d.didMarginChange(_,p._size))return o.syncOrAsync([k,T.layoutStyles],e)}];g&&S.push((function(){if(y)return o.syncOrAsync([c.getComponentMethod("shapes","calcAutorange"),c.getComponentMethod("annotations","calcAutorange"),A],e);A()})),S.push(T.layoutStyles),g&&S.push((function(){return h.draw(e,f?"":"redraw")}),(function(e){var t=e._fullLayout._insideTickLabelsUpdaterange;if(t)return e._fullLayout._insideTickLabelsUpdaterange=void 0,Y(e,t).then((function(){h.saveRangeInitial(e,!0)}))})),S.push(T.drawData,T.finalDraw,m,d.addLinks,d.rehover,d.redrag,d.reselect,d.doAutoMargin,d.previousPromises);var D=o.syncOrAsync(S,e);return D&&D.then||(D=Promise.resolve()),D.then((function(){return L(e),e}))},t.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},r=e._fullData||[];return d.cleanPlot([],{},r,t),d.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,r,n,a){var i,s;e=o.getGraphDiv(e),M.clearPromiseQueue(e);var u=e._fullData,h=e._fullLayout;if(o.isPlotDiv(e)&&u&&h){if(o.isPlainObject(r)){var p=r;r=p.data,n=p.layout,a=p.config,i=p.frames}var g=!1;if(a){var v=o.extendDeep({},e._context);e._context=void 0,P(e,a),g=le(v,e._context)}e.data=r||[],M.cleanData(e.data),e.layout=n||{},M.cleanLayout(e.layout),function(e,t,r,n){var a,i,s,u,c,f,d,h,p,g,v=n._preGUI,y=[],m={},x={};for(a in v){if(c=te(a,Q)){if(p=c.head,g=c.tail,i=c.attr||p+".uirevision",(u=(s=l(n,i).get())&&re(i,t))&&u===s){if(null===(f=v[a])&&(f=void 0),ie(h=(d=l(t,a)).get(),f)){void 0===h&&"autorange"===g&&y.push(p),d.set(F(l(n,a).get()));continue}if("autorange"===g||"range["===g.substr(0,6)){var b=v[p+".range[0]"],_=v[p+".range[1]"],w=v[p+".autorange"];if(w||null===w&&null===b&&null===_){if(!(p in m)){var M=l(t,p).get();m[p]=M&&(M.autorange||!1!==M.autorange&&(!M.range||2!==M.range.length))}if(m[p]){d.set(F(l(n,a).get()));continue}}}}}else o.warn("unrecognized GUI edit: "+a);delete v[a],c&&"range["===c.tail.substr(0,6)&&(x[c.head]=1)}for(var T=0;T<y.length;T++){var k=y[T];if(x[k]){var A=l(t,k).get();A&&delete A.autorange}}var S=n._tracePreGUI;for(var L in S){var D,C=S[L],P=null;for(a in C){if(!P){var O=ne(L,r);if(O<0){delete S[L];break}var R=ae(L,e,(D=r[O]._fullInput).index);if(R<0){delete S[L];break}P=e[R]}if(c=te(a,ee)){if(c.attr?u=(s=l(n,c.attr).get())&&re(c.attr,t):(s=D.uirevision,void 0===(u=P.uirevision)&&(u=t.uirevision)),u&&u===s&&(null===(f=C[a])&&(f=void 0),ie(h=(d=l(P,a)).get(),f))){d.set(F(l(D,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a+" in trace uid "+L);delete C[a]}}}(e.data,e.layout,u,h),d.supplyDefaults(e,{skipUpdateCalc:!0});var y=e._fullData,m=e._fullLayout,x=void 0===m.datarevision,b=m.transition,_=function(e,t,r,n,a){var i=k.layoutFlags();return i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,oe(t,r,[],{getValObject:function(e){return f.getLayoutValObject(r,e)},flags:i,immutable:n,transition:a,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0),a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}(e,h,m,x,b),w=_.newDataRevision,A=function(e,t,r,n,a,i){var o=t.length===r.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l,s,u=k.traceFlags();u.arrays={},u.nChanges=0,u.nChangesAnim=0;var c={getValObject:function(e){var t=f.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t},flags:u,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(l=0;l<t.length;l++)if(r[l]){if(s=r[l]._fullInput,d.hasMakesDataTransform(s)&&(s=r[l]),h[s.uid])continue;h[s.uid]=1,oe(t[l]._fullInput,s,[],c)}return(u.calc||u.plot)&&(u.fullReplot=!0),a&&u.nChanges&&u.nChangesAnim&&(u.anim=u.nChanges===u.nChangesAnim&&o?"all":"some"),u}(e,u,y,x,b,w);if(X(e)&&(_.layoutReplot=!0),A.calc||_.calc){e.calcdata=void 0;for(var S=Object.getOwnPropertyNames(m),D=0;D<S.length;D++){var C=S[D],O=C.substring(0,5);if("xaxis"===O||"yaxis"===O){var R=m[C]._emptyCategories;R&&R()}}}else d.supplyDefaultsUpdateCalc(e.calcdata,y);var E=[];if(i&&(e._transitionData={},d.createTransitionData(e),E.push((function(){return t.addFrames(e,i)}))),m.transition&&!g&&(A.anim||_.anim))_.ticks&&E.push(T.doTicksRelayout),d.doCalcdata(e),T.doAutoRangeAndConstraints(e),E.push((function(){return d.transitionFromReact(e,A,_,h)}));else if(A.fullReplot||_.layoutReplot||g)e._fullLayout._skipDefaults=!0,E.push(t._doPlot);else{for(var I in _.arrays){var N=_.arrays[I];if(N.length){var z=c.getComponentMethod(I,"drawOne");if(z!==o.noop)for(var j=0;j<N.length;j++)z(e,N[j]);else{var B=c.getComponentMethod(I,"draw");if(B===o.noop)throw new Error("cannot draw components: "+I);B(e)}}}E.push(d.previousPromises),A.style&&E.push(T.doTraceStyle),(A.colorbars||_.colorbars)&&E.push(T.doColorBars),_.legend&&E.push(T.doLegend),_.layoutstyle&&E.push(T.layoutStyles),_.axrange&&q(E),_.ticks&&E.push(T.doTicksRelayout),_.modebar&&E.push(T.doModeBar),_.camera&&E.push(T.doCamera),E.push(L)}E.push(d.rehover,d.redrag,d.reselect),(s=o.syncOrAsync(E,e))&&s.then||(s=Promise.resolve(e))}else s=t.newPlot(e,r,n,a);return s.then((function(){return e.emit("plotly_react",{data:r,layout:n}),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 M.cleanData(e.data),M.cleanLayout(e.layout),e.calcdata=void 0,t._doPlot(e).then((function(){return e.emit("plotly_redraw"),e}))},t.relayout=Y,t.restyle=z,t.setPlotConfig=function(e){return o.extendFlat(_,e)},t.update=$,t._guiRelayout=K(Y),t._guiRestyle=K(z),t._guiUpdate=K($),t._storeDirectGUIEdit=function(e,t,r){for(var n in r)B(n,l(e,n).get(),r[n],t)}},556:function(e){"use strict";var t={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},r={};!function e(t,r){for(var n in t){var a=t[n];a.valType?r[n]=a.dflt:(r[n]||(r[n]={}),e(a,r[n]))}}(t,r),e.exports={configAttributes:t,dfltConfig:r}},3060:function(e,t,r){"use strict";var n=r(4040),a=r(3400),i=r(5464),o=r(4859),l=r(6672),s=r(5656),u=r(556).configAttributes,c=r(7824),f=a.extendDeepAll,d=a.isPlainObject,h=a.isArrayOrTypedArray,p=a.nestedProperty,g=a.valObjectMeta,v="_isSubplotObj",y="_isLinkedToArray",m="_deprecated",x=[v,y,"_arrayAttrRegexps",m];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 n=e[t[r]];if(!d(n))break;if(e=n,r===t.length-1)break;if(e._isLinkedToArray){if(!_(t[++r]))return!1}else if("info_array"===e.valType){var a=t[++r];if(!_(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=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[a][o]}else e=i[a]}else e=i}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,r={};for(e in f(r,o),n.subplotsRegistry)if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)T(r,t,t.attr[a]);else T(r,t,"subplot"===t.attr?t.name:t.attr);for(e in n.componentsRegistry){var i=(t=n.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];delete r.xaxis.shift,delete r.xaxis.autoshift}else"colorscale"===t.name?f(r,t.layoutAttributes):t.layoutAttributes&&k(r,t.layoutAttributes,t.name)}return{layoutAttributes:M(r)}}function M(e){return function(e){t.crawl(e,(function(e,r,n){t.isValObject(e)?!0!==e.arrayOk&&"data_array"!==e.valType||(n[r+"src"]={valType:"string",editType:"none"}):d(e)&&(e.role="object")}))}(e),function(e){t.crawl(e,(function(e,t,r){if(e){var n=e[y];n&&(delete e[y],r[t]={items:{}},r[t].items[n]=e,r[t].role="object")}}))}(e),function(e){!function e(t){for(var r in t)if(d(t[r]))e(t[r]);else if(Array.isArray(t[r]))for(var n=0;n<t[r].length;n++)e(t[r][n]);else t[r]instanceof RegExp&&(t[r]=t[r].toString())}(e)}(e),e}function T(e,t,r){var n=p(e,r),a=f({},t.layoutAttributes);a[v]=!0,n.set(a)}function k(e,t,r){var n=p(e,r);n.set(f(n.get()||{},t))}t.IS_SUBPLOT_OBJ=v,t.IS_LINKED_TO_ARRAY=y,t.DEPRECATED=m,t.UNDERSCORE_ATTRS=x,t.get=function(){var e={};n.allTypes.forEach((function(r){e[r]=function(e){var r,a;a=(r=n.modules[e]._module).basePlotModule;var o={type:null},l=f({},i),s=f({},r.attributes);t.crawl(s,(function(e,t,r,n,a){p(l,a).set(void 0),void 0===e&&p(s,a).set(void 0)})),f(o,l),n.traceIs(e,"noOpacity")&&delete o.opacity,n.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup),n.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel),r.selectPoints||delete o.selectedpoints,f(o,s),a.attributes&&f(o,a.attributes),o.type=e;var u={meta:r.meta||{},categories:r.categories||{},animatable:Boolean(r.animatable),type:e,attributes:M(o)};if(r.layoutAttributes){var c={};f(c,r.layoutAttributes),u.layoutAttributes=M(c)}return r.animatable||t.crawl(u,(function(e){t.isValObject(e)&&"anim"in e&&delete e.anim})),u}(r)}));var r,a={};return Object.keys(n.transformsRegistry).forEach((function(e){a[e]=function(e){var t=n.transformsRegistry[e],r=f({},t.attributes);return Object.keys(n.componentsRegistry).forEach((function(t){var a=n.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach((function(t){k(r,a.schema.transforms[e][t],t)}))})),{attributes:M(r)}}(e)})),{defs:{valObjects:g,metaKeys:x.concat(["description","role","editType","impliedEdits"]),editType:{traces:c.traces,layout:c.layout},impliedEdits:{}},traces:e,layout:w(),transforms:a,frames:(r={frames:f({},l)},M(r),r.frames),animation:M(s),config:M(u)}},t.crawl=function(e,r,n,a){var i=n||0;a=a||"",Object.keys(e).forEach((function(n){var o=e[n];if(-1===x.indexOf(n)){var l=(a?a+".":"")+n;r(o,n,e,i,l),t.isValObject(o)||d(o)&&"impliedEdits"!==n&&t.crawl(o,r,i+1,l)}}))},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var r,n,a=[],o=[],l=[];function s(e,t,n,a){o=o.slice(0,a).concat([t]),l=l.slice(0,a).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&("colorbar"!==o[a-1]||"ticktext"!==t&&"tickvals"!==t)&&u(r,0,"")}function u(e,t,r){var i=e[o[t]],s=r+o[t];if(t===o.length-1)h(i)&&a.push(n+s);else if(l[t]){if(Array.isArray(i))for(var c=0;c<i.length;c++)d(i[c])&&u(i[c],t+1,s+"["+c+"].")}else d(i)&&u(i,t+1,s+".")}r=e,n="",t.crawl(i,s),e._module&&e._module.attributes&&t.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var f=0;f<c.length;f++){var p=c[f],g=p._module;g&&(n="transforms["+f+"].",r=p,t.crawl(g.attributes,s))}return a},t.getTraceValObject=function(e,t){var r,a,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 u=t[1];if(!_(u)||u>=s.length)return!1;a=(r=(n.transformsRegistry[s[u].type]||{}).attributes)&&r[t[2]],l=3}else{var c=e._module;if(c||(c=(n.modules[e.type||i.type.dflt]||{})._module),!c)return!1;if(!(a=(r=c.attributes)&&r[o])){var f=c.basePlotModule;f&&f.attributes&&(a=f.attributes[o])}a||(a=i[o])}return b(a,t,l)},t.getLayoutValObject=function(e,t){var r=function(e,t){var r,a,i,l,s=e._basePlotModules;if(s){var u;for(r=0;r<s.length;r++){if((i=s[r]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!u&&i.layoutAttributes&&(u=i.layoutAttributes)}var c=i.baseLayoutAttrOverrides;if(c&&t in c)return c[t]}if(u)return u}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(a in n.componentsRegistry){if("colorscale"===(i=n.componentsRegistry[a]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in o&&o[t]}(e,t[0]);return b(r,t,1)}},1780:function(e,t,r){"use strict";var n=r(3400),a=r(5464),i="templateitemname",o={name:{valType:"string",editType:"none"}};function l(e){return e&&"string"==typeof e}function s(e){var t=e.length-1;return"s"!==e.charAt(t)&&n.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}o[i]={valType:"string",editType:"calc"},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=o.name,t[i]=o[i],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=n.coerce(o,{},a,"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 a=e._template,i=a&&(a[t]||r&&a[r]);return n.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,r){var n=e._template,a=n&&n[s(t)],o=n&&n[t];Array.isArray(o)&&o.length||(o=[]);var u={};return{newItem:function(e){var t={name:e.name,_input:e},n=t[i]=e[i];if(!l(n))return t._template=a,t;for(var s=0;s<o.length;s++){var c=o[s];if(c.name===n)return u[n]=1,t._template=c,t}return t[r]=e[r]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<o.length;t++){var r=o[t],n=r.name;if(l(n)&&!u[n]){var a={_template:r,name:n,_input:{_templateitemname:n}};a[i]=r[i],e.push(a),u[n]=1}}return e}}},t.arrayDefaultKey=s,t.arrayEditor=function(e,t,r){var a=(n.nestedProperty(e,t).get()||[]).length,o=r._index,l=o>=a&&(r._input||{})._templateitemname;l&&(o=a);var s,u=t+"["+o+"]";function c(){s={},l&&(s[u]={},s[u][i]=l)}function f(e,t){l?n.nestedProperty(s[u],e).set(t):s[u+"."+e]=t}function d(){var e=s;return c(),e}return c(),{modifyBase:function(e,t){s[e]=t},modifyItem:f,getUpdateObj:d,applyUpdate:function(t,r){t&&f(t,r);var a=d();for(var i in a)n.nestedProperty(e,i).set(a[i])}}}},9172:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(7316),o=r(3400),l=r(2736),s=r(3696),u=r(6308),c=r(3616),f=r(1668),d=r(3080),h=r(4460),p=r(4284),g=r(1888),v=g.enforce,y=g.clean,m=r(9280).doAutoRange,x="start";function b(e,t,r){for(var n=0;n<r.length;n++){var a=r[n][0],i=r[n][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&i[0]<t[1]&&i[1]>t[0])return!0}return!1}function _(e){var r,a,l,s,f,g,v=e._fullLayout,y=v._size,m=y.p,x=h.list(e,"",!0);if(v._paperdiv.style({width:e._context.responsive&&v.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":v.width+"px",height:e._context.responsive&&v.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":v.height+"px"}).selectAll(".main-svg").call(c.setSize,v.width,v.height),e._context.setBackground(e,v.paper_bgcolor),t.drawMainTitle(e),d.manage(e),!v._has("cartesian"))return i.previousPromises(e);function _(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-m-n:t._offset+t._length+m+n:y.t+y.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+m+n:t._offset-m-n:y.l+y.w*(e.position||0)+n%1}for(r=0;r<x.length;r++){var M=(s=x[r])._anchorAxis;s._linepositions={},s._lw=c.crispRound(e,s.linewidth,1),s._mainLinePosition=_(s,M,s.side),s._mainMirrorPosition=s.mirror&&M?_(s,M,p.OPPOSITE_SIDE[s.side]):null}var k=[],A=[],S=[],L=1===u.opacity(v.paper_bgcolor)&&1===u.opacity(v.plot_bgcolor)&&v.paper_bgcolor===v.plot_bgcolor;for(a in v._plots)if((l=v._plots[a]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var D=l.xaxis.domain,C=l.yaxis.domain,P=l.plotgroup;if(b(D,C,S)){var O=P.node(),R=l.bg=o.ensureSingle(P,"rect","bg");O.insertBefore(R.node(),O.childNodes[0]),A.push(a)}else P.select("rect.bg").remove(),S.push([D,C]),L||(k.push(a),A.push(a))}var E,I,N,z,F,j,B,H,G,Y,U,q,V,W=v._bgLayer.selectAll(".bg").data(k);for(W.enter().append("rect").classed("bg",!0),W.exit().remove(),W.each((function(e){v._plots[e].bg=n.select(this)})),r=0;r<A.length;r++)l=v._plots[A[r]],f=l.xaxis,g=l.yaxis,l.bg&&void 0!==f._offset&&void 0!==g._offset&&l.bg.call(c.setRect,f._offset-m,g._offset-m,f._length+2*m,g._length+2*m).call(u.fill,v.plot_bgcolor).style("stroke-width",0);if(!v._hasOnlyLargeSploms)for(a in v._plots){l=v._plots[a],f=l.xaxis,g=l.yaxis;var Z,J,X=l.clipId="clip"+v._uid+a+"plot",$=o.ensureSingleById(v._clips,"clipPath",X,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=$.select("rect").attr({width:f._length,height:g._length}),c.setTranslate(l.plot,f._offset,g._offset),l._hasClipOnAxisFalse?(Z=null,J=X):(Z=X,J=null),c.setClipUrl(l.plot,Z,e),l.layerClipId=J}function K(e){return"M"+E+","+e+"H"+I}function Q(e){return"M"+f._offset+","+e+"h"+f._length}function ee(e){return"M"+e+","+H+"V"+B}function te(e){return void 0!==g._shift&&(e+=g._shift),"M"+e+","+g._offset+"v"+g._length}function re(e,t,r){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return r(e._mainLinePosition);var n=t(e._mainLinePosition);return e.mirror&&(n+=t(e._mainMirrorPosition)),n}for(a in v._plots){l=v._plots[a],f=l.xaxis,g=l.yaxis;var ne="M0,0";w(f,a)&&(F=T(f,"left",g,x),E=f._offset-(F?m+F:0),j=T(f,"right",g,x),I=f._offset+f._length+(j?m+j:0),N=_(f,g,"bottom"),z=_(f,g,"top"),!(V=!f._anchorAxis||a!==f._mainSubplot)||"allticks"!==f.mirror&&"all"!==f.mirror||(f._linepositions[a]=[N,z]),ne=re(f,K,Q),V&&f.showline&&("all"===f.mirror||"allticks"===f.mirror)&&(ne+=K(N)+K(z)),l.xlines.style("stroke-width",f._lw+"px").call(u.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ne);var ae="M0,0";w(g,a)&&(U=T(g,"bottom",f,x),B=g._offset+g._length+(U?m:0),q=T(g,"top",f,x),H=g._offset-(q?m:0),G=_(g,f,"left"),Y=_(g,f,"right"),!(V=!g._anchorAxis||a!==g._mainSubplot)||"allticks"!==g.mirror&&"all"!==g.mirror||(g._linepositions[a]=[G,Y]),ae=re(g,ee,te),V&&g.showline&&("all"===g.mirror||"allticks"===g.mirror)&&(ae+=ee(G)+ee(Y)),l.ylines.style("stroke-width",g._lw+"px").call(u.stroke,g.showline?g.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return h.makeClipPaths(e),i.previousPromises(e)}function w(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function M(e,t,r){if(!r.showline||!r._lw)return!1;if("all"===r.mirror||"allticks"===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var a=p.FROM_BL[t];return r.side===t?n.domain[a]===e.domain[a]:r.mirror&&n.domain[1-a]===e.domain[1-a]}function T(e,t,r,n){if(M(e,t,r))return r._lw;for(var a=0;a<n.length;a++){var i=n[a];if(i._mainAxis===r._mainAxis&&M(e,t,i))return i._lw}return 0}t.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,_],e)},t.drawMainTitle=function(e){var t,r=e._fullLayout.title,a=e._fullLayout,s=function(e){var t=e.title,r="middle";return o.isRightAnchor(t)?r="end":o.isLeftAnchor(t)&&(r=x),r}(a),u=function(e){var t=e.title,r="0em";return o.isTopAnchor(t)?r=p.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(r=p.MID_SHIFT+"em"),r}(a),d=function(e,t){var r=e.title,n=e._size,a=0;return"0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(a=r.pad.t):a=-r.pad.b,"auto"===r.y?n.t/2:"paper"===r.yref?n.t+n.h-n.h*r.y+a:e.height-e.height*r.y+a}(a,u),h=function(e,t){var r=e.title,n=e._size,a=0;return t===x?a=r.pad.l:"end"===t&&(a=-r.pad.r),"paper"===r.xref?n.l+n.w*r.x+a:e.width*r.x+a}(a,s);if(f.draw(e,"gtitle",{propContainer:a,propName:"title.text",placeholder:a._dfltTitle.plot,attributes:{x:h,y:d,"text-anchor":s,dy:u}}),r.text&&r.automargin){var g=n.selectAll(".gtitle"),v=c.bBox(g.node()).height,y=function(e,t,r){var n=t.y,a=t.yanchor,i=n>.5?"t":"b",o=e._fullLayout.margin[i],l=0;return"paper"===t.yref?l=r+t.pad.t+t.pad.b:"container"===t.yref&&(l=function(e,t,r,n,a){var i=0;return"middle"===r&&(i+=a/2),"t"===e?("top"===r&&(i+=a),i+=n-t*n):("bottom"===r&&(i+=a),i+=t*n),i}(i,n,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),l>o?l:0}(e,r,v);if(y>0){!function(e,t,r,n){var a="title.automargin",l=e._fullLayout.title,s=l.y>.5?"t":"b",u={x:l.x,y:l.y,t:0,b:0},c={};"paper"===l.yref&&function(e,t,r,n,a){var i="paper"===t.yref?e._fullLayout._size.h:e._fullLayout.height,l=o.isTopAnchor(t)?n:n-a,s="b"===r?i-l:l;return!(o.isTopAnchor(t)&&"t"===r||o.isBottomAnchor(t)&&"b"===r)&&s<a}(e,l,s,t,n)?u[s]=r:"container"===l.yref&&(c[s]=r,e._fullLayout._reservedMargin[a]=c),i.allowAutoMargin(e,a),i.autoMargin(e,a,u)}(e,d,y,v),g.attr({x:h,y:d,"text-anchor":s,dy:(t=r.yanchor,"top"===t?p.CAP_SHIFT+.3+"em":"bottom"===t?"-0.3em":p.MID_SHIFT+"em")}).call(l.positionText,h,d);var m=(r.text.match(l.BR_TAG_ALL)||[]).length;if(m){var b=p.LINE_SPACING*m+p.MID_SHIFT;0===r.y&&(b=-b),g.selectAll(".line").each((function(){var e=+this.getAttribute("dy").slice(0,-2)-b+"em";this.setAttribute("dy",e)}))}}}},t.doTraceStyle=function(e){var r,n=e.calcdata,o=[];for(r=0;r<n.length;r++){var l=n[r],u=l[0]||{},c=u.trace||{},f=c._module||{},d=f.arraysToCalcdata;d&&d(l,c);var h=f.editStyle;h&&o.push({fn:h,cd0:u})}if(o.length){for(r=0;r<o.length;r++){var p=o[r];p.fn(e,p.cd0)}s(e),t.redrawReglTraces(e)}return i.style(e),a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("_doPlot",e,"",t)},t.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return h.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),s(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;d.manage(e);for(var r=0;r<t._basePlotModules.length;r++){var n=t._basePlotModules[r].updateFx;n&&n(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,r=t._subplots.gl3d,n=0;n<r.length;n++){var a=t[r[n]];a._scene.setViewport(a)}},t.drawData=function(e){var r=e._fullLayout;s(e);for(var n=r._basePlotModules,o=0;o<n.length;o++)n[o].plot(e);return t.redrawReglTraces(e),i.style(e),a.getComponentMethod("selections","draw")(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),r._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var r,n,a=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),r=0;r<a.length;r++){var s=a[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++)(n=t._plots[i[r]])._scene&&n._scene.draw();for(r=0;r<l.length;r++)(n=t[l[r]]._subplot)._scene&&n._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,r=h.list(e,"",!0),n={},a=0;a<r.length;a++)if(!n[(t=r[a])._id]){n[t._id]=1,y(e,t),m(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=h.getFromId(e,o);m(e,l,t.range),n[o]=1}}v(e)},t.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},4828:function(e,t,r){"use strict";var n=r(3400),a=n.isPlainObject,i=r(3060),o=r(7316),l=r(5464),s=r(1780),u=r(556).dfltConfig;function c(e,t){e=n.extendDeep({},e);var r,i,o=Object.keys(e).sort();function l(t,r,n){if(a(r)&&a(t))c(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},n);for(i=0;i<r.length;i++){var l=r[i],u=o.newItem(l)._template;u&&c(u,l)}var f=o.defaultItems();for(i=0;i<f.length;i++)r.push(f[i]._template);for(i=0;i<r.length;i++)delete r[i].templateitemname}}for(r=0;r<o.length;r++){var u=o[r],d=e[u];if(u in t?l(d,t[u],u):t[u]=d,f(u)===u)for(var h in t){var p=f(h);h===p||p!==u||h in e||l(d,t[h],u)}}}function f(e){return e.replace(/[0-9]+$/,"")}function d(e,t,r,i,o){var l=o&&r(o);for(var u in e){var c=e[u],h=g(e,u,i),p=g(e,u,o),v=r(p);if(!v){var y=f(u);y!==u&&(v=r(p=g(e,y,o)))}if(!(l&&l===v||!v||v._noTemplating||"data_array"===v.valType||v.arrayOk&&Array.isArray(c)))if(!v.valType&&a(c))d(c,t,r,h,p);else if(v._isLinkedToArray&&Array.isArray(c))for(var m=!1,x=0,b={},_=0;_<c.length;_++){var w=c[_];if(a(w)){var M=w.name;if(M)b[M]||(d(w,t,r,g(c,x,h),g(c,x,p)),x++,b[M]=1);else if(!m){var T=g(e,s.arrayDefaultKey(u),i),k=g(c,x,h);d(w,t,r,k,g(c,x,p));var A=n.nestedProperty(t,k);n.nestedProperty(t,T).set(A.get()),A.set(null),m=!0}}}else n.nestedProperty(t,h).set(c)}}function h(e,t){return i.getLayoutValObject(e,n.nestedProperty({},t).parts)}function p(e,t){return i.getTraceValObject(e,n.nestedProperty({},t).parts)}function g(e,t,r){return r?Array.isArray(e)?r+"["+t+"]":r+"."+t:t}function v(e){for(var t=0;t<e.length;t++)if(a(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=n.isPlainObject(e)?e:n.getGraphDiv(e),e=n.extendDeep({_context:u},{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={};d(e,t,p.bind(null,e));var r=n.coerce(e,{},l,"type"),a=i.data[r];a||(a=i.data[r]=[]),a.push(t)})),d(r,i.layout,h.bind(null,r)),delete i.layout.template;var s=r.template;if(a(s)){var f,g,v,y,m,x,b=s.layout;a(b)&&c(b,i.layout);var _=s.data;if(a(_)){for(g in i.data)if(v=_[g],Array.isArray(v)){for(x=(m=i.data[g]).length,y=v.length,f=0;f<x;f++)c(v[f%y],m[f]);for(f=x;f<y;f++)m.push(n.extendDeep({},v[f]))}for(g in _)g in i.data||(i.data[g]=n.extendDeep([],_[g]))}}return i},t.validateTemplate=function(e,t){var r=n.extendDeep({},{_context:u,data:e.data,layout:e.layout}),i=r.layout||{};a(t)||(t=i.template||{});var l=t.layout,s=t.data,c=[];r.layout=i,r.layout.template=t,o.supplyDefaults(r);var d=r._fullLayout,h=r._fullData,p={};if(a(l)?(function e(t,r){for(var n in t)if("_"!==n.charAt(0)&&a(t[n])){var i,o=f(n),l=[];for(i=0;i<r.length;i++)l.push(g(t,n,r[i])),o!==n&&l.push(g(t,o,r[i]));for(i=0;i<l.length;i++)p[l[i]]=1;e(t[n],l)}}(d,["layout"]),function e(t,r){for(var n in t)if(-1===n.indexOf("defaults")&&a(t[n])){var i=g(t,n,r);p[i]?e(t[n],i):c.push({code:"unused",path:i})}}(l,"layout")):c.push({code:"layout"}),a(s)){for(var m,x={},b=0;b<h.length;b++){var _=h[b];x[m=_.type]=(x[m]||0)+1,_._fullInput._template||c.push({code:"missing",index:_._fullInput.index,traceType:m})}for(m in s){var w=s[m].length,M=x[m]||0;w>M?c.push({code:"unused",traceType:m,templateCount:w,dataCount:M}):M>w&&c.push({code:"reused",traceType:m,templateCount:w,dataCount:M})}}else c.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=g(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&c.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&v(i)&&e(i,o)}}({data:h,layout:d},""),c.length)return c.map(y)}},7024:function(e,t,r){"use strict";var n=r(8248),a=r(6424),i=r(7316),o=r(3400),l=r(7030),s=r(7164),u=r(3268),c=r(5788).version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};e.exports=function(e,t){var r,d,h,p;function g(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],d=e.layout||{},h=e.config||{},p={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),d=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(f.format.values,", "," or ")+".");var v={};function y(e,r){return o.coerce(t,v,f,e,r)}var m=y("format"),x=y("width"),b=y("height"),_=y("scale"),w=y("setBackground"),M=y("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var k=o.extendFlat({},d);x?k.width=x:null===t.width&&n(p.width)&&(k.width=p.width),b?k.height=b:null===t.height&&n(p.height)&&(k.height=p.height);var A=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 D(){return new Promise((function(e,t){var r=s(T,m,_),n=T._fullLayout.width,f=T._fullLayout.height;function d(){a.purge(T),document.body.removeChild(T)}if("full-json"===m){var h=i.graphJson(T,!1,"keepdata","object",!0,!0);return h.version=c,h=JSON.stringify(h),d(),e(M?h:l.encodeJSON(h))}if(d(),"svg"===m)return e(M?r:l.encodeSVG(r));var p=document.createElement("canvas");p.id=o.randstr(),u({format:m,width:n,height:f,scale:_,canvas:p,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.newPlot(T,r,k,A).then(S).then(L).then(D).then((function(t){e(function(e){return M?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},1480:function(e,t,r){"use strict";var n=r(3400),a=r(7316),i=r(3060),o=r(556).dfltConfig,l=n.isPlainObject,s=Array.isArray,u=n.isArrayOrTypedArray;function c(e,t,r,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;d<f.length;d++){var v=f[d];if("transforms"!==v){var y=o.slice();y.push(v);var m=e[v],x=t[v],b=g(r,v),_=(b||{}).valType,w="info_array"===_,M="colorscale"===_,T=(b||{}).items;if(p(r,v))if(l(m)&&l(x)&&"any"!==_)c(m,x,b,a,i,y);else if(w&&s(m)){m.length>x.length&&a.push(h("unused",i,y.concat(x.length)));var k,A,S,L,D,C=x.length,P=Array.isArray(T);if(P&&(C=Math.min(C,T.length)),2===b.dimensions)for(A=0;A<C;A++)if(s(m[A])){m[A].length>x[A].length&&a.push(h("unused",i,y.concat(A,x[A].length)));var O=x[A].length;for(k=0;k<(P?Math.min(O,T[A].length):O);k++)S=P?T[A][k]:T,L=m[A][k],D=x[A][k],n.validate(L,S)?D!==L&&D!==+L&&a.push(h("dynamic",i,y.concat(A,k),L,D)):a.push(h("value",i,y.concat(A,k),L))}else a.push(h("array",i,y.concat(A),m[A]));else for(A=0;A<C;A++)S=P?T[A]:T,L=m[A],D=x[A],n.validate(L,S)?D!==L&&D!==+L&&a.push(h("dynamic",i,y.concat(A),L,D)):a.push(h("value",i,y.concat(A),L))}else if(b.items&&!w&&s(m)){var R,E,I=T[Object.keys(T)[0]],N=[];for(R=0;R<x.length;R++){var z=x[R]._index||R;if((E=y.slice()).push(z),l(m[z])&&l(x[R])){N.push(z);var F=m[z],j=x[R];l(F)&&!1!==F.visible&&!1===j.visible?a.push(h("invisible",i,E)):c(F,j,I,a,i,E)}}for(R=0;R<m.length;R++)(E=y.slice()).push(R),l(m[R])?-1===N.indexOf(R)&&a.push(h("unused",i,E)):a.push(h("object",i,E,m[R]))}else!l(m)&&l(x)?a.push(h("object",i,y,m)):u(m)||!u(x)||w||M?v in t?n.validate(m,b)?"enumerated"===b.valType&&(b.coerceNumber&&m!==+x||m!==x)&&a.push(h("dynamic",i,y,m,x)):a.push(h("value",i,y,m)):a.push(h("unused",i,y,m)):a.push(h("array",i,y,m));else a.push(h("schema",i,y))}}return a}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var r,u,f=i.get(),d=[],p={_context:n.extendFlat({},o)};s(e)?(p.data=n.extendDeep([],e),r=e):(p.data=[],r=[],d.push(h("array","data"))),l(t)?(p.layout=n.extendDeep({},t),u=t):(p.layout={},u={},arguments.length>1&&d.push(h("object","layout"))),a.supplyDefaults(p);for(var g=p._fullData,v=r.length,y=0;y<v;y++){var m=r[y],x=["data",y];if(l(m)){var b=g[y],_=b.type,w=f.traces[_].attributes;w.type={valType:"enumerated",values:[_]},!1===b.visible&&!1!==m.visible&&d.push(h("invisible",x)),c(m,b,w,d,x);var M=m.transforms,T=b.transforms;if(M){s(M)||d.push(h("array",x,["transforms"])),x.push("transforms");for(var k=0;k<M.length;k++){var A=["transforms",k],S=M[k].type;if(l(M[k])){var L=f.transforms[S]?f.transforms[S].attributes:{};L.type={valType:"enumerated",values:Object.keys(f.transforms)},c(M[k],T[k],L,d,x,A)}else d.push(h("object",x,A))}}}else d.push(h("object",x))}var D=p._fullLayout,C=function(e,t){for(var r=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?n.extendFlat(r[o.attributes.subplot.dflt],l):n.extendFlat(r,l))}return r}(f,g);return c(u,D,C,d,"layout"),0===d.length?void 0:d};var f={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":d(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":d(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return d(e)+"key "+t+" is not part of the schema"},unused:function(e,t,r){var n=l(r)?"container":"key";return d(e)+n+" "+t+" did not get coerced"},dynamic:function(e,t,r,n){return[d(e)+"key",t,"(set to '"+r+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?d(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,r){return[d(e)+"key "+t,"is set to an invalid value ("+r+")"].join(" ")}};function d(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function h(e,t,r,a,i){var o,l;r=r||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var u=function(e){if(!s(e))return String(e);for(var t="",r=0;r<e.length;r++){var n=e[r];"number"==typeof n?t=t.substr(0,t.length-1)+"["+n+"]":t+=n,r<e.length-1&&(t+=".")}return t}(r),c=f[e](t,u,a,i);return n.log(c),{code:e,container:o,trace:l,path:r,astr:u,msg:c}}function p(e,t){var r=y(t),n=r.keyMinusId,a=r.id;return!!(n in e&&e[n]._isSubplotObj&&a)||t in e}function g(e,t){return t in e?e[t]:e[y(t).keyMinusId]}var v=n.counterRegex("([a-z]+)");function y(e){var t=e.match(v);return{keyMinusId:t&&t[1],id:t&&t[2]}}},5656:function(e){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},1272:function(e,t,r){"use strict";var n=r(3400),a=r(1780);e.exports=function(e,t,r){var i,o,l=r.name,s=r.inclusionAttr||"visible",u=t[l],c=n.isArrayOrTypedArray(e[l])?e[l]:[],f=t[l]=[],d=a.arrayTemplater(t,l,s);for(i=0;i<c.length;i++){var h=c[i];n.isPlainObject(h)?o=d.newItem(h):(o=d.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&r.handleItemDefaults(h,o,t,r),f.push(o)}var p=d.defaultItems();for(i=0;i<p.length;i++)(o=p[i])._index=f.length,r.handleItemDefaults({},o,t,r,{}),f.push(o);if(n.isArrayOrTypedArray(u)){var g=Math.min(u.length,f.length);for(i=0;i<g;i++)n.relinkPrivateKeys(f[i],u[i])}return f}},5464:function(e,t,r){"use strict";var n=r(5376),a=r(5756);e.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:n({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:a.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},1220:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=a.dateTime2ms,o=a.incrementMonth,l=r(9032).ONEAVGMONTH;e.exports=function(e,t,r,a){if("date"!==t.type)return{vals:a};var s=e[r+"periodalignment"];if(!s)return{vals:a};var u,c=e[r+"period"];if(n(c)){if((c=+c)<=0)return{vals:a}}else if("string"==typeof c&&"M"===c.charAt(0)){var f=+c.substring(1);if(!(f>0&&Math.round(f)===f))return{vals:a};u=f}for(var d=t.calendar,h="start"===s,p="end"===s,g=e[r+"period0"],v=i(g,d)||0,y=[],m=[],x=[],b=a.length,_=0;_<b;_++){var w,M,T,k=a[_];if(u){for(w=Math.round((k-v)/(u*l)),T=o(v,u*w,d);T>k;)T=o(T,-u,d);for(;T<=k;)T=o(T,u,d);M=o(T,-u,d)}else{for(T=v+(w=Math.round((k-v)/c))*c;T>k;)T-=c;for(;T<=k;)T+=c;M=T-c}y[_]=h?M:p?T:(M+T)/2,m[_]=M,x[_]=T}return{vals:y,starts:m,ends:x}}},6720:function(e){"use strict";e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},9280:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(3400),o=r(9032).FP_SAFE,l=r(4040),s=r(3616),u=r(9811),c=u.getFromId,f=u.isLinked;function d(e,t){var r,n,a=[],o=e._fullLayout,l=p(o,t,0),s=p(o,t,1),u=v(e,t),c=u.min,f=u.max;if(0===c.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=c[0].val,g=f[0].val;for(r=1;r<c.length&&d===g;r++)d=Math.min(d,c[r].val);for(r=1;r<f.length&&d===g;r++)g=Math.max(g,f[r].val);var y=t.autorange,m="reversed"===y||"min reversed"===y||"max reversed"===y;if(!m&&t.range){var x=i.simpleMap(t.range,t.r2l);m=x[1]<x[0]}"reversed"===t.autorange&&(t.autorange=!0);var b,_,w,M,k,A,S=t.rangemode,L="tozero"===S,D="nonnegative"===S,C=t._length,P=C/10,O=0;for(r=0;r<c.length;r++)for(b=c[r],n=0;n<f.length;n++)(A=(_=f[n]).val-b.val-h(t,b.val,_.val))>0&&((k=C-l(b)-s(_))>P?A/k>O&&(w=b,M=_,O=A/k):A/C>O&&(w={val:b.val,nopad:1},M={val:_.val,nopad:1},O=A/C));if(d===g){var R=d-1,E=d+1;if(L)if(0===d)a=[0,1];else{var I=(d>0?f:c).reduce((function(e,t){return Math.max(e,s(t))}),0),N=d/(1-Math.min(.5,I/C));a=d>0?[0,N]:[N,0]}else a=D?[Math.max(0,R),Math.max(1,E)]:[R,E]}else L?(w.val>=0&&(w={val:0,nopad:1}),M.val<=0&&(M={val:0,nopad:1})):D&&(w.val-O*l(w)<0&&(w={val:0,nopad:1}),M.val<=0&&(M={val:1,nopad:1})),O=(M.val-w.val-h(t,b.val,_.val))/(C-l(w)-s(M)),a=[w.val-O*l(w),M.val+O*s(M)];return a=T(a,t),t.limitRange&&t.limitRange(),m&&a.reverse(),i.simpleMap(a,t.l2r||Number)}function h(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i<a.length;i++){var o=a[i];n+=o.max-o.min}return n}function p(e,t,r){var a=.05*t._length,o=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(o.ticklabelposition||"").indexOf("inside")){var l=t.isReversed();if(!l){var u=i.simpleMap(t.range,t.r2l);l=u[1]<u[0]}l&&(r=!r)}var c=0;return f(e,t._id)||(c=function(e,t,r){var a=0,o="x"===t._id.charAt(0);for(var l in e._plots){var u=e._plots[l];if(t._id===u.xaxis._id||t._id===u.yaxis._id){var c=(o?u.yaxis:u.xaxis)||{};if(-1!==(c.ticklabelposition||"").indexOf("inside")&&(!r&&("left"===c.side||"bottom"===c.side)||r&&("top"===c.side||"right"===c.side))){if(c._vals){var f=i.deg2rad(c._tickAngles[c._id+"tick"]||0),d=Math.abs(Math.cos(f)),h=Math.abs(Math.sin(f));if(!c._vals[0].bb){var p=c._id+"tick";c._selections[p].each((function(e){var t=n.select(this);t.select(".text-math-group").empty()&&(e.bb=s.bBox(t.node()))}))}for(var v=0;v<c._vals.length;v++){var y=c._vals[v].bb;if(y){var m=2*g+y.width,x=2*g+y.height;a=Math.max(a,o?Math.max(m*d,x*h):Math.max(x*d,m*h))}}}"inside"===c.ticks&&"inside"===c.ticklabelposition&&(a+=c.ticklen||0)}}}return a}(e,t,r)),a=Math.max(c,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:c)}}e.exports={applyAutorangeOptions:T,getAutoRange:d,makePadFn:p,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=i.simpleMap(t._r,t.r2l);var n=t._input,a={};a[t._attr+".range"]=t.range,a[t._attr+".autorange"]=t.autorange,l.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),n.range=t.range.slice(),n.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var s=o.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=d(e,t)),o._input.rangeslider[t._name]=i.extendFlat({},s)}},findExtremes:function(e,t,r){r||(r={}),e._m||e.setScale();var n,i,l,s,u,c,f,d,h,p=[],g=[],v=t.length,x=r.padded||!1,_=r.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,M=!1,T=r.vpadLinearized||!1;function k(e){if(Array.isArray(e))return M=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var A=k((e._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),S=k((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),L=k(r.vpadplus||r.vpad),D=k(r.vpadminus||r.vpad);if(!M){if(d=1/0,h=-1/0,w)for(n=0;n<v;n++)(i=t[n])<d&&i>0&&(d=i),i>h&&i<o&&(h=i);else for(n=0;n<v;n++)(i=t[n])<d&&i>-o&&(d=i),i>h&&i<o&&(h=i);t=[d,h],v=2}var C={tozero:_,extrapad:x};function P(r){l=t[r],a(l)&&(c=A(r),f=S(r),T?(s=e.c2l(l)-D(r),u=e.c2l(l)+L(r)):(d=l-D(r),h=l+L(r),w&&d<h/10&&(d=h/10),s=e.c2l(d),u=e.c2l(h)),_&&(s=Math.min(0,s),u=Math.max(0,u)),b(s)&&y(p,s,f,C),b(u)&&m(g,u,c,C))}var O=Math.min(6,v);for(n=0;n<O;n++)P(n);for(n=v-1;n>=O;n--)P(n);return{min:p,max:g,opts:r}},concatExtremes:v};var g=3;function v(e,t,r){var n,a,i,o=t._id,l=e._fullData,s=e._fullLayout,u=[],f=[];function d(e,t){for(n=0;n<t.length;n++){var r=e[t[n]],l=(r._extremes||{})[o];if(!0===r.visible&&l){for(a=0;a<l.min.length;a++)i=l.min[a],y(u,i.val,i.pad,{extrapad:i.extrapad});for(a=0;a<l.max.length;a++)i=l.max[a],m(f,i.val,i.pad,{extrapad:i.extrapad})}}}if(d(l,t._traceIndices),d(s.annotations||[],t._annIndices||[]),d(s.shapes||[],t._shapeIndices||[]),t._matchGroup&&!r)for(var h in t._matchGroup)if(h!==t._id){var p=c(e,h),g=v(e,p,!0),x=t._length/p._length;for(a=0;a<g.min.length;a++)i=g.min[a],y(u,i.val,i.pad*x,{extrapad:i.extrapad});for(a=0;a<g.max.length;a++)i=g.max[a],m(f,i.val,i.pad*x,{extrapad:i.extrapad})}return{min:u,max:f}}function y(e,t,r,n){x(e,t,r,n,_)}function m(e,t,r,n){x(e,t,r,n,w)}function x(e,t,r,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(a(u.val,t)&&u.pad>=r&&(u.extrapad||!o)){l=!1;break}a(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var c=i&&0===t;e.push({val:t,pad:c?0:r,extrapad:!c&&o})}}function b(e){return a(e)&&Math.abs(e)<o}function _(e,t){return e<=t}function w(e,t){return e>=t}function M(e,t,r){return void 0===t||void 0===r||(t=e.d2l(t))<e.d2l(r)}function T(e,t){if(!t||!t.autorangeoptions)return e;var r=e[0],n=e[1],a=t.autorangeoptions.include;if(void 0!==a){var o=t.d2l(r),l=t.d2l(n);i.isArrayOrTypedArray(a)||(a=[a]);for(var s=0;s<a.length;s++){var u=t.d2l(a[s]);o>=u&&(o=u,r=u),l<=u&&(l=u,n=u)}}return r=function(e,t){var r=t.autorangeoptions;return r&&void 0!==r.minallowed&&M(t,r.minallowed,r.maxallowed)?r.minallowed:r&&void 0!==r.clipmin&&M(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}(r,t),n=function(e,t){var r=t.autorangeoptions;return r&&void 0!==r.maxallowed&&M(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&void 0!==r.clipmax&&M(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}(n,t),[r,n]}},6808:function(e){"use strict";e.exports=function(e,t,r){var n,a;if(r){var i="reversed"===t||"min reversed"===t||"max reversed"===t;n=r[i?1:0],a=r[i?0:1]}var o=e("autorangeoptions.minallowed",null===a?n:void 0),l=e("autorangeoptions.maxallowed",null===n?a:void 0);void 0===o&&e("autorangeoptions.clipmin"),void 0===l&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},4460:function(e,t,r){"use strict";var n=r(3428),a=r(8248),i=r(7316),o=r(4040),l=r(3400),s=l.strTranslate,u=r(2736),c=r(1668),f=r(6308),d=r(3616),h=r(4724),p=r(8728),g=r(9032),v=g.ONEMAXYEAR,y=g.ONEAVGYEAR,m=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,M=g.ONEAVGMONTH,T=g.ONEMINMONTH,k=g.ONEWEEK,A=g.ONEDAY,S=A/2,L=g.ONEHOUR,D=g.ONEMIN,C=g.ONESEC,P=g.MINUS_SIGN,O=g.BADNUM,R={K:"zeroline"},E={K:"gridline",L:"path"},I={K:"minor-gridline",L:"path"},N={K:"tick",L:"path"},z={K:"tick",L:"text"},F={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},j=r(4284),B=j.MID_SHIFT,H=j.CAP_SHIFT,G=j.LINE_SPACING,Y=j.OPPOSITE_SIDE,U=e.exports={};U.setConvert=r(8344);var q=r(2976),V=r(9811),W=V.idSort,Z=V.isLinked;U.id2name=V.id2name,U.name2id=V.name2id,U.cleanId=V.cleanId,U.list=V.list,U.listIds=V.listIds,U.getFromId=V.getFromId,U.getFromTrace=V.getFromTrace;var J=r(9280);U.getAutoRange=J.getAutoRange,U.findExtremes=J.findExtremes;var X=1e-4;function $(e){var t=(e[1]-e[0])*X;return[e[0]-t,e[1]+t]}U.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",c={};return a||(a=s[0]||("string"==typeof i?i:i[0])),i||(i=a),s=s.concat(s.map((function(e){return e+" domain"}))),c[u]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:a},l.coerce(e,t,c,u)},U.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},U.coercePosition=function(e,t,r,n,a,i){var o,s;if("range"!==U.getRefType(n))o=l.ensureNumber,s=r(a,i);else{var u=U.getFromId(t,n);s=r(a,i=u.fraction2r(i)),o=u.cleanPos}e[a]=o(s)},U.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:U.getFromId(t,r).cleanPos)(e)},U.redrawComponents=function(e,t){t=t||U.listIds(e);var r=e._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),u={},c=0;c<t.length;c++)for(var f=r[U.id2name(t[c])][i],d=0;d<f.length;d++){var h=f[d];if(!u[h]&&(s(e,h),u[h]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var K=U.getDataConversions=function(e,t,r,n){var a,i="x"===r||"y"===r||"z"===r?r:n;if(l.isArrayOrTypedArray(i)){if(a={type:q(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},U.setConvert(a),"category"===a.type)for(var o=0;o<n.length;o++)a.d2c(n[o])}else a=U.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:ee,c2d:ee}:{d2c:Q,c2d:Q}};function Q(e){return+e}function ee(e){return String(e)}function te(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function re(e,t){return Math.abs(e/t-1)<.001}function ne(e){return+e.substring(1)}function ae(e,t){return e.rangebreaks&&(t=t.filter((function(t){return e.maskBreaks(t.x)!==O}))),t}function ie(e){var t=e._mainAxis,r=[];if(t._vals)for(var n=0;n<t._vals.length;n++)if(!t._vals[n].noTick){var a=t.l2p(t._vals[n].x),i=e.p2l(a),o=U.tickText(e,i);t._vals[n].minor&&(o.minor=!0,o.text=""),r.push(o)}return ae(e,r)}function oe(e,t){var r=$(l.simpleMap(e.range,e.r2l)),n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i="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 o=[],s=0;s<=1;s++)if((void 0===t||!(t&&s||!1===t&&!s))&&(!s||e.minor)){var u=s?e.minor.tickvals:e.tickvals,c=s?[]:e.ticktext;if(u){l.isArrayOrTypedArray(c)||(c=[]);for(var f=0;f<u.length;f++){var d=i(u[f]);if(d>n&&d<a){var h=U.tickText(e,d,!1,String(c[f]));s&&(h.minor=!0,h.text=""),o.push(h)}}}}return ae(e,o)}U.getDataToCoordFunc=function(e,t,r,n){return K(e,t,r,n).d2c},U.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},U.minDtick=function(e,t,r,n){-1===["log","category","multicategory"].indexOf(e.type)&&n?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},U.saveRangeInitial=function(e,t){for(var r=U.list(e,"",!0),n=!1,a=0;a<r.length;a++){var i=r[a],o=void 0===i._rangeInitial0&&void 0===i._rangeInitial1,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(o&&!0!==s||t&&l)&&(i._rangeInitial0="min"===s||"max reversed"===s?void 0:i.range[0],i._rangeInitial1="max"===s||"min reversed"===s?void 0:i.range[1],i._autorangeInitial=s,n=!0)}return n},U.saveShowSpikeInitial=function(e,t){for(var r=U.list(e,"",!0),n=!1,a="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,n=!0),"on"!==a||o.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,n},U.autoBin=function(e,t,r,n,i,o){var s,u=l.aggNums(Math.min,null,e),c=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:u-.5,end:c+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:c-u};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[u,c]}:{type:t.type,range:l.simpleMap([u,c],t.c2r,0,i),calendar:i},U.setConvert(s),o=o&&p.dtick(o,s.type))s.dtick=o,s.tick0=p.tick0(void 0,s.type,i);else{var f;if(r)f=(c-u)/r;else{var d=l.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(d.minDiff)/Math.LN10)),g=h*l.roundUp(d.minDiff/h,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*l.stdev(e)/Math.pow(e.length,n?.25:.4)),a(f)||(f=1)}U.autoTicks(s,f)}var v,y=s.dtick,m=U.tickIncrement(U.tickFirst(s),y,"reverse",i);if("number"==typeof y)m=function(e,t,r,n,i){var o=0,l=0,s=0,u=0;function c(t){return(1+100*(t-e)/r.dtick)%100<2}for(var f=0;f<t.length;f++)t[f]%1==0?s++:a(t[f])||u++,c(t[f])&&o++,c(t[f]+r.dtick/2)&&l++;var d=t.length-u;if(s===d&&"date"!==r.type)r.dtick<1?e=n-.5*r.dtick:(e-=.5)+r.dtick<n&&(e+=r.dtick);else if(l<.1*d&&(o>.3*d||c(n)||c(i))){var h=r.dtick/2;e+=e+h<n?h:-h}return e}(m,e,s,u,c),v=m+(1+Math.floor((c-m)/y))*y;else for("M"===s.dtick.charAt(0)&&(m=function(e,t,r,n,a){var i=l.findExactDates(t,a);if(i.exactDays>.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?e=U.tickIncrement(e,"M6","reverse")+1.5*A:i.exactMonths>.8?e=U.tickIncrement(e,"M1","reverse")+15.5*A:e-=S;var s=U.tickIncrement(e,r);if(s<=n)return s}return e}(m,e,y,u,i)),v=m;v<=c;)v=U.tickIncrement(v,y,!1,i);return{start:t.c2r(m,0,i),end:t.c2r(v,0,i),size:y,_dataSpan:c-u}},U.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n,i=t.dtick&&a(t._tmin);if(i){var o=U.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,.99*o+.01*t._tmin]}else{var s=l.simpleMap(t.range,t.r2l);n=[s[0],.8*s[0]+.2*s[1]]}if(e.range=l.simpleMap(n,t.l2r),e._isMinor=!0,U.prepTicks(e,r),i){var u=a(t.dtick),c=a(e.dtick),f=u?t.dtick:+t.dtick.substring(1),d=c?e.dtick:+e.dtick.substring(1);u&&c?te(f,d)?f===2*k&&d===2*A&&(e.dtick=k):f===2*k&&d===3*A?e.dtick=k:f!==k||(t._input.minor||{}).nticks?re(f/d,2.5)?e.dtick=f/2:e.dtick=f:e.dtick=A:"M"===String(t.dtick).charAt(0)?c?e.dtick="M1":te(f,d)?f>=12&&2===d&&(e.dtick="M3"):e.dtick=t.dtick:"L"===String(e.dtick).charAt(0)?"L"===String(t.dtick).charAt(0)?te(f,d)||(e.dtick=re(f/d,2.5)?t.dtick/2:t.dtick):e.dtick="D1":"D2"===e.dtick&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}void 0===t.minor._tick0Init&&(e.tick0=t.tick0)},U.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),e.minor&&"array"!==e.minor.tickmode||"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,U.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!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=U.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=L,o&&!n&&e.dtick<L&&(e.dtick=L)):/%p/.test(i)?(t=S,o&&!n&&e.dtick<S&&(e.dtick=S)):/%[Aadejuwx]/.test(i)?(t=A,o&&!n&&e.dtick<A&&(e.dtick=A)):/%[UVW]/.test(i)?(t=k,o&&!n&&e.dtick<k&&(e.dtick=k)):/%[Bbm]/.test(i)?(t=M,o&&(n?ne(e.dtick)<1:e.dtick<T)&&(e.dtick="M1")):/%[q]/.test(i)?(t=b,o&&(n?ne(e.dtick)<3:e.dtick<_)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=y,o&&(n?ne(e.dtick)<12:e.dtick<m)&&(e.dtick="M12")))}(n=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),ge(e)},U.calcTicks=function(e,t){for(var r,n,i=e.type,o=e.calendar,s=e.ticklabelstep,u="period"===e.ticklabelmode,c=l.simpleMap(e.range,e.r2l,void 0,void 0,t),f=c[1]<c[0],d=Math.min(c[0],c[1]),h=Math.max(c[0],c[1]),p=Math.max(1e3,e._length||0),g=[],D=[],C=[],P=[],R=e.minor&&(e.minor.ticks||e.minor.showgrid),E=1;E>=(R?0:1);E--){var I=!E;E?(e._dtickInit=e.dtick,e._tick0Init=e.tick0):(e.minor._dtickInit=e.minor.dtick,e.minor._tick0Init=e.minor.tick0);var N=E?e:l.extendFlat({},e,e.minor);if(I?U.prepMinorTicks(N,e,t):U.prepTicks(N,t),"array"!==N.tickmode)if("sync"!==N.tickmode){var z=$(c),F=z[0],j=z[1],B=a(N.dtick),H="log"===i&&!(B||"L"===N.dtick.charAt(0)),G=U.tickFirst(N,t);if(E){if(e._tmin=G,G<F!==f)break;"category"!==i&&"multicategory"!==i||(j=f?Math.max(-.5,j):Math.min(e._categories.length-.5,j))}var Y,q,V=null,W=G;E&&(B?q=e.dtick:"date"===i?"string"==typeof e.dtick&&"M"===e.dtick.charAt(0)&&(q=M*e.dtick.substring(1)):q=e._roughDTick,Y=Math.round((e.r2l(W)-e.r2l(e.tick0))/q)-1);var Z=N.dtick;for(N.rangebreaks&&N._tick0Init!==N.tick0&&(W=Ie(W,e),f||(W=U.tickIncrement(W,Z,!f,o))),E&&u&&(W=U.tickIncrement(W,Z,!f,o),Y--);f?W>=j:W<=j;W=U.tickIncrement(W,Z,f,o)){if(E&&Y++,N.rangebreaks&&!f){if(W<F)continue;if(N.maskBreaks(W)===O&&Ie(W,N)>=h)break}if(C.length>p||W===V)break;V=W;var J={value:W};E?(H&&W!==(0|W)&&(J.simpleLabel=!0),s>1&&Y%s&&(J.skipLabel=!0),C.push(J)):(J.minor=!0,P.push(J))}}else C=[],g=ie(e);else E?(C=[],g=oe(e,!I)):(P=[],D=oe(e,!I))}if(R&&!("inside"===e.minor.ticks&&"outside"===e.ticks||"outside"===e.minor.ticks&&"inside"===e.ticks)){for(var X=C.map((function(e){return e.value})),K=[],Q=0;Q<P.length;Q++){var ee=P[Q],te=ee.value;if(-1===X.indexOf(te)){for(var re=!1,ne=0;!re&&ne<C.length;ne++)1e7+C[ne].value===1e7+te&&(re=!0);re||K.push(ee)}}P=K}if(u&&function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n].value,i=n,o=n+1;n<e.length-1?(i=n,o=n+1):n>0?(i=n-1,o=n):(i=n,o=n);var l,s=e[i].value,u=e[o].value,c=Math.abs(u-s),f=r||c,d=0;f>=m?d=c>=m&&c<=v?c:y:r===b&&f>=_?d=c>=_&&c<=x?c:b:f>=T?d=c>=T&&c<=w?c:M:r===k&&f>=k?d=k:f>=A?d=A:r===S&&f>=S?d=S:r===L&&f>=L&&(d=L),d>=c&&(d=c,l=!0);var h=a+d;if(t.rangebreaks&&d>0){for(var p=0,g=0;g<84;g++){var D=(g+.5)/84;t.maskBreaks(a*(1-D)+D*h)!==O&&p++}(d*=p/84)||(e[n].drop=!0),l&&c>k&&(d=c)}(d>0||0===n)&&(e[n].periodX=a+d/2)}}(C,e,e._definedDelta),e.rangebreaks){var ae="y"===e._id.charAt(0),le=1;"auto"===e.tickmode&&(le=e.tickfont?e.tickfont.size:12);var se=NaN;for(r=C.length-1;r>-1;r--)if(C[r].drop)C.splice(r,1);else{C[r].value=Ie(C[r].value,e);var ue=e.c2p(C[r].value);(ae?se>ue-le:se<ue+le)?C.splice(f?r+1:r,1):se=ue}}Ee(e)&&360===Math.abs(c[1]-c[0])&&C.pop(),e._tmax=(C[C.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var ce,fe,de=function(t){t.text="",e._prevDateHead=n};for(C=C.concat(P),r=0;r<C.length;r++){var he=C[r].minor,pe=C[r].value;he?D.push({x:pe,minor:!0}):(n=e._prevDateHead,ce=U.tickText(e,pe,!1,C[r].simpleLabel),void 0!==(fe=C[r].periodX)&&(ce.periodX=fe,(fe>h||fe<d)&&(fe>h&&(ce.periodX=h),fe<d&&(ce.periodX=d),de(ce))),C[r].skipLabel&&de(ce),g.push(ce))}return g=g.concat(D),e._inCalcTicks=!1,u&&g.length&&(g[0].noTick=!0),g};var le=[2,5,10],se=[1,2,3,6,12],ue=[1,2,5,10,15,30],ce=[1,2,3,7,14],fe=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],de=[-.301,0,.301,.699,1],he=[15,30,45,90,180];function pe(e,t,r){return t*l.roundUp(e/t,r)}function ge(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if("M"===String(t).charAt(0))i>10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=A&&i<=10||t>=15*A)e._tickround="d";else if(t>=D&&i<=16||t>=L)e._tickround="M";else if(t>=C&&i<=19||t>=D)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(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(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])),u=Math.floor(Math.log(s)/Math.LN10+.01),c=void 0===e.minexponent?3:e.minexponent;Math.abs(u)>c&&(me(e.exponentformat)&&!xe(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function ve(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}U.autoTicks=function(e,t,r){var n;function i(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var o=2*t;if(o>y)t/=y,n=i(10),e.dtick="M"+12*pe(t,n,le);else if(o>M)t/=M,e.dtick="M"+pe(t,1,se);else if(o>A){if(e.dtick=pe(t,A,e._hasDayOfWeekBreaks?[1,2,7,14]:ce),!r){var s=U.getTickFormat(e),u="period"===e.ticklabelmode;u&&(e._rawTick0=e.tick0),/%[uVW]/.test(s)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),u&&(e._dowTick0=e.tick0)}}else o>L?e.dtick=pe(t,L,se):o>D?e.dtick=pe(t,D,ue):o>C?e.dtick=pe(t,C,ue):(n=i(10),e.dtick=pe(t,n,le))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var f=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/f,n=i(10),e.dtick="L"+pe(t,n,le)}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))):Ee(e)?(e.tick0=0,n=1,e.dtick=pe(t,n,he)):(e.tick0=0,n=i(10),e.dtick=pe(t,n,le));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var d=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(d)}},U.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(a(t))return l.increment(e,o*t);var s=t.charAt(0),u=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,u,i);if("L"===s)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===s){var c="D2"===t?de:fe,f=e+.01*o,d=l.roundUp(l.mod(f,1),c,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},U.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,u=$(i)[0],c=e.dtick,f=r(e.tick0);if(a(c)){var d=s((u-f)/c)*c+f;return"category"!==e.type&&"multicategory"!==e.type||(d=l.constrain(d,0,e._categories.length-1)),d}var h=c.charAt(0),p=Number(c.substr(1));if("M"===h){for(var g,v,y,m=0,x=f;m<10;){if(((g=U.tickIncrement(x,c,o,e.calendar))-u)*(x-u)<=0)return o?Math.min(x,g):Math.max(x,g);v=(u-(x+g)/2)/(g-x),y=h+(Math.abs(Math.round(v))||1)*p,x=U.tickIncrement(x,y,v<0?!o:o,e.calendar),m++}return l.error("tickFirst did not converge",e),x}if("L"===h)return Math.log(s((Math.pow(10,u)-f)/p)*p+f)/Math.LN10;if("D"===h){var b="D2"===c?de:fe,_=l.roundUp(l.mod(u,1),b,o);return Math.floor(u)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw"unrecognized dtick "+String(c)},U.tickText=function(e,t,r,n){var i,o=ve(e,t),s="array"===e.tickmode,u=r||s,c=e.type,f="category"===c?e.d2l_noadd:e.d2l,d=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};if(s&&l.isArrayOrTypedArray(e.ticktext)){var h=l.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-f(e.tickvals[i]))<p);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o.xbnd=[d(o.x-.5),d(o.x+e.dtick-.5)],o}function g(n){if(void 0===n)return!0;if(r)return"none"===n;var a={first:e._tmin,last:e._tmax}[n];return"all"!==n&&t!==a}var v=r?"never":"none"!==e.exponentformat&&g(e.showexponent)?"hide":"";if("date"===c?function(e,t,r,n){var i=e._tickround,o=r&&e.hoverformat||U.getTickFormat(e);(n=!o&&n)&&(i=a(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,u=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),c=u.indexOf("\n");if(-1!==c&&(s=u.substr(c+1),u=u.substr(0,c)),n&&(void 0===s||"00:00:00"!==u&&"00:00"!==u?8===u.length&&(u=u.replace(/:00$/,"")):(u=s,s="")),s)if(r)"d"===i?u+=", "+s:u=s+(u?", "+u:"");else if(e._inCalcTicks&&e._prevDateHead===s){var f=Ne(e),d=e._trueSide||e.side;(!f&&"top"===d||f&&"bottom"===d)&&(u+="<br> ")}else e._prevDateHead=s,u+="<br>"+s;t.text=u}(e,o,r,u):"log"===c?function(e,t,r,n,i){var o=e.dtick,s=t.x,u=e.tickformat,c="string"==typeof o&&o.charAt(0);if("never"===i&&(i=""),n&&"L"!==c&&(o="L3",c="L"),u||"L"===c)t.text=be(Math.pow(10,s),e,i,n);else if(a(o)||"D"===c&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),h=e.exponentformat;"power"===h||me(h)&&xe(f)?(t.text=0===f?1:1===f?"10":"10<sup>"+(f>1?"":P)+d+"</sup>",t.fontSize*=1.25):("e"===h||"E"===h)&&d>2?t.text="1"+h+(f>0?"+":P)+d:(t.text=be(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==c)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,u,v):"category"===c?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r=""),t.text=String(r)}(e,o):"multicategory"===c?function(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Ee(e)?function(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=be(t.x,e,a,n);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),n=e*r,a=Math.abs(function e(r,n){return t(n,0)?r:e(n,r%n)}(n,r));return[Math.round(n/a),Math.round(r/a)]}(i);if(o[1]>=100)t.text=be(l.deg2rad(t.x),e,a,n);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=P+t.text)}}}}(e,o,r,u,v):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=be(t.x,e,a,n)}(e,o,0,u,v),n||(e.tickprefix&&!g(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!g(e.showticksuffix)&&(o.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(o.text)){var y=e.labelalias[o.text];"string"==typeof y&&(o.text=y)}return("boundaries"===e.tickson||e.showdividers)&&(o.xbnd=[d(o.x-.5),d(o.x+e.dtick-.5)]),o},U.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var n=l.isArrayOrTypedArray(t)?t[0]:t,a=l.isArrayOrTypedArray(t)?t[1]:void 0;if(void 0!==a&&a!==n)return U.hoverLabelText(e,n,r)+" - "+U.hoverLabelText(e,a,r);var i="log"===e.type&&n<=0,o=U.tickText(e,e.c2l(i?-n:n),"hover").text;return i?0===n?"0":P+o:o};var ye=["f","p","n","μ","m","","k","M","G","T"];function me(e){return"SI"===e||"B"===e}function xe(e){return e>14||e<-15}function be(e,t,r,n){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",u=t._tickexponent,c=U.getTickFormat(t),f=t.separatethousands;if(n){var d={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ge(d),o=(Number(d._tickround)||0)+4,u=d._tickexponent,t.hoverformat&&(c=t.hoverformat)}if(c)return t._numFormat(c)(e).replace(/-/g,P);var h,p=Math.pow(10,-o)/2;if("none"===s&&(u=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,u&&(e*=Math.pow(10,-u),o+=u),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 v=(e=String(e)).indexOf(".")+1;v&&(e=e.substr(0,v+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,f)}return u&&"hide"!==s&&(me(s)&&xe(u)&&(s="power"),h=u<0?P+-u:"power"!==s?"+"+u:String(u),"e"===s||"E"===s?e+=s+h:"power"===s?e+="×10<sup>"+h+"</sup>":"B"===s&&9===u?e+="B":me(s)&&(e+=ye[u/3+5])),i?P+e:e}function _e(e,t){if(e){var r=Object.keys(F).reduce((function(e,r){return-1!==t.indexOf(r)&&F[r].forEach((function(t){e[t]=1})),e}),{});Object.keys(e).forEach((function(t){r[t]||(1===t.length?e[t]=0:delete e[t])}))}}function we(e,t){for(var r=[],n={},a=0;a<t.length;a++){var i=t[a];n[i.text2]?n[i.text2].push(i.x):n[i.text2]=[i.x]}for(var o in n)r.push(ve(e,l.interp(n[o],.5),o));return r}function Me(e){return void 0!==e.periodX?e.periodX:e.x}function Te(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function ke(e){var t=e.title.font.size,r=(e.title.text.match(u.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r?t*(H+r*G):t*H:r?t*(r+1)*G:t}function Ae(e,t){var r=e.l2p(t);return r>1&&r<e._length-1}function Se(e){var t=n.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}function Le(e){return e._id+".automargin"}function De(e){return Le(e)+".mirror"}function Ce(e){return e._id+".rangeslider"}function Pe(e,t){for(var r=0;r<t.length;r++)-1===e.indexOf(t[r])&&e.push(t[r])}function Oe(e,t,r){var n,a,i=[],o=[],s=e.layout;for(n=0;n<t.length;n++)i.push(U.getFromId(e,t[n]));for(n=0;n<r.length;n++)o.push(U.getFromId(e,r[n]));var u=Object.keys(h),c=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(n=0;n<u.length;n++){var d=u[n],p=i[0][d],g=o[0][d],v=!0,y=!1,m=!1;if("_"!==d.charAt(0)&&"function"!=typeof p&&-1===c.indexOf(d)){for(a=1;a<i.length&&v;a++){var x=i[a][d];"type"===d&&-1!==f.indexOf(p)&&-1!==f.indexOf(x)&&p!==x?y=!0:x!==p&&(v=!1)}for(a=1;a<o.length&&v;a++){var b=o[a][d];"type"===d&&-1!==f.indexOf(g)&&-1!==f.indexOf(b)&&g!==b?m=!0:o[a][d]!==g&&(v=!1)}v&&(y&&(s[i[0]._name].type="linear"),m&&(s[o[0]._name].type="linear"),Re(s,d,i,o,e._fullLayout._dfltTitle))}}for(n=0;n<e._fullLayout.annotations.length;n++){var _=e._fullLayout.annotations[n];-1!==t.indexOf(_.xref)&&-1!==r.indexOf(_.yref)&&l.swapAttrs(s.annotations[n],["?"])}}function Re(e,t,r,n,a){var i,o=l.nestedProperty,s=o(e[r[0]._name],t).get(),u=o(e[n[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),u&&u.text===a.y&&(u.text=a.x)),i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(u);for(i=0;i<n.length;i++)o(e,n[i]._name+"."+t).set(s)}function Ee(e){return"angularaxis"===e._id}function Ie(e,t){for(var r=t._rangebreaks.length,n=0;n<r;n++){var a=t._rangebreaks[n];if(e>=a.min&&e<a.max)return a.max}return e}function Ne(e){return-1!==(e.ticklabelposition||"").indexOf("inside")}function ze(e,t){Ne(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function Fe(e,t,r,n){var a,i="free"===e.anchor||void 0!==e.overlaying&&!1!==e.overlaying?e.overlaying:e._id;a=n?"right"===e.side?t:-t:t,i in r||(r[i]={}),e.side in r[i]||(r[i][e.side]=0),r[i][e.side]+=a}U.getTickFormat=function(e){var t,r,n,a,i,o,l,s;function u(e){return"string"!=typeof e?e:Number(e.replace("M",""))*M}function c(e,t){var r=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var n=r.indexOf(e.charAt(0)),a=r.indexOf(t.charAt(0));return n===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):n-a}return"number"==typeof e?1:-1}function f(e,t){var r=null===t[0],n=null===t[1],a=c(e,t[0])>=0,i=c(e,t[1])<=0;return(r||a)&&(n||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&(a=e.dtick,i=n.dtickrange,o=void 0,l=void 0,s=void 0,o=u||function(e){return e},l=i[0],s=i[1],(!l&&"number"!=typeof l||o(l)<=o(a))&&(!s&&"number"!=typeof s||o(s)>=o(a)))){r=n;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((n=e.tickformatstops[t]).enabled&&f(e.dtick,n.dtickrange)){r=n;break}}return r?r.value:e.tickformat},U.getSubplots=function(e,t){var r=e._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),a=t?U.findSubplotsWithAxis(n,t):n;return a.sort((function(e,t){var r=e.substr(1).split("y"),n=t.substr(1).split("y");return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),a},U.findSubplotsWithAxis=function(e,t){for(var r=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),n=[],a=0;a<e.length;a++){var i=e[a];r.test(i)&&n.push(i)}return n},U.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=U.list(e,"x",!0),s=U.list(e,"y",!0),u=[];for(r=0;r<l.length;r++)for(u.push({x:l[r],y:o}),a=0;a<s.length;a++)0===r&&u.push({x:i,y:s[a]}),u.push({x:l[r],y:s[a]});var c=t._clips.selectAll(".axesclip").data(u,(function(e){return e.x._id+e.y._id}));c.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),c.exit().remove(),c.each((function(e){n.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})}))}},U.draw=function(e,t,r){var n=e._fullLayout;"redraw"===t&&n._paper.selectAll("g.subplot").each((function(e){var t=e[0],r=n._plots[t];if(r){var a=r.xaxis,i=r.yaxis;r.xaxislayer.selectAll("."+a._id+"tick").remove(),r.yaxislayer.selectAll("."+i._id+"tick").remove(),r.xaxislayer.selectAll("."+a._id+"tick2").remove(),r.yaxislayer.selectAll("."+i._id+"tick2").remove(),r.xaxislayer.selectAll("."+a._id+"divider").remove(),r.yaxislayer.selectAll("."+i._id+"divider").remove(),r.minorGridlayer&&r.minorGridlayer.selectAll("path").remove(),r.gridlayer&&r.gridlayer.selectAll("path").remove(),r.zerolinelayer&&r.zerolinelayer.selectAll("path").remove(),n._infolayer.select(".g-"+a._id+"title").remove(),n._infolayer.select(".g-"+i._id+"title").remove()}}));var a=t&&"redraw"!==t?t:U.listIds(e),i=U.list(e).filter((function(e){return e.autoshift})).map((function(e){return e.overlaying}));a.map((function(t){var r=U.getFromId(e,t);if("sync"===r.tickmode&&r.overlaying){var n=a.findIndex((function(e){return e===r.overlaying}));n>=0&&a.unshift(a.splice(n,1).shift())}}));var o={false:{left:0,right:0}};return l.syncOrAsync(a.map((function(t){return function(){if(t){var n=U.getFromId(e,t);r||(r={}),r.axShifts=o,r.overlayingShiftedAx=i;var a=U.drawOne(e,n,r);return n._shiftPusher&&Fe(n,n._fullDepth||0,o,!0),n._r=n.range.slice(),n._rl=l.simpleMap(n._r,n.r2l),a}}})))},U.drawOne=function(e,t,r){var n,a,s,u=(r=r||{}).axShifts||{},h=r.overlayingShiftedAx||[];t.setScale();var p=e._fullLayout,g=t._id,v=g.charAt(0),y=U.counterLetter(g),m=p._plots[t._mainSubplot];if(m){if(t._shiftPusher=t.autoshift||-1!==h.indexOf(t._id)||-1!==h.indexOf(t.overlaying),t._shiftPusher&"free"===t.anchor){var x=t.linewidth/2||0;"inside"===t.ticks&&(x+=t.ticklen),Fe(t,x,u,!0),Fe(t,t.shift||0,u,!1)}!0===r.skipTitle&&void 0!==t._shift||(t._shift=function(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}(t,u));var b=m[v+"axislayer"],_=t._mainLinePosition,w=_+=t._shift,M=t._mainMirrorPosition,T=t._vals=U.calcTicks(t),k=[t.mirror,w,M].join("_");for(n=0;n<T.length;n++)T[n].axInfo=k;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var A={};if(t.visible){var S,L,D=U.makeTransTickFn(t),C=U.makeTransTickLabelFn(t),P="inside"===t.ticks,O="outside"===t.ticks;if("boundaries"===t.tickson){var R=function(e,t){var r,n=[],a=function(e,t){var r=e.xbnd[t];null!==r&&n.push(l.extendFlat({},e,{x:r}))};if(t.length){for(r=0;r<t.length;r++)a(t[r],0);a(t[r-1],1)}return n}(0,T);L=U.clipEnds(t,R),S=P?L:R}else L=U.clipEnds(t,T),S=P&&"period"!==t.ticklabelmode?L:T;var E,I=t._gridVals=L,N=function(e,t){var r,n,a=[],i=t.length&&t[t.length-1].x<t[0].x,o=function(e,t){var r=e.xbnd[t];null!==r&&a.push(l.extendFlat({},e,{x:r}))};if(e.showdividers&&t.length){for(r=0;r<t.length;r++){var s=t[r];s.text2!==n&&o(s,i?1:0),n=s.text2}o(t[r-1],i?0:1)}return a}(t,T);if(!p._hasOnlyLargeSploms){var z=t._subplotsWith,F={};for(n=0;n<z.length;n++){a=z[n];var j=(s=p._plots[a])[y+"axis"],B=j._mainAxis._id;if(!F[B]){F[B]=1;var H="x"===v?"M0,"+j._offset+"v"+j._length:"M"+j._offset+",0h"+j._length;U.drawGrid(e,t,{vals:I,counterAxis:j,layer:s.gridlayer.select("."+g),minorLayer:s.minorGridlayer.select("."+g),path:H,transFn:D}),U.drawZeroLine(e,t,{counterAxis:j,layer:s.zerolinelayer,path:H,transFn:D})}}}var q=U.getTickSigns(t),V=U.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var W,Z,J,X,$=U.makeTickPath(t,w,q[2]),K=U.makeTickPath(t,w,V[2],{minor:!0});if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(W=U.makeTickPath(t,M,q[3]),Z=U.makeTickPath(t,M,V[3],{minor:!0}),J=$+W,X=K+Z):(W="",Z="",J=$,X=K),t.showdividers&&O&&"boundaries"===t.tickson){var Q={};for(n=0;n<N.length;n++)Q[N[n].x]=1;E=function(e){return Q[e.x]?W:J}}else E=function(e){return e.minor?X:J}}if(U.drawTicks(e,t,{vals:S,layer:b,path:E,transFn:D}),"allticks"===t.mirror){var ee=Object.keys(t._linepositions||{});for(n=0;n<ee.length;n++){a=ee[n],s=p._plots[a];var te=t._linepositions[a]||[],re=te[0],ne=te[1],ae=te[2],ie=U.makeTickPath(t,re,ae?q[0]:V[0],{minor:ae})+U.makeTickPath(t,ne,ae?q[1]:V[1],{minor:ae});U.drawTicks(e,t,{vals:S,layer:s[v+"axislayer"],path:ie,transFn:D})}}var oe=[];if(oe.push((function(){return U.drawLabels(e,t,{vals:T,layer:b,plotinfo:s,transFn:C,labelFns:U.makeLabelFns(t,w)})})),"multicategory"===t.type){var le={x:2,y:10}[v];oe.push((function(){var r={x:"height",y:"width"}[v],n=ue()[r]+le+(t._tickAngles[g+"tick"]?t.tickfont.size*G:0);return U.drawLabels(e,t,{vals:we(t,T),layer:b,cls:g+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:D,labelFns:U.makeLabelFns(t,w+n*q[4])})})),oe.push((function(){return t._depth=q[4]*(ue("tick2")[t.side]-w),function(e,t,r){var n=t._id+"divider",a=r.vals,i=r.layer.selectAll("path."+n).data(a,Te);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(f.stroke,t.dividercolor).style("stroke-width",d.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",r.transFn).attr("d",r.path)}(e,t,{vals:N,layer:b,path:U.makeTickPath(t,w,q[4],{len:t._depth}),transFn:D})}))}else t.title.hasOwnProperty("standoff")&&oe.push((function(){t._depth=q[4]*(ue()[t.side]-w)}));var se=o.getComponentMethod("rangeslider","isVisible")(t);return r.skipTitle||se&&"bottom"===t.side||oe.push((function(){return function(e,t){var r,n=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+ke(t);else{var l=Ne(t);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 u,f,h,p,g=U.getPxPosition(e,t);if("x"===i?(f=t._offset+t._length/2,h="top"===t.side?g-r:g+r):(h=t._offset+t._length/2,f="right"===t.side?g+r:g-r,u={rotate:"-90",offset:0}),"multicategory"!==t.type){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var y=d.getTranslate(v.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=r,c.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:p,transform:u,attributes:{x:f,y:h,"text-anchor":"middle"}})}(e,t)})),oe.push((function(){var r,n,a,l,s=t.side.charAt(0),u=Y[t.side].charAt(0),c=U.getPxPosition(e,t),f=O?t.ticklen:0;(t.automargin||se||t._shiftPusher)&&("multicategory"===t.type?r=ue("tick2"):(r=ue(),"x"===v&&"b"===s&&(t._depth=Math.max(r.width>0?r.bottom-c:0,f))));var d=0,h=0;if(t._shiftPusher&&(d=Math.max(f,r.height>0?"l"===s?c-r.left:r.right-c:0),t.title.text!==p._dfltTitle[v]&&(h=(t._titleStandoff||0)+(t._titleScoot||0),"l"===s&&(h+=ke(t))),t._fullDepth=Math.max(d,h)),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var g=[0,1],m="number"==typeof t._shift?t._shift:0;if("x"===v){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?c-r.top:0,f),g.reverse()),r.width>0){var x=r.right-(t._offset+t._length);x>0&&(n.xr=1,n.r=x);var b=t._offset-r.left;b>0&&(n.xl=0,n.l=b)}}else if("l"===s?(t._depth=Math.max(r.height>0?c-r.left:0,f),n[s]=t._depth-m):(t._depth=Math.max(r.height>0?r.right-c:0,f),n[s]=t._depth+m,g.reverse()),r.height>0){var _=r.bottom-(t._offset+t._length);_>0&&(n.yb=0,n.b=_);var w=t._offset-r.top;w>0&&(n.yt=1,n.t=w)}n[y]="free"===t.anchor?t.position:t._anchorAxis.domain[g[0]],t.title.text!==p._dfltTitle[v]&&(n[s]+=ke(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[u]+=f),!0===t.mirror||"ticks"===t.mirror?a[y]=t._anchorAxis.domain[g[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[y]=[t._counterDomainMin,t._counterDomainMax][g[1]]))}se&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),"string"==typeof t.automargin&&(_e(n,t.automargin),_e(a,t.automargin)),i.autoMargin(e,Le(t),n),i.autoMargin(e,De(t),a),i.autoMargin(e,Ce(t),l)})),l.syncOrAsync(oe)}}function ue(e){var r=g+(e||"tick");return A[r]||(A[r]=function(e,t,r){var n,a,i,o;if(e._selections[t].size())n=1/0,a=-1/0,i=1/0,o=-1/0,e._selections[t].each((function(){var e=Se(this),t=d.bBox(e.node().parentNode);n=Math.min(n,t.top),a=Math.max(a,t.bottom),i=Math.min(i,t.left),o=Math.max(o,t.right)}));else{var l=U.makeLabelFns(e,r);n=a=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:a,left:i,right:o,height:a-n,width:o-i}}(t,r,w)),A[r]}},U.getTickSigns=function(e,t){var r=e._id.charAt(0),n={x:"top",y:"right"}[r],a=e.side===n?1:-1,i=[-1,1,a,-a];return"inside"!==(t?(e.minor||{}).ticks:e.ticks)==("x"===r)&&(i=i.map((function(e){return-e}))),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},U.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))}},U.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),a=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||a||n||i;if(!s&&!l)return[0,0];var u=e.side,c=s?(e.tickwidth||0)/2:0,f=3,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*H,f+=(e.linewidth||0)/2),(a||i)&&(c+=(e.linewidth||0)/2,f+=3),l&&"top"===u&&(f-=d*(1-H)),(a||n)&&(c=-c),"bottom"!==u&&"right"!==u||(f=-f),[s?c:0,l?f:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(Me(t)),n)}:function(t){return s(n,r+e._offset+e.l2p(Me(t)))}},U.makeTickPath=function(e,t,r,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=void 0!==n.len?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return"x"===o?"M0,"+(t+l*r)+"v"+i*r:"M"+(t+l*r)+",0h"+i*r},U.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},o=i("top"),s=i("left"),u=i("right"),c=i("bottom")||s||o||u,f=i("inside"),d="inside"===n&&"inside"===e.ticks||!f&&"outside"===e.ticks&&"boundaries"!==e.tickson,h=0,p=0,g=d?e.ticklen:0;if(f?g*=-1:c&&(g=0),d&&(h+=g,r)){var v=l.deg2rad(r);h=g*Math.cos(v)+1,p=g*Math.sin(v)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size);var y,m,x,b,_,w={labelStandoff:h+=(e.linewidth||1)/2*(f?-1:1),labelShift:p},M=0,T=e.side,k=e._id.charAt(0),A=e.tickangle;if("x"===k)b=(_=!f&&"bottom"===T||f&&"top"===T)?1:-1,f&&(b*=-1),y=p*b,m=t+h*b,x=_?1:-.2,90===Math.abs(A)&&(f?x+=B:x=-90===A&&"bottom"===T?H:90===A&&"top"===T?B:.5,M=B/2*(A/90)),w.xFn=function(e){return e.dx+y+M*e.fontSize},w.yFn=function(e){return e.dy+m+e.fontSize*x},w.anchorFn=function(e,t){if(c){if(s)return"end";if(u)return"start"}return a(t)&&0!==t&&180!==t?t*b<0!==f?"end":"start":"middle"},w.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==f?-n:0};else if("y"===k){if(b=(_=!f&&"left"===T||f&&"right"===T)?1:-1,f&&(b*=-1),y=h,m=p*b,x=0,f||90!==Math.abs(A)||(x=-90===A&&"left"===T||90===A&&"right"===T?H:.5),f){var S=a(A)?+A:0;if(0!==S){var L=l.deg2rad(S);M=Math.abs(Math.sin(L))*H*b,x=0}}w.xFn=function(e){return e.dx+t-(y+e.fontSize*x)*b+M*e.fontSize},w.yFn=function(e){return e.dy+m+e.fontSize*B},w.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},U.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter((function(e){return e.minor&&!e.noTick})):[]).concat(t.ticks?r.vals.filter((function(e){return!e.minor&&!e.noTick})):[]),o=r.layer.selectAll("path."+a).data(i,Te);o.exit().remove(),o.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).each((function(e){return f.stroke(n.select(this),e.minor?t.minor.tickcolor:t.tickcolor)})).style("stroke-width",(function(r){return d.crispRound(e,r.minor?t.minor.tickwidth:t.tickwidth,1)+"px"})).attr("d",r.path).style("display",null),ze(t,[N]),o.attr("transform",r.transFn)},U.drawGrid=function(e,t,r){if(r=r||{},"sync"!==t.tickmode){var a=t._id+"grid",i=t.minor&&t.minor.showgrid,o=i?r.vals.filter((function(e){return e.minor})):[],l=t.showgrid?r.vals.filter((function(e){return!e.minor})):[],s=r.counterAxis;if(s&&U.shouldShowZeroLine(e,t,s))for(var u="array"===t.tickmode,c=0;c<l.length;c++){var h=l[c].x;if(u?!h:Math.abs(h)<t.dtick/100){if(l=l.slice(0,c).concat(l.slice(c+1)),!u)break;c--}}t._gw=d.crispRound(e,t.gridwidth,1);for(var p=i?d.crispRound(e,t.minor.gridwidth,1):0,g=r.layer,v=r.minorLayer,y=1;y>=0;y--){var m=y?g:v;if(m){var x=m.selectAll("path."+a).data(y?l:o,Te);x.exit().remove(),x.enter().append("path").classed(a,1).classed("crisp",!1!==r.crisp),x.attr("transform",r.transFn).attr("d",r.path).each((function(e){return f.stroke(n.select(this),e.minor?t.minor.gridcolor:t.gridcolor||"#ddd")})).style("stroke-dasharray",(function(e){return d.dashStyle(e.minor?t.minor.griddash:t.griddash,e.minor?t.minor.gridwidth:t.gridwidth)})).style("stroke-width",(function(e){return(e.minor?p:t._gw)+"px"})).style("display",null),"function"==typeof r.path&&x.attr("d",r.path)}}ze(t,[E,I])}},U.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",a=U.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+n).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",!1!==r.crisp).each((function(){r.layer.selectAll("path").sort((function(e,t){return W(e.id,t.id)}))})),i.attr("transform",r.transFn).attr("d",r.path).call(f.stroke,t.zerolinecolor||f.defaultLine).style("stroke-width",d.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),ze(t,[R])},U.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,o=t._id,c=r.cls||o+"tick",f=r.vals.filter((function(e){return e.text})),h=r.labelFns,p=r.secondary?0:t.tickangle,g=(t._prevTickAngles||{})[c],v=r.layer.selectAll("g."+c).data(t.showticklabels?f:[],Te),y=[];function m(e,i){e.each((function(e){var o=n.select(this),l=o.select(".text-math-group"),c=h.anchorFn(e,i),f=r.transFn.call(o.node(),e)+(a(i)&&0!=+i?" rotate("+i+","+h.xFn(e)+","+(h.yFn(e)-e.fontSize/2)+")":""),p=u.lineCount(o),g=G*e.fontSize,v=h.heightFn(e,a(i)?+i:0,(p-1)*g);if(v&&(f+=s(0,v)),l.empty()){var y=o.select("text");y.attr({transform:f,"text-anchor":c}),y.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var m=d.bBox(l.node()).width*{end:-.5,start:.5}[c];l.attr("transform",f+s(m,0))}}))}v.enter().append("g").classed(c,1).append("text").attr("text-anchor","middle").each((function(t){var r=n.select(this),a=e._promises.length;r.call(u.positionText,h.xFn(t),h.yFn(t)).call(d.font,t.font,t.fontSize,t.fontColor).text(t.text).call(u.convertToTspans,e),e._promises[a]?y.push(e._promises.pop().then((function(){m(r,p)}))):m(r,p)})),ze(t,[z]),v.exit().remove(),r.repositionOnUpdate&&v.each((function(e){n.select(this).select("text").call(u.positionText,h.xFn(e),h.yFn(e))})),t._adjustTickLabelsOverflow=function(){var r=t.ticklabeloverflow;if(r&&"allow"!==r){var a=-1!==r.indexOf("hide"),o="x"===t._id.charAt(0),s=0,u=o?e._fullLayout.width:e._fullLayout.height;if(-1!==r.indexOf("domain")){var c=l.simpleMap(t.range,t.r2l);s=t.l2p(c[0])+t._offset,u=t.l2p(c[1])+t._offset}var f=Math.min(s,u),h=Math.max(s,u),p=t.side,g=1/0,y=-1/0;for(var m in v.each((function(e){var r=n.select(this);if(r.select(".text-math-group").empty()){var i=d.bBox(r.node()),l=0;o?(i.right>h||i.left<f)&&(l=1):(i.bottom>h||i.top+(t.tickangle?0:e.fontSize/4)<f)&&(l=1);var s=r.select("text");l?a&&s.style("opacity",0):(s.style("opacity",1),g="bottom"===p||"right"===p?Math.min(g,o?i.top:i.left):-1/0,y="top"===p||"left"===p?Math.max(y,o?i.bottom:i.right):1/0)}})),i._plots){var x=i._plots[m];if(t._id===x.xaxis._id||t._id===x.yaxis._id){var b=o?x.yaxis:x.xaxis;b&&(b["_visibleLabelMin_"+t._id]=g,b["_visibleLabelMax_"+t._id]=y)}}}},t._hideCounterAxisInsideTickLabels=function(e){var r="x"===t._id.charAt(0),a=[];for(var o in i._plots){var l=i._plots[o];t._id!==l.xaxis._id&&t._id!==l.yaxis._id||a.push(r?l.yaxis:l.xaxis)}a.forEach((function(r,a){r&&Ne(r)&&(e||[R,I,E,N,z]).forEach((function(e){var o="tick"===e.K&&"text"===e.L&&"period"===t.ticklabelmode,l=i._plots[t._mainSubplot];(e.K===R.K?l.zerolinelayer.selectAll("."+t._id+"zl"):e.K===I.K?l.minorGridlayer.selectAll("."+t._id):e.K===E.K?l.gridlayer.selectAll("."+t._id):l[t._id.charAt(0)+"axislayer"]).each((function(){var i=n.select(this);e.L&&(i=i.selectAll(e.L)),i.each((function(i){var l=t.l2p(o?Me(i):i.x)+t._offset,s=n.select(this);l<t["_visibleLabelMax_"+r._id]&&l>t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||a||s.style("display",null)}))}))}))}))},m(v,g+1?g:p);var x=null;t._selections&&(t._selections[c]=v);var b=[function(){return y.length&&Promise.all(y)}];t.automargin&&i._redrawFromAutoMarginCount&&90===g?(x=g,b.push((function(){m(v,g)}))):b.push((function(){if(m(v,p),f.length&&t.autotickangles&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=t.autotickangles[0];var e,n=0,a=[],i=1;if(v.each((function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),o=Se(this),l=d.bBox(o.node());i=Math.max(i,u.lineCount(o)),a.push({top:0,bottom:10,height:10,left:r-l.width/2,right:r+l.width/2+2,width:l.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=f.length,s=Math.abs((f[o-1].x-f[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",h=function(e){return-1!==c.indexOf(e)},g=h("top"),y=h("left"),b=h("right"),_=h("bottom")||y||g||b?(t.tickwidth||0)+6:0,w=s,M=1.25*n*i,T=w/Math.sqrt(Math.pow(w,2)+Math.pow(M,2)),k=t.autotickangles.map((function(e){return e*Math.PI/180})),A=k.find((function(e){return Math.abs(Math.cos(e))<=T}));void 0===A&&(A=k.reduce((function(e,t){return Math.abs(Math.cos(e))<Math.abs(Math.cos(t))?e:t}),k[0]));var S=A*(180/Math.PI);for(e=0;e<a.length-1;e++)if(l.bBoxIntersect(a[e],a[e+1],_)){x=S;break}}else{var L=2;for(t.ticks&&(L+=t.tickwidth/2),e=0;e<a.length;e++){var D=f[e].xbnd,C=a[e];if(null!==D[0]&&C.left-t.l2p(D[0])<L||null!==D[1]&&t.l2p(D[1])-C.right<L){x=90;break}}}x&&m(v,x)}})),t._tickAngles&&b.push((function(){t._tickAngles[c]=null===x?a(p)?p:0:x}));var _=function(){var e=0,r=0;return v.each((function(n,a){var i,o=Se(this);o.select(".text-math-group").empty()&&(t._vals[a]&&(i=t._vals[a].bb||d.bBox(o.node()),t._vals[a].bb=i),e=Math.max(e,i.width),r=Math.max(r,i.height))})),{labelsMaxW:e,labelsMaxH:r}},w=t._anchorAxis;if(w&&(w.autorange||w.insiderange)&&Ne(t)&&!Z(i,t._id)&&(i._insideTickLabelsUpdaterange||(i._insideTickLabelsUpdaterange={}),w.autorange&&(i._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,b.push(_)),w.insiderange)){var M=_(),T="y"===t._id.charAt(0)?M.labelsMaxW:M.labelsMaxH;T+=6,"inside"===t.ticklabelposition&&(T+=t.ticklen||0);var k="right"===t.side||"top"===t.side?1:-1,A=1===k?1:0,S=1===k?0:1,L=[];L[S]=w.range[S];var D=w.range,C=w.r2p(D[A]),P=w.r2p(D[S]),O=i._insideTickLabelsUpdaterange[w._name+".range"];if(O){var F=w.r2p(O[A]),j=w.r2p(O[S]),B=k*("y"===t._id.charAt(0)?1:-1);B*C<B*F&&(C=F,L[A]=D[A]=O[A]),B*P>B*j&&(P=j,L[S]=D[S]=O[S])}var H=Math.abs(P-C);H-T>0?T*=1+T/(H-=T):T=0,"y"!==t._id.charAt(0)&&(T=-T),L[A]=w.p2r(w.r2p(D[A])+k*T),"min"===w.autorange||"max reversed"===w.autorange?(L[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):"max"!==w.autorange&&"min reversed"!==w.autorange||(L[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[w._name+".range"]=L}var Y=l.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y},U.getPxPosition=function(e,t){var r,n=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?r=t._anchorAxis:"x"===a?r={_offset:n.t+(1-(t.position||0))*n.h,_length:0}:"y"===a&&(r={_offset:n.l+(t.position||0)*n.w+t._shift,_length:0}),"top"===i||"left"===i?r._offset:"bottom"===i||"right"===i?r._offset+r._length:void 0},U.shouldShowZeroLine=function(e,t,r){var n=l.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===O)&&(Ae(t,0)||!function(e,t,r,n){var a=r._mainAxis;if(a){var i=e._fullLayout,o=t._id.charAt(0),l=U.counterLetter(t._id),s=t._offset+(Math.abs(n[0])<Math.abs(n[1])==("x"===o)?0:t._length),u=i._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return h(r);for(var c=U.list(e,l),f=0;f<c.length;f++){var d=c[f];if(d._mainAxis===a&&h(d))return!0}}function h(e){if(!e.showline||!e.linewidth)return!1;var r=Math.max((e.linewidth+t.zerolinewidth)/2,1);function n(e){return"number"==typeof e&&Math.abs(e-s)<r}if(n(e._mainLinePosition)||n(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(n(a[i][0])||n(a[i][1]))return!0}}(e,t,r,n)||function(e,t){for(var r=e._fullData,n=t._mainSubplot,a=t._id.charAt(0),i=0;i<r.length;i++){var l=r[i];if(!0===l.visible&&l.xaxis+l.yaxis===n){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}(e,t))},U.clipEnds=function(e,t){return t.filter((function(t){return Ae(e,t.x)}))},U.allowAutoMargin=function(e){for(var t=U.list(e,"",!0),r=0;r<t.length;r++){var n=t[r];n.automargin&&(i.allowAutoMargin(e,Le(n)),n.mirror&&i.allowAutoMargin(e,De(n))),o.getComponentMethod("rangeslider","isVisible")(n)&&i.allowAutoMargin(e,Ce(n))}},U.swap=function(e,t){for(var r=function(e,t){var r,n,a=[];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(n=0;n<a.length;n++)-1===a[n].x.indexOf(o)&&-1===a[n].y.indexOf(l)||i.push(n);if(i.length){var s,u=a[i[0]];if(i.length>1)for(n=1;n<i.length;n++)s=a[i[n]],Pe(u.x,s.x),Pe(u.y,s.y);Pe(u.x,[o]),Pe(u.y,[l])}else a.push({x:[o],y:[l]})}}return a}(e,t),n=0;n<r.length;n++)Oe(e,r[n].x,r[n].y)}},2976:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=r(9032).BADNUM,o=a.isArrayOrTypedArray,l=a.isDateTime,s=a.cleanNumber,u=Math.round;function c(e,t){return t?n(e):"number"==typeof e}function f(e){return Math.max(1,(e-1)/1e3)}e.exports=function(e,t,r){var a=e,d=r.noMultiCategory;if(o(a)&&!a.length)return"-";if(!d&&function(e){return o(e[0])&&o(e[1])}(a))return"multicategory";if(d&&Array.isArray(a[0])){for(var h=[],p=0;p<a.length;p++)if(o(a[p]))for(var g=0;g<a[p].length;g++)h.push(a[p][g]);a=h}if(function(e,t){for(var r=e.length,a=f(r),i=0,o=0,s={},c=0;c<r;c+=a){var d=e[u(c)],h=String(d);s[h]||(s[h]=1,l(d,t)&&i++,n(d)&&o++)}return i>2*o}(a,t))return"date";var v="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=f(r),a=0,o=0,l={},c=0;c<r;c+=n){var d=e[u(c)],h=String(d);if(!l[h]){l[h]=1;var p=typeof d;"boolean"===p?o++:(t?s(d)!==i:"number"===p)?a++:"string"===p&&o++}}return o>2*a}(a,v)?"category":function(e,t){for(var r=e.length,n=0;n<r;n++)if(c(e[n],t))return!0;return!1}(a,v)?"linear":"-"}},5955:function(e,t,r){"use strict";var n=r(8248),a=r(4040),i=r(3400),o=r(1780),l=r(1272),s=r(4724),u=r(6332),c=r(5404),f=r(5936),d=r(2568),h=r(4796),p=r(2136),g=r(6312),v=r(8344),y=r(3816).WEEKDAY_PATTERN,m=r(3816).HOUR_PATTERN;function x(e,t,r){function a(r,n){return i.coerce(e,t,s.rangebreaks,r,n)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var l,u,c="";if(2===o.length)for(l=0;l<2;l++)if(u=_(o[l])){c=y;break}var f=a("pattern",c);if(f===y)for(l=0;l<2;l++)(u=_(o[l]))&&(t.bounds[l]=o[l]=u-1);if(f)for(l=0;l<2;l++)switch(u=o[l],f){case y:if(!n(u))return void(t.enabled=!1);if((u=+u)!==Math.floor(u)||u<0||u>=7)return void(t.enabled=!1);t.bounds[l]=o[l]=u;break;case m:if(!n(u))return void(t.enabled=!1);if((u=+u)<0||u>24)return void(t.enabled=!1);t.bounds[l]=o[l]=u}if(!1===r.autorange){var d=r.range;if(d[0]<d[1]){if(o[0]<d[0]&&o[1]>d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]<d[1])return void(t.enabled=!1)}}else{var h=a("values");if(!h||!h.length)return void(t.enabled=!1);a("dvalue")}}}e.exports=function(e,t,r,n,m){var b,_=n.letter,w=n.font||{},M=n.splomStash||{},T=r("visible",!n.visibleDflt),k=t._template||{},A=t.type||k.type||"-";"date"===A&&(a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",n.calendar),n.noTicklabelmode||(b=r("ticklabelmode")));var S="";n.noTicklabelposition&&"multicategory"!==A||(S=i.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===b?["outside","inside"]:"x"===_?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||r("ticklabeloverflow",-1!==S.indexOf("inside")?"hide past domain":"category"===A||"multicategory"===A?"allow":"hide past div"),v(t,m),g(e,t,r,n),h(e,t,r,n),"category"===A||n.noHover||r("hoverformat");var L=r("color"),D=L!==s.color.dflt?L:w.color,C=M.label||m._dfltTitle[_];if(d(e,t,r,A,n),!T)return t;r("title.text",C),i.coerceFont(r,"title.font",{family:w.family,size:i.bigFont(w.size),color:D}),u(e,t,r,A);var P=n.hasMinor;if(P&&(o.newContainer(t,"minor"),u(e,t,r,A,{isMinor:!0})),f(e,t,r,A,n),c(e,t,r,n),P){var O=n.isMinor;n.isMinor=!0,c(e,t,r,n),n.isMinor=O}p(e,t,r,{dfltColor:L,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:P,attributes:s}),!P||t.minor.ticks||t.minor.showgrid||delete t.minor,(t.showline||t.ticks)&&r("mirror");var R,E="multicategory"===A;if(n.noTickson||"category"!==A&&!E||!t.ticks&&!t.showgrid||(E&&(R="boundaries"),"boundaries"===r("tickson",R)&&delete t.ticklabelposition),E&&r("showdividers")&&(r("dividercolor"),r("dividerwidth")),"date"===A)if(l(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:x}),t.rangebreaks.length){for(var I=0;I<t.rangebreaks.length;I++)if(t.rangebreaks[I].pattern===y){t._hasDayOfWeekBreaks=!0;break}if(v(t,m),m._has("scattergl")||m._has("splom"))for(var N=0;N<n.data.length;N++){var z=n.data[N];"scattergl"!==z.type&&"splom"!==z.type||(z.visible=!1,i.warn(z.type+" traces do not work on axes with rangebreaks. Setting trace "+z.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var b={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function _(e){if("string"==typeof e)return b[e.substr(0,3).toLowerCase()]}},9736:function(e,t,r){"use strict";var n=r(6880),a=n.FORMAT_LINK,i=n.DATE_FORMAT_LINK;function o(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+a+"."].join(" ")}function l(e,t){return o(e,t)+[" And for dates see: "+i+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}e.exports={axisHoverFormat:function(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?o:l)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:o,descriptionWithDates:l}},9811:function(e,t,r){"use strict";var n=r(4040),a=r(3816);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(a.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(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t,r){var n=/( domain)$/.test(e);if("string"==typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!n||r)){var i=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(n&&r?" domain":"")}},t.list=function(e,r,n){var a=e._fullLayout;if(!a)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]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!n){var u=a._subplots.gl3d||[];for(i=0;i<u.length;i++){var c=a[u[i]];r?l.push(c[r+"axis"]):l.push(c.xaxis,c.yaxis,c.zaxis)}}return l},t.listIds=function(e,t){var r=e._fullLayout;if(!r)return[];var n=r._subplots;return t?n[t+"axis"]:n.xaxis.concat(n.yaxis)},t.getFromId=function(e,r,n){var a=e._fullLayout;return r=void 0===r||"string"!=typeof r?r:r.replace(" domain",""),"x"===n?r=r.replace(/y[0-9]*/,""):"y"===n&&(r=r.replace(/x[0-9]*/,"")),a[t.id2name(r)]},t.getFromTrace=function(e,r,a){var i=e._fullLayout,o=null;if(n.traceIs(r,"gl3d")){var l=r.scene;"scene"===l.substr(0,5)&&(o=i[l][a+"axis"])}else o=t.getFromId(e,r[a+"axis"]||a);return o},t.idSort=function(e,t){var r=e.charAt(0),n=t.charAt(0);return r!==n?r>n?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)}},4796:function(e,t,r){"use strict";var n=r(8116).isTypedArraySpec;e.exports=function(e,t,r,a){if("category"===t.type){var i,o=e.categoryarray,l=Array.isArray(o)&&o.length>0||n(o);l&&(i="array");var s,u=r("categoryorder",i);"array"===u&&(s=r("categoryarray")),l||"array"!==u||(u=t.categoryorder="trace"),"trace"===u?t._initialCategories=[]:"array"===u?t._initialCategories=s.slice():(s=function(e,t){var r,n,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;n<t.data.length;n++){var l=t.data[n];l[i+"axis"]===e._id&&r.push(l)}for(n=0;n<r.length;n++){var s=r[n][i];for(a=0;a<s.length;a++){var u=s[a];null!=u&&(o[u]=1)}}return Object.keys(o)}(t,a).sort(),"category ascending"===u?t._initialCategories=s:"category descending"===u&&(t._initialCategories=s.reverse()))}}},8728:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=r(9032),o=i.ONEDAY,l=i.ONEWEEK;t.dtick=function(e,t){var r="log"===t,a="date"===t,i="category"===t,l=a?o:1;if(!e)return l;if(n(e))return(e=Number(e))<=0?l:i?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!=typeof e||!a&&!r)return l;var s=e.charAt(0),u=e.substr(1);return(u=n(u)?Number(u):0)<=0||!(a&&"M"===s&&u===Math.round(u)||r&&"L"===s||r&&"D"===s&&(1===u||2===u))?l:e},t.tick0=function(e,t,r,i){return"date"===t?a.cleanDate(e,a.dateTick0(r,i%l==0?1:0)):"D1"!==i&&"D2"!==i?n(e)?Number(e):0:void 0}},3816:function(e,t,r){"use strict";var n=r(3756).counter;e.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},1888:function(e,t,r){"use strict";var n=r(3400),a=r(9280),i=r(9811).id2name,o=r(4724),l=r(1160),s=r(8344),u=r(9032).ALMOST_EQUAL,c=r(4284).FROM_BL;function f(e,t,r){var a=r.axIds,l=r.layoutOut,s=r.hasImage,u=l._axisConstraintGroups,c=l._axisMatchGroups,f=t._id,g=f.charAt(0),v=((l._splomAxes||{})[g]||{})[f]||{},y=t._id,m="x"===y.charAt(0);function x(r,a){return n.coerce(e,t,o,r,a)}t._matchGroup=null,t._constraintGroup=null,x("constrain",s?"domain":"range"),n.coerce(e,t,{constraintoward:{valType:"enumerated",values:m?["left","center","right"]:["bottom","middle","top"],dflt:m?"center":"middle"}},"constraintoward");var b,_,w=t.type,M=[];for(b=0;b<a.length;b++)(_=a[b])!==y&&l[i(_)].type===w&&M.push(_);var T=h(u,y);if(T){var k=[];for(b=0;b<M.length;b++)T[_=M[b]]||k.push(_);M=k}var A,S,L=M.length;L&&(e.matches||v.matches)&&(A=n.coerce(e,t,{matches:{valType:"enumerated",values:M,dflt:-1!==M.indexOf(v.matches)?v.matches:void 0}},"matches"));var D=s&&!m?t.anchor:void 0;if(L&&!A&&(e.scaleanchor||D)&&(S=n.coerce(e,t,{scaleanchor:{valType:"enumerated",values:M.concat([!1])}},"scaleanchor",D)),A){t._matchGroup=p(c,y,A,1);var C=l[i(A)],P=d(l,t)/d(l,C);m!==("x"===A.charAt(0))&&(P=(m?"x":"y")+P),p(u,y,A,P)}else e.matches&&-1!==a.indexOf(e.matches)&&n.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(S){var O=x("scaleratio");O||(O=t.scaleratio=1),p(u,y,S,O)}else e.scaleanchor&&-1!==a.indexOf(e.scaleanchor)&&n.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 d(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,n){var a,i,o,l,s,u=h(e,t);null===u?((u={})[t]=1,s=e.length,e.push(u)):s=e.indexOf(u);var c=Object.keys(u);for(a=0;a<e.length;a++)if(o=e[a],a!==s&&o[r]){var f=o[r];for(i=0;i<c.length;i++)o[l=c[i]]=g(f,g(n,u[l]));return void e.splice(s,1)}if(1!==n)for(i=0;i<c.length;i++){var d=c[i];u[d]=g(n,u[d])}u[r]=1}function g(e,t){var r,n,a="",i="";"string"==typeof e&&(r=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(r)),"string"==typeof t&&(n=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(n));var o=e*t;return r||n?r&&n&&a.charAt(0)!==i.charAt(0)?r===n?o:(r>n?a.substr(n):i.substr(r))+o:a+i+e*t:o}function v(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if("string"==typeof s){var u=s.match(/^[xy]*/)[0],c=u.length;s=+s.substr(c);for(var f="y"===u.charAt(0)?n:1/n,d=0;d<c;d++)s*=f}a[l]=s}return a}function y(e,t){var r=e._inputDomain,n=c[e.constraintoward],a=r[0]+(r[1]-r[0])*n;e.domain=e._input.domain=[a+(r[0]-a)/t,a+(r[1]-a)/t],e.setScale()}t.handleDefaults=function(e,t,r){var a,o,l,u,c,d,h,p,g=r.axIds,v=r.axHasImage,y=t._axisConstraintGroups=[],m=t._axisMatchGroups=[];for(a=0;a<g.length;a++)f(c=e[u=i(g[a])],d=t[u],{axIds:g,layoutOut:t,hasImage:v[u]});function x(e,r){for(a=0;a<e.length;a++)for(l in o=e[a])t[i(l)][r]=o}for(x(m,"_matchGroup"),a=0;a<y.length;a++)for(l in o=y[a])if((d=t[i(l)]).fixedrange){for(var b in o){var _=i(b);!1===(e[_]||{}).fixedrange&&n.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(a=0;a<y.length;){for(l in o=y[a]){(d=t[i(l)])._matchGroup&&Object.keys(d._matchGroup).length===Object.keys(o).length&&(y.splice(a,1),a--);break}a++}x(y,"_constraintGroup");var w=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],M=!1,T=!1;function k(){p=d[h],"rangebreaks"===h&&(T=d._hasDayOfWeekBreaks)}for(a=0;a<m.length;a++){o=m[a];for(var A=0;A<w.length;A++){var S;for(l in h=w[A],p=null,o)if(c=e[u=i(l)],d=t[u],h in d){if(!d.matches&&(S=d,h in c)){k();break}null===p&&h in c&&k()}if("range"===h&&p&&c.range&&2===c.range.length&&null!==c.range[0]&&null!==c.range[1]&&(M=!0),"autorange"===h&&null===p&&M&&(p=!1),null===p&&h in S&&(p=S[h]),null!==p)for(l in o)(d=t[i(l)])[h]="range"===h?p.slice():p,"rangebreaks"===h&&(d._hasDayOfWeekBreaks=T,s(d,t))}}},t.enforce=function(e){var t,r,n,o,s,c,f,d,h=e._fullLayout,p=h._axisConstraintGroups||[];for(t=0;t<p.length;t++){n=v(p[t],h);var g=Object.keys(n),m=1/0,x=0,b=1/0,_={},w={},M=!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]=c=Math.abs(s._m)/n[o],m=Math.min(m,c),"domain"!==s.constrain&&s._constraintShrinkable||(b=Math.min(b,c)),delete s._constraintShrinkable,x=Math.max(x,c),"domain"===s.constrain&&(M=!0);if(!(m>u*x)||M)for(r=0;r<g.length;r++)if(c=_[o=g[r]],f=(s=w[o]).constrain,c!==b||"domain"===f)if(d=c/b,"range"===f)l(s,d);else{var T=s._inputDomain,k=(s.domain[1]-s.domain[0])/(T[1]-T[0]),A=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if((d/=k)*A<1){s.domain=s._input.domain=T.slice(),l(s,d);continue}if(A<1&&(s.range=s._input.range=s._inputRange.slice(),d*=A),s.autorange){var S=s.r2l(s.range[0]),L=s.r2l(s.range[1]),D=(S+L)/2,C=D,P=D,O=Math.abs(L-D),R=D-O*d*1.0001,E=D+O*d*1.0001,I=a.makePadFn(h,s,0),N=a.makePadFn(h,s,1);y(s,d);var z,F,j=Math.abs(s._m),B=a.concatExtremes(e,s),H=B.min,G=B.max;for(F=0;F<H.length;F++)(z=H[F].val-I(H[F])/j)>R&&z<C&&(C=z);for(F=0;F<G.length;F++)(z=G[F].val+N(G[F])/j)<E&&z>P&&(P=z);d/=(P-C)/(2*O),C=s.l2r(C),P=s.l2r(P),s.range=s._input.range=S<L?[C,P]:[P,C]}y(s,d)}}},t.getAxisGroup=function(e,t){for(var r=e._axisMatchGroups,n=0;n<r.length;n++)if(r[n][t])return"g"+n;return t},t.clean=function(e,t){if(t._inputDomain){for(var r=!1,n=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][n]){r=!0;break}r&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},1184:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=a.numberFormat,o=r(9760),l=r(9184),s=r(4040),u=a.strTranslate,c=r(2736),f=r(6308),d=r(3616),h=r(3024),p=r(4460),g=r(3972),v=r(6476),y=r(2760),m=y.selectingOrDrawing,x=y.freeMode,b=r(4284).FROM_TL,_=r(3696),w=r(9172).redrawReglTraces,M=r(7316),T=r(9811).getFromId,k=r(2676).prepSelect,A=r(2676).clearOutline,S=r(2676).selectOnClick,L=r(1160),D=r(3816),C=D.MINDRAG,P=D.MINZOOM,O=!0;function R(e,t,r,n){var i=a.ensureSingle(e.draglayer,t,r,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return i.call(g,n),i.node()}function E(e,t,r,a,i,o,l){var s=R(e,"rect",t,r);return n.select(s).call(d.setRect,a,i,o,l),s}function I(e,t){for(var r=0;r<e.length;r++)if(!e[r].fixedrange)return t;return""}function N(e,t,r,n,a){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,u=l?1-r:r;n[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),n[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var c=o._rl[0],f=o._rl[1]-c;n[o._name+".range[0]"]=o.l2r(c+f*t),n[o._name+".range[1]"]=o.l2r(c+f*r)}}if(a&&a.length){var d=(t+(1-r))/2;N(a,d,1-d,n,[])}}function z(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(!n.fixedrange){if(n.rangebreaks){var a=n._length,i=(n.p2l(0+t)-n.p2l(0)+(n.p2l(a+t)-n.p2l(a)))/2;n.range=[n.l2r(n._rl[0]-i),n.l2r(n._rl[1]-i)]}else n.range=[n.l2r(n._rl[0]-t/n._m),n.l2r(n._rl[1]-t/n._m)];n.limitRange&&n.limitRange()}}}function F(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,r,n,a){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",u(r,n)).attr("d",a+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",u(t,r)).attr("d","M0,0Z")}function H(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),G(e,t,a,i)}function G(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function Y(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function U(e){O&&e.data&&e._context.showTips&&(a.notifier(a._(e,"Double-click to zoom back out"),"long"),O=!1)}function q(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,P)/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 V(e,t,r,n,i){for(var o,l,s,u,c=!1,f={},d={},h=(i||{}).xaHash,p=(i||{}).yaHash,g=0;g<t.length;g++){var v=t[g];for(o in r)if(v[o]){for(s in v)i&&(h[s]||p[s])||("x"===s.charAt(0)?r:n)[s]||(f[s]=o);for(l in n)i&&(h[l]||p[l])||!v[l]||(c=!0)}for(l in n)if(v[l])for(u in v)i&&(h[u]||p[u])||("x"===u.charAt(0)?r:n)[u]||(d[u]=l)}c&&(a.extendFlat(f,d),d={});var y={},m=[];for(s in f){var x=T(e,s);m.push(x),y[x._id]=x}var b={},_=[];for(u in d){var w=T(e,u);_.push(w),b[w._id]=w}return{xaHash:y,yaHash:b,xaxes:m,yaxes:_,xLinks:f,yLinks:d,isSubplotConstrained:c}}function W(e,t){if(l){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 Z(e){var t=[];for(var r in e)t.push(e[r]);return t}e.exports={makeDragBox:function(e,t,r,l,u,f,g,y){var O,R,G,J,X,$,K,Q,ee,te,re,ne,ae,ie,oe,le,se,ue,ce,fe,de,he,pe,ge=e._fullLayout._zoomlayer,ve=g+y==="nsew",ye=1===(g+y).length;function me(){if(O=t.xaxis,R=t.yaxis,ee=O._length,te=R._length,K=O._offset,Q=R._offset,(G={})[O._id]=O,(J={})[R._id]=R,g&&y)for(var r=t.overlays,n=0;n<r.length;n++){var a=r[n].xaxis;G[a._id]=a;var i=r[n].yaxis;J[i._id]=i}X=Z(G),$=Z(J),ae=I(X,y),ie=I($,g),oe=!ie&&!ae,ne=V(e,e._fullLayout._axisMatchGroups,G,J);var o=(re=V(e,e._fullLayout._axisConstraintGroups,G,J,ne)).isSubplotConstrained||ne.isSubplotConstrained;le=y||o,se=g||o;var l=e._fullLayout;ue=l._has("scattergl"),ce=l._has("splom"),fe=l._has("svg")}r+=t.yaxis._shift,me();var xe=function(e,t,r){return e?"nsew"===e?r?"":"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}(ie+ae,e._fullLayout.dragmode,ve),be=E(t,g+y+"drag",xe,r,l,u,f);if(oe&&!ve)return be.onmousedown=null,be.style.pointerEvents="none",be;var _e,we,Me,Te,ke,Ae,Se,Le,De,Ce,Pe={element:be,gd:e,plotinfo:t};function Oe(){Pe.plotinfo.selection=!1,A(e)}function Re(e,r){var a=Pe.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(Y(a),2!==e||ye||Ue(),ve)o.indexOf("select")>-1&&S(r,a,X,$,t.id,Pe),o.indexOf("event")>-1&&h.click(a,r,t.id);else if(1===e&&ye){var l=g?R:O,u="s"===g||"w"===y?0:1,f=l._name+".range["+u+"]",d=function(e,t){var r,n=e.range[t],a=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(l,u),p="left",v="middle";if(l.fixedrange)return;g?(v="n"===g?"top":"bottom","right"===l.side&&(p="right")):"e"===y&&(p="right"),a._context.showAxisRangeEntryBoxes&&n.select(be).call(c.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:p,verticalAlign:v}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",a,f,t)}))}}}function Ee(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,he*t+_e)),a=Math.max(0,Math.min(te,pe*r+we)),i=Math.abs(n-_e),o=Math.abs(a-we);function l(){Se="",Me.r=Me.l,Me.t=Me.b,De.attr("d","M0,0Z")}if(Me.l=Math.min(_e,n),Me.r=Math.max(_e,n),Me.t=Math.min(we,a),Me.b=Math.max(we,a),re.isSubplotConstrained)i>P||o>P?(Se="xy",i/ee>o/te?(o=i*te/ee,we>a?Me.t=we-o:Me.b=we+o):(i=o*ee/te,_e>n?Me.l=_e-i:Me.r=_e+i),De.attr("d",q(Me))):l();else if(ne.isSubplotConstrained)if(i>P||o>P){Se="xy";var s=Math.min(Me.l/ee,(te-Me.b)/te),u=Math.max(Me.r/ee,(te-Me.t)/te);Me.l=s*ee,Me.r=u*ee,Me.b=(1-s)*te,Me.t=(1-u)*te,De.attr("d",q(Me))}else l();else!ie||o<Math.min(Math.max(.6*i,C),P)?i<C||!ae?l():(Me.t=0,Me.b=te,Se="x",De.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-P-.5)+"h-3v"+(2*P+1)+"h3ZM"+(e.r+.5)+","+(t-P-.5)+"h3v"+(2*P+1)+"h-3Z"}(Me,we))):!ae||i<Math.min(.6*o,P)?(Me.l=0,Me.r=ee,Se="y",De.attr("d",function(e,t){return"M"+(t-P-.5)+","+(e.t-.5)+"v-3h"+(2*P+1)+"v3ZM"+(t-P-.5)+","+(e.b+.5)+"v3h"+(2*P+1)+"v-3Z"}(Me,_e))):(Se="xy",De.attr("d",q(Me)));Me.w=Me.r-Me.l,Me.h=Me.b-Me.t,Se&&(Ce=!0),e._dragged=Ce,H(Le,De,Me,ke,Ae,Te),Ie(),e.emit("plotly_relayouting",de),Ae=!0}function Ie(){de={},"xy"!==Se&&"x"!==Se||(N(X,Me.l/ee,Me.r/ee,de,re.xaxes),Ge("x",de)),"xy"!==Se&&"y"!==Se||(N($,(te-Me.b)/te,(te-Me.t)/te,de,re.yaxes),Ge("y",de))}function Ne(){Ie(),Y(e),qe(),U(e)}Pe.prepFn=function(t,r,n){var i=Pe.dragmode,l=e._fullLayout.dragmode;l!==i&&(Pe.dragmode=l),me(),he=e._fullLayout._invScaleX,pe=e._fullLayout._invScaleY,oe||(ve?t.shiftKey?"pan"===l?l="zoom":m(l)||(l="pan"):t.ctrlKey&&(l="pan"):l="pan"),x(l)?Pe.minDrag=1:Pe.minDrag=void 0,m(l)?(Pe.xaxes=X,Pe.yaxes=$,k(t,r,n,Pe,l)):(Pe.clickFn=Re,m(i)&&Oe(),oe||("zoom"===l?(Pe.moveFn=Ee,Pe.doneFn=Ne,Pe.minDrag=1,function(t,r,n){var i=be.getBoundingClientRect();_e=r-i.left,we=n-i.top,e._fullLayout._calcInverseTransform(e);var l=a.apply3DTransform(e._fullLayout._invTransform)(_e,we);_e=l[0],we=l[1],Me={l:_e,r:_e,w:0,t:we,b:we,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:o(e._fullLayout.plot_bgcolor).getLuminance(),Ae=!1,Se="xy",Ce=!1,Le=j(ge,Te,K,Q,ke="M0,0H"+ee+"V"+te+"H0V0"),De=B(ge,K,Q)}(0,r,n)):"pan"===l&&(Pe.moveFn=He,Pe.doneFn=qe))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===be){var r=e._fullLayout.dragmode;m(r)||(me(),Ve([0,0,ee,te]),Pe.moveFn(t.dx,t.dy))}}},v.init(Pe);var ze=[0,0,ee,te],Fe=null,je=D.REDRAWDELAY,Be=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function He(t,r){if(t*=he,r*=pe,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===ae||"ns"===ie){var n=ae?-t:0,a=ie?-r:0;if(ne.isSubplotConstrained){if(ae&&ie){var i=(t/ee-r/te)/2;n=-(t=i*ee),a=-(r=-i*te)}ie?n=-a*ee/te:a=-n*te/ee}return ae&&(z(X,t),Ge("x")),ie&&(z($,r),Ge("y")),Ve([n,a,ee,te]),Ye(),void e.emit("plotly_relayouting",de)}var o,l,s="w"===ae==("n"===ie)?1:-1;if(ae&&ie&&(re.isSubplotConstrained||ne.isSubplotConstrained)){var u=(t/ee+s*r/te)/2;t=u*ee,r=s*u*te}if("w"===ae?t=h(X,0,t):"e"===ae?t=h(X,1,-t):ae||(t=0),"n"===ie?r=h($,1,r):"s"===ie?r=h($,0,-r):ie||(r=0),o="w"===ae?t:0,l="n"===ie?r:0,re.isSubplotConstrained&&!ne.isSubplotConstrained||ne.isSubplotConstrained&&ae&&ie&&s>0){var c;if(ne.isSubplotConstrained||!ae&&1===ie.length){for(c=0;c<X.length;c++)X[c].range=X[c]._r.slice(),L(X[c],1-r/te);o=(t=r*ee/te)/2}if(ne.isSubplotConstrained||!ie&&1===ae.length){for(c=0;c<$.length;c++)$[c].range=$[c]._r.slice(),L($[c],1-t/ee);l=(r=t*te/ee)/2}}ne.isSubplotConstrained&&ie||Ge("x"),ne.isSubplotConstrained&&ae||Ge("y");var f=ee-t,d=te-r;!ne.isSubplotConstrained||ae&&ie||(ae?(l=o?0:t*te/ee,d=f*te/ee):(o=l?0:r*ee/te,f=d*ee/te)),Ve([o,l,f,d]),Ye(),e.emit("plotly_relayouting",de)}function h(e,t,r){for(var n,a,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){n=l,a=l._rl[i]+(l._rl[t]-l._rl[i])/F(r/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return n._length*(n._rl[t]-a)/(n._rl[t]-n._rl[i])}}function Ge(e,t){for(var r=ne.isSubplotConstrained?{x:$,y:X}[e]:ne[e+"axes"],n=ne.isSubplotConstrained?{x:X,y:$}[e]:[],a=0;a<r.length;a++){var i=r[a],o=i._id,l=ne.xLinks[o]||ne.yLinks[o],s=n[0]||G[l]||J[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 Ye(){var r,n=[];function a(e){for(r=0;r<e.length;r++)e[r].fixedrange||n.push(e[r]._id)}function i(e,t){for(r=0;r<e.length;r++){var a=e[r],i=a[t];a.fixedrange||"sync"!==i.tickmode||n.push(i._id)}}for(le&&(a(X),a(re.xaxes),a(ne.xaxes),i(t.overlays,"xaxis")),se&&(a($),a(re.yaxes),a(ne.yaxes),i(t.overlays,"yaxis")),de={},r=0;r<n.length;r++){var o=n[r],l=T(e,o);p.drawOne(e,l,{skipTitle:!0}),de[l._name+".range[0]"]=l.range[0],de[l._name+".range[1]"]=l.range[1]}p.redrawComponents(e,n)}function Ue(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,r=[];ae&&(r=r.concat(X)),ie&&(r=r.concat($)),ne.xaxes&&(r=r.concat(ne.xaxes)),ne.yaxes&&(r=r.concat(ne.yaxes));var n,a,i={};if("reset+autosize"===t)for(t="autosize",a=0;a<r.length;a++){var o=(n=r[a])._rangeInitial0,l=n._rangeInitial1,u=void 0!==o||void 0!==l;if(u&&(void 0!==o&&o!==n.range[0]||void 0!==l&&l!==n.range[1])||!u&&!0!==n.autorange){t="reset";break}}if("autosize"===t)for(a=0;a<r.length;a++)(n=r[a]).fixedrange||(i[n._name+".autorange"]=!0);else if("reset"===t)for((ae||re.isSubplotConstrained)&&(r=r.concat(re.xaxes)),ie&&!re.isSubplotConstrained&&(r=r.concat(re.yaxes)),re.isSubplotConstrained&&(ae?ie||(r=r.concat($)):r=r.concat(X)),a=0;a<r.length;a++)if(!(n=r[a]).fixedrange){var c=n._name,f=n._autorangeInitial;void 0===n._rangeInitial0&&void 0===n._rangeInitial1?i[c+".autorange"]=!0:void 0===n._rangeInitial0?(i[c+".autorange"]=f,i[c+".range"]=[null,n._rangeInitial1]):void 0===n._rangeInitial1?(i[c+".range"]=[n._rangeInitial0,null],i[c+".autorange"]=f):i[c+".range"]=[n._rangeInitial0,n._rangeInitial1]}e.emit("plotly_doubleclick",null),s.call("_guiRelayout",e,i)}}function qe(){Ve([0,0,ee,te]),a.syncOrAsync([M.previousPromises,function(){e._fullLayout._replotting=!1,s.call("_guiRelayout",e,de)}],e)}function Ve(t){var r,n,i,o,l=e._fullLayout,u=l._plots,c=l._subplots.cartesian;if(ce&&s.subplotsRegistry.splom.drag(e),ue)for(r=0;r<c.length;r++)if(i=(n=u[c[r]]).xaxis,o=n.yaxis,n._scene){var f=a.simpleMap(i.range,i.r2l),h=a.simpleMap(o.range,o.r2l);i.limitRange&&i.limitRange(),o.limitRange&&o.limitRange(),f=i.range,h=o.range,n._scene.update({range:[f[0],h[0],f[1],h[1]]})}if((ce||ue)&&(_(e),w(e)),fe){var p=t[2]/O._length,v=t[3]/R._length;for(r=0;r<c.length;r++){i=(n=u[c[r]]).xaxis,o=n.yaxis;var m,x,b,M,T=(le||ne.isSubplotConstrained)&&!i.fixedrange&&G[i._id],k=(se||ne.isSubplotConstrained)&&!o.fixedrange&&J[o._id];if(T?(m=p,b=y||ne.isSubplotConstrained?t[0]:Je(i,m)):ne.xaHash[i._id]?(m=p,b=t[0]*i._length/O._length):ne.yaHash[i._id]?(m=v,b="ns"===ie?-t[1]*i._length/R._length:Je(i,m,{n:"top",s:"bottom"}[ie])):b=Ze(i,m=We(i,p,v)),m>1&&(void 0!==i.maxallowed&&le===(i.range[0]<i.range[1]?"e":"w")||void 0!==i.minallowed&&le===(i.range[0]<i.range[1]?"w":"e"))&&(m=1,b=0),k?(x=v,M=g||ne.isSubplotConstrained?t[1]:Je(o,x)):ne.yaHash[o._id]?(x=v,M=t[1]*o._length/R._length):ne.xaHash[o._id]?(x=p,M="ew"===ae?-t[0]*o._length/O._length:Je(o,x,{e:"right",w:"left"}[ae])):M=Ze(o,x=We(o,p,v)),x>1&&(void 0!==o.maxallowed&&se===(o.range[0]<o.range[1]?"n":"s")||void 0!==o.minallowed&&se===(o.range[0]<o.range[1]?"s":"n"))&&(x=1,M=0),m||x){m||(m=1),x||(x=1);var A=i._offset-b/m,S=o._offset-M/x;n.clipRect.call(d.setTranslate,b,M).call(d.setScale,m,x),n.plot.call(d.setTranslate,A,S).call(d.setScale,1/m,1/x),m===n.xScaleFactor&&x===n.yScaleFactor||(d.setPointGroupScale(n.zoomScalePts,m,x),d.setTextPointsScale(n.zoomScaleTxt,m,x)),d.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=m,n.yScaleFactor=x}}}}function We(e,t,r){return e.fixedrange?0:le&&re.xaHash[e._id]?t:se&&(re.isSubplotConstrained?re.xaHash:re.yaHash)[e._id]?r:0}function Ze(e,t){return t?(e.range=e._r.slice(),L(e,t),Je(e,t)):0}function Je(e,t,r){return e._length*(1-t)*b[r||e.constraintoward||"middle"]}return g.length*y.length!=1&&W(be,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Oe(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();me(),clearTimeout(Fe);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=Be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-o.left)/o.width,s=(o.bottom-t.clientY)/o.height;if(le){for(y||(l=.5),n=0;n<X.length;n++)u(X[n],l,i);Ge("x"),ze[2]*=i,ze[0]+=ze[2]*l*(1/i-1)}if(se){for(g||(s=.5),n=0;n<$.length;n++)u($[n],s,i);Ge("y"),ze[3]*=i,ze[1]+=ze[3]*(1-s)*(1/i-1)}Ve(ze),Ye(),e.emit("plotly_relayouting",de),Fe=setTimeout((function(){e._fullLayout&&(ze=[0,0,ee,te],qe())}),je),t.preventDefault()}else a.log("Did not find wheel motion attributes: ",t)}function u(e,t,r){if(!e.fixedrange){var n=a.simpleMap(e.range,e.r2l),i=n[0]+(n[1]-n[0])*t;e.range=n.map((function(t){return e.l2r(i+(t-i)*r)}))}}})),be},makeDragger:R,makeRectDragger:E,makeZoombox:j,makeCorners:B,updateZoombox:H,xyCorners:q,transitionZoombox:G,removeZoombox:Y,showDoubleClickNotifier:U,attachWheelEventHandler:W}},2464:function(e,t,r){"use strict";var n=r(3428),a=r(3024),i=r(6476),o=r(3972),l=r(1184).makeDragBox,s=r(3816).DRAGGERSIZE;t.initInteractions=function(e){var r=e._fullLayout;if(e._context.staticPlot)n.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 n=e.split("y"),a=t.split("y");return n[0]===a[0]?Number(n[1]||1)-Number(a[1]||1):Number(n[0]||1)-Number(a[0]||1)}return r._plots[e].mainplot?1:-1})).forEach((function(t){var n=r._plots[t],o=n.xaxis,u=n.yaxis;if(!n.mainplot){var c=l(e,n,o._offset,u._offset,o._length,u._length,"ns","ew");c.onmousemove=function(r){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&a.hover(e,r,t)},a.hover(e,r,t),e._fullLayout._lasthover=c,e._fullLayout._hoversubplot=t},c.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,n,o._offset-s,u._offset-s,s,s,"n","w"),l(e,n,o._offset+o._length,u._offset-s,s,s,"n","e"),l(e,n,o._offset-s,u._offset+u._length,s,s,"s","w"),l(e,n,o._offset+o._length,u._offset+u._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var f=o._mainLinePosition;"top"===o.side&&(f-=s),l(e,n,o._offset+.1*o._length,f,.8*o._length,s,"","ew"),l(e,n,o._offset,f,.1*o._length,s,"","w"),l(e,n,o._offset+.9*o._length,f,.1*o._length,s,"","e")}if(t===u._mainSubplot){var d=u._mainLinePosition;"right"!==u.side&&(d-=s),l(e,n,d,u._offset+.1*u._length,s,.8*u._length,"ns",""),l(e,n,d,u._offset+.9*u._length,s,.1*u._length,"s",""),l(e,n,d,u._offset,s,.1*u._length,"n","")}}}));var o=r._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,a.hover(e,t,r._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,a.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)}},6632:function(e,t,r){"use strict";var n=r(4040),a=r(3400),i=r(9811);e.exports=function(e){return function(t,r){var o=t[e];if(Array.isArray(o))for(var l=n.subplotsRegistry.cartesian,s=l.idRegex,u=r._subplots,c=u.xaxis,f=u.yaxis,d=u.cartesian,h=r._has("cartesian")||r._has("gl2d"),p=0;p<o.length;p++){var g=o[p];if(a.isPlainObject(g)){var v=i.cleanId(g.xref,"x",!1),y=i.cleanId(g.yref,"y",!1),m=s.x.test(v),x=s.y.test(y);if(m||x){h||a.pushUnique(r._basePlotModules,l);var b=!1;m&&-1===c.indexOf(v)&&(c.push(v),b=!0),x&&-1===f.indexOf(y)&&(f.push(y),b=!0),b&&m&&x&&d.push(v+y)}}}}}},7952:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(3400),o=r(7316),l=r(3616),s=r(4888)._M,u=r(9811),c=r(3816),f=r(9616),d=i.ensureSingle;function h(e,t,r){return i.ensureSingle(e,t,r,(function(e){e.datum(r)}))}function p(e,t,r,o,u){for(var f,d,h,p=c.traceLayerClasses,g=e._fullLayout,v=g._modules,y={},m=0;m<r.length;m++){var x=r[m][0].trace.zorder||0;y[x]||(y[x]=[]),y[x].push(r[m])}for(var b=[],_=[],w=Object.keys(y).map(Number).sort(i.sorterAsc),M=0;M<w.length;M++)for(var T=w[M],k=0;k<v.length;k++){var A=(f=v[k]).name,S=a.modules[A].categories;if(S.svg){var L=(f.layerName||A+"layer")+(M?Number(M)+1:""),D=f.plot;h=(d=s(r,D,T))[0],r=d[1],h.length&&b.push({i:p.indexOf(L),zorder:M,className:L,plotMethod:D,cdModule:h}),S.zoomScale&&_.push("."+L)}}b.sort((function(e,t){return(e.zorder||0)-(t.zorder||0)||e.i-t.i}));var C=t.plot.selectAll("g.mlayer").data(b,(function(e){return e.className}));if(C.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),C.exit().remove(),C.order(),C.each((function(r){var a=n.select(this),i=r.className;r.plotMethod(e,t,r.cdModule,a,o,u),-1===c.clipOnAxisFalseQuery.indexOf("."+i)&&l.setClipUrl(a,t.layerClipId,e)})),g._has("scattergl")&&(f=a.getModule("scattergl"),h=s(r,f)[0],f.plot(e,t,h)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(c.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),_.length)){var P=t.plot.selectAll(_.join(",")).selectAll(".trace");t.zoomScalePts=P.selectAll("path.point"),t.zoomScaleTxt=P.selectAll(".textpoint")}}function g(e,t){var r=t.plotgroup,n=t.id,a=c.layerValue2layerClass[t.xaxis.layer],i=c.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,f=n+"-x",p=n+"-y";t.minorGridlayer=l.minorGridlayer,t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,d(l.overlinesBelow,"path",f),d(l.overlinesBelow,"path",p),d(l.overaxesBelow,"g",f),d(l.overaxesBelow,"g",p),t.plot=d(l.overplot,"g",n),d(l.overlinesAbove,"path",f),d(l.overlinesAbove,"path",p),d(l.overaxesAbove,"g",f),d(l.overaxesAbove,"g",p),t.xlines=s.select(".overlines-"+a).select("."+f),t.ylines=s.select(".overlines-"+i).select("."+p),t.xaxislayer=s.select(".overaxes-"+a).select("."+f),t.yaxislayer=s.select(".overaxes-"+i).select("."+p)}else if(o)t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.xaxislayer=d(r,"g","xaxislayer-above"),t.yaxislayer=d(r,"g","yaxislayer-above");else{var g=d(r,"g","layer-subplot");t.shapelayer=d(g,"g","shapelayer"),t.imagelayer=d(g,"g","imagelayer"),t.minorGridlayer=d(r,"g","minor-gridlayer"),t.gridlayer=d(r,"g","gridlayer"),t.zerolinelayer=d(r,"g","zerolinelayer");var v=d(r,"g","layer-between");t.shapelayerBetween=d(v,"g","shapelayer"),t.imagelayerBetween=d(v,"g","imagelayer"),d(r,"path","xlines-below"),d(r,"path","ylines-below"),t.overlinesBelow=d(r,"g","overlines-below"),d(r,"g","xaxislayer-below"),d(r,"g","yaxislayer-below"),t.overaxesBelow=d(r,"g","overaxes-below"),t.plot=d(r,"g","plot"),t.overplot=d(r,"g","overplot"),t.xlines=d(r,"path","xlines-above"),t.ylines=d(r,"path","ylines-above"),t.overlinesAbove=d(r,"g","overlines-above"),d(r,"g","xaxislayer-above"),d(r,"g","yaxislayer-above"),t.overaxesAbove=d(r,"g","overaxes-above"),t.xlines=r.select(".xlines-"+a),t.ylines=r.select(".ylines-"+i),t.xaxislayer=r.select(".xaxislayer-"+a),t.yaxislayer=r.select(".yaxislayer-"+i)}o||(h(t.minorGridlayer,"g",t.xaxis._id),h(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map((function(e){return e[0]})).sort(u.idSort),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(u.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function v(e,t){if(e){var r={};for(var a in e.each((function(e){var a=e[0];n.select(this).remove(),y(a,t),r[a]=!0})),t._plots)for(var i=t._plots[a].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=c.idRegex,t.attrRegex=c.attrRegex,t.attributes=r(6720),t.layoutAttributes=r(4724),t.supplyLayoutDefaults=r(7352),t.transitionAxes=r(3736),t.finalizeSubplots=function(e,t){var r,n,a,o=t._subplots,l=o.xaxis,s=o.yaxis,f=o.cartesian,d=f.concat(o.gl2d||[]),h={},p={};for(r=0;r<d.length;r++){var g=d[r].split("y");h[g[0]]=1,p["y"+g[1]]=1}for(r=0;r<l.length;r++)h[n=l[r]]||(a=(e[u.id2name(n)]||{}).anchor,c.idRegex.y.test(a)||(a="y"),f.push(n+a),d.push(n+a),p[a]||(p[a]=1,i.pushUnique(s,a)));for(r=0;r<s.length;r++)p[a=s[r]]||(n=(e[u.id2name(a)]||{}).anchor,c.idRegex.x.test(n)||(n="x"),f.push(n+a),d.push(n+a),h[n]||(h[n]=1,i.pushUnique(l,n)));if(!d.length){for(var v in n="",a="",e)c.attrRegex.test(v)&&("x"===v.charAt(0)?(!n||+v.substr(5)<+n.substr(5))&&(n=v):(!a||+v.substr(5)<+a.substr(5))&&(a=v));n=n?u.name2id(n):"x",a=a?u.name2id(a):"y",l.push(n),s.push(a),f.push(n+a)}},t.plot=function(e,t,r,n){var a,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<o.length;a++){for(var s,u=o[a],c=i._plots[u],f=[],d=0;d<l.length;d++){var h=l[d],g=h[0].trace;g.xaxis+g.yaxis===u&&((-1!==t.indexOf(g.index)||g.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===u&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===f.indexOf(s)&&f.push(s),f.push(h)),s=h)}p(e,c,f,r,n)}},t.clean=function(e,t,r,n){var a,i,o,l=n._plots||{},s=t._plots||{},c=n._subplots||{};if(n._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var f=n._has&&n._has("gl"),d=t._has&&t._has("gl");if(f&&!d)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(c.xaxis&&c.yaxis){var h=u.listIds({_fullLayout:n});for(i=0;i<h.length;i++){var p=h[i];t[u.id2name(p)]||n._infolayer.selectAll(".g-"+p+"title").remove()}}var g=n._has&&n._has("cartesian"),m=t._has&&t._has("cartesian");if(g&&!m)v(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(c.cartesian)for(i=0;i<c.cartesian.length;i++){var x=c.cartesian[i];if(!s[x]){var b="."+x+",."+x+"-x,."+x+"-y";n._cartesianlayer.selectAll(b).remove(),y(x,n)}}},t.drawFramework=function(e){var t=e._fullLayout,r=function(e){var t,r,n,a,i,o,l=e._fullLayout,s=l._subplots.cartesian,u=s.length,c=[],f=[];for(t=0;t<u;t++){n=s[t],i=(a=l._plots[n]).xaxis,o=a.yaxis;var d=i._mainAxis,h=o._mainAxis,p=d._id+h._id,g=l._plots[p];a.overlays=[],p!==n&&g?(a.mainplot=p,a.mainplotinfo=g,f.push(n)):(a.mainplot=void 0,a.mainplotinfo=void 0,c.push(n))}for(t=0;t<f.length;t++)n=f[t],(a=l._plots[n]).mainplotinfo.overlays.push(a);var v=c.concat(f),y=new Array(u);for(t=0;t<u;t++){n=v[t],i=(a=l._plots[n]).xaxis,o=a.yaxis;var m=[n,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(r=0;r<a.overlays.length;r++)m.push(a.overlays[r].id);y[t]=m}return y}(e),a=t._cartesianlayer.selectAll(".subplot").data(r,String);a.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),a.order(),a.exit().call(v,t),a.each((function(r){var a=r[0],i=t._plots[a];i.plotgroup=n.select(this),g(e,i),i.draglayer=d(t._draggers,"g",a)}))},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=n.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,r=e.toDataURL("image/png");t.append("svg:image").attr({xmlns:f.svg,"xlink:href":r,preserveAspectRatio:"none",x:0,y:0,width:e.style.width,height:e.style.height})}))},t.updateFx=r(2464).updateFx},4724:function(e,t,r){"use strict";var n=r(5376),a=r(2548),i=r(8192).u,o=r(2880).extendFlat,l=r(1780).templatedArray,s=r(9736).descriptionWithDates,u=r(9032).ONEDAY,c=r(3816),f=c.HOUR_PATTERN,d=c.WEEKDAY_PATTERN,h={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},p=o({},h,{values:h.values.slice().concat(["sync"])});function g(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var v={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},y={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m={valType:"data_array",editType:"ticks"},x={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function b(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function _(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var w={valType:"color",dflt:a.defaultLine,editType:"ticks"},M={valType:"color",dflt:a.lightLine,editType:"ticks"};function T(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var k=o({},i,{editType:"ticks"}),A={valType:"boolean",editType:"ticks"};e.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:a.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:n({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[c.idRegex.x.toString(),c.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"calc"},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[d,f,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:u},editType:"calc"}),tickmode:p,nticks:g(),tick0:v,dtick:y,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:m,ticktext:{valType:"data_array",editType:"ticks"},ticks:x,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:b(),tickwidth:_(),tickcolor:w,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:o({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:n({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:s("tick label")},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:s("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:a.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:A,gridcolor:M,gridwidth:T(),griddash:k,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",c.idRegex.x.toString(),c.idRegex.y.toString()],editType:"plot"},minor:{tickmode:h,nticks:g("minor"),tick0:v,dtick:y,tickvals:m,ticks:x,ticklen:b("minor"),tickwidth:_("minor"),tickcolor:w,gridcolor:M,gridwidth:T("minor"),griddash:k,showgrid:A,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:n({editType:"ticks"})}}},7352:function(e,t,r){"use strict";var n=r(3400),a=r(6308),i=r(624).isUnifiedHover,o=r(1008),l=r(1780),s=r(4859),u=r(4724),c=r(4944),f=r(5955),d=r(1888),h=r(7668),p=r(9811),g=p.id2name,v=p.name2id,y=r(3816).AX_ID_PATTERN,m=r(4040),x=m.traceIs,b=m.getComponentMethod;function _(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}e.exports=function(e,t,r){var m,w,M=t.autotypenumbers,T={},k={},A={},S={},L={},D={},C={},P={},O={},R={};for(m=0;m<r.length;m++){var E=r[m];if(x(E,"cartesian")||x(E,"gl2d")){var I,N;if(E.xaxis)I=g(E.xaxis),_(T,I,E);else if(E.xaxes)for(w=0;w<E.xaxes.length;w++)_(T,g(E.xaxes[w]),E);if(E.yaxis)N=g(E.yaxis),_(T,N,E);else if(E.yaxes)for(w=0;w<E.yaxes.length;w++)_(T,g(E.yaxes[w]),E);"funnel"===E.type?"h"===E.orientation?(I&&(k[I]=!0),N&&(C[N]=!0)):N&&(A[N]=!0):"image"===E.type?(N&&(P[N]=!0),I&&(P[I]=!0)):(N&&(L[N]=!0,D[N]=!0),x(E,"carpet")&&("carpet"!==E.type||E._cheater)||I&&(S[I]=!0)),"carpet"===E.type&&E._cheater&&I&&(k[I]=!0),x(E,"2dMap")&&(O[I]=!0,O[N]=!0),x(E,"oriented")&&(R["h"===E.orientation?N:I]=!0)}}var z=t._subplots,F=z.xaxis,j=z.yaxis,B=n.simpleMap(F,g),H=n.simpleMap(j,g),G=B.concat(H),Y=a.background;F.length&&j.length&&(Y=n.coerce(e,t,s,"plot_bgcolor"));var U,q,V,W,Z,J=a.combine(Y,t.paper_bgcolor);function X(){var e=T[U]||[];Z._traceIndices=e.map((function(e){return e._expandedIndex})),Z._annIndices=[],Z._shapeIndices=[],Z._selectionIndices=[],Z._imgIndices=[],Z._subplotsWith=[],Z._counterAxes=[],Z._name=Z._attr=U,Z._id=q}function $(e,t){return n.coerce(W,Z,u,e,t)}function K(e,t){return n.coerce2(W,Z,u,e,t)}function Q(e){return"x"===e?j:F}function ee(t,r){for(var n="x"===t?B:H,a=[],i=0;i<n.length;i++){var o=n[i];o===r||(e[o]||{}).overlaying||a.push(v(o))}return a}var te={x:Q("x"),y:Q("y")},re=te.x.concat(te.y),ne={},ae=[];function ie(){var e=W.matches;y.test(e)&&-1===re.indexOf(e)&&(ne[e]=W.type,ae=Object.keys(ne))}var oe=o(e,t),le=i(oe);for(m=0;m<G.length;m++){U=G[m],q=v(U),V=U.charAt(0),n.isPlainObject(e[U])||(e[U]={}),W=e[U],Z=l.newContainer(t,U,V+"axis"),X();var se="x"===V&&!S[U]&&k[U]||"y"===V&&!L[U]&&A[U],ue="y"===V&&(!D[U]&&C[U]||P[U]),ce={hasMinor:!0,letter:V,font:t.font,outerTicks:O[U],showGrid:!R[U],data:T[U]||[],bgColor:J,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:ue,autotypenumbersDflt:M,splomStash:((t._splomAxes||{})[V]||{})[q],noAutotickangles:"y"===V};$("uirevision",t.uirevision),c(W,Z,$,ce),f(W,Z,$,ce,t);var fe=le&&V===oe.charAt(0),de=K("spikecolor",le?Z.color:void 0),he=K("spikethickness",le?1.5:void 0),pe=K("spikedash",le?"dot":void 0),ge=K("spikemode",le?"across":void 0),ve=K("spikesnap");$("showspikes",!!(fe||de||he||pe||ge||ve))||(delete Z.spikecolor,delete Z.spikethickness,delete Z.spikedash,delete Z.spikemode,delete Z.spikesnap);var ye=g(W.overlaying),me=[0,1];if(void 0!==t[ye]){var xe=g(t[ye].anchor);void 0!==t[xe]&&(me=t[xe].domain)}h(W,Z,$,{letter:V,counterAxes:te[V],overlayableAxes:ee(V,U),grid:t.grid,overlayingDomain:me}),$("title.standoff"),ie(),Z._input=W}for(m=0;m<ae.length;){q=ae[m++],V=(U=g(q)).charAt(0),n.isPlainObject(e[U])||(e[U]={}),W=e[U],Z=l.newContainer(t,U,V+"axis"),X();var be={letter:V,font:t.font,outerTicks:O[U],showGrid:!R[U],data:[],bgColor:J,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:M,splomStash:((t._splomAxes||{})[V]||{})[q]};$("uirevision",t.uirevision),Z.type=ne[q]||"linear",f(W,Z,$,be,t),h(W,Z,$,{letter:V,counterAxes:te[V],overlayableAxes:ee(V,U),grid:t.grid}),$("fixedrange"),ie(),Z._input=W}var _e=b("rangeslider","handleDefaults"),we=b("rangeselector","handleDefaults");for(m=0;m<B.length;m++)U=B[m],W=e[U],Z=t[U],_e(e,t,U),"date"===Z.type&&we(W,Z,t,H,Z.calendar),$("fixedrange");for(m=0;m<H.length;m++){U=H[m],W=e[U],Z=t[U];var Me=t[g(Z.anchor)];$("fixedrange",b("rangeslider","isVisible")(Me))}d.handleDefaults(e,t,{axIds:re.concat(ae).sort(p.idSort),axHasImage:P})}},2136:function(e,t,r){"use strict";var n=r(9760).mix,a=r(2548),i=r(3400);e.exports=function(e,t,r,o){var l=(o=o||{}).dfltColor;function s(r,n){return i.coerce2(e,t,o.attributes,r,n)}var u=s("linecolor",l),c=s("linewidth");r("showline",o.showLine||!!u||!!c)||(delete t.linecolor,delete t.linewidth);var f=s("gridcolor",n(l,o.bgColor,o.blend||a.lightFraction).toRgbString()),d=s("gridwidth"),h=s("griddash");if(r("showgrid",o.showGrid||!!f||!!d||!!h)||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),o.hasMinor){var p=s("minor.gridcolor",n(t.gridcolor,o.bgColor,67).toRgbString()),g=s("minor.gridwidth",t.gridwidth||1),v=s("minor.griddash",t.griddash||"solid");r("minor.showgrid",!!p||!!g||!!v)||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!o.noZeroLine){var y=s("zerolinecolor",l),m=s("zerolinewidth");r("zeroline",o.showGrid||!!y||!!m)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},7668:function(e,t,r){"use strict";var n=r(8248),a=r(3400);e.exports=function(e,t,r,i){var o,l,s,u,c,f,d=i.counterAxes||[],h=i.overlayableAxes||[],p=i.letter,g=i.grid,v=i.overlayingDomain;g&&(l=g._domains[p][g._axisMap[t._id]],o=g._anchors[t._id],l&&(s=g[p+"side"].split(" ")[0],u=g.domain[p]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(n(e.position)?"free":d[0]||"free"),s=s||("x"===p?"bottom":"left"),u=u||0,c=0,f=!1;var y=a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(d),dflt:o}},"anchor"),m=a.coerce(e,t,{side:{valType:"enumerated",values:"x"===p?["bottom","top"]:["left","right"],dflt:s}},"side");"free"===y&&("y"===p&&(r("autoshift")&&(u="left"===m?v[0]:v[1],f=!t.automargin||t.automargin,c="left"===m?-3:3),r("shift",c)),r("position",u)),r("automargin",f);var x=!1;if(h.length&&(x=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(h),dflt:!1}},"overlaying")),!x){var b=r("domain",l);b[0]>b[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l),"sync"===t.tickmode&&(t.tickmode="auto")}return r("layer"),t}},2568:function(e,t,r){"use strict";var n=r(5024);e.exports=function(e,t,r,a,i){i||(i={});var o=i.tickSuffixDflt,l=n(e);r("tickprefix")&&r("showtickprefix",l),r("ticksuffix",o)&&r("showticksuffix",l)}},6312:function(e,t,r){"use strict";var n=r(6808);e.exports=function(e,t,r,a){var i=t._template||{},o=t.type||i.type||"-";r("minallowed"),r("maxallowed");var l,s=r("range");s||a.noInsiderange||"log"===o||(!(l=r("insiderange"))||null!==l[0]&&null!==l[1]||(t.insiderange=!1,l=void 0),l&&(s=r("range",l)));var u,c=t.getAutorangeDflt(s,a),f=r("autorange",c);!s||(null!==s[0]||null!==s[1])&&(null!==s[0]&&null!==s[1]||"reversed"!==f&&!0!==f)&&(null===s[0]||"min"!==f&&"max reversed"!==f)&&(null===s[1]||"max"!==f&&"min reversed"!==f)||(s=void 0,delete t.range,t.autorange=!0,u=!0),u||(f=r("autorange",c=t.getAutorangeDflt(s,a))),f&&(n(r,f,s),"linear"!==o&&"-"!==o||r("rangemode")),t.cleanRange()}},1160:function(e,t,r){"use strict";var n=r(4284).FROM_BL;e.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}},8344:function(e,t,r){"use strict";var n=r(3428),a=r(4336).E9,i=r(3400),o=i.numberFormat,l=r(8248),s=i.cleanNumber,u=i.ms2DateTime,c=i.dateTime2ms,f=i.ensureNumber,d=i.isArrayOrTypedArray,h=r(9032),p=h.FP_SAFE,g=h.BADNUM,v=h.LOG_CLIP,y=h.ONEWEEK,m=h.ONEDAY,x=h.ONEHOUR,b=h.ONEMIN,_=h.ONESEC,w=r(9811),M=r(3816),T=M.HOUR_PATTERN,k=M.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function S(e){return null!=e}e.exports=function(e,t){t=t||{};var r=e._id||"x",h=r.charAt(0);function L(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],a=e.range[1];return.5*(n+a-2*v*Math.abs(n-a))}return g}function D(t,r,n,a){if((a||{}).msUTC&&l(t))return+t;var o=c(t,n||e.calendar);if(o===g){if(!l(t))return g;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),u=Math.round(t-s/10);o=c(new Date(u))+s/10}return o}function C(t,r,n){return u(t,r,n||e.calendar)}function P(t){return e._categories[Math.round(t)]}function O(t){if(S(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 g}function R(t){if(e._categoriesMap)return e._categoriesMap[t]}function E(e){var t=R(e);return void 0!==t?t:l(e)?+e:void 0}function I(e){return l(e)?+e:R(e)}function N(e,t,r){return n.round(r+t*e,2)}function z(e,t,r){return(e-r)/t}var F=function(t){return l(t)?N(t,e._m,e._b):g},j=function(t){return z(t,e._m,e._b)};if(e.rangebreaks){var B="y"===h;F=function(t){if(!l(t))return g;var r=e._rangebreaks.length;if(!r)return N(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var a=n?-1:1,i=a*t,o=0,s=0;s<r;s++){var u=a*e._rangebreaks[s].min,c=a*e._rangebreaks[s].max;if(i<u)break;if(!(i>c)){o=i<(u+c)/2?s:s+1;break}o=s+1}var f=e._B[o]||0;return isFinite(f)?N(t,e._m2,f):0},j=function(t){var r=e._rangebreaks.length;if(!r)return z(t,e._m,e._b);for(var n=0,a=0;a<r&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(n=a+1);return z(t,e._m2,e._B[n])}}e.c2l="log"===e.type?L:f,e.l2c="log"===e.type?A:f,e.l2p=F,e.p2l=j,e.c2p="log"===e.type?function(e,t){return F(L(e,t))}:F,e.p2c="log"===e.type?function(e){return A(j(e))}:j,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=f,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=j,e.cleanPos=f):"log"===e.type?(e.d2r=e.d2l=function(e,t){return L(s(e),t)},e.r2d=e.r2c=function(e){return A(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=f,e.c2r=L,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(j(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=j,e.cleanPos=f):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=D,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,r,n){return e.l2p(D(t,0,n))},e.p2d=e.p2r=function(e,t,r){return C(j(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,g,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=O,e.r2d=e.c2d=e.l2d=P,e.d2r=e.d2l_noadd=E,e.r2c=function(t){var r=I(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=f,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return P(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:f(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=P,e.d2r=e.d2l_noadd=E,e.r2c=function(t){var r=E(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=R,e.l2r=e.c2r=f,e.r2l=E,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return P(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:f(e)},e.setupMultiCategory=function(n){var a,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var u in s)if(u!==r){var c=t[w.id2name(u)];l=l.concat(c._traceIndices)}var f=[[0,{}],[0,{}]],p=[];for(a=0;a<l.length;a++){var g=n[l[a]];if(h in g){var v=g[h],y=g._length||i.minRowLength(v);if(d(v[0])&&d(v[1]))for(o=0;o<y;o++){var m=v[0][o],x=v[1][o];S(m)&&S(x)&&(p.push([m,x]),m in f[0][1]||(f[0][1][m]=f[0][0]++),x in f[1][1]||(f[1][1][x]=f[1][0]++))}}}for(p.sort((function(e,t){var r=f[0][1],n=r[e[0]]-r[t[0]];if(n)return n;var a=f[1][1];return a[e[1]]-a[t[1]]})),a=0;a<p.length;a++)O(p[a])}),e.fraction2r=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return e.l2r(r+t*(n-r))},e.r2fraction=function(t){var r=e.r2l(e.range[0]),n=e.r2l(e.range[1]);return(e.r2l(t)-r)/(n-r)},e.limitRange=function(t){var r=e.minallowed,n=e.maxallowed;if(void 0!==r||void 0!==n){t||(t="range");var a=i.nestedProperty(e,t).get(),o=i.simpleMap(a,e.r2l),l=o[1]<o[0];l&&o.reverse();var s=i.simpleMap([r,n],e.r2l);if(void 0!==r&&o[0]<s[0]&&(a[l?1:0]=r),void 0!==n&&o[1]>s[1]&&(a[l?0:1]=n),a[0]===a[1]){var u=e.l2r(r),c=e.l2r(n);if(void 0!==r){var f=u+1;void 0!==n&&(f=Math.min(f,c)),a[l?1:0]=f}if(void 0!==n){var d=c+1;void 0!==r&&(d=Math.max(d,u)),a[l?0:1]=d}}}},e.cleanRange=function(t,r){e._cleanRange(t,r),e.limitRange(t)},e._cleanRange=function(t,r){r||(r={}),t||(t="range");var n,a,o=i.nestedProperty(e,t).get();if(a=(a="date"===e.type?i.dfltRange(e.calendar):"y"===h?M.DFLTRANGEY:"realaxis"===e._name?[0,1]:r.dfltRange||M.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(a[0]=0),o&&2===o.length){var s=null===o[0],u=null===o[1];for("date"!==e.type||e.autorange||(o[0]=i.cleanDate(o[0],g,e.calendar),o[1]=i.cleanDate(o[1],g,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!i.isDateTime(o[n],e.calendar)){e[t]=a;break}if(e.r2l(o[0])===e.r2l(o[1])){var c=i.constrain(e.r2l(o[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);o[0]=e.l2r(c-1e3),o[1]=e.l2r(c+1e3);break}}else{if(!l(o[n])){if(s||u||!l(o[1-n])){e[t]=a;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]<-p?o[n]=-p:o[n]>p&&(o[n]=p),o[0]===o[1]){var f=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=f,o[1]+=f}}}else i.nestedProperty(e,t).set(a)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=w.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,u=e.r2l(e[i][0],o),c=e.r2l(e[i][1],o),f="y"===h;if(f?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks&&(e._rangebreaks=e.locateBreaks(Math.min(u,c),Math.max(u,c)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var d=f;u>c&&(d=!d),d&&e._rangebreaks.reverse();var p=d?-1:1;for(e._m2=p*e._length/(Math.abs(c-u)-e._lBreaks),e._B.push(-e._m2*(f?c:u)),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=F(s.min),s.pmax=F(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){var r,n,a,o,l,u=e.rangebreaks||[];u._cachedPatterns||(u._cachedPatterns=u.map((function(t){return t.enabled&&t.bounds?i.simpleMap(t.bounds,t.pattern?s:e.d2c):null}))),u._cachedValues||(u._cachedValues=u.map((function(t){return t.enabled&&t.values?i.simpleMap(t.values,e.d2c).sort(i.sorterAsc):null})));for(var c=0;c<u.length;c++){var f=u[c];if(f.enabled)if(f.bounds){var d=f.pattern;switch(n=(r=u._cachedPatterns[c])[0],a=r[1],d){case k:o=(l=new Date(t)).getUTCDay(),n>a&&(a+=7,o<n&&(o+=7));break;case T:o=(l=new Date(t)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n>a&&(a+=24,o<n&&(o+=24));break;case"":o=t}if(o>=n&&o<a)return g}else for(var h=u._cachedValues[c],p=0;p<h.length;p++)if(a=(n=h[p])+f.dvalue,t>=n&&t<a)return g}return t},e.locateBreaks=function(t,r){var n,a,o,l,u=[];if(!e.rangebreaks)return u;var c=e.rangebreaks.slice().sort((function(e,t){return e.pattern===k&&t.pattern===T?-1:t.pattern===k&&e.pattern===T?1:0})),f=function(e,n){if((e=i.constrain(e,t,r))!==(n=i.constrain(n,t,r))){for(var a=!0,o=0;o<u.length;o++){var l=u[o];e<l.max&&n>=l.min&&(e<l.min&&(l.min=e),n>l.max&&(l.max=n),a=!1)}a&&u.push({min:e,max:n})}};for(n=0;n<c.length;n++){var d=c[n];if(d.enabled)if(d.bounds){var h=t,p=r;d.pattern&&(h=Math.floor(h)),o=(a=i.simpleMap(d.bounds,d.pattern?s:e.r2l))[0],l=a[1];var g,v,w=new Date(h);switch(d.pattern){case k:v=y,g=(l-o+(l<o?7:0))*m,h+=o*m-(w.getUTCDay()*m+w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case T:v=m,g=(l-o+(l<o?24:0))*x,h+=o*x-(w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:h=Math.min(a[0],a[1]),g=v=(p=Math.max(a[0],a[1]))-h}for(var M=h;M<p;M+=v)f(M,M+g)}else for(var A=i.simpleMap(d.values,e.d2c),S=0;S<A.length;S++)f(o=A[S],l=o+d.dvalue)}return u.sort((function(e,t){return e.min-t.min})),u},e.makeCalcdata=function(t,r,n){var a,o,l,s,u=e.type,c="date"===u&&t[r+"calendar"];if(r in t){if(a=t[r],s=t._length||i.minRowLength(a),i.isTypedArray(a)&&("linear"===u||"log"===u)){if(s===a.length)return a;if(a.subarray)return a.subarray(0,s)}if("multicategory"===u)return function(e,t){for(var r=new Array(t),n=0;n<t;n++){var a=(e[0]||[])[n],i=(e[1]||[])[n];r[n]=R([a,i])}return r}(a,s);for(o=new Array(s),l=0;l<s;l++)o[l]=e.d2c(a[l],0,c,n)}else{var f=r+"0"in t?e.d2c(t[r+"0"],0,c):0,d=t["d"+r]?Number(t["d"+r]):1;for(a=t[{x:"y",y:"x"}[r]],s=t._length||a.length,o=new Array(s),l=0;l<s;l++)o[l]=f+l*d}if(e.rangebreaks)for(l=0;l<s;l++)o[l]=e.maskBreaks(o[l]);return o},e.isValidRange=function(t,r){return Array.isArray(t)&&2===t.length&&(r&&null===t[0]||l(e.r2l(t[0])))&&(r&&null===t[1]||l(e.r2l(t[1])))},e.getAutorangeDflt=function(t,r){var n=!e.isValidRange(t,"nullOk");return n&&r&&r.reverseDflt?n="reversed":t&&(null===t[0]&&null===t[1]?n=!0:null===t[0]&&null!==t[1]?n="min":null!==t[0]&&null===t[1]&&(n="max")),n},e.isReversed=function(){var t=e.autorange;return"reversed"===t||"min reversed"===t||"max reversed"===t},e.isPtWithinRange=function(t,r){var n=e.c2l(t[h],null,r),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=n&&n<=i:i<=n&&n<=a},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var r=e._matchGroup;if(r){var n=null,a=null;for(var i in r){var o=t[w.id2name(i)];if(o._categories){n=o._categories,a=o._categoriesMap;break}}n&&a?(e._categories=n,e._categoriesMap=a):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var l=0;l<e._initialCategories.length;l++)O(e._initialCategories[l])},e.sortByInitialCategories=function(){var n=[];if(e._emptyCategories(),e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)O(e._initialCategories[a]);n=n.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(r!==o){var l=t[w.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,n=n.concat(l._traceIndices)}return n};var H=t._d3locale;"date"===e.type&&(e._dateFormat=H?H.timeFormat:a,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=H?H.numberFormat:o,delete e._minDtick,delete e._forceTick0}},5024:function(e){"use strict";e.exports=function(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]]}},5936:function(e,t,r){"use strict";var n=r(3400),a=r(6308).contrast,i=r(4724),o=r(5024),l=r(1272);function s(e,t){function r(r,a){return n.coerce(e,t,i.tickformatstops,r,a)}r("enabled")&&(r("dtickrange"),r("value"))}e.exports=function(e,t,r,u,c){c||(c={});var f=r("labelalias");n.isPlainObject(f)||delete t.labelalias;var d=o(e);if(r("showticklabels")){var h=c.font||{},p=t.color,g=-1!==(t.ticklabelposition||"").indexOf("inside")?a(c.bgColor):p&&p!==i.color.dflt?p:h.color;if(n.coerceFont(r,"tickfont",{family:h.family,size:h.size,color:g}),c.noTicklabelstep||"multicategory"===u||"log"===u||r("ticklabelstep"),!c.noAng){var v=r("tickangle");c.noAutotickangles||"auto"!==v||r("autotickangles")}if("category"!==u){var y=r("tickformat");l(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),t.tickformatstops.length||delete t.tickformatstops,c.noExp||y||"date"===u||(r("showexponent",d),r("exponentformat"),r("minexponent"),r("separatethousands"))}}}},5404:function(e,t,r){"use strict";var n=r(3400),a=r(4724);e.exports=function(e,t,r,i){var o=i.isMinor,l=o?e.minor||{}:e,s=o?t.minor:t,u=o?a.minor:a,c=o?"minor.":"",f=n.coerce2(l,s,u,"ticklen",o?.6*(t.ticklen||5):void 0),d=n.coerce2(l,s,u,"tickwidth",o?t.tickwidth||1:void 0),h=n.coerce2(l,s,u,"tickcolor",(o?t.tickcolor:void 0)||s.color);r(c+"ticks",!o&&i.outerTicks||f||d||h?"outside":"")||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}},6332:function(e,t,r){"use strict";var n=r(8728),a=r(3400).isArrayOrTypedArray,i=r(8116).isTypedArraySpec,o=r(8116).decodeTypedArraySpec;e.exports=function(e,t,r,l,s){s||(s={});var u=s.isMinor,c=u?e.minor||{}:e,f=u?t.minor:t,d=u?"minor.":"";function h(e){var t=c[e];return i(t)&&(t=o(t)),void 0!==t?t:(f._template||{})[e]}var p=h("tick0"),g=h("dtick"),v=h("tickvals"),y=r(d+"tickmode",a(v)?"array":g?"linear":"auto");if("auto"===y||"sync"===y)r(d+"nticks");else if("linear"===y){var m=f.dtick=n.dtick(g,l);f.tick0=n.tick0(p,l,t.calendar,m)}else"multicategory"!==l&&(void 0===r(d+"tickvals")?f.tickmode="auto":u||r("ticktext"))}},3736:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(3400),o=r(3616),l=r(4460);e.exports=function(e,t,r,s){var u=e._fullLayout;if(0!==t.length){var c,f,d,h;s&&(c=s());var p=n.ease(r.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(h),h=null,function(){for(var r={},n=0;n<t.length;n++){var i=t[n],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 a.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}()})),f=Date.now(),h=window.requestAnimationFrame((function n(){d=Date.now();for(var i=Math.min(1,(d-f)/r.duration),o=p(i),l=0;l<t.length;l++)v(t[l],o);d-f>r.duration?(function(){for(var r={},n=0;n<t.length;n++){var i=t[n],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())}c&&c(),a.call("relayout",e,r).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}(),h=window.cancelAnimationFrame(n)):h=window.requestAnimationFrame(n)})),Promise.resolve()}function g(e){var t=e.xaxis,r=e.yaxis;u._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 n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function v(t,r){var n=t.plotinfo,a=n.xaxis,s=n.yaxis,u=a._length,c=s._length,f=!!t.xr1,d=!!t.yr1,h=[];if(f){var p=i.simpleMap(t.xr0,a.r2l),g=i.simpleMap(t.xr1,a.r2l),v=p[1]-p[0],y=g[1]-g[0];h[0]=(p[0]*(1-r)+r*g[0]-p[0])/(p[1]-p[0])*u,h[2]=u*(1-r+r*y/v),a.range[0]=a.l2r(p[0]*(1-r)+r*g[0]),a.range[1]=a.l2r(p[1]*(1-r)+r*g[1])}else h[0]=0,h[2]=u;if(d){var m=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=m[1]-m[0],_=x[1]-x[0];h[1]=(m[1]*(1-r)+r*x[1]-m[1])/(m[0]-m[1])*c,h[3]=c*(1-r+r*_/b),s.range[0]=a.l2r(m[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(m[1]*(1-r)+r*x[1])}else h[1]=0,h[3]=c;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?u/h[2]:1,M=d?c/h[3]:1,T=f?h[0]:0,k=d?h[1]:0,A=f?h[0]/h[2]*u:0,S=d?h[1]/h[3]*c:0,L=a._offset-A,D=s._offset-S;n.clipRect.call(o.setTranslate,T,k).call(o.setScale,1/w,1/M),n.plot.call(o.setTranslate,L,D).call(o.setScale,w,M),o.setPointGroupScale(n.zoomScalePts,1/w,1/M),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/M)}l.redrawComponents(e)}},4944:function(e,t,r){"use strict";var n=r(4040).traceIs,a=r(2976);function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var r=i(e),a=n(e,"box-violin"),o=n(e._fullInput||{},"candlestick");return a&&!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){var r,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var u=function(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if("splom"===a.type&&a._length>0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(o(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(t,l,s);if(u)if("histogram"!==u.type||s!=={v:"y",h:"x"}[u.orientation||"v"]){var c=s+"calendar",f=u[c],d={noMultiCategory:!n(u,"cartesian")||n(u,"noMultiCategory")};if("box"===u.type&&u._hasPreCompStats&&s==={h:"x",v:"y"}[u.orientation||"v"]&&(d.noMultiCategory=!0),d.autotypenumbers=e.autotypenumbers,o(u,s)){var h=i(u),p=[];for(r=0;r<t.length;r++){var g=t[r];n(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[c]!==f&&(f=void 0))}e.type=a(p,f,d)}else if("splom"===u.type){var v=u.dimensions[u._axesDim[l]];v.visible&&(e.type=a(v.values,f,d))}else e.type=a(u[s]||[u[s+"0"]],f,d)}else e.type="linear"}}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},2460:function(e,t,r){"use strict";var n=r(4040),a=r(3400);function i(e,t,r){var n,i,o,l=!1;if("data"===t.type)n=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;n=e._fullLayout}return i=a.nestedProperty(n,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=[],n=t[0],i={};if("string"==typeof n)i[n]=t[1];else{if(!a.isPlainObject(n))return r;i=n}return s(i,(function(e,t,n){r.push({type:"layout",prop:e,value:n})}),"",0),r}function l(e,t){var r,n,i,o,l=[];if(n=t[0],i=t[1],r=t[2],o={},"string"==typeof n)o[n]=i;else{if(!a.isPlainObject(n))return l;o=n,void 0===r&&(r=i)}return void 0===r&&(r=null),s(o,(function(t,n,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);r&&(s=Math.min(s,r.length)),i=[];for(var u=0;u<s;u++)i[u]=r?r[u]:u}else o=a,i=r?r.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var c=o;o=[];for(var f=0;f<i.length;f++)o[f]=c}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,n){Object.keys(e).forEach((function(i){var o=e[i];if("_"!==i[0]){var l=r+(n>0?".":"")+i;a.isPlainObject(o)?s(o,t,l,n+1):t(l,i,o)}}))}t.manageCommandObserver=function(e,r,n,o){var l={},s=!0;r&&r._commandObserver&&(l=r._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var u=t.hasSimpleAPICommandBindings(e,n,l.lookupTable);if(r&&r._commandObserver){if(u)return l;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,l}if(u){i(e,u,l.cache),l.check=function(){if(s){var t=i(e,u,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f<c.length;f++)e._internalOn(c[f],l.check);l.remove=function(){for(var t=0;t<c.length;t++)e._removeInternalListener(c[t],l.check)}}else a.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,n){var a,i,o=r.length;for(a=0;a<o;a++){var l,s=r[a],u=s.method,c=s.args;if(Array.isArray(c)||(c=[]),!u)return!1;var f=t.computeAPICommandBindings(e,u,c);if(1!==f.length)return!1;if(i){if((l=f[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 d=0;d<i.traces.length;d++)if(i.traces[d]!==l.traces[d])return!1}else if(l.prop!==i.prop)return!1}else i=f[0],Array.isArray(i.traces)&&i.traces.sort();var h=(l=f[0]).value;if(Array.isArray(h)){if(1!==h.length)return!1;h=h[0]}n&&(n[h]=a)}return i},t.executeAPICommand=function(e,t,r){if("skip"===t)return Promise.resolve();var i=n.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 a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},t.computeAPICommandBindings=function(e,t,r){var n;switch(Array.isArray(r)||(r=[]),t){case"restyle":n=l(e,r);break;case"relayout":n=o(0,r);break;case"update":n=l(e,[r[0],r[2]]).concat(o(0,[r[1]]));break;case"animate":n=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:n=[]}return n}},6968:function(e,t,r){"use strict";var n=r(2880).extendFlat;t.u=function(e,t){t=t||{};var r={valType:"info_array",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]},a=(e.name&&e.name,e.trace,t.description&&t.description,{x:n({},r,{}),y:n({},r,{}),editType:e.editType});return e.noGridCell||(a.row={valType:"integer",min:0,dflt:0,editType:e.editType},a.column={valType:"integer",min:0,dflt:0,editType:e.editType}),a},t.Q=function(e,t,r,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=t.grid;if(o){var l=r("domain.column");void 0!==l&&(l<o.columns?a=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 u=r("domain.x",a),c=r("domain.y",i);u[0]<u[1]||(e.domain.x=a.slice()),c[0]<c[1]||(e.domain.y=i.slice())}},5376:function(e){"use strict";e.exports=function(e){var t=e.editType,r=e.colorEditType;void 0===r&&(r=t);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:r},editType:t};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},6672:function(e){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},9552:function(e,t){"use strict";t.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},t.axesNames=["lonaxis","lataxis"],t.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},t.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},t.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},t.clipPad=.001,t.precision=.1,t.landColor="#F0DC82",t.waterColor="#3399FF",t.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},t.sphereSVG={type:"Sphere"},t.fillLayers={ocean:1,land:1,lakes:1},t.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},t.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],t.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],t.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},3520:function(e,t,r){"use strict";var n=r(3428),a=r(3356),i=a.geoPath,o=a.geoDistance,l=r(7108),s=r(4040),u=r(3400),c=u.strTranslate,f=r(6308),d=r(3616),h=r(3024),p=r(7316),g=r(4460),v=r(9280).getAutoRange,y=r(6476),m=r(2676).prepSelect,x=r(2676).clearOutline,b=r(2676).selectOnClick,_=r(9248),w=r(9552),M=r(7144),T=r(9972),k=r(5712).NO;function A(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var S=A.prototype;function L(e,t){var r=w.clipPad,n=e[0]+r,a=e[1]-r,i=t[0]+r,o=t[1]-r;n>0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}e.exports=function(e){return new A(e)},S.plot=function(e,t,r,n){var a=this;if(n)return a.update(e,t,!0);a._geoCalcData=e,a._fullLayout=t;var i=t[this.id],o=[],l=!1;for(var s in w.layerNameToAdjective)if("frame"!==s&&i["show"+s]){l=!0;break}for(var u=!1,c=0;c<e.length;c++){var f=e[0][0].trace;f._geo=a,f.locationmode&&(l=!0);var d=f.marker;if(d){var h=d.angle,p=d.angleref;(h||"north"===p||"previous"===p)&&(u=!0)}}if(this._hasMarkerAngles=u,l){var g=T.getTopojsonName(i);null!==a.topojson&&g===a.topojsonName||(a.topojsonName=g,void 0===PlotlyGeoAssets.topojson[a.topojsonName]&&o.push(a.fetchTopojson()))}o=o.concat(M.fetchTraceGeoData(e)),r.push(new Promise((function(r,n){Promise.all(o).then((function(){a.topojson=PlotlyGeoAssets.topojson[a.topojsonName],a.update(e,t),r()})).catch(n)})))},S.fetchTopojson=function(){var e=this,t=T.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise((function(r,a){n.json(t,(function(n,i){if(n)return 404===n.status?a(new Error(["plotly.js could not find topojson file at",t+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",t].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,r()}))}))},S.update=function(e,t,r){var n=t[this.id];this.hasChoropleth=!1;for(var a=0;a<e.length;a++){var i=e[a],o=i[0].trace;"choropleth"===o.type&&(this.hasChoropleth=!0),!0===o.visible&&o._length>0&&o._module.calcGeoJSON(i,t)}if(!r){if(this.updateProjection(e,t))return;this.viewInitial&&this.scope===n.scope||this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),p.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this._render()},S.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],s=t._size,c=n.domain,f=n.projection,d=n.lonaxis,h=n.lataxis,p=d._ax,g=h._ax,y=this.projection=function(e){var t=e.projection,r=t.type,n=w.projNames[r];n="geo"+u.titleCase(n);for(var s=(a[n]||l[n])(),c=e._isSatellite?180*Math.acos(1/t.distance)/Math.PI:e._isClipped?w.lonaxisSpan[r]/2:null,f=["center","rotate","parallels","clipExtent"],d=function(e){return e?s:[]},h=0;h<f.length;h++){var p=f[h];"function"!=typeof s[p]&&(s[p]=d)}return s.isLonLatOverEdges=function(e){if(null===s(e))return!0;if(c){var t=s.rotate();return o(e,[-t[0],-t[1]])>c*Math.PI/180}return!1},s.getPath=function(){return i().projection(s)},s.getBounds=function(e){return s.getPath().bounds(e)},s.precision(w.precision),e._isSatellite&&s.tilt(t.tilt).distance(t.distance),c&&s.clipAngle(c-w.clipPad),s}(n),m=[[s.l+s.w*c.x[0],s.t+s.h*(1-c.y[1])],[s.l+s.w*c.x[1],s.t+s.h*(1-c.y[0])]],x=n.center||{},b=f.rotation||{},_=d.range||[],M=h.range||[];if(n.fitbounds){p._length=m[1][0]-m[0][0],g._length=m[1][1]-m[0][1],p.range=v(r,p),g.range=v(r,g);var T=(p.range[0]+p.range[1])/2,k=(g.range[0]+g.range[1])/2;if(n._isScoped)x={lon:T,lat:k};else if(n._isClipped){x={lon:T,lat:k},b={lon:T,lat:k,roll:b.roll};var A=f.type,S=w.lonaxisSpan[A]/2||180,D=w.lataxisSpan[A]/2||90;_=[T-S,T+S],M=[k-D,k+D]}else x={lon:T,lat:k},b={lon:T,lat:b.lat,roll:b.roll}}y.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(f.parallels);var C=L(_,M);y.fitExtent(m,C);var P=this.bounds=y.getBounds(C),O=this.fitScale=y.scale(),R=y.translate();if(n.fitbounds){var E=y.getBounds(L(p.range,g.range)),I=Math.min((P[1][0]-P[0][0])/(E[1][0]-E[0][0]),(P[1][1]-P[0][1])/(E[1][1]-E[0][1]));isFinite(I)?y.scale(I*O):u.warn("Something went wrong during"+this.id+"fitbounds computations.")}else y.scale(f.scale*O);var N=this.midPt=[(P[0][0]+P[1][0])/2,(P[0][1]+P[1][1])/2];if(y.translate([R[0]+(N[0]-R[0]),R[1]+(N[1]-R[1])]).clipExtent(P),n._isAlbersUsa){var z=y([x.lon,x.lat]),F=y.translate();y.translate([F[0]-(z[0]-F[0]),F[1]-(z[1]-F[1])])}},S.updateBaseLayers=function(e,t){var r=this,a=r.topojson,i=r.layers,o=r.basePaths;function l(e){return"lonaxis"===e||"lataxis"===e}function s(e){return Boolean(w.lineLayers[e])}function u(e){return Boolean(w.fillLayers[e])}var c=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(e){return s(e)||u(e)?t["show"+e]:!l(e)||t[e].showgrid})),h=r.framework.selectAll(".layer").data(c,String);h.exit().each((function(e){delete i[e],delete o[e],n.select(this).remove()})),h.enter().append("g").attr("class",(function(e){return"layer "+e})).each((function(e){var t=i[e]=n.select(this);"bg"===e?r.bgRect=t.append("rect").style("pointer-events","all"):l(e)?o[e]=t.append("path").style("fill","none"):"backplot"===e?t.append("g").classed("choroplethlayer",!0):"frontplot"===e?t.append("g").classed("scatterlayer",!0):s(e)?o[e]=t.append("path").style("fill","none").style("stroke-miterlimit",2):u(e)&&(o[e]=t.append("path").style("stroke","none"))})),h.order(),h.each((function(r){var n=o[r],i=w.layerNameToAdjective[r];"frame"===r?n.datum(w.sphereSVG):s(r)||u(r)?n.datum(k(a,a.objects[r])):l(r)&&n.datum(function(e,t,r){var n,a,i,o=t[e],l=w.scopeDefaults[t.scope];"lonaxis"===e?(n=l.lonaxisRange,a=l.lataxisRange,i=function(e,t){return[e,t]}):"lataxis"===e&&(n=l.lataxisRange,a=l.lonaxisRange,i=function(e,t){return[t,e]});var s={type:"linear",range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};g.setConvert(s,r);var u=g.calcTicks(s);t.isScoped||"lonaxis"!==e||u.pop();for(var c=u.length,f=new Array(c),d=0;d<c;d++)for(var h=u[d].x,p=f[d]=[],v=a[0];v<a[1]+2.5;v+=2.5)p.push(i(h,v));return{type:"MultiLineString",coordinates:f}}(r,t,e)).call(f.stroke,t[r].gridcolor).call(d.dashLine,t[r].griddash,t[r].gridwidth),s(r)?n.call(f.stroke,t[i+"color"]).call(d.dashLine,"",t[i+"width"]):u(r)&&n.call(f.fill,t[i+"color"])}))},S.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,a=r[0][0]-n,i=r[0][1]-n,o=r[1][0]-a+n,l=r[1][1]-i+n;d.setRect(this.clipRect,a,i,o,l),this.bgRect.call(d.setRect,a,i,o,l).call(f.fill,t.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l},S.updateFx=function(e,t){var r=this,a=r.graphDiv,i=r.bgRect,o=e.dragmode,l=e.clickmode;if(!r.isStatic){var c={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:function(e,t){t.isRect?(e.range={})[r.id]=[f([t.xmin,t.ymin]),f([t.xmax,t.ymax])]:(e.lassoPoints={})[r.id]=t.map(f)}},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(e){2===e&&x(a)}};"pan"===o?(i.node().onmousedown=null,i.call(_(r,t)),i.on("dblclick.zoom",(function(){var e=r.viewInitial,t={};for(var n in e)t[r.id+"."+n]=e[n];s.call("_guiRelayout",a,t),a.emit("plotly_doubleclick",null)})),a._context._scrollZoom.geo||i.on("wheel.zoom",null)):"select"!==o&&"lasso"!==o||(i.on(".zoom",null),c.prepFn=function(e,t,r){m(e,t,r,c,o)},y.init(c)),i.on("mousemove",(function(){var e=r.projection.invert(u.getPositionFromD3Event());if(!e)return y.unhover(a,n.event);r.xaxis.p2c=function(){return e[0]},r.yaxis.p2c=function(){return e[1]},h.hover(a,n.event,r.id)})),i.on("mouseout",(function(){a._dragging||y.unhover(a,n.event)})),i.on("click",(function(){"select"!==o&&"lasso"!==o&&(l.indexOf("select")>-1&&b(n.event,a,[r.xaxis],[r.yaxis],r.id,c),l.indexOf("event")>-1&&h.click(a,n.event))}))}function f(e){return r.projection.invert([e[0]+r.xaxis._offset,e[1]+r.yaxis._offset])}},S.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,a="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=n.select(e.container).append("g").attr("class","geo "+e.id).call(d.setClipUrl,a,t),e.project=function(t){var r=e.projection(t);return r?[r[0]-e.xaxis._offset,r[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(t){return e.project(t)[0]}},e.yaxis={_id:"y",c2p:function(t){return e.project(t)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},g.setConvert(e.mockAxis,r)},S.saveViewInitial=function(e){var t,r=e.center||{},n=e.projection,a=n.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":n.scale},t=e._isScoped?{"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?{"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat}:{"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},u.extendFlat(this.viewInitial,t)},S.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},S._render=function(){var e,t=this.projection,r=t.getPath();function n(e){var r=t(e.lonlat);return r?c(r[0],r[1]):null}function a(e){return t.isLonLatOverEdges(e.lonlat)?"none":null}for(e in this.basePaths)this.basePaths[e].attr("d",r);for(e in this.dataPaths)this.dataPaths[e].attr("d",(function(e){return r(e.geojson)}));for(e in this.dataPoints)this.dataPoints[e].attr("display",a).attr("transform",n)}},816:function(e,t,r){"use strict";var n=r(4888).KY,a=r(3400).counterRegex,i=r(3520),o="geo",l=a(o),s={};s[o]={valType:"subplotid",dflt:o,editType:"calc"},e.exports={attr:o,name:o,idRoot:o,idRegex:l,attrRegex:l,attributes:s,layoutAttributes:r(384),supplyLayoutDefaults:r(6920),plot:function(e){for(var t=e._fullLayout,r=e.calcdata,a=t._subplots[o],l=0;l<a.length;l++){var s=a[l],u=n(r,o,s),c=t[s]._subplot;c||(c=i({id:s,graphDiv:e,container:t._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),t[s]._subplot=c),c.plot(u,t,e._promises)}},updateFx:function(e){for(var t=e._fullLayout,r=t._subplots[o],n=0;n<r.length;n++){var a=t[r[n]];a._subplot.updateFx(t,a)}},clean:function(e,t,r,n){for(var a=n._subplots[o]||[],i=0;i<a.length;i++){var l=a[i],s=n[l]._subplot;!t[l]&&s&&(s.framework.remove(),s.clipDef.remove())}}}},384:function(e,t,r){"use strict";var n=r(2548),a=r(6968).u,i=r(8192).u,o=r(9552),l=r(7824).overrideAll,s=r(2996),u={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:n.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:i};(e.exports=l({domain:a({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:s(o.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:s(o.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:n.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:o.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:o.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:o.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:o.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:n.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:n.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:n.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:n.background},lonaxis:u,lataxis:u},"plot","from-root")).uirevision={valType:"any",editType:"none"}},6920:function(e,t,r){"use strict";var n=r(3400),a=r(168),i=r(4888).op,o=r(9552),l=r(384),s=o.axesNames;function u(e,t,r,a){var l=i(a.fullData,"geo",a.id).map((function(e){return e._expandedIndex})),u=r("resolution"),c=r("scope"),f=o.scopeDefaults[c],d=r("projection.type",f.projType),h=t._isAlbersUsa="albers usa"===d;h&&(c=t.scope="usa");var p=t._isScoped="world"!==c,g=t._isSatellite="satellite"===d,v=t._isConic=-1!==d.indexOf("conic")||"albers"===d,y=t._isClipped=!!o.lonaxisSpan[d];if(!1===e.visible){var m=n.extendDeep({},t._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),t._template=m}for(var x=r("visible"),b=0;b<s.length;b++){var _,w=s[b],M=[30,10][b];if(p)_=f[w+"Range"];else{var T=o[w+"Span"],k=(T[d]||T["*"])/2,A=r("projection.rotation."+w.substr(0,3),f.projRotate[b]);_=[A-k,A+k]}var S=r(w+".range",_);r(w+".tick0"),r(w+".dtick",M),r(w+".showgrid",!!x&&void 0)&&(r(w+".gridcolor"),r(w+".gridwidth"),r(w+".griddash")),t[w]._ax={type:"linear",_id:w.slice(0,3),_traceIndices:l,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:S.slice(),_m:1,_input:{}}}var L=t.lonaxis.range,D=t.lataxis.range,C=L[0],P=L[1];C>0&&P<0&&(P+=360);var O,R,E,I=(C+P)/2;if(!h){var N=p?f.projRotate:[I,0,0];O=r("projection.rotation.lon",N[0]),r("projection.rotation.lat",N[1]),r("projection.rotation.roll",N[2]),r("showcoastlines",!p&&x)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!x&&void 0)&&r("oceancolor")}h?(R=-96.6,E=38.7):(R=p?I:O,E=(D[0]+D[1])/2),r("center.lon",R),r("center.lat",E),g&&(r("projection.tilt"),r("projection.distance")),v&&r("projection.parallels",f.projParallels||[0,60]),r("projection.scale"),r("showland",!!x&&void 0)&&r("landcolor"),r("showlakes",!!x&&void 0)&&r("lakecolor"),r("showrivers",!!x&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",p&&"usa"!==c&&x)&&(r("countrycolor"),r("countrywidth")),("usa"===c||"north america"===c&&50===u)&&(r("showsubunits",x),r("subunitcolor"),r("subunitwidth")),p||r("showframe",x)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete t.projection.scale,p?(delete t.center.lon,delete t.center.lat):y?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}e.exports=function(e,t,r){a(e,t,r,{type:"geo",attributes:l,handleDefaults:u,fullData:r,partition:"y"})}},9248:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(4040),o=Math.PI/180,l=180/Math.PI,s={cursor:"pointer"},u={cursor:"auto"};function c(e,t){return n.behavior.zoom().translate(t.translate()).scale(t.scale())}function f(e,t,r){var n=e.id,o=e.graphDiv,l=o.layout,s=l[n],u=o._fullLayout,c=u[n],f={},d={};function h(e,t){f[n+"."+e]=a.nestedProperty(s,e).get(),i.call("_storeDirectGUIEdit",l,u._preGUI,f);var r=a.nestedProperty(c,e);r.get()!==t&&(r.set(t),a.nestedProperty(s,e).set(t),d[n+"."+e]=t)}r(h),h("projection.scale",t.scale()/e.fitScale),h("fitbounds",!1),o.emit("plotly_relayout",d)}function d(e,t){var r=c(0,t);function a(r){var n=t.invert(e.midPt);r("center.lon",n[0]),r("center.lat",n[1])}return r.on("zoomstart",(function(){n.select(this).style(s)})).on("zoom",(function(){t.scale(n.event.scale).translate(n.event.translate),e.render(!0);var r=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":r[0],"geo.center.lat":r[1]})})).on("zoomend",(function(){n.select(this).style(u),f(e,t,a)})),r}function h(e,t){var r,a,i,o,l,d,h,p,g,v=c(0,t);function y(e){return t.invert(e)}function m(r){var n=t.rotate(),a=t.invert(e.midPt);r("projection.rotation.lon",-n[0]),r("center.lon",a[0]),r("center.lat",a[1])}return v.on("zoomstart",(function(){n.select(this).style(s),r=n.mouse(this),a=t.rotate(),i=t.translate(),o=a,l=y(r)})).on("zoom",(function(){if(d=n.mouse(this),function(e){var r=y(e);if(!r)return!0;var n=t(r);return Math.abs(n[0]-e[0])>2||Math.abs(n[1]-e[1])>2}(r))return v.scale(t.scale()),void v.translate(t.translate());t.scale(n.event.scale),t.translate([i[0],n.event.translate[1]]),l?y(d)&&(p=y(d),h=[o[0]+(p[0]-l[0]),a[1],a[2]],t.rotate(h),o=h):l=y(r=d),g=!0,e.render(!0);var s=t.rotate(),u=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":u[0],"geo.center.lat":u[1],"geo.projection.rotation.lon":-s[0]})})).on("zoomend",(function(){n.select(this).style(u),g&&f(e,t,m)})),v}function p(e,t){var r,a={r:t.rotate(),k:t.scale()},i=c(0,t),d=function(e){for(var t=0,r=arguments.length,a=[];++t<r;)a.push(arguments[t]);var i=n.dispatch.apply(null,a);return i.of=function(t,r){return function(a){var o;try{o=a.sourceEvent=n.event,a.target=e,n.event=a,i[a.type].apply(t,r)}finally{n.event=o}}},i}(i,"zoomstart","zoom","zoomend"),h=0,p=i.on;function y(e){var r=t.rotate();e("projection.rotation.lon",-r[0]),e("projection.rotation.lat",-r[1])}return i.on("zoomstart",(function(){n.select(this).style(s);var e,u,c,f,y,b,_,w,M,T,k,A=n.mouse(this),S=t.rotate(),L=S,D=t.translate(),C=(u=.5*(e=S)[0]*o,c=.5*e[1]*o,f=.5*e[2]*o,y=Math.sin(u),b=Math.cos(u),_=Math.sin(c),w=Math.cos(c),M=Math.sin(f),[b*w*(T=Math.cos(f))+y*_*M,y*w*T-b*_*M,b*_*T+y*w*M,b*w*M-y*_*T]);r=g(t,A),p.call(i,"zoom",(function(){var e,i,o,s,u,c,f,h,p,y,b=n.mouse(this);if(t.scale(a.k=n.event.scale),r){if(g(t,b)){t.rotate(S).translate(D);var _=g(t,b),w=function(e,t){if(e&&t){var r=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(e,t),n=Math.sqrt(x(r,r)),a=.5*Math.acos(Math.max(-1,Math.min(1,x(e,t)))),i=Math.sin(a)/n;return n&&[Math.cos(a),r[2]*i,-r[1]*i,r[0]*i]}}(r,_),M=function(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*l,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*l,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*l]}((o=(e=C)[0],s=e[1],u=e[2],c=e[3],[o*(f=(i=w)[0])-s*(h=i[1])-u*(p=i[2])-c*(y=i[3]),o*h+s*f+u*y-c*p,o*p-s*y+u*f+c*h,o*y+s*p-u*h+c*f])),T=a.r=function(e,t,r){var n=m(t,2,e[0]);n=m(n,1,e[1]),n=m(n,0,e[2]-r[2]);var a,i,o=t[0],s=t[1],u=t[2],c=n[0],f=n[1],d=n[2],h=Math.atan2(s,o)*l,p=Math.sqrt(o*o+s*s);Math.abs(f)>p?(i=(f>0?90:-90)-h,a=0):(i=Math.asin(f/p)*l-h,a=Math.sqrt(p*p-f*f));var g=180-i-2*h,y=(Math.atan2(d,c)-Math.atan2(u,a))*l,x=(Math.atan2(d,c)-Math.atan2(u,-a))*l;return v(r[0],r[1],i,y)<=v(r[0],r[1],g,x)?[i,y,r[2]]:[g,x,r[2]]}(M,r,L);isFinite(T[0])&&isFinite(T[1])&&isFinite(T[2])||(T=L),t.rotate(T),L=T}}else r=g(t,A=b);d.of(this,arguments)({type:"zoom"})})),k=d.of(this,arguments),h++||k({type:"zoomstart"})})).on("zoomend",(function(){var r;n.select(this).style(u),p.call(i,"zoom",null),r=d.of(this,arguments),--h||r({type:"zoomend"}),f(e,t,y)})).on("zoom.redraw",(function(){e.render(!0);var r=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-r[0],"geo.projection.rotation.lat":-r[1]})})),n.rebind(i,d,"on")}function g(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&function(e){var t=e[0]*o,r=e[1]*o,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}(r)}function v(e,t,r,n){var a=y(r-e),i=y(n-t);return Math.sqrt(a*a+i*i)}function y(e){return(e%360+540)%360-180}function m(e,t,r){var n=r*o,a=e.slice(),i=0===t?1:0,l=2===t?1:2,s=Math.cos(n),u=Math.sin(n);return a[i]=e[i]*s-e[l]*u,a[l]=e[l]*s+e[i]*u,a}function x(e,t){for(var r=0,n=0,a=e.length;n<a;++n)r+=e[n]*t[n];return r}e.exports=function(e,t){var r=e.projection;return(t._isScoped?d:t._isClipped?p:h)(e,r)}},4888:function(e,t,r){"use strict";var n=r(4040),a=r(3816).SUBPLOT_PATTERN;t.KY=function(e,t,r){var a=n.subplotsRegistry[t];if(!a)return[];for(var i=a.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===r&&o.push(s)}return o},t._M=function(e,t,r){var a,i=[],o=[];if(!(a="string"==typeof t?n.getModule(t).plot:"function"==typeof t?t:t.plot))return[i,e];for(var l=r,s=0;s<e.length;s++){var u=e[s],c=u[0].trace,f=void 0!==c.zorder;!0===c.visible&&0!==c._length&&(!c._module||c._module.plot!==a||f&&c.zorder!==l?o.push(u):i.push(u))}return[i,o]},t.op=function(e,t,r){if(!n.subplotsRegistry[t])return[];var i,o,l,s=n.subplotsRegistry[t].attr,u=[];if("gl2d"===t){var c=r.match(a);o="x"+c[1],l="y"+c[2]}for(var f=0;f<e.length;f++)i=e[f],"gl2d"===t&&n.traceIs(i,"gl2d")?i[s[0]]===o&&i[s[1]]===l&&u.push(i):i[s]===r&&u.push(i);return u}},4424:function(e){"use strict";function t(e,t){var r,n,a=[0,0,0,0];for(r=0;r<4;++r)for(n=0;n<4;++n)a[n]+=e[4*r+n]*t[r];return a}e.exports=function(e,r){return t(e.projection,t(e.view,t(e.model,[r[0],r[1],r[2],1])))}},4859:function(e,t,r){"use strict";var n=r(5376),a=r(5656),i=r(2548),o=r(2872),l=r(4200),s=r(6741),u=r(2880).extendFlat,c=n({editType:"calc"});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",editType:"layoutstyle"},font:n({editType:"layoutstyle"}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:u(s({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:i.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:i.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:i.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:o.newshape,activeshape:o.activeshape,newselection:l.newselection,activeselection:l.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:u({},a.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:n({editType:"layoutstyle"})}}},6741:function(e){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}},7316:function(e,t,r){"use strict";var n=r(3428),a=r(4336).m_,i=r(7624).SO,o=r(8248),l=r(3160),s=r(4040),u=r(3060),c=r(1780),f=r(3400),d=r(6308),h=r(9032).BADNUM,p=r(9811),g=r(1936).clearOutline,v=r(5308),y=r(5656),m=r(6672),x=r(4888)._M,b=f.relinkPrivateKeys,_=f._,w=e.exports={};f.extendFlat(w,s),w.attributes=r(5464),w.attributes.type.values=w.allTypes,w.fontAttrs=r(5376),w.layoutAttributes=r(4859),w.fontWeight="normal";var M=w.transformsRegistry,T=r(2460);w.executeAPICommand=T.executeAPICommand,w.computeAPICommandBindings=T.computeAPICommandBindings,w.manageCommandObserver=T.manageCommandObserver,w.hasSimpleAPICommandBindings=T.hasSimpleAPICommandBindings,w.redrawText=function(e){return e=f.getGraphDiv(e),new Promise((function(t){setTimeout((function(){e._fullLayout&&(s.getComponentMethod("annotations","draw")(e),s.getComponentMethod("legend","draw")(e),s.getComponentMethod("colorbar","draw")(e),t(w.previousPromises(e)))}),300)}))},w.resize=function(e){var t;e=f.getGraphDiv(e);var r=new Promise((function(r,n){e&&!f.isHidden(e)||n(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||f.isHidden(e))r(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,s.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===r&&(delete e._resolveResize,r(e))}))}}),100)}));return t&&t(r),r},w.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},w.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=f.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=n.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)}))})),a=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.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(){w.sendDataToCloud(e)}));else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},w.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=w.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var k=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],A=["year","month","dayMonth","dayMonthYear"];function S(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,a={};function i(e){for(var r=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:r=!1)}r&&(n=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,u=0;u<2;u++){var c=(l[r]||{}).format;if(c&&(i(c),n))break;l=s.localeRegistry}var f=r.split("-")[0];if(n||f===r)break;r=f}return n||i(s.localeRegistry.en.format),a}function L(e,t){var r={_fullLayout:t},n="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",l="";if(a&&(l=a._mainAxis._id,i=n?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,u=0;u<s.length;u++){var c=s[u],f=n?e._id+c:c+e._id;o||(o=f);var d=p.getFromId(r,c);if(l&&d.overlaying===l){i=f;break}}}return i||o}function D(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r++){var n=t[r],a=n._module||M[n.type];if(a&&a.makesData)return!0}return!1}function C(e,t,r,n){for(var a=e.transforms,i=[e],o=0;o<a.length;o++){var l=a[o],s=M[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:r,fullLayout:n,transformIndex:o}))}return i}function P(e){return"string"==typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function O(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={}),e._reservedMargin||(e._reservedMargin={})}w.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,l=e._fullLayout={},u=e.layout||{},c=e._fullData||[],d=e._fullData=[],h=e.data||[],p=e.calcdata||[],v=e._context||{};e._transitionData||w.createTransitionData(e),l._dfltTitle={plot:_(e,"Click to enter Plot title"),x:_(e,"Click to enter X axis title"),y:_(e,"Click to enter Y axis title"),colorbar:_(e,"Click to enter Colorscale title"),annotation:_(e,"new text")},l._traceWord=_(e,"trace");var y=S(e,k);if(l._mapboxAccessToken=v.mapboxAccessToken,n._initialAutoSizeIsDone){var m=n.width,x=n.height;w.supplyLayoutGlobalDefaults(u,l,y),u.width||(l.width=m),u.height||(l.height=x),w.sanitizeMargins(l)}else{w.supplyLayoutGlobalDefaults(u,l,y);var M=!u.width||!u.height,T=l.autosize,L=v.autosizable;M&&(T||L)?w.plotAutoSize(e,u,l):M&&w.sanitizeMargins(l),!T&&M&&(u.width=l.width,u.height=l.height)}l._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(t){try{t=i(e).format(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return t},timeFormat:a(e).utcFormat}}(y,l.separators),l._extraFormat=S(e,A),l._initialAutoSizeIsDone=!0,l._dataLength=h.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var D=l._subplots=function(){var e,t,r=s.collectableSubplotTypes,n={};if(!r){r=[];var a=s.subplotsRegistry;for(var i in a){var o=a[i].attr;if(o&&(r.push(i),Array.isArray(o)))for(t=0;t<o.length;t++)f.pushUnique(r,o[t])}}for(e=0;e<r.length;e++)n[r[e]]=[];return n}(),C=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(e,t){var r,n,a=t.length,i=[];for(r=0;r<e.length;r++){var o=e[r]._fullInput;o!==n&&i.push(o),n=o}var l=i.length,s=new Array(a),u={};function c(e,t){s[t]=e,u[e]=1}function d(e,t){if(e&&"string"==typeof e&&!u[e])return c(e,t),!0}for(r=0;r<a;r++){var h=t[r].uid;"number"==typeof h&&(h=String(h)),d(h,r)||r<l&&d(i[r].uid,r)||c(f.randstr(u),r)}return s}(c,h),l._globalTransforms=(e._context||{}).globalTransforms,w.supplyDataDefaults(h,d,u,l);var R=Object.keys(C.x),E=Object.keys(C.y);if(R.length>1&&E.length>1){for(s.getComponentMethod("grid","sizeDefaults")(u,l),o=0;o<R.length;o++)f.pushUnique(D.xaxis,R[o]);for(o=0;o<E.length;o++)f.pushUnique(D.yaxis,E[o]);for(var I in P)f.pushUnique(D.cartesian,I)}if(l._has=w._hasPlotType.bind(l),c.length===d.length)for(o=0;o<d.length;o++)b(d[o],c[o]);w.supplyLayoutModuleDefaults(u,l,d,e._transitionData);var N=l._visibleModules,z=[];for(o=0;o<N.length;o++){var F=N[o].crossTraceDefaults;F&&f.pushUnique(z,F)}for(o=0;o<z.length;o++)z[o](d,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&&"splom"===l._basePlotModules[0].name&&R.length>15&&E.length>15&&0===l.shapes.length&&0===l.images.length,w.linkSubplots(d,l,c,n),w.cleanPlot(d,l,c,n);var j=!(!n._has||!n._has("gl2d")),B=!(!l._has||!l._has("gl2d")),H=!(!n._has||!n._has("cartesian"))||j,G=!(!l._has||!l._has("cartesian"))||B;H&&!G?n._bgLayer.remove():G&&!H&&(l._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&g({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?n[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}n.length&&(r||(r=t._meta={}),r.data=n)}(d,l),b(l,n),s.getComponentMethod("colorscale","crossTraceDefaults")(d,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var Y,U=l._tracePreGUI,q={};for(Y in U)q[Y]="old";for(o=0;o<d.length;o++)q[Y=d[o]._fullInput.uid]||(U[Y]={}),q[Y]="new";for(Y in q)"old"===q[Y]&&delete U[Y];O(l),s.getComponentMethod("rangeslider","makeData")(l),r||p.length!==d.length||w.supplyDefaultsUpdateCalc(p,d)}},w.supplyDefaultsUpdateCalc=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],a=(e[r]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,l,s,u=i._arrayAttrs;for(o=0;o<u.length;o++)l=u[o],s=f.nestedProperty(i,l).get().slice(),f.nestedProperty(n,l).set(s)}a.trace=n}}},w.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=[])},w._hasPlotType=function(e){var t,r=this._basePlotModules||[];for(t=0;t<r.length;t++)if(r[t].name===e)return!0;var n=this._modules||[];for(t=0;t<n.length;t++){var a=n[t].name;if(a===e)return!0;var i=s.modules[a];if(i&&i.categories[e])return!0}return!1},w.cleanPlot=function(e,t,r,n){var a,i,o=n._basePlotModules||[];for(a=0;a<o.length;a++){var l=o[a];l.clean&&l.clean(e,t,r,n)}var s=n._has&&n._has("gl"),u=t._has&&t._has("gl");s&&!u&&void 0!==n._glcontainer&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var c=!!n._infolayer;e:for(a=0;a<r.length;a++){var f=r[a].uid;for(i=0;i<e.length;i++)if(f===e[i].uid)continue e;c&&n._infolayer.select(".cb"+f).remove()}},w.linkSubplots=function(e,t,r,n){var a,i,o=n._plots||{},l=t._plots={},u=t._subplots,c={_fullData:e,_fullLayout:t},d=u.cartesian.concat(u.gl2d||[]);for(a=0;a<d.length;a++){var h,g=d[a],v=o[g],y=p.getFromId(c,g,"x"),m=p.getFromId(c,g,"y");for(v?h=l[g]=v:(h=l[g]={}).id=g,y._counterAxes.push(m._id),m._counterAxes.push(y._id),y._subplotsWith.push(g),m._subplotsWith.push(g),h.xaxis=y,h.yaxis=m,h._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var x=e[i];if(x.xaxis===h.xaxis._id&&x.yaxis===h.yaxis._id&&!1===x.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var b,_=p.list(c,null,!0);for(a=0;a<_.length;a++){var w=null;(b=_[a]).overlaying&&(w=p.getFromId(c,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:p.getFromId(c,b.anchor)}for(a=0;a<_.length;a++)if((b=_[a])._counterAxes.sort(p.idSort),b._subplotsWith.sort(f.subplotSort),b._mainSubplot=L(b,t),b._counterAxes.length&&(b.spikemode&&-1!==b.spikemode.indexOf("across")||b.automargin&&b.mirror&&"free"!==b.anchor||s.getComponentMethod("rangeslider","isVisible")(b))){var M=1,T=0;for(i=0;i<b._counterAxes.length;i++){var k=p.getFromId(c,b._counterAxes[i]);M=Math.min(M,k.domain[0]),T=Math.max(T,k.domain[1])}M<T&&(b._counterDomainMin=M,b._counterDomainMax=T)}},w.clearExpandedTraceDefaultColors=function(e){var t,r,n;for(r=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],u.crawl(e._module.attributes,(function(e,n,a,i){r[i]=n,r.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(r.join("."))}))),n=0;n<t.length;n++)f.nestedProperty(e,"_input."+t[n]).get()||f.nestedProperty(e,t[n]).set(null)},w.supplyDataDefaults=function(e,t,r,n){var a,i,o,l=n._modules,u=n._visibleModules,d=n._basePlotModules,h=0,p=0;function g(e){t.push(e);var r=e._module;r&&(f.pushUnique(l,r),!0===e.visible&&f.pushUnique(u,r),f.pushUnique(d,e._module.basePlotModule),h++,!1!==e._input.visible&&p++)}n._transformModules=[];var v={},y=[],m=(r.template||{}).data||{},x=c.traceTemplater(m);for(a=0;a<e.length;a++){if(o=e[a],(i=x.newTrace(o)).uid=n._traceUids[a],w.supplyTraceDefaults(o,i,p,n,a),i.index=a,i._input=o,i._expandedIndex=h,i.transforms&&i.transforms.length)for(var _=!1!==o.visible&&!1===i.visible,M=C(i,t,r,n),T=0;T<M.length;T++){var k=M[T],A={_template:i._template,type:i.type,uid:i.uid+T};_&&!1===k.visible&&delete k.visible,w.supplyTraceDefaults(k,A,h,n,a),b(A,k),A.index=a,A._input=o,A._fullInput=i,A._expandedIndex=h,A._expandedInput=k,g(A)}else i._fullInput=i,i._expandedInput=i,g(i);s.traceIs(i,"carpetAxis")&&(v[i.carpet]=i),s.traceIs(i,"carpetDependent")&&y.push(a)}for(a=0;a<y.length;a++)if((i=t[y[a]]).visible){var S=v[i.carpet];i._carpet=S,S&&S.visible?(i.xaxis=S.xaxis,i.yaxis=S.yaxis):i.visible=!1}},w.supplyAnimationDefaults=function(e){var t;e=e||{};var r={};function n(t,n){return f.coerce(e||{},r,y,t,n)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],t=0;t<e.frame.length;t++)r.frame[t]=w.supplyAnimationFrameDefaults(e.frame[t]||{});else r.frame=w.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],t=0;t<e.transition.length;t++)r.transition[t]=w.supplyAnimationTransitionDefaults(e.transition[t]||{});else r.transition=w.supplyAnimationTransitionDefaults(e.transition||{});return r},w.supplyAnimationFrameDefaults=function(e){var t={};function r(r,n){return f.coerce(e||{},t,y.frame,r,n)}return r("duration"),r("redraw"),t},w.supplyAnimationTransitionDefaults=function(e){var t={};function r(r,n){return f.coerce(e||{},t,y.transition,r,n)}return r("duration"),r("easing"),t},w.supplyFrameDefaults=function(e){var t={};function r(r,n){return f.coerce(e,t,m,r,n)}return r("group"),r("name"),r("traces"),r("baseframe"),r("data"),r("layout"),t},w.supplyTraceDefaults=function(e,t,r,n,a){var i,o=n.colorway||d.defaults,l=o[r%o.length];function u(r,n){return f.coerce(e,t,w.attributes,r,n)}var c=u("visible");u("type"),u("name",n._traceWord+" "+a),u("uirevision",n.uirevision);var h=w.getModule(t);if(t._module=h,h){var p=h.basePlotModule,g=p.attr,v=p.attributes;if(g&&v){var y=n._subplots,m="";if(c||"gl2d"!==p.name){if(Array.isArray(g))for(i=0;i<g.length;i++){var x=g[i],b=f.coerce(e,t,v,x);y[x]&&f.pushUnique(y[x],b),m+=b}else m=f.coerce(e,t,v,g);y[p.name]&&f.pushUnique(y[p.name],m)}}}if(c){if(u("customdata"),u("ids"),u("meta"),s.traceIs(t,"showLegend")?(f.coerce(e,t,h.attributes.showlegend?h.attributes:w.attributes,"showlegend"),u("legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),u("legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,h&&h.supplyDefaults(e,t,l,n),s.traceIs(t,"noOpacity")||u("opacity"),s.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),s.traceIs(t,"noHover")||(t.hovertemplate||f.coerceHoverinfo(e,t,n),"parcats"!==t.type&&s.getComponentMethod("fx","supplyDefaults")(e,t,l,n)),h&&h.selectPoints){var _=u("selectedpoints");f.isTypedArray(_)&&(t.selectedpoints=Array.from(_))}w.supplyTransformDefaults(e,t,n)}return t},w.hasMakesDataTransform=D,w.supplyTransformDefaults=function(e,t,r){if(t._length||D(e)){var n=r._globalTransforms||[],a=r._transformModules||[];if(Array.isArray(e.transforms)||0!==n.length)for(var i=e.transforms||[],o=n.concat(i),l=t.transforms=[],s=0;s<o.length;s++){var u,c=o[s],d=c.type,h=M[d],p=!(c._module&&c._module===h),g=h&&"function"==typeof h.transform;h||f.warn("Unrecognized transform type "+d+"."),h&&h.supplyDefaults&&(p||g)?((u=h.supplyDefaults(c,t,r,e)).type=d,u._module=h,f.pushUnique(a,h)):u=f.extendFlat({},c),l.push(u)}}},w.supplyLayoutGlobalDefaults=function(e,t,r){function n(r,n){return f.coerce(e,t,w.layoutAttributes,r,n)}var a=e.template;f.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data),n("autotypenumbers");var i=f.coerceFont(n,"font"),o=i.size;f.coerceFont(n,"title.font",f.extendFlat({},i,{size:Math.round(1.4*o)})),n("title.text",t._dfltTitle.plot),n("title.xref");var l=n("title.yref");n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l");var u=n("title.automargin");n("title.x"),n("title.xanchor"),n("title.y"),n("title.yanchor"),u&&("paper"===l&&(0!==t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=0===t.title.y?"top":"bottom")),"container"===l&&("auto"===t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=t.title.y<.5?"bottom":"top"))),n("uniformtext.mode")&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("minreducedwidth"),n("minreducedheight"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&w.sanitizeMargins(t),s.getComponentMethod("grid","sizeDefaults")(e,t),n("paper_bgcolor"),n("separators",r.decimal+r.thousands),n("hidesources"),n("colorway"),n("datarevision");var c=n("uirevision");n("editrevision",c),n("selectionrevision",c),s.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),s.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,n),s.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,n),n("meta"),f.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),s.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),s.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,n),f.coerce(e,t,v,"scattermode")},w.plotAutoSize=function(e,t,r){var n,a,i=e._context||{},l=i.frameMargins,s=f.isPlotDiv(e);if(s&&e.emit("plotly_autosize"),i.fillFrame)n=window.innerWidth,a=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(e):{};if(n=P(u.width)||P(u.maxWidth)||r.width,a=P(u.height)||P(u.maxHeight)||r.height,o(l)&&l>0){var c=1-2*l;n=Math.round(c*n),a=Math.round(c*a)}}var d=w.layoutAttributes.width.min,h=w.layoutAttributes.height.min;n<d&&(n=d),a<h&&(a=h);var p=!t.width&&Math.abs(r.width-n)>1,g=!t.height&&Math.abs(r.height-a)>1;(g||p)&&(p&&(r.width=n),g&&(r.height=a)),e._initialAutoSize||(e._initialAutoSize={width:n,height:a}),w.sanitizeMargins(r)},w.supplyLayoutModuleDefaults=function(e,t,r,n){var a,i,o,l=s.componentsRegistry,u=t._basePlotModules,c=s.subplotsRegistry.cartesian;for(a in l)(o=l[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var d in u.length||u.push(c),t._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(e,t),c.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(f.subplotSort);for(i=0;i<u.length;i++)(o=u[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var h=t._modules;for(i=0;i<h.length;i++)(o=h[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r);var p=t._transformModules;for(i=0;i<p.length;i++)(o=p[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r,n);for(a in l)(o=l[a]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,r)},w.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)),f.clearThrottle(),f.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,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()},w.style=function(e){var t,r=e._fullLayout._visibleModules,n=[];for(t=0;t<r.length;t++){var a=r[t];a.style&&f.pushUnique(n,a.style)}for(t=0;t<n.length;t++)n[t](e)},w.sanitizeMargins=function(e){if(e&&e.margin){var t,r=e.width,n=e.height,a=e.margin,i=r-(a.l+a.r),o=n-(a.t+a.b);i<0&&(t=(r-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(n-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},w.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},w.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1},w.autoMargin=function(e,t,r){var n=e._fullLayout,a=n.width,i=n.height,o=n.margin,l=n.minreducedwidth,s=n.minreducedheight,u=f.constrain(a-o.l-o.r,2,l),c=f.constrain(i-o.t-o.b,2,s),d=Math.max(0,a-u),h=Math.max(0,i-c),p=n._pushmargin,g=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var v=r.pad;if(void 0===v&&(v=Math.min(12,o.l,o.r,o.t,o.b)),d){var y=(r.l+r.r)/d;y>1&&(r.l/=y,r.r/=y)}if(h){var m=(r.t+r.b)/h;m>1&&(r.t/=m,r.b/=m)}var x=void 0!==r.xl?r.xl:r.x,b=void 0!==r.xr?r.xr:r.x,_=void 0!==r.yt?r.yt:r.y,M=void 0!==r.yb?r.yb:r.y;p[t]={l:{val:x,size:r.l+v},r:{val:b,size:r.r+v},b:{val:M,size:r.b+v},t:{val:_,size:r.t+v}},g[t]=1}else delete p[t],delete g[t];if(!n._replotting)return w.doAutoMargin(e)}},w.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),O(t);var a=t._size,i=t.margin,l={t:0,b:0,l:0,r:0},u=f.extendFlat({},a),c=i.l,d=i.r,h=i.t,g=i.b,v=t._pushmargin,y=t._pushmarginIds,m=t.minreducedwidth,x=t.minreducedheight;if(!1!==i.autoexpand){for(var b in v)y[b]||delete v[b];var _=e._fullLayout._reservedMargin;for(var M in _)for(var T in _[M]){var k=_[M][T];l[T]=Math.max(l[T],k)}for(var A in v.base={l:{val:0,size:c},r:{val:1,size:d},t:{val:1,size:h},b:{val:0,size:g}},l){var S=0;for(var L in v)"base"!==L&&o(v[L][A].size)&&(S=v[L][A].size>S?v[L][A].size:S);var D=Math.max(0,i[A]-S);l[A]=Math.max(0,l[A]-D)}for(var C in v){var P=v[C].l||{},R=v[C].b||{},E=P.val,I=P.size,N=R.val,z=R.size,F=r-l.r-l.l,j=n-l.t-l.b;for(var B in v){if(o(I)&&v[B].r){var H=v[B].r.val,G=v[B].r.size;if(H>E){var Y=(I*H+(G-F)*E)/(H-E),U=(G*(1-E)+(I-F)*(1-H))/(H-E);Y+U>c+d&&(c=Y,d=U)}}if(o(z)&&v[B].t){var q=v[B].t.val,V=v[B].t.size;if(q>N){var W=(z*q+(V-j)*N)/(q-N),Z=(V*(1-N)+(z-j)*(1-q))/(q-N);W+Z>g+h&&(g=W,h=Z)}}}}}var J=f.constrain(r-i.l-i.r,2,m),X=f.constrain(n-i.t-i.b,2,x),$=Math.max(0,r-J),K=Math.max(0,n-X);if($){var Q=(c+d)/$;Q>1&&(c/=Q,d/=Q)}if(K){var ee=(g+h)/K;ee>1&&(g/=ee,h/=ee)}if(a.l=Math.round(c)+l.l,a.r=Math.round(d)+l.r,a.t=Math.round(h)+l.t,a.b=Math.round(g)+l.b,a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&(w.didMarginChange(u,a)||function(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=p.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(y).length);if(t._redrawFromAutoMarginCount<te)return s.call("_doPlot",e);t._size=u,f.warn("Too many auto-margin redraws.")}!function(e){var t=p.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach((function(e){for(var r=0;r<t.length;r++){var n=t[r][e];n&&n()}}))}(e)};var R=["l","r","t","b","p","w","h"];function E(e,t,r){var n=!1,a=[w.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,w.rehover,w.reselect,function(){return e.emit("plotly_transitioning",[]),new Promise((function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return s.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,o=0;function l(){return i++,function(){var t;o++,n||o!==i||(t=a,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)))}}r.runFn(l),setTimeout(l())}))}],i=f.syncOrAsync(a,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}w.didMarginChange=function(e,t){for(var r=0;r<R.length;r++){var n=R[r],a=e[n],i=t[n];if(!o(a)||Math.abs(i-a)>1)return!0}return!1},w.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&w.supplyDefaults(e);var o=a?e._fullData:e.data,s=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function c(e,t){if("function"==typeof e)return t?"_function_":null;if(f.isPlainObject(e)){var n,a={};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(n=e[i+"src"])&&n.indexOf(":")>0&&!f.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=c(e[i],t)}else t&&(a[i]="_function")})),a}var i=Array.isArray(e),o=f.isTypedArray(e);if((i||o)&&e.dtype&&e.shape){var s=e.bdata;return c({dtype:e.dtype,shape:e.shape,bdata:f.isArrayBuffer(s)?l.encode(s):s},t)}return i?e.map((function(e){return c(e,t)})):o?f.simpleMap(e,f.identity):f.isJSDate(e)?f.ms2DateTimeLocal(+e):e}var d={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(d.layout=c(s),a)){var h=s._size;d.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return u&&(d.frames=c(u)),i&&(d.config=c(e._context,!0)),"object"===n?d:JSON.stringify(d)},w.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r<t.length;r++)switch((n=t[r]).type){case"replace":a=n.value;var l=(i[n.index]||{}).name,s=a.name;i[n.index]=o[s]=a,s!==l&&(delete o[l],o[s]=a);break;case"insert":o[(a=n.value).name]=a,i.splice(n.index,0,a);break;case"delete":delete o[(a=i[n.index]).name],i.splice(n.index,1)}return Promise.resolve()},w.computeFrame=function(e,t){var r,n,a,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],u=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===u.indexOf(l.name);)s.push(l),u.push(l.name);for(var c={};l=s.pop();)if(l.layout&&(c.layout=w.extendLayout(c.layout,l.layout)),l.data){if(c.data||(c.data=[]),!(n=l.traces))for(n=[],r=0;r<l.data.length;r++)n[r]=r;for(c.traces||(c.traces=[]),r=0;r<l.data.length;r++)null!=(a=n[r])&&(-1===(i=c.traces.indexOf(a))&&(i=c.data.length,c.traces[i]=a),c.data[i]=w.extendTrace(c.data[i],l.data[r]))}return c},w.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},r=e._transitionData._frames,n=0;n<r.length;n++){var a=r[n];a&&a.name&&(t[a.name]=a)}},w.extendObjectWithContainers=function(e,t,r){var n,a,i,o,l,s,u,c=f.extendDeepNoArrays({},t||{}),d=f.expandObjectPaths(c),h={};if(r&&r.length)for(i=0;i<r.length;i++)void 0===(a=(n=f.nestedProperty(d,r[i])).get())?f.nestedProperty(h,r[i]).set(null):(n.set(null),f.nestedProperty(h,r[i]).set(a));if(e=f.extendDeepNoArrays(e||{},d),r&&r.length)for(i=0;i<r.length;i++)if(s=f.nestedProperty(h,r[i]).get()){for(u=(l=f.nestedProperty(e,r[i])).get(),Array.isArray(u)||(u=[],l.set(u)),o=0;o<s.length;o++){var p=s[o];u[o]=null===p?null:w.extendObjectWithContainers(u[o],p)}l.set(u)}return e},w.dataArrayContainers=["transforms","dimensions"],w.layoutArrayContainers=s.layoutArrayContainers,w.extendTrace=function(e,t){return w.extendObjectWithContainers(e,t,w.dataArrayContainers)},w.extendLayout=function(e,t){return w.extendObjectWithContainers(e,t,w.layoutArrayContainers)},w.transition=function(e,t,r,n,a,i){var o={redraw:a.redraw},l={},s=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=n.slice(0,a),o=0;o<i.length;o++){var u=i[o],c=e._fullData[u]._module;if(c){if(c.animatable){var d=c.basePlotModule.name;l[d]||(l[d]=[]),l[d].push(u)}e.data[i[o]]=w.extendTrace(e.data[i[o]],t[o])}}var h=f.expandObjectPaths(f.extendDeepNoArrays({},r)),p=/^[xy]axis[0-9]*$/;for(var g in h)p.test(g)&&delete h[g].range;w.extendLayout(e.layout,h),delete e.calcdata,w.supplyDefaults(e),w.doCalcdata(e);var v=f.expandObjectPaths(r);if(v){var y=e._fullLayout._plots;for(var m in y){var x=y[m],b=x.xaxis,_=x.yaxis,M=b.range.slice(),T=_.range.slice(),k=null,A=null,S=null,L=null;Array.isArray(v[b._name+".range"])?k=v[b._name+".range"].slice():Array.isArray((v[b._name]||{}).range)&&(k=v[b._name].range.slice()),Array.isArray(v[_._name+".range"])?A=v[_._name+".range"].slice():Array.isArray((v[_._name]||{}).range)&&(A=v[_._name].range.slice()),M&&k&&(b.r2l(M[0])!==b.r2l(k[0])||b.r2l(M[1])!==b.r2l(k[1]))&&(S={xr0:M,xr1:k}),T&&A&&(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&&(L={yr0:T,yr1:A}),(S||L)&&s.push(f.extendFlat({plotinfo:x},S,L))}}return Promise.resolve()},o.runFn=function(t){var n,a,o=e._fullLayout._basePlotModules,u=s.length;if(r)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,s,i,t);for(var c in u?((n=f.extendFlat({},i)).duration=0,delete l.cartesian):n=i,l){var d=l[c];e._fullData[d[0]]._module.basePlotModule.plot(e,d,n,t)}},E(e,i,o)},w.transitionFromReact=function(e,t,r,n){var a=e._fullLayout,i=a.transition,o={},l=[];return o.prepareFn=function(){var e=a._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],u=s.xaxis,c=s.yaxis,d=n[u._name].range.slice(),h=n[c._name].range.slice(),p=u.range.slice(),g=c.range.slice();u.setScale(),c.setScale();var v=null,y=null;u.r2l(d[0])===u.r2l(p[0])&&u.r2l(d[1])===u.r2l(p[1])||(v={xr0:d,xr1:p}),c.r2l(h[0])===c.r2l(g[0])&&c.r2l(h[1])===c.r2l(g[1])||(y={yr0:h,yr1:g}),(v||y)&&l.push(f.extendFlat({plotinfo:s},v,y))}return Promise.resolve()},o.runFn=function(r){for(var n,a,o,s=e._fullData,u=e._fullLayout._basePlotModules,c=[],d=0;d<s.length;d++)c.push(d);function h(){if(e._fullLayout)for(var t=0;t<u.length;t++)u[t].transitionAxes&&u[t].transitionAxes(e,l,n,r)}function p(){if(e._fullLayout)for(var t=0;t<u.length;t++)u[t].plot(e,o,a,r)}l.length&&t.anim?"traces first"===i.ordering?(n=f.extendFlat({},i,{duration:0}),o=c,a=i,setTimeout(h,i.duration),p()):(n=i,o=null,a=f.extendFlat({},i,{duration:0}),setTimeout(p,n.duration),h()):l.length?(n=i,h()):t.anim&&(o=c,a=i,p())},E(e,i,o)},w.doCalcdata=function(e,t){var r,n,a,i,o=p.list(e),l=e._fullData,c=e._fullLayout,d=new Array(l.length),g=(e.calcdata||[]).slice();for(e.calcdata=d,c._numBoxes=0,c._numViolins=0,c._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,c._piecolormap={},c._sunburstcolormap={},c._treemapcolormap={},c._iciclecolormap={},c._funnelareacolormap={},a=0;a<l.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(d[a]=g[a]);for(a=0;a<l.length;a++)(r=l[a])._arrayAttrs=u.findArrayAttributes(r),r._extremes={};var v=c._subplots.polar||[];for(a=0;a<v.length;a++)o.push(c[v[a]].radialaxis,c[v[a]].angularaxis);for(var y in c._colorAxes){var m=c[y];!1!==m.cauto&&(delete m.cmin,delete m.cmax)}var x=!1;function b(t){if(r=l[t],n=r._module,!0===r.visible&&r.transforms){if(n&&n.calc){var a=n.calc(e,r);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(i=0;i<r.transforms.length;i++){var o=r.transforms[i];(n=M[o.type])&&n.calcTransform&&(r._hasCalcTransform=!0,x=!0,n.calcTransform(e,r,o))}}}function _(t,a){if(r=l[t],!!(n=r._module).isContainer===a){var o=[];if(!0===r.visible&&0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(i=s.length-1;i>=0;i--)if(s[i].enabled){r._indexToPoints=s[i]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[t]=o}}for(N(o,l,c),a=0;a<l.length;a++)_(a,!0);for(a=0;a<l.length;a++)b(a);for(x&&N(o,l,c),a=0;a<l.length;a++)_(a,!0);for(a=0;a<l.length;a++)_(a,!1);z(e);var w=function(e,t){var r,n,a,i,o,l=[];function u(e,r,n){var a=r._id.charAt(0);if("histogram2dcontour"===e){var i=r._counterAxes[0],o=p.getFromId(t,i),l="x"===a||"x"===i&&"category"===o.type,s="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||l&&e===n[t].length-1||s&&t===n.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var c={min:function(e){return f.aggNums(Math.min,null,e)},max:function(e){return f.aggNums(Math.max,null,e)},sum:function(e){return f.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return f.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return f.mean(e)},median:function(e){return f.median(e)}};function d(e,t){return e[1]-t[1]}function h(e,t){return t[1]-e[1]}for(r=0;r<e.length;r++){var g=e[r];if("category"===g.type){var v=g.categoryorder.match(I);if(v){var y=v[1],m=v[2],x=g._id.charAt(0),b="x"===x,_=[];for(n=0;n<g._categories.length;n++)_.push([g._categories[n],[]]);for(n=0;n<g._traceIndices.length;n++){var w=g._traceIndices[n],M=t._fullData[w];if(!0===M.visible){var T=M.type;s.traceIs(M,"histogram")&&(delete M._xautoBinFinished,delete M._yautoBinFinished);var k="splom"===T,A="scattergl"===T,S=t.calcdata[w];for(a=0;a<S.length;a++){var L,D,C=S[a];if(k){var P=M._axesDim[g._id];if(!b){var O=M._diag[P][0];O&&(g=t._fullLayout[p.id2name(O)])}var R=C.trace.dimensions[P].values;for(i=0;i<R.length;i++)for(L=g._categoriesMap[R[i]],o=0;o<C.trace.dimensions.length;o++)if(o!==P){var E=C.trace.dimensions[o];_[L][1].push(E.values[i])}}else if(A){for(i=0;i<C.t.x.length;i++)b?(L=C.t.x[i],D=C.t.y[i]):(L=C.t.y[i],D=C.t.x[i]),_[L][1].push(D);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){D=C.z;var N=u(M.type,g,D);for(i=0;i<D.length;i++)for(o=0;o<D[i].length;o++)(L=N(o,i))+1&&_[L][1].push(D[i][o])}else for(void 0===(L=C.p)&&(L=C[x]),void 0===(D=C.s)&&(D=C.v),void 0===D&&(D=b?C.y:C.x),Array.isArray(D)||(D=void 0===D?[]:[D]),i=0;i<D.length;i++)_[L][1].push(D[i])}}}g._categoriesValue=_;var z=[];for(n=0;n<_.length;n++)z.push([_[n][0],c[y](_[n][1])]);z.sort("descending"===m?h:d),g._categoriesAggregatedValue=z,g._initialCategories=z.map((function(e){return e[0]})),l=l.concat(g.sortByInitialCategories())}}}return l}(o,e);if(w.length){for(c._numBoxes=0,c._numViolins=0,a=0;a<w.length;a++)_(w[a],!0);for(a=0;a<w.length;a++)_(w[a],!1);z(e)}s.getComponentMethod("fx","calc")(e),s.getComponentMethod("errorbars","calc")(e)};var I=/(total|sum|min|max|mean|median) (ascending|descending)/;function N(e,t,r){var n={};function a(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),n[e._id]=1}f.simpleMap(e,a);for(var i=r._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])n[l]||a(r[p.id2name(l)])}function z(e){var t,r,n,a=e._fullLayout,i=a._visibleModules,o={};for(r=0;r<i.length;r++){var l=i[r],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;o[u]?f.pushUnique(o[u],s):o[u]=[s]}}for(n in o){var c=o[n],d=a._subplots[n];if(Array.isArray(d))for(t=0;t<d.length;t++){var h=d[t],p="cartesian"===n?a._plots[h]:a[h];for(r=0;r<c.length;r++)c[r](e,p,h)}else for(r=0;r<c.length;r++)c[r](e)}}w.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},w.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},w.reselect=function(e){var t=e._fullLayout,r=(e.layout||{}).selections,n=t._previousSelections;t._previousSelections=r;var a=t._reselect||JSON.stringify(r)!==JSON.stringify(n);s.getComponentMethod("selections","reselect")(e,a)},w.generalUpdatePerTraceModule=function(e,t,r,n){var a,i=t.traceHash,o={};for(a=0;a<r.length;a++){var l=r[a],s=l[0].trace;s.visible&&(o[s.type]=o[s.type]||[],o[s.type].push(l))}for(var u in i)if(!o[u]){var c=i[u][0];c[0].trace.visible=!1,o[u]=[c]}for(var d in o){var h=o[d];h[0][0].trace._module.plot(e,t,f.filterVisible(h),n)}t.traceHash=o},w.plotBasePlot=function(e,t,r,n,a){var i=s.getModule(e),o=x(t.calcdata,i)[0];i.plot(t,o,n,a)},w.cleanBasePlot=function(e,t,r,n,a){var i=a._has&&a._has(e),o=r._has&&r._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}},168:function(e,t,r){"use strict";var n=r(3400),a=r(1780),i=r(6968).Q;e.exports=function(e,t,r,o){var l,s,u=o.type,c=o.attributes,f=o.handleDefaults,d=o.partition||"x",h=t._subplots[u],p=h.length,g=p&&h[0].replace(/\d+$/,"");function v(e,t){return n.coerce(l,s,c,e,t)}for(var y=0;y<p;y++){var m=h[y];l=e[m]?e[m]:e[m]={},s=a.newContainer(t,m,g),o.noUirevision||v("uirevision",t.uirevision);var x={};x[d]=[y/p,(y+1)/p],i(s,t,v,x),o.id=m,f(l,s,v,o)}}},1776:function(e,t,r){"use strict";var n=r(6880);function a(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],a=0;a<r.length;a++)n[a]="`"+r[a]+"`";t+="Finally, the template string has access to ",t=1===r.length?t+"variable "+n[0]:t+"variables "+n.slice(0,-1).join(", ")+" and "+n.slice(-1)+"."}return t}n.FORMAT_LINK,n.DATE_FORMAT_LINK,t.Ks=function(e,t){e=e||{},a(t=t||{});var r={valType:"string",dflt:"",editType:e.editType||"none"};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.Gw=function(e,t){e=e||{},a(t=t||{});var r={valType:"string",dflt:"",editType:e.editType||"calc"};return!1!==e.arrayOk&&(r.arrayOk=!0),r},t.ye=function(e,t){return t=t||{},(e=e||{}).newshape,a(t),{valType:"string",dflt:"",editType:e.editType||"arraydraw"}}},4040:function(e,t,r){"use strict";var n=r(4248),a=r(6628),i=r(2416),o=r(3620),l=r(2200).addStyleRule,s=r(2880),u=r(5464),c=r(4859),f=s.extendFlat,d=s.extendDeepAll;function h(e){var r=e.name,a=e.categories,i=e.meta;if(t.modules[r])n.log("Type "+r+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var r=e.name;if(t.subplotsRegistry[r])n.log("Plot type "+r+" already registered.");else for(var a in y(e),t.subplotsRegistry[r]=e,t.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s<a.length;s++)o[a[s]]=!0,t.allCategories[a[s]]=!0;for(var u in t.modules[r]={_module:e,categories:o},i&&Object.keys(i).length&&(t.modules[r].meta=i),t.allTypes.push(r),t.componentsRegistry)m(u,r);e.layoutAttributes&&f(t.traceLayoutAttributes,e.layoutAttributes);var c=e.basePlotModule,d=c.name;if("mapbox"===d){var h=c.constants.styleRules;for(var p in h)l(".js-plotly-plot .plotly .mapboxgl-"+p,h[p])}"geo"!==d&&"mapbox"!==d||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 n in t.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,r),y(e)),t.modules)m(r,n);for(var a in t.subplotsRegistry)b(r,a);for(var o in t.transformsRegistry)x(r,o);e.schema&&e.schema.layout&&d(c,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,a="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!a&&!i)throw new Error(r+" is missing a *transform* or *calcTransform* method.");for(var l in a&&i&&n.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)||n.log(r+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&n.log(r+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)x(l,e.name)}function v(e){var r=e.name,n=r.split("-")[0],a=e.dictionary,i=e.format,o=a&&Object.keys(a).length,l=i&&Object.keys(i).length,s=t.localeRegistry,u=s[r];if(u||(s[r]=u={}),n!==r){var c=s[n];c||(s[n]=c={}),o&&c.dictionary===u.dictionary&&(c.dictionary=a),l&&c.format===u.format&&(c.format=i)}o&&(u.dictionary=a),l&&(u.format=i)}function y(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var n=0;n<r.length;n++)i(t.layoutArrayRegexes,r[n])}}function m(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.traces){var a=n.traces[r];a&&d(t.modules[r]._module.attributes,a)}}function x(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.transforms){var a=n.transforms[r];a&&d(t.transformsRegistry[r].attributes,a)}}function b(e,r){var n=t.componentsRegistry[e].schema;if(n&&n.subplots){var a=t.subplotsRegistry[r],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var l=n.subplots[o];i&&l&&d(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 n=e[r];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":h(n);break;case"transform":g(n);break;case"component":p(n);break;case"locale":v(n);break;case"apiMethod":var a=n.name;t.apiMethodRegistry[a]=n.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 a=t.modules[e];return a||(e&&n.log("Unrecognized trace type "+e+"."),a=t.modules[u.type.dflt]),!!a.categories[r]},t.getTransformIndices=function(e,t){for(var r=[],n=e.transforms||[],a=0;a<n.length;a++)n[a].type===t&&r.push(a);return r},t.hasTransform=function(e,t){for(var r=e.transforms||[],n=0;n<r.length;n++)if(r[n].type===t)return!0;return!1},t.getComponentMethod=function(e,r){var n=t.componentsRegistry[e];return n&&n[r]||a},t.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,r)}},1536:function(e,t,r){"use strict";var n=r(4040),a=r(3400),i=a.extendFlat,o=a.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,a,s=e.data,u=e.layout,c=o([],s),f=o({},u,l(t.tileClass)),d=e._context||{};if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var h=Object.keys(f);for(r=0;r<h.length;r++)a=h[r],["xaxis","yaxis","zaxis"].indexOf(a.slice(0,5))>-1&&(f[h[r]].title={text:""});for(r=0;r<c.length;r++){var p=c[r];p.showscale=!1,p.marker&&(p.marker.showscale=!1),n.traceIs(p,"pie-like")&&(p.textposition="none")}}if(Array.isArray(t.annotations))for(r=0;r<t.annotations.length;r++)f.annotations.push(t.annotations[r]);var g=Object.keys(f).filter((function(e){return e.match(/^scene\d*$/)}));if(g.length){var v={};for("thumbnail"===t.tileClass&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<g.length;r++){var y=f[g[r]];y.xaxis||(y.xaxis={}),y.yaxis||(y.yaxis={}),y.zaxis||(y.zaxis={}),i(y.xaxis,v),i(y.yaxis,v),i(y.zaxis,v),y._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var x={gd:m,td:m,layout:f,data:c,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:d.mapboxAccessToken}};return"transparent"!==t.setBackground&&(x.config.setBackground=t.setBackground||"opaque"),x.gd.defaultLayout=l(t.tileClass),x}},7412:function(e,t,r){"use strict";var n=r(3400),a=r(7024),i=r(8616),o=r(7030);e.exports=function(e,t){var r;return n.isPlainObject(e)||(r=n.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.")),n.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var u=a(e,t),c=t.filename||e.fn||"newplot";c+="."+t.format.replace("-","."),u.then((function(e){return r&&(r._snapshotInProgress=!1),i(e,c,t.format)})).then((function(e){l(e)})).catch((function(e){r&&(r._snapshotInProgress=!1),s(e)}))}))}},8616:function(e,t,r){"use strict";var n=r(3400),a=r(7030);e.exports=function(e,t,r){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var u,c;if(n.isIE())return u=a.createBlob(e,"svg"),window.navigator.msSaveBlob(u,t),u=null,l(t);if(o)return u=a.createBlob(e,r),c=a.createObjectURL(u),i.href=c,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),a.revokeObjectURL(c),u=null,l(t);if(n.isSafari()){var f="svg"===r?",":";base64,";return a.octetStream(f+encodeURIComponent(e)),l(t)}s(new Error("download error"))}))}},7030:function(e,t,r){"use strict";var n=r(4040);t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){n.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 a=window.URL||window.webkitURL;t.createObjectURL=function(e){return a.createObjectURL(e)},t.revokeObjectURL=function(e){return a.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),n=new Uint8Array(r),a=0;a<t;a++)n[a]=e.charCodeAt(a);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."},8904:function(e,t,r){"use strict";var n=r(7030),a={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:r(1536),toSVG:r(7164),svgToImg:r(3268),toImage:r(1808),downloadImage:r(7412)};e.exports=a},3268:function(e,t,r){"use strict";var n=r(3400),a=r(1252).EventEmitter,i=r(7030);e.exports=function(e){var t=e.emitter||new a,r=new Promise((function(a,o){var l=window.Image,s=e.svg,u=e.format||"png";if(n.isIE()&&"svg"!==u){var c=new Error(i.MSG_IE_BAD_FORMAT);return o(c),e.promise?r:t.emit("error",c)}var f,d,h=e.canvas,p=e.scale||1,g=e.width||300,v=e.height||150,y=p*g,m=p*v,x=h.getContext("2d",{willReadFrequently:!0}),b=new l;"svg"===u||n.isSafari()?d=i.encodeSVG(s):(f=i.createBlob(s,"svg"),d=i.createObjectURL(f)),h.width=y,h.height=m,b.onload=function(){var r;switch(f=null,i.revokeObjectURL(d),"svg"!==u&&x.drawImage(b,0,0,y,m),u){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=d;break;default:var n="Image format is not jpeg, png, svg or webp.";if(o(new Error(n)),!e.promise)return t.emit("error",n)}a(r),e.promise||t.emit("success",r)},b.onerror=function(r){if(f=null,i.revokeObjectURL(d),o(r),!e.promise)return t.emit("error",r)},b.src=d}));return e.promise?r:t}},1808:function(e,t,r){"use strict";var n=r(1252).EventEmitter,a=r(4040),i=r(3400),o=r(7030),l=r(1536),s=r(7164),u=r(3268);e.exports=function(e,t){var r=new n,c=l(e,{format:"png"}),f=c.gd;f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var d=o.getRedrawFunc(f);return a.call("_doPlot",f,c.data,c.layout,c.config).then(d).then((function(){var e=o.getDelay(f._fullLayout);setTimeout((function(){var e=s(f),n=document.createElement("canvas");n.id=i.randstr(),(r=u({format:t.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:e})).clean=function(){f&&document.body.removeChild(f)}}),e)})).catch((function(e){r.emit("error",e)})),r}},7164:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(3616),o=r(6308),l=r(9616),s=/"/g,u="TOBESTRIPPED",c=new RegExp('("'+u+")|("+u+'")',"g");e.exports=function(e,t,r){var f,d=e._fullLayout,h=d._paper,p=d._toppaper,g=d.width,v=d.height;h.insert("rect",":first-child").call(i.setRect,0,0,g,v).call(o.fill,d.paper_bgcolor);var y=d._basePlotModules||[];for(f=0;f<y.length;f++){var m=y[f];m.toSVG&&m.toSVG(e)}if(p){var x=p.node().childNodes,b=Array.prototype.slice.call(x);for(f=0;f<b.length;f++){var _=b[f];_.childNodes.length&&h.node().appendChild(_)}}d._draggers&&d._draggers.remove(),h.node().style.background="",h.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=n.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,u))}else e.remove()})),h.selectAll(".gradient_filled,.pattern_filled").each((function(){var e=n.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,u));var r=this.style.stroke;r&&-1!==r.indexOf("url(")&&e.style("stroke",r.replace(s,u))})),"pdf"!==t&&"eps"!==t||h.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),h.node().setAttributeNS(l.xmlns,"xmlns",l.svg),h.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&r&&(h.attr("width",r*g),h.attr("height",r*v),h.attr("viewBox","0 0 "+g+" "+v));var w=(new window.XMLSerializer).serializeToString(h.node());return w=(w=(w=function(e){var t=n.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}(w)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(w=(w=(w=w.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),w}},6376:function(e,t,r){"use strict";var n=r(8248),a=r(3400).isArrayOrTypedArray,i=r(9032).BADNUM,o=r(4040),l=r(4460),s=r(1888).getAxisGroup,u=r(2592);function c(e,t,r,o,c){if(o.length){var b,_,w,M;switch(function(e,t){var r,i;for(r=0;r<t.length;r++){var o,l=t[r],s=l[0].trace,u="funnel"===s.type?s._base:s.base,c="h"===s.orientation?s.xcalendar:s.ycalendar,f="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(u)){for(i=0;i<Math.min(u.length,l.length);i++)o=f(u[i],0,c),n(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=f(u,0,c);var d=n(o);for(o=d?o:0,i=0;i<l.length;i++)l[i].b=o,d&&(l[i].hasB=1)}}}(r,o),c.mode){case"overlay":f(t,r,o,c);break;case"group":for(b=[],_=[],w=0;w<o.length;w++)void 0===(M=o[w])[0].trace.offset?_.push(M):b.push(M);_.length&&function(e,t,r,n,a){var o=new u(n,{posAxis:t,sepNegVal:!1,overlapNoMerge:!a.norm});(function(e,t,r,n){for(var a=e._fullLayout,i=r.positions,o=r.distinctPositions,l=r.minDiff,u=r.traces,c=u.length,f=i.length!==o.length,d=l*(1-n.gap),v=s(a,t._id)+u[0][0].trace.orientation,y=a._alignmentOpts[v]||{},m=0;m<c;m++){var x,b,_=u[m],w=_[0].trace,M=y[w.alignmentgroup]||{},T=Object.keys(M.offsetGroups||{}).length,k=(x=T?d/T:f?d/c:d)*(1-(n.groupgap||0));b=T?((2*w._offsetIndex+1-T)*x-k)/2:f?((2*m+1-c)*x-k)/2:-k/2;var A=_[0].t;A.barwidth=k,A.poffset=b,A.bargroupwidth=d,A.bardelta=l}r.binWidth=u[0][0].t.barwidth/100,h(r),p(t,r),g(t,r,f)})(e,t,o,a),function(e,t){for(var r=e.traces,n=0;n<r.length;n++){var a=r[n];if(void 0===a[0].trace.base)for(var o=new u([a],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),l=0;l<a.length;l++){var s=a[l];if(s.p!==i){var c=o.put(s.p,s.b+s.s);c&&(s.b=c)}}}}(o,t),a.norm?(y(o),m(r,o,a)):v(r,o)}(e,t,r,_,c),b.length&&f(t,r,b,c);break;case"stack":case"relative":for(b=[],_=[],w=0;w<o.length;w++)void 0===(M=o[w])[0].trace.base?_.push(M):b.push(M);!function(e){if(!(e.length<2)){var t,r,a,i,o,l;for(t=0;t<e.length&&void 0===(i=(r=e[t][0].trace).marker?r.marker.cornerradius:void 0);t++);if(void 0!==i)for(o=n(i)?+i:+i.slice(0,-1),l=n(i)?"px":"%",t=0;t<e.length;t++)(a=e[t][0].t).cornerradiusvalue=o,a.cornerradiusform=l}}(_),_.length&&function(e,t,r,n,a){var o=new u(n,{posAxis:t,sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});d(t,o,a),function(e,t,r){var n,a,o,s,u,c,f=x(e),d=t.traces;for(s=0;s<d.length;s++)if("funnel"===(a=(n=d[s])[0].trace).type)for(u=0;u<n.length;u++)(c=n[u]).s!==i&&t.put(c.p,-.5*c.s);for(s=0;s<d.length;s++){o="funnel"===(a=(n=d[s])[0].trace).type;var h=[];for(u=0;u<n.length;u++)if((c=n[u]).s!==i){var p;p=o?c.s:c.s+c.b;var g=t.put(c.p,p),v=g+p;c.b=g,c[f]=v,r.norm||(h.push(v),c.hasB&&h.push(g))}r.norm||(a._extremes[e._id]=l.findExtremes(e,h,{tozero:!0,padded:!0}))}}(r,o,a);for(var s=0;s<n.length;s++)for(var c=n[s],f=0;f<c.length;f++){var h=c[f];h.s!==i&&h.b+h.s===o.get(h.p,h.s)&&(h._outmost=!0)}a.norm&&m(r,o,a)}(0,t,r,_,c),b.length&&f(t,r,b,c)}!function(e){var t,r,a,i,o,l,s;for(t=0;t<e.length;t++)a=(r=e[t])[0].trace,void 0===(i=r[0].t).cornerradiusvalue&&void 0!==(o=a.marker?a.marker.cornerradius:void 0)&&(l=n(o)?+o:+o.slice(0,-1),s=n(o)?"px":"%",i.cornerradiusvalue=l,i.cornerradiusform=s)}(o),function(e,t){var r,i,o,l=x(t),s={},u=1/0,c=-1/0;for(r=0;r<e.length;r++)for(o=e[r],i=0;i<o.length;i++){var f=o[i].p;n(f)&&(u=Math.min(u,f),c=Math.max(c,f))}var d=1e4/(c-u),h=s.round=function(e){return String(Math.round(d*(e-u)))},p={},g={},v=e.some((function(e){var t=e[0].trace;return"marker"in t&&t.marker.cornerradius}));for(r=0;r<e.length;r++){(o=e[r])[0].t.extents=s;var y=o[0].t.poffset,m=a(y);for(i=0;i<o.length;i++){var b=o[i],_=b[l]-b.w/2;if(n(_)){var w=b[l]+b.w/2,M=h(b.p);s[M]?s[M]=[Math.min(_,s[M][0]),Math.max(w,s[M][1])]:s[M]=[_,w]}if(b.p0=b.p+(m?y[i]:y),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,v){var T=Math.min(b.s0,b.s1)||0,k=Math.max(b.s0,b.s1)||0,A=b[l];p[A]=A in p?Math.min(p[A],T):T,g[A]=A in g?Math.max(g[A],k):k}}}v&&function(e,t,r,n){for(var a=x(n),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s[a];s._sMin=t[u],s._sMax=r[u]}}(e,p,g,t)}(o,t)}}function f(e,t,r,n){for(var a=0;a<r.length;a++){var i=r[a],o=new u([i],{posAxis:e,sepNegVal:!1,overlapNoMerge:!n.norm});d(e,o,n),n.norm?(y(o),m(t,o,n)):v(t,o)}}function d(e,t,r){for(var n=t.minDiff,a=t.traces,i=n*(1-r.gap),o=i*(1-(r.groupgap||0)),l=-o/2,s=0;s<a.length;s++){var u=a[s][0].t;u.barwidth=o,u.poffset=l,u.bargroupwidth=i,u.bardelta=n}t.binWidth=a[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],u=s.trace,c=s.t,f=u._offset||u.offset,d=c.poffset;if(a(f)){for(o=Array.prototype.slice.call(f,0,l.length),r=0;r<o.length;r++)n(o[r])||(o[r]=d);for(r=o.length;r<l.length;r++)o.push(d);c.poffset=o}else void 0!==f&&(c.poffset=f);var h=u._width||u.width,p=c.barwidth;if(a(h)){var g=Array.prototype.slice.call(h,0,l.length);for(r=0;r<g.length;r++)n(g[r])||(g[r]=p);for(r=g.length;r<l.length;r++)g.push(p);if(c.barwidth=g,void 0===f){for(o=[],r=0;r<l.length;r++)o.push(d+(p-g[r])/2);c.poffset=o}}else void 0!==h&&(c.barwidth=h,void 0===f&&(c.poffset=d+(p-h)/2))}}function p(e,t){for(var r=t.traces,n=x(e),i=0;i<r.length;i++)for(var o=r[i],l=o[0].t,s=l.poffset,u=a(s),c=l.barwidth,f=a(c),d=0;d<o.length;d++){var h=o[d],p=h.w=f?c[d]:c;void 0===h.p&&(h.p=h[n],h["orig_"+n]=h[n]);var g=(u?s[d]:s)+p/2;h[n]=h.p+g}}function g(e,t,r){var n=t.traces,i=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],r);for(var o=0;o<n.length;o++){var s,u,c,f,d=n[o],h=d[0],p=h.trace,g=[];for(f=0;f<d.length;f++)u=(s=d[f]).p-i,c=s.p+i,g.push(u,c);if(p.width||p.offset){var v=h.t,y=v.poffset,m=v.barwidth,x=a(y),b=a(m);for(f=0;f<d.length;f++){s=d[f];var _=x?y[f]:y,w=b?m[f]:m;c=(u=s.p+_)+w,g.push(u,c)}}p._extremes[e._id]=l.findExtremes(e,g,{padded:!1})}}function v(e,t){for(var r=t.traces,n=x(e),a=0;a<r.length;a++){for(var i=r[a],o=i[0].trace,s="scatter"===o.type,u="v"===o.orientation,c=[],f=!1,d=0;d<i.length;d++){var h=i[d],p=s?0:h.b,g=s?u?h.y:h.x:p+h.s;h[n]=g,c.push(g),h.hasB&&c.push(p),h.hasB&&h.b||(f=!0)}o._extremes[e._id]=l.findExtremes(e,c,{tozero:f,padded:!0})}}function y(e){for(var t=e.traces,r=0;r<t.length;r++)for(var n=t[r],a=0;a<n.length;a++){var o=n[a];o.s!==i&&e.put(o.p,o.b+o.s)}}function m(e,t,r){var a=t.traces,o=x(e),s="fraction"===r.norm?1:100,u=s/1e9,c=e.l2c(e.c2l(0)),f="stack"===r.mode?s:c;function d(t){return n(e.c2l(t))&&(t<c-u||t>f+u||!n(c))}for(var h=0;h<a.length;h++){for(var p=a[h],g=p[0].trace,v=[],y=!1,m=!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 M=_.b,T=M+_.s;_[o]=T,v.push(T),m=m||d(T),_.hasB&&(v.push(M),m=m||d(M)),_.hasB&&_.b||(y=!0)}}g._extremes[e._id]=l.findExtremes(e,v,{tozero:y,padded:m})}}function x(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var r=t.xaxis,n=t.yaxis,a=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],u=[],f=0;f<i.length;f++){var d=i[f];if(!0===d.visible&&o.traceIs(d,"bar")&&d.xaxis===r._id&&d.yaxis===n._id&&("h"===d.orientation?s.push(l[f]):u.push(l[f]),d._computePh))for(var h=e.calcdata[f],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"===n.type||"multicategory"===n.type,mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};c(e,r,n,u,g),c(e,n,r,s,g)},setGroupPositions:c}},2592:function(e,t,r){"use strict";e.exports=a;var n=r(3400).distinctVals;function a(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=t.posAxis._id.charAt(0),i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var u=l[s],c=u.p;void 0===c&&(c=u[a]),void 0!==c&&i.push(c)}l[0]&&l[0].width1&&(r=Math.min(l[0].width1,r))}this.positions=i;var f=n(i);this.distinctPositions=f.vals,1===f.vals.length&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(f.minDiff,r);var d=(t.posAxis||{}).type;"category"!==d&&"multicategory"!==d||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(e,t){var r=this.getLabel(e,t),n=this.bins[r]||0;return this.bins[r]=n+t,n},a.prototype.get=function(e,t){var r=this.getLabel(e,t);return this.bins[r]||0},a.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},3372:function(e,t,r){"use strict";var n=r(1776).Ks,a=r(6096),i=r(9084),o=r(5464),l=r(2548).defaultLine,s=r(2880).extendFlat,u=a.marker.line;e.exports=s({locations:{valType:"data_array",editType:"calc"},locationmode:a.locationmode,z:{valType:"data_array",editType:"calc"},geojson:s({},a.geojson,{}),featureidkey:a.featureidkey,text:s({},a.text,{}),hovertext:s({},a.hovertext,{}),marker:{line:{color:s({},u.color,{dflt:l}),width:s({},u.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:a.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:a.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:s({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:n(),showlegend:s({},o.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(e,t,r){"use strict";var n=r(8248),a=r(9032).BADNUM,i=r(7128),o=r(148),l=r(4500);function s(e){return e&&"string"==typeof e}e.exports=function(e,t){var r,u=t._length,c=new Array(u);r=t.geojson?function(e){return s(e)||n(e)}:s;for(var f=0;f<u;f++){var d=c[f]={},h=t.locations[f],p=t.z[f];r(h)&&n(p)?(d.loc=h,d.z=p):(d.loc=null,d.z=a),d.index=f}return o(c,t),i(e,t,{vals:t.z,containerStr:"",cLetter:"z"}),l(c,t),c}},972:function(e,t,r){"use strict";var n=r(3400),a=r(7260),i=r(3372);e.exports=function(e,t,r,o){function l(r,a){return n.coerce(e,t,i,r,a)}var s=l("locations"),u=l("z");if(s&&s.length&&n.isArrayOrTypedArray(u)&&u.length){t._length=Math.min(s.length,u.length);var c,f=l("geojson");("string"==typeof f&&""!==f||n.isPlainObject(f))&&(c="geojson-id"),"geojson-id"===l("locationmode",c)&&l("featureidkey"),l("text"),l("hovertext"),l("hovertemplate"),l("marker.line.width")&&l("marker.line.color"),l("marker.opacity"),a(e,t,o,l,{prefix:"",cLetter:"z"}),n.coerceSelectionMarkerOpacity(t,l)}else t.visible=!1}},7664:function(e){"use strict";e.exports=function(e,t,r,n,a){e.location=t.location,e.z=t.z;var i=n[a];return i.fIn&&i.fIn.properties&&(e.properties=i.fIn.properties),e.ct=i.ct,e}},4464:function(e,t,r){"use strict";var n=r(4460),a=r(3372),i=r(3400).fillText;e.exports=function(e,t,r){var o,l,s,u,c=e.cd,f=c[0].trace,d=e.subplot,h=[t,r],p=[t+360,r];for(l=0;l<c.length;l++)if(u=!1,(o=c[l])._polygons){for(s=0;s<o._polygons.length;s++)o._polygons[s].contains(h)&&(u=!u),o._polygons[s].contains(p)&&(u=!u);if(u)break}if(u&&o)return e.x0=e.x1=e.xa.c2p(o.ct),e.y0=e.y1=e.ya.c2p(o.ct),e.index=o.index,e.location=o.loc,e.z=o.z,e.zLabel=n.tickText(d.mockAxis,d.mockAxis.c2l(o.z),"hover").text,e.hovertemplate=o.hovertemplate,function(e,t,r){if(!t.hovertemplate){var n=r.hi||t.hoverinfo,o=String(r.loc),l="all"===n?a.hoverinfo.flags:n.split("+"),s=-1!==l.indexOf("name"),u=-1!==l.indexOf("location"),c=-1!==l.indexOf("z"),f=-1!==l.indexOf("text"),d=[];!s&&u?e.nameOverride=o:(s&&(e.nameOverride=t.name),u&&d.push(o)),c&&d.push(e.zLabel),f&&i(r,t,d),e.extraText=d.join("<br>")}}(e,f,o),[e]}},4272:function(e,t,r){"use strict";e.exports={attributes:r(3372),supplyDefaults:r(972),colorbar:r(6288),calc:r(7924),calcGeoJSON:r(8364).calcGeoJSON,plot:r(8364).plot,style:r(7947).style,styleOnSelect:r(7947).styleOnSelect,hoverPoints:r(4464),eventData:r(7664),selectPoints:r(7328),moduleType:"trace",name:"choropleth",basePlotModule:r(816),categories:["geo","noOpacity","showLegend"],meta:{}}},8364:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(7144),o=r(9972).getTopojsonFeatures,l=r(9280).findExtremes,s=r(7947).style;e.exports={calcGeoJSON:function(e,t){for(var r=e[0].trace,n=t[r.geo],a=n._subplot,s=r.locationmode,u=r._length,c="geojson-id"===s?i.extractTraceFeature(e):o(r,a.topojson),f=[],d=[],h=0;h<u;h++){var p=e[h],g="geojson-id"===s?p.fOut:i.locationToFeature(s,p.loc,c);if(g){p.geojson=g,p.ct=g.properties.ct,p._polygons=i.feature2polygons(g);var v=i.computeBbox(g);f.push(v[0],v[2]),d.push(v[1],v[3])}else p.geojson=null}if("geojson"===n.fitbounds&&"geojson-id"===s){var y=i.computeBbox(i.getTraceGeojson(r));f=[y[0],y[2]],d=[y[1],y[3]]}var m={padded:!0};r._extremes.lon=l(n.lonaxis._ax,f,m),r._extremes.lat=l(n.lataxis._ax,d,m)},plot:function(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");a.makeTraceGroups(i,r,"trace choropleth").each((function(t){var r=n.select(this).selectAll("path.choroplethlocation").data(a.identity);r.enter().append("path").classed("choroplethlocation",!0),r.exit().remove(),s(e,t)}))}}},7328:function(e){"use strict";e.exports=function(e,t){var r,n,a,i,o,l=e.cd,s=e.xaxis,u=e.yaxis,c=[];if(!1===t)for(r=0;r<l.length;r++)l[r].selected=0;else for(r=0;r<l.length;r++)(a=(n=l[r]).ct)&&(i=s.c2p(a),o=u.c2p(a),t.contains([i,o],null,r,e)?(c.push({pointNumber:r,lon:a[0],lat:a[1]}),n.selected=1):n.selected=0);return c}},7947:function(e,t,r){"use strict";var n=r(3428),a=r(6308),i=r(3616),o=r(8932);function l(e,t){var r=t[0].trace,l=t[0].node3.selectAll(".choroplethlocation"),s=r.marker||{},u=s.line||{},c=o.makeColorScaleFuncFromTrace(r);l.each((function(e){n.select(this).attr("fill",c(e.z)).call(a.stroke,e.mlc||u.color).call(i.dashLine,"",e.mlw||u.width||0).style("opacity",s.opacity)})),i.selectedPointStyle(l,r)}e.exports={style:function(e,t){t&&l(0,t)},styleOnSelect:function(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?i.selectedPointStyle(r.selectAll(".choroplethlocation"),n):l(0,t)}}},6288:function(e){"use strict";e.exports={min:"zmin",max:"zmax"}},1552:function(e,t,r){"use strict";var n=r(3616),a=r(6308);e.exports=function(e,t,r,i){var o=r.marker.pattern;o&&o.shape?n.pointStyle(e,r,i,t):a.fill(e,t.color)}},9656:function(e,t,r){"use strict";var n=r(3400);function a(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=a((100*e).toPrecision(3));return n.numSeparate(r,t)+"%"},t.formatPieValue=function(e,t){var r=a(e.toPrecision(10));return n.numSeparate(r,t)},t.getFirstFilled=function(e,t){if(n.isArrayOrTypedArray(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 n.isArrayOrTypedArray(e)?t.getFirstFilled(e,r):e||void 0},t.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},528:function(e,t,r){"use strict";var n=r(6308),a=r(9656).castOption,i=r(1552);e.exports=function(e,t,r,o){var l=r.marker.line,s=a(l.color,t.pts)||n.defaultLine,u=a(l.width,t.pts)||0;e.call(i,t,r,o).style("stroke-width",u).call(n.stroke,s)}},148:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.texttemplate,e,"txt"),n.mergeArray(t.hovertext,e,"htx"),n.mergeArray(t.customdata,e,"data"),n.mergeArray(t.textposition,e,"tp"),t.textfont&&(n.mergeArrayCastPositive(t.textfont.size,e,"ts"),n.mergeArray(t.textfont.color,e,"tc"),n.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){n.mergeArrayCastPositive(a.size,e,"ms"),n.mergeArrayCastPositive(a.opacity,e,"mo"),n.mergeArray(a.symbol,e,"mx"),n.mergeArray(a.angle,e,"ma"),n.mergeArray(a.standoff,e,"mf"),n.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"));var o=a.gradient;o&&"none"!==o.type&&(n.mergeArray(o.type,e,"mgt"),n.mergeArray(o.color,e,"mgc"))}}},2904:function(e,t,r){"use strict";var n=r(9736).axisHoverFormat,a=r(1776).Gw,i=r(1776).Ks,o=r(9084),l=r(5376),s=r(8192).u,u=r(8192).c,c=r(3616),f=r(8200),d=r(2880).extendFlat,h=r(3544);e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:{valType:"any",dflt:0,editType:"calc"},yperiod:{valType:"any",dflt:0,editType:"calc"},xperiod0:{valType:"any",editType:"calc"},yperiod0:{valType:"any",editType:"calc"},xperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},yperiodalignment:{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"},xhoverformat:n("x"),yhoverformat:n("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:a({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:i({},{keys:f.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:d({},s,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:h(!0),fillgradient:d({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:u,marker:d({symbol:{valType:"enumerated",values:c.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:d({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},o("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},o("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:l({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}},6356:function(e,t,r){"use strict";var n=r(8248),a=r(3400),i=r(4460),o=r(1220),l=r(9032).BADNUM,s=r(3028),u=r(136),c=r(148),f=r(4500);function d(e,t,r,n,a,o,l){var u=t._length,c=e._fullLayout,f=r._id,d=n._id,h=c._firstScatter[g(t)]===t.uid,p=(v(t,c,r,n)||{}).orientation,y=t.fill;r._minDtick=0,n._minDtick=0;var m={padded:!0},x={padded:!0};l&&(m.ppad=x.ppad=l);var b=u<2||a[0]!==a[u-1]||o[0]!==o[u-1];b&&("tozerox"===y||"tonextx"===y&&(h||"h"===p))?m.tozero=!0:(t.error_y||{}).visible||"tonexty"!==y&&"tozeroy"!==y&&(s.hasMarkers(t)||s.hasText(t))||(m.padded=!1,m.ppad=0),b&&("tozeroy"===y||"tonexty"===y&&(h||"v"===p))?x.tozero=!0:"tonextx"!==y&&"tozerox"!==y||(x.padded=!1),f&&(t._extremes[f]=i.findExtremes(r,a,m)),d&&(t._extremes[d]=i.findExtremes(n,o,x))}function h(e,t){if(s.hasMarkers(e)){var r,n=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)},a.isArrayOrTypedArray(n.size)){var l={type:"linear"};i.setConvert(l);for(var u=l.makeCalcdata(e.marker,"size"),c=new Array(t),f=0;f<t;f++)c[f]=r(u[f]);return c}return r(n.size)}}function p(e,t){var r=g(t),n=e._firstScatter;n[r]||(n[r]=t.uid)}function g(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function v(e,t,r,n){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[r._id+n._id][a],o="v"===i.orientation?n:r;return"linear"===o.type||"log"===o.type?i:void 0}}e.exports={calc:function(e,t){var r,s,g,y,m,x,b=e._fullLayout,_=t._xA=i.getFromId(e,t.xaxis||"x","x"),w=t._yA=i.getFromId(e,t.yaxis||"y","y"),M=_.makeCalcdata(t,"x"),T=w.makeCalcdata(t,"y"),k=o(t,_,"x",M),A=o(t,w,"y",T),S=k.vals,L=A.vals,D=t._length,C=new Array(D),P=t.ids,O=v(t,b,_,w),R=!1;p(b,t);var E,I="x",N="y";O?(a.pushUnique(O.traceIndices,t._expandedIndex),(r="v"===O.orientation)?(N="s",E="x"):(I="s",E="y"),m="interpolate"===O.stackgaps):d(e,t,_,w,S,L,h(t,D));var z=!!t.xperiodalignment,F=!!t.yperiodalignment;for(s=0;s<D;s++){var j=C[s]={},B=n(S[s]),H=n(L[s]);B&&H?(j[I]=S[s],j[N]=L[s],z&&(j.orig_x=M[s],j.xEnd=k.ends[s],j.xStart=k.starts[s]),F&&(j.orig_y=T[s],j.yEnd=A.ends[s],j.yStart=A.starts[s])):O&&(r?B:H)?(j[E]=r?S[s]:L[s],j.gap=!0,m?(j.s=l,R=!0):j.s=0):j[I]=j[N]=l,P&&(j.id=String(P[s]))}if(c(C,t),u(e,t),f(C,t),O){for(s=0;s<C.length;)C[s][E]===l?C.splice(s,1):s++;if(a.sort(C,(function(e,t){return e[E]-t[E]||e.i-t.i})),R){for(s=0;s<C.length-1&&C[s].gap;)s++;for((x=C[s].s)||(x=C[s].s=0),g=0;g<s;g++)C[g].s=x;for(y=C.length-1;y>s&&C[y].gap;)y--;for(x=C[y].s,g=C.length-1;g>y;g--)C[g].s=x;for(;s<y;)if(C[++s].gap){for(g=s+1;C[g].gap;)g++;for(var G=C[s-1][E],Y=C[s-1].s,U=(C[g].s-Y)/(C[g][E]-G);s<g;)C[s].s=Y+(C[s][E]-G)*U,s++}}}return C},calcMarkerSize:h,calcAxisExpansion:d,setFirstScatter:p,getStackOpts:v}},4500:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t){n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(e,t)}},136:function(e,t,r){"use strict";var n=r(4288).hasColorscale,a=r(7128),i=r(3028);e.exports=function(e,t){i.hasLines(t)&&n(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(n(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},8200:function(e){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},6664:function(e,t,r){"use strict";var n=r(6356),a=r(6376).setGroupPositions;function i(e,t,r,n,a,i,o){a[n]=!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,n){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(r-a[n])/(i[n]-a[n]):i.s:a.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){"group"===e._fullLayout.scattermode&&function(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=[],u=[],c=0;c<o.length;c++){var f=o[c];!0===f.visible&&"scatter"===f.type&&f.xaxis===r._id&&f.yaxis===n._id&&("h"===f.orientation?s.push(l[c]):"v"===f.orientation&&u.push(l[c]))}var d={mode:i.scattermode,gap:i.scattergap};a(e,r,n,u,d),a(e,n,r,s,d)}(e,t);var r=t.xaxis,o=t.yaxis,l=r._id+o._id,s=e._fullLayout._scatterStackOpts[l];if(s){var u,c,f,d,h,p,g,v,y,m,x,b,_,w,M,T=e.calcdata;for(var k in s){var A=(m=s[k]).traceIndices;if(A.length){for(x="interpolate"===m.stackgaps,b=m.groupnorm,"v"===m.orientation?(_="x",w="y"):(_="y",w="x"),M=new Array(A.length),u=0;u<M.length;u++)M[u]=!1;p=T[A[0]];var S=new Array(p.length);for(u=0;u<p.length;u++)S[u]=p[u][_];for(u=1;u<A.length;u++){for(h=T[A[u]],c=f=0;c<h.length;c++){for(g=h[c][_];g>S[f]&&f<S.length;f++)i(h,c,S[f],u,M,x,_),c++;if(g!==S[f]){for(d=0;d<u;d++)i(T[A[d]],f,g,d,M,x,_);S.splice(f,0,g)}f++}for(;f<S.length;f++)i(h,c,S[f],u,M,x,_),c++}var L=S.length;for(c=0;c<p.length;c++){for(v=p[c][w]=p[c].s,u=1;u<A.length;u++)(h=T[A[u]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=L,v+=h[c].s,h[c][w]=v;if(b)for(y=("fraction"===b?v:v/100)||1,u=0;u<A.length;u++){var D=T[A[u]][c];D[w]/=y,D.sNorm=D.s/y}}for(u=0;u<A.length;u++){var C=(h=T[A[u]])[0].trace,P=n.calcMarkerSize(C,C._rawLength),O=Array.isArray(P);if(P&&M[u]||O){var R=P;for(P=new Array(L),c=0;c<L;c++)P[c]=h[c].gap?0:O?R[h[c].i]:R}var E=new Array(L),I=new Array(L);for(c=0;c<L;c++)E[c]=h[c].x,I[c]=h[c].y;n.calcAxisExpansion(e,C,r,o,E,I,P),h[0].t.orientation=m.orientation}}}}}},5036:function(e,t,r){"use strict";var n=r(3400),a=r(11),i=r(2904);e.exports=function(e,t){var r,o,l;function s(e){return n.coerce(o._input,o,i,e)}if("group"===t.scattermode)for(l=0;l<e.length;l++)"scatter"===(o=e[l]).type&&(r=o._input,a(r,o,t,s));for(l=0;l<e.length;l++){var u=e[l];if("scatter"===u.type){var c=u.fill;if("none"!==c&&"toself"!==c&&(u.opacity=void 0,"tonexty"===c||"tonextx"===c))for(var f=l-1;f>=0;f--){var d=e[f];if("scatter"===d.type&&d.xaxis===u.xaxis&&d.yaxis===u.yaxis){d.opacity=void 0;break}}}}}},8800:function(e,t,r){"use strict";var n=r(3400),a=r(4040),i=r(2904),o=r(8200),l=r(3028),s=r(3980),u=r(1147),c=r(3912),f=r(4428),d=r(6828),h=r(1731),p=r(124),g=r(840),v=r(3400).coercePattern;e.exports=function(e,t,r,y){function m(r,a){return n.coerce(e,t,i,r,a)}var x=s(e,t,y,m);if(x||(t.visible=!1),t.visible){u(e,t,y,m),m("xhoverformat"),m("yhoverformat"),m("zorder");var b=c(e,t,y,m);"group"===y.scattermode&&void 0===t.orientation&&m("orientation","v");var _=!b&&x<o.PTS_LINESONLY?"lines+markers":"lines";m("text"),m("hovertext"),m("mode",_),l.hasMarkers(t)&&f(e,t,r,y,m,{gradient:!0}),l.hasLines(t)&&(d(e,t,r,y,m,{backoff:!0}),h(e,t,m),m("connectgaps"),m("line.simplify")),l.hasText(t)&&(m("texttemplate"),p(e,t,y,m));var w=[];(l.hasMarkers(t)||l.hasText(t))&&(m("cliponaxis"),m("marker.maxdisplayed"),w.push("points")),m("fill",b?b.fillDflt:"none"),"none"!==t.fill&&(g(e,t,r,m,{moduleHasFillgradient:!0}),l.hasLines(t)||h(e,t,m),v(m,"fillpattern",t.fillcolor,!1));var M=(t.line||{}).color,T=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||w.push("fills"),m("hoveron",w.join("+")||"points"),"fills"!==t.hoveron&&m("hovertemplate");var k=a.getComponentMethod("errorbars","supplyDefaults");k(e,t,M||T||r,{axis:"y"}),k(e,t,M||T||r,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,m)}}},3544:function(e){"use strict";e.exports=function(e){return{valType:"color",editType:"style",anim:!0}}},840:function(e,t,r){"use strict";var n=r(6308),a=r(3400).isArrayOrTypedArray;e.exports=function(e,t,r,i,o){o||(o={});var l,s=!1;if(t.marker){var u=t.marker.color,c=(t.marker.line||{}).color;u&&!a(u)?s=u:c&&!a(c)&&(s=c)}if(o.moduleHasFillgradient&&"none"!==i("fillgradient.type")){i("fillgradient.start"),i("fillgradient.stop");var f=i("fillgradient.colorscale");f&&(l=function(e){for(var t=n.interpolate(e[0][1],e[1][1],.5),r=2;r<e.length;r++){var a=n.interpolate(e[r-1][1],e[r][1],.5);t=n.interpolate(t,a,e[r-1][0]/e[r][0])}return t}(f))}i("fillcolor",n.addOpacity((t.line||{}).color||s||l||r,.5))}},6688:function(e,t,r){"use strict";var n=r(4460);e.exports=function(e,t,r){var a={},i={_fullLayout:r},o=n.getFromTrace(i,t,"x"),l=n.getFromTrace(i,t,"y"),s=e.orig_x;void 0===s&&(s=e.x);var u=e.orig_y;return void 0===u&&(u=e.y),a.xLabel=n.tickText(o,o.c2l(s),!0).text,a.yLabel=n.tickText(l,l.c2l(u),!0).text,a}},4928:function(e,t,r){"use strict";var n=r(6308),a=r(3028);e.exports=function(e,t){var r,i;if("lines"===e.mode)return(r=e.line.color)&&n.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&&n.opacity(o)?o:l&&n.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?n.opacity(i)<.3?n.addOpacity(i,.3):i:(r=(e.line||{}).color)&&n.opacity(r)&&a.hasLines(e)&&e.line.width?r:e.fillcolor}},11:function(e,t,r){"use strict";var n=r(1888).getAxisGroup;e.exports=function(e,t,r,a){var i=t.orientation,o=t[{v:"x",h:"y"}[i]+"axis"],l=n(r,o)+i,s=r._alignmentOpts||{},u=a("alignmentgroup"),c=s[l];c||(c=s[l]={});var f=c[u];f?f.traces.push(t):f=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=a("offsetgroup"),h=f.offsetGroups,p=h[d];d&&(p||(p=h[d]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}},8723:function(e,t,r){"use strict";var n=r(3400),a=r(3024),i=r(4040),o=r(4928),l=r(6308),s=n.fillText;e.exports=function(e,t,r,u){var c=e.cd,f=c[0].trace,d=e.xa,h=e.ya,p=d.c2p(t),g=h.c2p(r),v=[p,g],y=f.hoveron||"",m=-1!==f.mode.indexOf("markers")?3:.5,x=!!f.xperiodalignment,b=!!f.yperiodalignment;if(-1!==y.indexOf("points")){var _=function(e){var t=Math.max(m,e.mrc||0),r=d.c2p(e.x)-p,n=h.c2p(e.y)-g;return Math.max(Math.sqrt(r*r+n*n)-t,1-m/t)},w=a.getDistanceFunction(u,(function(e){if(x){var t=d.c2p(e.xStart),r=d.c2p(e.xEnd);return p>=Math.min(t,r)&&p<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(d.c2p(e.x)-p);return i<n?a*i/n:i-n+a}),(function(e){if(b){var t=h.c2p(e.yStart),r=h.c2p(e.yEnd);return g>=Math.min(t,r)&&g<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(h.c2p(e.y)-g);return i<n?a*i/n:i-n+a}),_);if(a.getClosest(c,w,e),!1!==e.index){var M=c[e.index],T=d.c2p(M.x,!0),k=h.c2p(M.y,!0),A=M.mrc||1;e.index=M.i;var S=c[0].t.orientation,L=S&&(M.sNorm||M.s),D="h"===S?L:void 0!==M.orig_x?M.orig_x:M.x,C="v"===S?L:void 0!==M.orig_y?M.orig_y:M.y;return n.extendFlat(e,{color:o(f,M),x0:T-A,x1:T+A,xLabelVal:D,y0:k-A,y1:k+A,yLabelVal:C,spikeDistance:_(M),hovertemplate:f.hovertemplate}),s(M,f,e),i.getComponentMethod("errorbars","hoverInfo")(M,f,e),[e]}}function P(e){if(!e)return!1;var t=e.node();try{var r=new DOMPoint(v[0],v[1]);return t.isPointInFill(r)}catch(e){var n=t.ownerSVGElement.createSVGPoint();return n.x=v[0],n.y=v[1],t.isPointInFill(n)}}if(-1!==y.indexOf("fills")&&f._fillElement&&P(f._fillElement)&&!P(f._fillExclusionElement)){var O=function(e){var t,r,n,a,i,o,l,s,u,c=[],f=1/0,p=-1/0,g=1/0,y=-1/0;for(t=0;t<e.length;t++){var m=e[t];m.contains(v)&&(c.push(m),g=Math.min(g,m.ymin),y=Math.max(y,m.ymax))}if(0===c.length)return null;for(r=((g=Math.max(g,0))+(y=Math.min(y,h._length)))/2,t=0;t<c.length;t++)for(a=c[t].pts,n=1;n<a.length;n++)(s=a[n-1][1])>r!=(u=a[n][1])>=r&&(o=a[n-1][0],l=a[n][0],u-s&&(i=o+(l-o)*(r-s)/(u-s),f=Math.min(f,i),p=Math.max(p,i)));return{x0:f=Math.max(f,0),x1:p=Math.min(p,d._length),y0:r,y1:r}}(f._polygons);null===O&&(O={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var R=l.defaultLine;return l.opacity(f.fillcolor)?R=f.fillcolor:l.opacity((f.line||{}).color)&&(R=f.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:R,hovertemplate:!1}),delete e.index,f.text&&!n.isArrayOrTypedArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}},5875:function(e,t,r){"use strict";var n=r(3028);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:r(2904),layoutAttributes:r(5308),supplyDefaults:r(8800),crossTraceDefaults:r(5036),supplyLayoutDefaults:r(9748),calc:r(6356).calc,crossTraceCalc:r(6664),arraysToCalcdata:r(148),plot:r(6504),colorbar:r(5528),formatLabels:r(6688),style:r(6844).style,styleOnSelect:r(6844).styleOnSelect,hoverPoints:r(8723),selectPoints:r(1560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r(7952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},5308:function(e){"use strict";e.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},9748:function(e,t,r){"use strict";var n=r(3400),a=r(5308);e.exports=function(e,t){var r,i="group"===t.barmode;"group"===t.scattermode&&("scattergap",r=i?t.bargap:.2,n.coerce(e,t,a,"scattergap",r))}},6828:function(e,t,r){"use strict";var n=r(3400).isArrayOrTypedArray,a=r(4288).hasColorscale,i=r(7260);e.exports=function(e,t,r,o,l,s){s||(s={});var u=(e.marker||{}).color;u&&u._inputArray&&(u=u._inputArray),l("line.color",r),a(e,"line")?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(u)&&u||r),l("line.width"),s.noDash||l("line.dash"),s.backoff&&l("line.backoff")}},2340:function(e,t,r){"use strict";var n=r(3616),a=r(9032),i=a.BADNUM,o=a.LOG_CLIP,l=o+.5,s=o-.5,u=r(3400),c=u.segmentsIntersect,f=u.constrain,d=r(8200);e.exports=function(e,t){var r,a,o,h,p,g,v,y,m,x,b,_,w,M,T,k,A,S,L=t.trace||{},D=t.xaxis,C=t.yaxis,P="log"===D.type,O="log"===C.type,R=D._length,E=C._length,I=t.backoff,N=L.marker,z=t.connectGaps,F=t.baseTolerance,j=t.shape,B="linear"===j,H=L.fill&&"none"!==L.fill,G=[],Y=d.minTolerance,U=e.length,q=new Array(U),V=0;function W(r){var n=e[r];if(!n)return!1;var a=t.linearized?D.l2p(n.x):D.c2p(n.x),o=t.linearized?C.l2p(n.y):C.c2p(n.y);if(a===i){if(P&&(a=D.c2p(n.x,!0)),a===i)return!1;O&&o===i&&(a*=Math.abs(D._m*E*(D._m>0?l:s)/(C._m*R*(C._m>0?l:s)))),a*=1e3}if(o===i){if(O&&(o=C.c2p(n.y,!0)),o===i)return!1;o*=1e3}return[a,o]}function Z(e,t,r,n){var a=r-e,i=n-t,o=.5-e,l=.5-t,s=a*a+i*i,u=a*o+i*l;if(u>0&&u<s){var c=o*i-l*a;if(c*c<s)return!0}}function J(e,t){var r=e[0]/R,n=e[1]/E,a=Math.max(0,-r,r-1,-n,n-1);return a&&void 0!==A&&Z(r,n,A,S)&&(a=0),a&&t&&Z(r,n,t[0]/R,t[1]/E)&&(a=0),(1+d.toleranceGrowth*a)*F}function X(e,t){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}var $,K,Q,ee,te,re,ne,ae=d.maxScreensAway,ie=-R*ae,oe=R*(1+ae),le=-E*ae,se=E*(1+ae),ue=[[ie,le,oe,le],[oe,le,oe,se],[oe,se,ie,se],[ie,se,ie,le]];function ce(e){if(e[0]<ie||e[0]>oe||e[1]<le||e[1]>se)return[f(e[0],ie,oe),f(e[1],le,se)]}function fe(e,t){return e[0]===t[0]&&(e[0]===ie||e[0]===oe)||e[1]===t[1]&&(e[1]===le||e[1]===se)||void 0}function de(e,t,r){return function(n,a){var i=ce(n),o=ce(a),l=[];if(i&&o&&fe(i,o))return l;i&&l.push(i),o&&l.push(o);var s=2*u.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);return s&&((i&&o?s>0==i[e]>o[e]?i:o:i||o)[e]+=s),l}}function he(e){var t=e[0],r=e[1],n=t===q[V-1][0],a=r===q[V-1][1];if(!n||!a)if(V>1){var i=t===q[V-2][0],o=r===q[V-2][1];n&&(t===ie||t===oe)&&i?o?V--:q[V-1]=e:a&&(r===le||r===se)&&o?i?V--:q[V-1]=e:q[V++]=e}else q[V++]=e}function pe(e){q[V-1][0]!==e[0]&&q[V-1][1]!==e[1]&&he([Q,ee]),he(e),te=null,Q=ee=0}"linear"===j||"spline"===j?ne=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=ue[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&X(o,e)<X(r[0],e)?r.unshift(o):r.push(o),n++)}return r}:"hv"===j||"vh"===j?ne=function(e,t){var r=[],n=ce(e),a=ce(t);return n&&a&&fe(n,a)||(n&&r.push(n),a&&r.push(a)),r}:"hvh"===j?ne=de(0,ie,oe):"vhv"===j&&(ne=de(1,le,se));var ge=u.isArrayOrTypedArray(N);function ve(t){if(t&&I&&(t.i=r,t.d=e,t.trace=L,t.marker=ge?N[t.i]:N,t.backoff=I),A=t[0]/R,S=t[1]/E,$=t[0]<ie?ie:t[0]>oe?oe:0,K=t[1]<le?le:t[1]>se?se:0,$||K){if(V)if(te){var n=ne(te,t);n.length>1&&(pe(n[0]),q[V++]=n[1])}else re=ne(q[V-1],t)[0],q[V++]=re;else q[V++]=[$||t[0],K||t[1]];var a=q[V-1];$&&K&&(a[0]!==$||a[1]!==K)?(te&&(Q!==$&&ee!==K?he(Q&&ee?(i=te,l=(o=t)[0]-i[0],s=(o[1]-i[1])/l,(i[1]*o[0]-o[1]*i[0])/l>0?[s>0?ie:oe,se]:[s>0?oe:ie,le]):[Q||$,ee||K]):Q&&ee&&he([Q,ee])),he([$,K])):Q-$&&ee-K&&he([$||Q,K||ee]),te=t,Q=$,ee=K}else te&&pe(ne(te,t)[0]),q[V++]=t;var i,o,l,s}for(r=0;r<U;r++)if(a=W(r)){for(V=0,te=null,ve(a),r++;r<U;r++){if(!(h=W(r))){if(z)continue;break}if(B&&t.simplify){var ye=W(r+1);if(x=X(h,a),H&&(0===V||V===U-1)||!(x<J(h,ye)*Y)){for(y=[(h[0]-a[0])/x,(h[1]-a[1])/x],p=a,b=x,_=M=T=0,v=!1,o=h,r++;r<e.length;r++){if(g=ye,ye=W(r+1),!g){if(z)continue;break}if(k=(m=[g[0]-a[0],g[1]-a[1]])[0]*y[1]-m[1]*y[0],M=Math.min(M,k),(T=Math.max(T,k))-M>J(g,ye))break;o=g,(w=m[0]*y[0]+m[1]*y[1])>b?(b=w,h=g,v=!1):w<_&&(_=w,p=g,v=!0)}if(v?(ve(h),o!==p&&ve(p)):(p!==a&&ve(p),o!==h&&ve(h)),ve(o),r>=e.length||!g)break;ve(g),a=g}}else ve(h)}te&&he([Q||te[0],ee||te[1]]),G.push(q.slice(0,V))}var me=j.slice(j.length-1);if(I&&"h"!==me&&"v"!==me){for(var xe=!1,be=-1,_e=[],we=0;we<G.length;we++)for(var Me=0;Me<G[we].length-1;Me++){var Te=G[we][Me],ke=G[we][Me+1],Ae=n.applyBackoff(ke,Te);Ae[0]===ke[0]&&Ae[1]===ke[1]||(xe=!0),_e[be+1]||(_e[++be]=[Te,[Ae[0],Ae[1]]])}return xe?_e:G}return G}},1731:function(e){"use strict";e.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},4328:function(e){"use strict";var t={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,r,n){var a,i,o,l,s,u={},c=!1,f=-1,d=0,h=-1;for(i=0;i<n.length;i++)(o=(a=n[i][0].trace).stackgroup||"")?o in u?s=u[o]:(s=u[o]=d,d++):a.fill in t&&h>=0?s=h:(s=h=d,d++),s<f&&(c=!0),a._groupIndex=f=s;var p=n.slice();c&&p.sort((function(e,t){var r=e[0].trace,n=t[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(i=0;i<p.length;i++)o=(a=p[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in t&&(l=g[o],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),g[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return p}},7152:function(e,t,r){"use strict";var n=r(8248);e.exports=function(e,t){t||(t=2);var r=e.marker,a=r.sizeref||1,i=r.sizemin||0,o="area"===r.sizemode?function(e){return Math.sqrt(e/a)}:function(e){return e/a};return function(e){var r=o(e/t);return n(r)&&r>0?Math.max(r,i):0}}},5528:function(e){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},4428:function(e,t,r){"use strict";var n=r(6308),a=r(4288).hasColorscale,i=r(7260),o=r(3028);e.exports=function(e,t,r,l,s,u){var c=o.isBubble(e),f=(e.line||{}).color;u=u||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",c?.7:1),s("marker.size"),u.noAngle||(s("marker.angle"),u.noAngleRef||s("marker.angleref"),u.noStandOff||s("marker.standoff")),s("marker.color",r),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),u.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),u.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:c?n.background:n.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",c?1:0)),c&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),u.gradient&&"none"!==s("marker.gradient.type")&&s("marker.gradient.color")}},1147:function(e,t,r){"use strict";var n=r(3400).dateTick0,a=r(9032).ONEWEEK;function i(e,t){return n(t,e%a==0?1:0)}e.exports=function(e,t,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,t.xcalendar)),n("xperiodalignment"))}if(a.y){var l=n("yperiod");l&&(n("yperiod0",i(l,t.ycalendar)),n("yperiodalignment"))}}},6504:function(e,t,r){"use strict";var n=r(3428),a=r(4040),i=r(3400),o=i.ensureSingle,l=i.identity,s=r(3616),u=r(3028),c=r(2340),f=r(4328),d=r(2065).tester;function h(e,t,r,f,h,p,g){var v,y=e._context.staticPlot;!function(e,t,r,a,o){var l=r.xaxis,s=r.yaxis,c=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(u.hasMarkers(d)){var h=d.marker.maxdisplayed;if(0!==h){var p=a.filter((function(e){return e.x>=c[0]&&e.x<=c[1]&&e.y>=f[0]&&e.y<=f[1]})),g=Math.ceil(p.length/h),v=0;o.forEach((function(e,r){var n=e[0].trace;u.hasMarkers(n)&&n.marker.maxdisplayed>0&&r<t&&v++}));var y=Math.round(v*g/3+Math.floor(v/3)*g/7.1);a.forEach((function(e){delete e.vis})),p.forEach((function(e,t){0===Math.round((t+y)%g)&&(e.vis=!0)}))}}}(0,t,r,f,h);var m=!!g&&g.duration>0;function x(e){return m?e.transition():e}var b=r.xaxis,_=r.yaxis,w=f[0].trace,M=w.line,T=n.select(p),k=o(T,"g","errorbars"),A=o(T,"g","lines"),S=o(T,"g","points"),L=o(T,"g","text");if(a.getComponentMethod("errorbars","plot")(e,k,r,g),!0===w.visible){var D,C;x(T).style("opacity",w.opacity);var P,O,R=w.fill.charAt(w.fill.length-1);"x"!==R&&"y"!==R&&(R=""),"y"===R?(P=1,O=_.c2p(0,!0)):"x"===R&&(P=0,O=b.c2p(0,!0)),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var E,I,N="",z=[],F=w._prevtrace,j=null,B=null;F&&(N=F._prevRevpath||"",C=F._nextFill,z=F._ownPolygons,j=F._fillsegments,B=F._fillElement);var H,G,Y,U,q,V,W="",Z="",J=[];w._polygons=[];var X=[],$=[],K=i.noop;if(D=w._ownFill,u.hasLines(w)||"none"!==w.fill){C&&C.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(M.shape)?(H=s.steps(M.shape),G=s.steps(M.shape.split("").reverse().join(""))):H=G="spline"===M.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),M.smoothing):s.smoothopen(e,M.smoothing)}:function(e){return"M"+e.join("L")},Y=function(e){return G(e.reverse())},$=c(f,{xaxis:b,yaxis:_,trace:w,connectGaps:w.connectgaps,baseTolerance:Math.max(M.width||1,3)/4,shape:M.shape,backoff:M.backoff,simplify:M.simplify,fill:w.fill}),X=new Array($.length);var Q=0;for(v=0;v<$.length;v++){var ee,te=$[v];ee&&R?ee.push.apply(ee,te):(ee=te.slice(),X[Q]=ee,Q++)}w._fillElement=null,w._fillExclusionElement=B,w._fillsegments=X.slice(0,Q),X=w._fillsegments,$.length&&(U=$[0][0].slice(),V=(q=$[$.length-1])[q.length-1].slice()),K=function(e){return function(t){if(E=H(t),I=Y(t),W?R?(W+="L"+E.substr(1),Z=I+"L"+Z.substr(1)):(W+="Z"+E,Z=I+"Z"+Z):(W=E,Z=I),u.hasLines(w)){var r=n.select(this);if(r.datum(f),e)x(r.style("opacity",0).attr("d",E).call(s.lineGroupStyle)).style("opacity",1);else{var a=x(r);a.attr("d",E),s.singleLineStyle(f,a)}}}}}var re=A.selectAll(".js-line").data($);x(re.exit()).style("opacity",0).remove(),re.each(K(!1)),re.enter().append("path").classed("js-line",!0).style("vector-effect",y?"none":"non-scaling-stroke").call(s.lineGroupStyle).each(K(!0)),s.setClipUrl(re,r.layerClipId,e);var ne=function(){var e=new Array(X.length);for(v=0;v<X.length;v++)e[v]=d(X[v]);return e},ae=function(e){var t,r;if(e&&0!==e.length){for(t=new Array(e.length-1+X.length),r=0;r<e.length-1;r++)t[r]=d(e[r]);var n=e[e.length-1].slice();for(n.reverse(),r=0;r<X.length;r++)t[e.length-1+r]=d(X[r].concat(n))}else for(t=new Array(X.length),r=0;r<X.length;r++){var a=X[r][0].slice(),i=X[r][X[r].length-1].slice();a[P]=i[P]=O;var o=[i,a].concat(X[r]);t[r]=d(o)}return t};$.length?(D?(D.datum(f),U&&V&&(R?(U[P]=V[P]=O,x(D).attr("d","M"+V+"L"+U+"L"+W.substr(1)).call(s.singleFillStyle,e),J=ae(null)):(x(D).attr("d",W+"Z").call(s.singleFillStyle,e),J=ne())),w._polygons=J,w._fillElement=D):C&&("tonext"===w.fill.substr(0,6)&&W&&N?("tonext"===w.fill?(x(C).attr("d",W+"Z"+N+"Z").call(s.singleFillStyle,e),J=ne(),w._polygons=J.concat(z)):(x(C).attr("d",W+"L"+N.substr(1)+"Z").call(s.singleFillStyle,e),J=ae(j),w._polygons=J),w._fillElement=C):oe(C)),w._prevRevpath=Z):(D?oe(D):C&&oe(C),w._prevRevpath=null),w._ownPolygons=J,S.datum(f),L.datum(f),function(t,a,i){var o,c=i[0].trace,f=u.hasMarkers(c),d=u.hasText(c),h=fe(c),p=de,g=de;if(f||d){var v=l,y=c.stackgroup,w=y&&"infer zero"===e._fullLayout._scatterStackOpts[b._id+_._id][y].stackgaps;c.marker.maxdisplayed||c._needsCull?v=w?se:le:y&&!w&&(v=ue),f&&(p=v),d&&(g=v)}var M,T=(o=t.selectAll("path.point").data(p,h)).enter().append("path").classed("point",!0);m&&T.call(s.pointStyle,c,e).call(s.translatePoints,b,_).style("opacity",0).transition().style("opacity",1),o.order(),f&&(M=s.makePointStyleFns(c)),o.each((function(t){var a=n.select(this),i=x(a);s.translatePoint(t,i,b,_)?(s.singlePointStyle(t,i,c,M,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,b,_,c.xcalendar,c.ycalendar),c.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),m?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(g,h)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=n.select(this),a=x(t.select("text"));s.translatePoint(e,a,b,_)?r.layerClipId&&s.hideOutsideRangePoint(e,t,b,_,c.xcalendar,c.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,c,e).each((function(e){var t=b.c2p(e.x),r=_.c2p(e.y);n.select(this).selectAll("tspan.line").each((function(){x(n.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(S,L,f);var ie=!1===w.cliponaxis?null:r.layerClipId;s.setClipUrl(S,ie,e),s.setClipUrl(L,ie,e)}function oe(e){x(e).attr("d","M0,0Z")}function le(e){return e.filter((function(e){return!e.gap&&e.vis}))}function se(e){return e.filter((function(e){return e.vis}))}function ue(e){return e.filter((function(e){return!e.gap}))}function ce(e){return e.id}function fe(e){if(e.ids)return ce}function de(){return!1}}e.exports=function(e,t,r,a,i,u){var c,d,p=!i,g=!!i&&i.duration>0,v=f(e,t,r);(c=a.selectAll("g.trace").data(v,(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),c.order(),function(e,t,r){t.each((function(t){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var i=t[0].trace,u=[];i._ownfill&&u.push("_ownFill"),i._nexttrace&&u.push("_nextFill");var c=a.selectAll("g").data(u,l);c.enter().append("g"),c.exit().each((function(e){i[e]=null})).remove(),c.order().each((function(e){i[e]=o(n.select(this),"path","js-fill")}))}))}(e,c,t),g?(u&&(d=u()),n.transition().duration(i.duration).ease(i.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){a.selectAll("g.trace").each((function(r,n){h(e,n,t,r,v,this,i)}))}))):c.each((function(r,n){h(e,n,t,r,v,this,i)})),p&&c.exit().remove(),a.selectAll("path:not([d])").remove()}},1560:function(e,t,r){"use strict";var n=r(3028);e.exports=function(e,t){var r,a,i,o,l=e.cd,s=e.xaxis,u=e.yaxis,c=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===t)for(r=0;r<l.length;r++)l[r].selected=0;else for(r=0;r<l.length;r++)a=l[r],i=s.c2p(a.x),o=u.c2p(a.y),null!==a.i&&t.contains([i,o],!1,r,e)?(c.push({pointNumber:a.i,x:s.c2d(a.x),y:u.c2d(a.y)}),a.selected=1):a.selected=0;return c}},3912:function(e){"use strict";var t=["orientation","groupnorm","stackgaps"];e.exports=function(e,r,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=r.xaxis+r.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],c=!1;u?u.traces.push(r):(u=s[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},d=0;d<t.length;d++){var h=t[d],p=h+"Found";if(!u[p]){var g=void 0!==e[h],v="orientation"===h;if((g||c)&&(u[h]=a(h,f[h]),v&&(u.fillDflt="h"===u[h]?"tonextx":"tonexty"),g&&(u[p]=!0,!c&&(delete u.traces[0][h],v))))for(var y=0;y<u.traces.length-1;y++){var m=u.traces[y];m._input.fill!==m.fill&&(m.fill=u.fillDflt)}}}return u}}},6844:function(e,t,r){"use strict";var n=r(3428),a=r(3616),i=r(4040);function o(e,t,r){a.pointStyle(e.selectAll("path.point"),t,r)}function l(e,t,r){a.textPointStyle(e.selectAll("text"),t,r)}e.exports={style:function(e){var t=n.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(n.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle,e,!1),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,r){var n=t[0].trace;n.selectedpoints?(a.selectedPointStyle(r.selectAll("path.point"),n),a.selectedTextStyle(r.selectAll("text"),n)):(o(r,n,e),l(r,n,e))}}},3028:function(e,t,r){"use strict";var n=r(3400),a=r(8116).isTypedArraySpec;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){var t=e.marker;return n.isPlainObject(t)&&(n.isArrayOrTypedArray(t.size)||a(t.size))}}},124:function(e,t,r){"use strict";var n=r(3400);e.exports=function(e,t,r,a,i){i=i||{},a("textposition"),n.coerceFont(a,"textfont",i.font||r.font),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},3980:function(e,t,r){"use strict";var n=r(3400),a=r(4040);e.exports=function(e,t,r,i){var o,l=i("x"),s=i("y");if(a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],r),l){var u=n.minRowLength(l);s?o=Math.min(u,n.minRowLength(s)):(o=u,i("y0"),i("dy"))}else{if(!s)return 0;o=n.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},6096:function(e,t,r){"use strict";var n=r(1776).Ks,a=r(1776).Gw,i=r(3544),o=r(2904),l=r(5464),s=r(9084),u=r(8192).u,c=r(2880).extendFlat,f=r(7824).overrideAll,d=o.marker,h=o.line,p=d.line;e.exports=f({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:c({},o.mode,{dflt:"markers"}),text:c({},o.text,{}),texttemplate:a({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:c({},o.hovertext,{}),textfont:o.textfont,textposition:o.textposition,line:{color:h.color,width:h.width,dash:u},connectgaps:o.connectgaps,marker:c({symbol:d.symbol,opacity:d.opacity,angle:d.angle,angleref:c({},d.angleref,{values:["previous","up","north"]}),standoff:d.standoff,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,colorbar:d.colorbar,line:c({width:p.width},s("marker.line")),gradient:d.gradient},s("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:i(),selected:o.selected,unselected:o.unselected,hoverinfo:c({},l.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:n()},"calc","nested")},5212:function(e,t,r){"use strict";var n=r(8248),a=r(9032).BADNUM,i=r(136),o=r(148),l=r(4500),s=r(3400).isArrayOrTypedArray,u=r(3400)._;function c(e){return e&&"string"==typeof e}e.exports=function(e,t){var r,f=s(t.locations),d=f?t.locations.length:t._length,h=new Array(d);r=t.geojson?function(e){return c(e)||n(e)}:c;for(var p=0;p<d;p++){var g=h[p]={};if(f){var v=t.locations[p];g.loc=r(v)?v:null}else{var y=t.lon[p],m=t.lat[p];n(y)&&n(m)?g.lonlat=[+y,+m]:g.lonlat=[a,a]}}return o(h,t),i(e,t),l(h,t),d&&(h[0].t={labels:{lat:u(e,"lat:")+" ",lon:u(e,"lon:")+" "}}),h}},6188:function(e,t,r){"use strict";var n=r(3400),a=r(3028),i=r(4428),o=r(6828),l=r(124),s=r(840),u=r(6096);e.exports=function(e,t,r,c){function f(r,a){return n.coerce(e,t,u,r,a)}var d,h=f("locations");if(h&&h.length){var p,g=f("geojson");("string"==typeof g&&""!==g||n.isPlainObject(g))&&(p="geojson-id"),"geojson-id"===f("locationmode",p)&&f("featureidkey"),d=h.length}else{var v=f("lon")||[],y=f("lat")||[];d=Math.min(v.length,y.length)}d?(t._length=d,f("text"),f("hovertext"),f("hovertemplate"),f("mode"),a.hasMarkers(t)&&i(e,t,r,c,f,{gradient:!0}),a.hasLines(t)&&(o(e,t,r,c,f),f("connectgaps")),a.hasText(t)&&(f("texttemplate"),l(e,t,c,f)),f("fill"),"none"!==t.fill&&s(e,t,r,f),n.coerceSelectionMarkerOpacity(t,f)):t.visible=!1}},8544:function(e){"use strict";e.exports=function(e,t,r,n,a){e.lon=t.lon,e.lat=t.lat,e.location=t.loc?t.loc:null;var i=n[a];return i.fIn&&i.fIn.properties&&(e.properties=i.fIn.properties),e}},6696:function(e,t,r){"use strict";var n=r(4460);e.exports=function(e,t,r){var a={},i=r[t.geo]._subplot.mockAxis,o=e.lonlat;return a.lonLabel=n.tickText(i,i.c2l(o[0]),!0).text,a.latLabel=n.tickText(i,i.c2l(o[1]),!0).text,a}},4292:function(e,t,r){"use strict";var n=r(3024),a=r(9032).BADNUM,i=r(4928),o=r(3400).fillText,l=r(6096);e.exports=function(e,t,r){var s=e.cd,u=s[0].trace,c=e.xa,f=e.ya,d=e.subplot,h=d.projection.isLonLatOverEdges,p=d.project;if(n.getClosest(s,(function(e){var n=e.lonlat;if(n[0]===a)return 1/0;if(h(n))return 1/0;var i=p(n),o=p([t,r]),l=Math.abs(i[0]-o[0]),s=Math.abs(i[1]-o[1]),u=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(l*l+s*s)-u,1-3/u)}),e),!1!==e.index){var g=s[e.index],v=g.lonlat,y=[c.c2p(v),f.c2p(v)],m=g.mrc||1;e.x0=y[0]-m,e.x1=y[0]+m,e.y0=y[1]-m,e.y1=y[1]+m,e.loc=g.loc,e.lon=v[0],e.lat=v[1];var x={};x[u.geo]={_subplot:d};var b=u._module.formatLabels(g,u,x);return e.lonLabel=b.lonLabel,e.latLabel=b.latLabel,e.color=i(u,g),e.extraText=function(e,t,r,n){if(!e.hovertemplate){var a=t.hi||e.hoverinfo,i="all"===a?l.hoverinfo.flags:a.split("+"),s=-1!==i.indexOf("location")&&Array.isArray(e.locations),u=-1!==i.indexOf("lon"),c=-1!==i.indexOf("lat"),f=-1!==i.indexOf("text"),d=[];return s?d.push(t.loc):u&&c?d.push("("+h(r.latLabel)+", "+h(r.lonLabel)+")"):u?d.push(n.lon+h(r.lonLabel)):c&&d.push(n.lat+h(r.latLabel)),f&&o(t,e,d),d.join("<br>")}function h(e){return e+"°"}}(u,g,e,s[0].t.labels),e.hovertemplate=u.hovertemplate,[e]}}},6952:function(e,t,r){"use strict";e.exports={attributes:r(6096),supplyDefaults:r(6188),colorbar:r(5528),formatLabels:r(6696),calc:r(5212),calcGeoJSON:r(8691).calcGeoJSON,plot:r(8691).plot,style:r(5064),styleOnSelect:r(6844).styleOnSelect,hoverPoints:r(4292),eventData:r(8544),selectPoints:r(8796),moduleType:"trace",name:"scattergeo",basePlotModule:r(816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},8691:function(e,t,r){"use strict";var n=r(3428),a=r(3400),i=r(9972).getTopojsonFeatures,o=r(4808),l=r(7144),s=r(9280).findExtremes,u=r(9032).BADNUM,c=r(6356).calcMarkerSize,f=r(3028),d=r(5064);e.exports={calcGeoJSON:function(e,t){var r,n,o=e[0].trace,f=t[o.geo],d=f._subplot,h=o._length;if(a.isArrayOrTypedArray(o.locations)){var p=o.locationmode,g="geojson-id"===p?l.extractTraceFeature(e):i(o,d.topojson);for(r=0;r<h;r++){n=e[r];var v="geojson-id"===p?n.fOut:l.locationToFeature(p,n.loc,g);n.lonlat=v?v.properties.ct:[u,u]}}var y,m,x={padded:!0};if("geojson"===f.fitbounds&&"geojson-id"===o.locationmode){var b=l.computeBbox(l.getTraceGeojson(o));y=[b[0],b[2]],m=[b[1],b[3]]}else{for(y=new Array(h),m=new Array(h),r=0;r<h;r++)n=e[r],y[r]=n.lonlat[0],m[r]=n.lonlat[1];x.ppad=c(o,h)}o._extremes.lon=s(f.lonaxis._ax,y,x),o._extremes.lat=s(f.lataxis._ax,m,x)},plot:function(e,t,r){var i=t.layers.frontplot.select(".scatterlayer"),l=a.makeTraceGroups(i,r,"trace scattergeo");function s(e,t){e.lonlat[0]===u&&n.select(t).remove()}l.selectAll("*").remove(),l.each((function(t){var r=n.select(this),i=t[0].trace;if(f.hasLines(i)||"none"!==i.fill){var l=o.calcTraceToLineCoords(t),u="none"!==i.fill?o.makePolygon(l):o.makeLine(l);r.selectAll("path.js-line").data([{geojson:u,trace:i}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}f.hasMarkers(i)&&r.selectAll("path.point").data(a.identity).enter().append("path").classed("point",!0).each((function(e){s(e,this)})),f.hasText(i)&&r.selectAll("g").data(a.identity).enter().append("g").append("text").each((function(e){s(e,this)})),d(e,t)}))}}},8796:function(e,t,r){"use strict";var n=r(3028),a=r(9032).BADNUM;e.exports=function(e,t){var r,i,o,l,s,u=e.cd,c=e.xaxis,f=e.yaxis,d=[],h=u[0].trace;if(!n.hasMarkers(h)&&!n.hasText(h))return[];if(!1===t)for(s=0;s<u.length;s++)u[s].selected=0;else for(s=0;s<u.length;s++)(i=(r=u[s]).lonlat)[0]!==a&&(o=c.c2p(i),l=f.c2p(i),t.contains([o,l],null,s,e)?(d.push({pointNumber:s,lon:i[0],lat:i[1]}),r.selected=1):r.selected=0);return d}},5064:function(e,t,r){"use strict";var n=r(3428),a=r(3616),i=r(6308),o=r(6844),l=o.stylePoints,s=o.styleText;e.exports=function(e,t){t&&function(e,t){var r=t[0].trace,o=t[0].node3;o.style("opacity",t[0].trace.opacity),l(o,r,e),s(o,r,e),o.selectAll("path.js-line").style("fill","none").each((function(e){var t=n.select(this),r=e.trace,o=r.line||{};t.call(i.stroke,o.color).call(a.dashLine,o.dash||"",o.width||0),"none"!==r.fill&&t.call(i.fill,r.fillcolor)}))}(e,t)}},1843:function(e,t,r){"use strict";var n=r(4460),a=r(3400),i=r(3060),o=r(468).W,l=r(9032).BADNUM;t.moduleType="transform",t.name="aggregate";var s=t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},u=s.aggregations;function c(e,t,r,i){if(i.enabled){for(var o=i.target,s=a.nestedProperty(t,o),u=s.get(),c=function(e,t){var r=e.func,n=t.d2c,i=t.c2d;switch(r){case"count":return f;case"first":return d;case"last":return h;case"sum":return function(e,t){for(var r=0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r+=o)}return i(r)};case"avg":return function(e,t){for(var r=0,a=0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r+=s,a++)}return a?i(r/a):l};case"min":return function(e,t){for(var r=1/0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r=Math.min(r,o))}return r===1/0?l:i(r)};case"max":return function(e,t){for(var r=-1/0,a=0;a<t.length;a++){var o=n(e[t[a]]);o!==l&&(r=Math.max(r,o))}return r===-1/0?l:i(r)};case"range":return function(e,t){for(var r=1/0,a=-1/0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r=Math.min(r,s),a=Math.max(a,s))}return a===-1/0||r===1/0?l:i(a-r)};case"change":return function(e,t){var r=n(e[t[0]]),a=n(e[t[t.length-1]]);return r===l||a===l?l:i(a-r)};case"median":return function(e,t){for(var r=[],o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&r.push(s)}if(!r.length)return l;r.sort(a.sorterAsc);var u=(r.length-1)/2;return i((r[Math.floor(u)]+r[Math.ceil(u)])/2)};case"mode":return function(e,t){for(var r={},a=0,o=l,s=0;s<t.length;s++){var u=n(e[t[s]]);if(u!==l){var c=r[u]=(r[u]||0)+1;c>a&&(a=c,o=u)}}return a?i(o):l};case"rms":return function(e,t){for(var r=0,a=0,o=0;o<t.length;o++){var s=n(e[t[o]]);s!==l&&(r+=s*s,a++)}return a?i(Math.sqrt(r/a)):l};case"stddev":return function(t,r){var a,i=0,o=0,s=1,u=l;for(a=0;a<r.length&&u===l;a++)u=n(t[r[a]]);if(u===l)return l;for(;a<r.length;a++){var c=n(t[r[a]]);if(c!==l){var f=c-u;i+=f,o+=f*f,s++}}var d="sample"===e.funcmode?s-1:s;return d?Math.sqrt((o-i*i/s)/d):0}}}(i,n.getDataConversions(e,t,o,u)),p=new Array(r.length),g=0;g<r.length;g++)p[g]=c(u,r[g]);s.set(p),"count"===i.func&&a.pushUnique(t._arrayAttrs,o)}}function f(e,t){return t.length}function d(e,t){return e[t[0]]}function h(e,t){return e[t[t.length-1]]}t.supplyDefaults=function(e,t){var r,n={};function o(t,r){return a.coerce(e,n,s,t,r)}if(!o("enabled"))return n;var l=i.findArrayAttributes(t),c={};for(r=0;r<l.length;r++)c[l[r]]=1;var f=o("groups");if(!Array.isArray(f)){if(!c[f])return n.enabled=!1,n;c[f]=0}var d,h=e.aggregations||[],p=n.aggregations=new Array(h.length);function g(e,t){return a.coerce(h[r],d,u,e,t)}for(r=0;r<h.length;r++){d={_index:r};var v=g("target"),y=g("func");g("enabled")&&v&&(c[v]||"count"===y&&void 0===c[v])?("stddev"===y&&g("funcmode"),c[v]=0,p[r]=d):p[r]={enabled:!1,_index:r}}for(r=0;r<l.length;r++)c[l[r]]&&p.push({target:l[r],func:u.func.dflt,enabled:!0,_index:-1});return n},t.calcTransform=function(e,t,r){if(r.enabled){var n=r.groups,i=a.getTargetArray(t,{target:n});if(i){var l,s,u,f,d={},h={},p=[],g=o(t.transforms,r),v=i.length;for(t._length&&(v=Math.min(v,t._length)),l=0;l<v;l++)void 0===(u=d[s=i[l]])?(d[s]=p.length,f=[l],p.push(f),h[d[s]]=g(l)):(p[u].push(l),h[d[s]]=(h[d[s]]||[]).concat(g(l)));r._indexToPoints=h;var y=r.aggregations;for(l=0;l<y.length;l++)c(e,t,p,y[l]);"string"==typeof n&&c(e,t,p,{target:n,func:"first",enabled:!0}),t._length=p.length}}}},6744:function(e,t,r){"use strict";var n=r(3400),a=r(4040),i=r(4460),o=r(468).W,l=r(9104),s=l.COMPARISON_OPS,u=l.INTERVAL_OPS,c=l.SET_OPS;t.moduleType="transform",t.name="filter",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},operation:{valType:"enumerated",values:[].concat(s).concat(u).concat(c),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},preservegaps:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc"},t.supplyDefaults=function(e){var r={};function i(a,i){return n.coerce(e,r,t.attributes,a,i)}if(i("enabled")){var o=i("target");if(n.isArrayOrTypedArray(o)&&0===o.length)return r.enabled=!1,r;i("preservegaps"),i("operation"),i("value");var l=a.getComponentMethod("calendars","handleDefaults");l(e,r,"valuecalendar",null),l(e,r,"targetcalendar",null)}return r},t.calcTransform=function(e,t,r){if(r.enabled){var a=n.getTargetArray(t,r);if(a){var l=r.target,f=a.length;t._length&&(f=Math.min(f,t._length));var d=r.targetcalendar,h=t._arrayAttrs,p=r.preservegaps;if("string"==typeof l){var g=n.nestedProperty(t,l+"calendar").get();g&&(d=g)}var v,y,m=function(e,t,r){var a=e.operation,i=e.value,o=n.isArrayOrTypedArray(i);function l(e){return-1!==e.indexOf(a)}var f,d=function(r){return t(r,0,e.valuecalendar)},h=function(e){return t(e,0,r)};switch(l(s)?f=d(o?i[0]:i):l(u)?f=o?[d(i[0]),d(i[1])]:[d(i),d(i)]:l(c)&&(f=o?i.map(d):[d(i)]),a){case"=":return function(e){return h(e)===f};case"!=":return function(e){return h(e)!==f};case"<":return function(e){return h(e)<f};case"<=":return function(e){return h(e)<=f};case">":return function(e){return h(e)>f};case">=":return function(e){return h(e)>=f};case"[]":return function(e){var t=h(e);return t>=f[0]&&t<=f[1]};case"()":return function(e){var t=h(e);return t>f[0]&&t<f[1]};case"[)":return function(e){var t=h(e);return t>=f[0]&&t<f[1]};case"(]":return function(e){var t=h(e);return t>f[0]&&t<=f[1]};case"][":return function(e){var t=h(e);return t<=f[0]||t>=f[1]};case")(":return function(e){var t=h(e);return t<f[0]||t>f[1]};case"](":return function(e){var t=h(e);return t<=f[0]||t>f[1]};case")[":return function(e){var t=h(e);return t<f[0]||t>=f[1]};case"{}":return function(e){return-1!==f.indexOf(h(e))};case"}{":return function(e){return-1===f.indexOf(h(e))}}}(r,i.getDataToCoordFunc(e,t,l,a),d),x={},b={},_=0;p?(v=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set(new Array(f))},y=function(e,t){var r=x[e.astr][t];e.get()[t]=r}):(v=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set([])},y=function(e,t){var r=x[e.astr][t];e.get().push(r)}),T(v);for(var w=o(t.transforms,r),M=0;M<f;M++)m(a[M])?(T(y,M),b[_++]=w(M)):p&&_++;r._indexToPoints=b,t._length=_}}function T(e,r){for(var a=0;a<h.length;a++)e(n.nestedProperty(t,h[a]),r)}}},2028:function(e,t,r){"use strict";var n=r(3400),a=r(3060),i=r(7316),o=r(468).W;function l(e,t){var r,l,s,u,c,f,d,h,p,g,v=t.transform,y=t.transformIndex,m=e.transforms[y].groups,x=o(e.transforms,v);if(!n.isArrayOrTypedArray(m)||0===m.length)return[e];var b=n.filterUnique(m),_=new Array(b.length),w=m.length,M=a.findArrayAttributes(e),T=v.styles||[],k={};for(r=0;r<T.length;r++)k[T[r].target]=T[r].value;v.styles&&(g=n.keyedContainer(v,"styles","target","value.name"));var A={},S={};for(r=0;r<b.length;r++){A[f=b[r]]=r,S[f]=0,(d=_[r]=n.extendDeepNoArrays({},e))._group=f,d.transforms[y]._indexToPoints={};var L=null;for(g&&(L=g.get(f)),d.name=L||""===L?L:n.templateString(v.nameformat,{trace:e.name,group:f}),h=d.transforms,d.transforms=[],l=0;l<h.length;l++)d.transforms[l]=n.extendDeepNoArrays({},h[l]);for(l=0;l<M.length;l++)n.nestedProperty(d,M[l]).set([])}for(s=0;s<M.length;s++){for(u=M[s],l=0,p=[];l<b.length;l++)p[l]=n.nestedProperty(_[l],u).get();for(c=n.nestedProperty(e,u).get(),l=0;l<w;l++)p[A[m[l]]].push(c[l])}for(l=0;l<w;l++)(d=_[A[m[l]]]).transforms[y]._indexToPoints[S[m[l]]]=x(l),S[m[l]]++;for(r=0;r<b.length;r++)f=b[r],d=_[r],i.clearExpandedTraceDefaultColors(d),d=n.extendDeepNoArrays(d,k[f]||{});return _}t.moduleType="transform",t.name="groupby",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},t.supplyDefaults=function(e,r,a){var i,o={};function l(r,a){return n.coerce(e,o,t.attributes,r,a)}if(!l("enabled"))return o;l("groups"),l("nameformat",a._dataLength>1?"%{group} (%{trace})":"%{group}");var s=e.styles,u=o.styles=[];if(s)for(i=0;i<s.length;i++){var c=u[i]={};n.coerce(s[i],u[i],t.attributes.styles,"target");var f=n.coerce(s[i],u[i],t.attributes.styles,"value");n.isPlainObject(f)?c.value=n.extendDeep({},f):f&&delete c.value}return o},t.transform=function(e,t){var r,n,a,i=[];for(n=0;n<e.length;n++)for(r=l(e[n],t),a=0;a<r.length;a++)i.push(r[a]);return i}},468:function(e,t){"use strict";t.W=function(e,t){for(var r,n,a=0;a<e.length&&(r=e[a])!==t;a++)r._indexToPoints&&!1!==r.enabled&&(n=r._indexToPoints);var i=n?function(e){return n[e]}:function(e){return[e]};return i}},6272:function(e,t,r){"use strict";var n=r(3400),a=r(4460),i=r(468).W,o=r(9032).BADNUM;t.moduleType="transform",t.name="sort",t.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc"},editType:"calc"},t.supplyDefaults=function(e){var r={};function a(a,i){return n.coerce(e,r,t.attributes,a,i)}return a("enabled")&&(a("target"),a("order")),r},t.calcTransform=function(e,t,r){if(r.enabled){var l=n.getTargetArray(t,r);if(l){var s=r.target,u=l.length;t._length&&(u=Math.min(u,t._length));var c,f,d=t._arrayAttrs,h=function(e,t,r,n){var a,i=new Array(n),l=new Array(n);for(a=0;a<n;a++)i[a]={v:t[a],i:a};for(i.sort(function(e,t){switch(e.order){case"ascending":return function(e,r){var n=t(e.v),a=t(r.v);return n===o?1:a===o?-1:n-a};case"descending":return function(e,r){var n=t(e.v),a=t(r.v);return n===o?1:a===o?-1:a-n}}}(e,r)),a=0;a<n;a++)l[a]=i[a].i;return l}(r,l,a.getDataToCoordFunc(e,t,s,l),u),p=i(t.transforms,r),g={};for(c=0;c<d.length;c++){var v=n.nestedProperty(t,d[c]),y=v.get(),m=new Array(u);for(f=0;f<u;f++)m[f]=y[h[f]];v.set(m)}for(f=0;f<u;f++)g[f]=p(h[f]);r._indexToPoints=g,t._length=u}}}},5788:function(e,t){"use strict";t.version="2.31.0"},5928:function(e){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,n=/android|ipad|playbook|silk/i;function a(e){e||(e={});var a=e.ua;if(a||"undefined"==typeof navigator||(a=navigator.userAgent),a&&a.headers&&"string"==typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),"string"!=typeof a)return!1;var i=t.test(a)&&!r.test(a)||!!e.tablet&&n.test(a);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==a.indexOf("Macintosh")&&-1!==a.indexOf("Safari")&&(i=!0),i}},3428:function(e,t,r){var n,a;(function(){var i={version:"3.8.0"},o=[].slice,l=function(e){return o.call(e)},s=self.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(e){l=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var f=this.Element.prototype,d=f.setAttribute,h=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,g=p.setProperty;f.setAttribute=function(e,t){d.call(this,e,t+"")},f.setAttributeNS=function(e,t,r){h.call(this,e,t,r+"")},p.setProperty=function(e,t,r){g.call(this,e,t+"",r)}}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function y(e){return null===e?NaN:+e}function m(e){return!isNaN(e)}function x(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}i.ascending=v,i.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},i.min=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&r>n&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&r>n&&(r=n)}return r},i.max=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&n>r&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&n>r&&(r=n)}return r},i.extent=function(e,t){var r,n,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(n=e[i])&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=e[i])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++i<o;)if(null!=(n=t.call(e,e[i],i))&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=t.call(e,e[i],i))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},i.sum=function(e,t){var r,n=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)m(r=+e[i])&&(n+=r);else for(;++i<a;)m(r=+t.call(e,e[i],i))&&(n+=r);return n},i.mean=function(e,t){var r,n=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)m(r=y(e[i]))?n+=r:--o;else for(;++i<a;)m(r=y(t.call(e,e[i],i)))?n+=r:--o;if(o)return n/o},i.quantile=function(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a},i.median=function(e,t){var r,n=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)m(r=y(e[o]))&&n.push(r);else for(;++o<a;)m(r=y(t.call(e,e[o],o)))&&n.push(r);if(n.length)return i.quantile(n.sort(v),.5)},i.variance=function(e,t){var r,n,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)m(r=y(e[l]))&&(o+=(n=r-i)*(r-(i+=n/++s)));else for(;++l<a;)m(r=y(t.call(e,e[l],l)))&&(o+=(n=r-i)*(r-(i+=n/++s)));if(s>1)return o/(s-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=x(v);function _(e){return e.length}i.bisectLeft=b.left,i.bisect=i.bisectRight=b.right,i.bisector=function(e){return x(1===e.length?function(t,r){return v(e(t),r)}:e)},i.shuffle=function(e,t,r){(i=arguments.length)<3&&(r=e.length,i<2&&(t=0));for(var n,a,i=r-t;i;)a=Math.random()*i--|0,n=e[i+t],e[i+t]=e[a+t],e[a+t]=n;return e},i.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},i.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t<r;)a[t]=[n,n=e[++t]];return a},i.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,r=i.min(e,_),n=new Array(r);++t<r;)for(var a,o=-1,l=n[t]=new Array(a);++o<a;)l[o]=e[o][t];return n},i.zip=function(){return i.transpose(arguments)},i.keys=function(e){var t=[];for(var r in e)t.push(r);return t},i.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},i.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},i.merge=function(e){for(var t,r,n,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(r=new Array(o);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r};var w=Math.abs;function M(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function T(){this._=Object.create(null)}i.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r==1/0)throw new Error("infinite range");var n,a=[],i=function(e){for(var t=1;e*t%1;)t*=10;return t}(w(r)),o=-1;if(e*=i,t*=i,(r*=i)<0)for(;(n=e+r*++o)>t;)a.push(n/i);else for(;(n=e+r*++o)<t;)a.push(n/i);return a},i.map=function(e,t){var r=new T;if(e instanceof T)e.forEach((function(e,t){r.set(e,t)}));else if(Array.isArray(e)){var n,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)r.set(a,e[a]);else for(;++a<i;)r.set(t.call(e,n=e[a],a),n)}else for(var o in e)r.set(o,e[o]);return r};var k="__proto__",A="\0";function S(e){return(e+="")===k||e[0]===A?A+e:e}function L(e){return(e+="")[0]===A?e.slice(1):e}function D(e){return S(e)in this._}function C(e){return(e=S(e))in this._&&delete this._[e]}function P(){var e=[];for(var t in this._)e.push(L(t));return e}function O(){var e=0;for(var t in this._)++e;return e}function R(){for(var e in this._)return!1;return!0}function E(){this._=Object.create(null)}function I(e){return e}function N(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function z(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=F.length;r<n;++r){var a=F[r]+t;if(a in e)return a}}M(T,{has:D,get:function(e){return this._[S(e)]},set:function(e,t){return this._[S(e)]=t},remove:C,keys:P,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:L(t),value:this._[t]});return e},size:O,empty:R,forEach:function(e){for(var t in this._)e.call(this,L(t),this._[t])}}),i.nest=function(){var e,t,r={},n=[],a=[];function o(a,i,l){if(l>=n.length)return t?t.call(r,i):e?i.sort(e):i;for(var s,u,c,f,d=-1,h=i.length,p=n[l++],g=new T;++d<h;)(f=g.get(s=p(u=i[d])))?f.push(u):g.set(s,[u]);return a?(u=a(),c=function(e,t){u.set(e,o(a,t,l))}):(u={},c=function(e,t){u[e]=o(a,t,l)}),g.forEach(c),u}function l(e,t){if(t>=n.length)return e;var r=[],i=a[t++];return e.forEach((function(e,n){r.push({key:e,values:l(n,t)})})),i?r.sort((function(e,t){return i(e.key,t.key)})):r}return r.map=function(e,t){return o(t,e,0)},r.entries=function(e){return l(o(i.map,e,0),0)},r.key=function(e){return n.push(e),r},r.sortKeys=function(e){return a[n.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return t=e,r},r},i.set=function(e){var t=new E;if(e)for(var r=0,n=e.length;r<n;++r)t.add(e[r]);return t},M(E,{has:D,add:function(e){return this._[S(e+="")]=!0,e},remove:C,values:P,size:O,empty:R,forEach:function(e){for(var t in this._)e.call(this,L(t))}}),i.behavior={},i.rebind=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=N(e,t,t[r]);return e};var F=["webkit","ms","moz","Moz","o","O"];function j(){}function B(){}function H(e){var t=[],r=new T;function n(){for(var r,n=t,a=-1,i=n.length;++a<i;)(r=n[a].on)&&r.apply(this,arguments);return e}return n.on=function(n,a){var i,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),r.remove(n)),a&&t.push(r.set(n,{on:a})),e)},n}function G(){i.event.preventDefault()}function Y(){for(var e,t=i.event;e=t.sourceEvent;)t=e;return t}function U(e){for(var t=new B,r=0,n=arguments.length;++r<n;)t[arguments[r]]=H(t);return t.of=function(r,n){return function(a){try{var o=a.sourceEvent=i.event;a.target=e,i.event=a,t[a.type].apply(r,n)}finally{i.event=o}}},t}i.dispatch=function(){for(var e=new B,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=H(e);return e},B.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},i.event=null,i.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,V={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function W(e){return V(e,$),e}var Z=function(e,t){return t.querySelector(e)},J=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var r=e.matches||e[z(e,"matchesSelector")];return X=function(e,t){return r.call(e,t)},X(e,t)};"function"==typeof Sizzle&&(Z=function(e,t){return Sizzle(e,t)[0]||null},J=Sizzle,X=Sizzle.matchesSelector),i.selection=function(){return i.select(s.documentElement)};var $=i.selection.prototype=[];function K(e){return"function"==typeof e?e:function(){return Z(e,this)}}function Q(e){return"function"==typeof e?e:function(){return J(e,this)}}$.select=function(e){var t,r,n,a,i=[];e=K(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=-1,u=n.length;++s<u;)(a=n[s])?(t.push(r=e.call(a,a.__data__,s,o)),r&&"__data__"in a&&(r.__data__=a.__data__)):t.push(null)}return W(i)},$.selectAll=function(e){var t,r,n=[];e=Q(e);for(var a=-1,i=this.length;++a<i;)for(var o=this[a],s=-1,u=o.length;++s<u;)(r=o[s])&&(n.push(t=l(e.call(r,r.__data__,s,a))),t.parentNode=r);return W(n)};var ee="http://www.w3.org/1999/xhtml",te={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function re(e,t){return e=i.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"==typeof t?e.local?function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}:function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function ne(e){return e.trim().replace(/\s+/g," ")}function ae(e){return new RegExp("(?:^|\\s+)"+i.requote(e)+"(?:\\s+|$)","g")}function ie(e){return(e+"").trim().split(/^|\s+/)}function oe(e,t){var r=(e=ie(e).map(le)).length;return"function"==typeof t?function(){for(var n=-1,a=t.apply(this,arguments);++n<r;)e[n](this,a)}:function(){for(var n=-1;++n<r;)e[n](this,t)}}function le(e){var t=ae(e);return function(r,n){if(a=r.classList)return n?a.add(e):a.remove(e);var a=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(a)||r.setAttribute("class",ne(a+" "+e))):r.setAttribute("class",ne(a.replace(t," ")))}}function se(e,t,r){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}:function(){this.style.setProperty(e,t,r)}}function ue(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}:function(){this[e]=t}}function ce(e){return"function"==typeof e?e:(e=i.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ee&&t.documentElement.namespaceURI===ee?t.createElement(e):t.createElementNS(r,e)}}function fe(){var e=this.parentNode;e&&e.removeChild(this)}function de(e){return{__data__:e}}function he(e){return function(){return X(this,e)}}function pe(e){return arguments.length||(e=v),function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}function ge(e,t){for(var r=0,n=e.length;r<n;r++)for(var a,i=e[r],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,r);return e}function ve(e){return V(e,ye),e}i.ns={prefix:te,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(r)?{space:te[r],local:e}:e}},$.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node();return(e=i.ns.qualify(e)).local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(re(t,e[t]));return this}return this.each(re(e,t))},$.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node(),n=(e=ie(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!ae(e[a]).test(t))return!1;return!0}for(t in e)this.each(oe(t,e[t]));return this}return this.each(oe(e,t))},$.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.each(se(r,e[r],t));return this}if(n<2){var a=this.node();return c(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(se(e,t,r))},$.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(ue(t,e[t]));return this}return this.each(ue(e,t))},$.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},$.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},$.append=function(e){return e=ce(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},$.insert=function(e,t){return e=ce(e),t=K(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},$.remove=function(){return this.each(fe)},$.data=function(e,t){var r,n,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(r=this[0]).length);++a<i;)(n=r[a])&&(e[a]=n.__data__);return e}function o(e,r){var n,a,i,o=e.length,c=r.length,f=Math.min(o,c),d=new Array(c),h=new Array(c),p=new Array(o);if(t){var g,v=new T,y=new Array(o);for(n=-1;++n<o;)(a=e[n])&&(v.has(g=t.call(a,a.__data__,n))?p[n]=a:v.set(g,a),y[n]=g);for(n=-1;++n<c;)(a=v.get(g=t.call(r,i=r[n],n)))?!0!==a&&(d[n]=a,a.__data__=i):h[n]=de(i),v.set(g,!0);for(n=-1;++n<o;)n in y&&!0!==v.get(y[n])&&(p[n]=e[n])}else{for(n=-1;++n<f;)a=e[n],i=r[n],a?(a.__data__=i,d[n]=a):h[n]=de(i);for(;n<c;++n)h[n]=de(r[n]);for(;n<o;++n)p[n]=e[n]}h.update=d,h.parentNode=d.parentNode=p.parentNode=e.parentNode,l.push(h),s.push(d),u.push(p)}var l=ve([]),s=W([]),u=W([]);if("function"==typeof e)for(;++a<i;)o(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<i;)o(r=this[a],e);return s.enter=function(){return l},s.exit=function(){return u},s},$.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},$.filter=function(e){var t,r,n,a=[];"function"!=typeof e&&(e=he(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&e.call(n,n.__data__,l,i)&&t.push(n)}return W(a)},$.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,i=n[a];--a>=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},$.sort=function(e){e=pe.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()},$.each=function(e){return ge(this,(function(t,r,n){e.call(t,t.__data__,r,n)}))},$.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},$.empty=function(){return!this.node()},$.node=function(){for(var e=0,t=this.length;e<t;e++)for(var r=this[e],n=0,a=r.length;n<a;n++){var i=r[n];if(i)return i}return null},$.size=function(){var e=0;return ge(this,(function(){++e})),e};var ye=[];function me(e,t,r){var n="__on"+e,a=e.indexOf("."),o=be;a>0&&(e=e.slice(0,a));var s=xe.get(e);function u(){var t=this[n];t&&(this.removeEventListener(e,t,t.$),delete this[n])}return s&&(e=s,o=_e),a?t?function(){var a=o(t,l(arguments));u.call(this),this.addEventListener(e,this[n]=a,a.$=r),a._=t}:u:t?j:function(){var t,r=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var n in this)if(t=n.match(r)){var a=this[n];this.removeEventListener(t[1],a,a.$),delete this[n]}}}i.selection.enter=ve,i.selection.enter.prototype=ye,ye.append=$.append,ye.empty=$.empty,ye.node=$.node,ye.call=$.call,ye.size=$.size,ye.select=function(e){for(var t,r,n,a,i,o=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var u=-1,c=a.length;++u<c;)(i=a[u])?(t.push(n[u]=r=e.call(a.parentNode,i.__data__,u,l)),r.__data__=i.__data__):t.push(null)}return W(o)},ye.insert=function(e,t){var r,n,a;return arguments.length<2&&(r=this,t=function(e,t,i){var o,l=r[i].update,s=l.length;for(i!=a&&(a=i,n=0),t>=n&&(n=t+1);!(o=l[n])&&++n<s;);return o}),$.insert.call(this,e,t)},i.select=function(e){var t;return"string"==typeof e?(t=[Z(e,s)]).parentNode=s.documentElement:(t=[e]).parentNode=u(e),W([t])},i.selectAll=function(e){var t;return"string"==typeof e?(t=l(J(e,s))).parentNode=s.documentElement:(t=l(e)).parentNode=null,W([t])},$.on=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=!1),e)this.each(me(r,e[r],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(me(e,t,r))};var xe=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function be(e,t){return function(r){var n=i.event;i.event=r,t[0]=this.__data__;try{e.apply(this,t)}finally{i.event=n}}}function _e(e,t){var r=be(e,t);return function(e){var t=this,n=e.relatedTarget;n&&(n===t||8&n.compareDocumentPosition(t))||r.call(t,e)}}s&&xe.forEach((function(e){"on"+e in s&&xe.remove(e)}));var we,Me=0;function Te(e){var t=".dragsuppress-"+ ++Me,r="click"+t,n=i.select(c(e)).on("touchmove"+t,G).on("dragstart"+t,G).on("selectstart"+t,G);if(null==we&&(we=!("onselectstart"in e)&&z(e.style,"userSelect")),we){var a=u(e).style,o=a[we];a[we]="none"}return function(e){if(n.on(t,null),we&&(a[we]=o),e){var i=function(){n.on(r,null)};n.on(r,(function(){G(),i()}),!0),setTimeout(i,0)}}}i.mouse=function(e){return Ae(e,Y())};var ke=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ae(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();if(ke<0){var a=c(e);if(a.scrollX||a.scrollY){var o=(r=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();ke=!(o.f||o.e),r.remove()}}return ke?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Se(){return i.event.changedTouches[0].identifier}i.touch=function(e,t,r){if(arguments.length<3&&(r=t,t=Y().changedTouches),t)for(var n,a=0,i=t.length;a<i;++a)if((n=t[a]).identifier===r)return Ae(e,n)},i.behavior.drag=function(){var e=U(a,"drag","dragstart","dragend"),t=null,r=o(j,i.mouse,c,"mousemove","mouseup"),n=o(Se,i.touch,I,"touchmove","touchend");function a(){this.on("mousedown.drag",r).on("touchstart.drag",n)}function o(r,n,a,o,l){return function(){var s,u=this,c=i.event.target.correspondingElement||i.event.target,f=u.parentNode,d=e.of(u,arguments),h=0,p=r(),g=".drag"+(null==p?"":"-"+p),v=i.select(a(c)).on(o+g,(function(){var e,t,r=n(f,p);r&&(e=r[0]-m[0],t=r[1]-m[1],h|=e|t,m=r,d({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:e,dy:t}))})).on(l+g,(function(){n(f,p)&&(v.on(o+g,null).on(l+g,null),y(h),d({type:"dragend"}))})),y=Te(c),m=n(f,p);s=t?[(s=t.apply(u,arguments)).x-m[0],s.y-m[1]]:[0,0],d({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},i.rebind(a,e,"on")},i.touches=function(e,t){return arguments.length<2&&(t=Y().touches),t?l(t).map((function(t){var r=Ae(e,t);return r.identifier=t.identifier,r})):[]};var Le=1e-6,De=Le*Le,Ce=Math.PI,Pe=2*Ce,Oe=Pe-Le,Re=Ce/2,Ee=Ce/180,Ie=180/Ce;function Ne(e){return e>1?Re:e<-1?-Re:Math.asin(e)}function ze(e){return((e=Math.exp(e))+1/e)/2}var Fe=Math.SQRT2;i.interpolateZoom=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],u=t[2],c=l-a,f=s-i,d=c*c+f*f;if(d<De)n=Math.log(u/o)/Fe,r=function(e){return[a+e*c,i+e*f,o*Math.exp(Fe*e*n)]};else{var h=Math.sqrt(d),p=(u*u-o*o+4*d)/(2*o*2*h),g=(u*u-o*o-4*d)/(2*u*2*h),v=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);n=(y-v)/Fe,r=function(e){var t,r=e*n,l=ze(v),s=o/(2*h)*(l*(t=Fe*r+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[a+s*c,i+s*f,o*l/ze(Fe*r+v)]}}return r.duration=1e3*n,r},i.behavior.zoom=function(){var e,t,r,n,a,o,l,u,f,d={x:0,y:0,k:1},h=[960,500],p=He,g=250,v=0,y="mousedown.zoom",m="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",_=U(w,"zoomstart","zoom","zoomend");function w(e){e.on(y,P).on(Be+".zoom",R).on("dblclick.zoom",E).on(b,O)}function M(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function T(e){d.k=Math.max(p[0],Math.min(p[1],e))}function k(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function A(e,r,n,a){e.__chart__={x:d.x,y:d.y,k:d.k},T(Math.pow(2,a)),k(t=r,n),e=i.select(e),g>0&&(e=e.transition().duration(g)),e.call(w.event)}function S(){l&&l.domain(o.range().map((function(e){return(e-d.x)/d.k})).map(o.invert)),f&&f.domain(u.range().map((function(e){return(e-d.y)/d.k})).map(u.invert))}function L(e){v++||e({type:"zoomstart"})}function D(e){S(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function C(e){--v||(e({type:"zoomend"}),t=null)}function P(){var e=this,t=_.of(e,arguments),r=0,n=i.select(c(e)).on(m,(function(){r=1,k(i.mouse(e),a),D(t)})).on(x,(function(){n.on(m,null).on(x,null),o(r),C(t)})),a=M(i.mouse(e)),o=Te(e);Xa.call(e),L(t)}function O(){var e,t=this,r=_.of(t,arguments),n={},o=0,l=".zoom-"+i.event.changedTouches[0].identifier,s="touchmove"+l,u="touchend"+l,c=[],f=i.select(t),h=Te(t);function p(){var r=i.touches(t);return e=d.k,r.forEach((function(e){e.identifier in n&&(n[e.identifier]=M(e))})),r}function g(){var e=i.event.target;i.select(e).on(s,v).on(u,m),c.push(e);for(var r=i.event.changedTouches,l=0,f=r.length;l<f;++l)n[r[l].identifier]=null;var h=p(),g=Date.now();if(1===h.length){if(g-a<500){var y=h[0];A(t,y,n[y.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),G()}a=g}else if(h.length>1){y=h[0];var x=h[1],b=y[0]-x[0],_=y[1]-x[1];o=b*b+_*_}}function v(){var l,s,u,c,f=i.touches(t);Xa.call(t);for(var d=0,h=f.length;d<h;++d,c=null)if(u=f[d],c=n[u.identifier]){if(s)break;l=u,s=c}if(c){var p=(p=u[0]-l[0])*p+(p=u[1]-l[1])*p,g=o&&Math.sqrt(p/o);l=[(l[0]+u[0])/2,(l[1]+u[1])/2],s=[(s[0]+c[0])/2,(s[1]+c[1])/2],T(g*e)}a=null,k(l,s),D(r)}function m(){if(i.event.touches.length){for(var e=i.event.changedTouches,t=0,a=e.length;t<a;++t)delete n[e[t].identifier];for(var o in n)return void p()}i.selectAll(c).on(l,null),f.on(y,P).on(b,O),h(),C(r)}g(),L(r),f.on(y,null).on(b,g)}function R(){var a=_.of(this,arguments);n?clearTimeout(n):(Xa.call(this),e=M(t=r||i.mouse(this)),L(a)),n=setTimeout((function(){n=null,C(a)}),50),G(),T(Math.pow(2,.002*je())*d.k),k(t,e),D(a)}function E(){var e=i.mouse(this),t=Math.log(d.k)/Math.LN2;A(this,e,M(e),i.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Be||(Be="onwheel"in s?(je=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(je=function(){return i.event.wheelDelta},"mousewheel"):(je=function(){return-i.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each((function(){var e=_.of(this,arguments),r=d;Qa?i.select(this).transition().each("start.zoom",(function(){d=this.__chart__||{x:0,y:0,k:1},L(e)})).tween("zoom:zoom",(function(){var n=h[0],a=h[1],o=t?t[0]:n/2,l=t?t[1]:a/2,s=i.interpolateZoom([(o-d.x)/d.k,(l-d.y)/d.k,n/d.k],[(o-r.x)/r.k,(l-r.y)/r.k,n/r.k]);return function(t){var r=s(t),a=n/r[2];this.__chart__=d={x:o-r[0]*a,y:l-r[1]*a,k:a},D(e)}})).each("interrupt.zoom",(function(){C(e)})).each("end.zoom",(function(){C(e)})):(this.__chart__=d,L(e),D(e),C(e))}))},w.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},S(),w):[d.x,d.y]},w.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},T(+e),S(),w):d.k},w.scaleExtent=function(e){return arguments.length?(p=null==e?He:[+e[0],+e[1]],w):p},w.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],w):r},w.size=function(e){return arguments.length?(h=e&&[+e[0],+e[1]],w):h},w.duration=function(e){return arguments.length?(g=+e,w):g},w.x=function(e){return arguments.length?(l=e,o=e.copy(),d={x:0,y:0,k:1},w):l},w.y=function(e){return arguments.length?(f=e,u=e.copy(),d={x:0,y:0,k:1},w):f},i.rebind(w,_,"on")};var je,Be,He=[0,1/0];function Ge(){}function Ye(e,t,r){return this instanceof Ye?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof Ye?new Ye(e.h,e.s,e.l):ct(""+e,ft,Ye):new Ye(e,t,r)}i.color=Ge,Ge.prototype.toString=function(){return this.rgb()+""},i.hsl=Ye;var Ue=Ye.prototype=new Ge;function qe(e,t,r){var n,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new it(i(e+120),i(e),i(e-120))}function Ve(e,t,r){return this instanceof Ve?(this.h=+e,this.c=+t,void(this.l=+r)):arguments.length<2?e instanceof Ve?new Ve(e.h,e.c,e.l):function(e,t,r){return e>0?new Ve(Math.atan2(r,t)*Ie,Math.sqrt(t*t+r*r),e):new Ve(NaN,NaN,e)}(e instanceof Je?e.l:(e=dt((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ve(e,t,r)}Ue.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ye(this.h,this.s,this.l/e)},Ue.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ye(this.h,this.s,e*this.l)},Ue.rgb=function(){return qe(this.h,this.s,this.l)},i.hcl=Ve;var We=Ve.prototype=new Ge;function Ze(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(r,Math.cos(e*=Ee)*t,Math.sin(e)*t)}function Je(e,t,r){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Ve?Ze(e.h,e.c,e.l):dt((e=it(e)).r,e.g,e.b):new Je(e,t,r)}We.brighter=function(e){return new Ve(this.h,this.c,Math.min(100,this.l+Xe*(arguments.length?e:1)))},We.darker=function(e){return new Ve(this.h,this.c,Math.max(0,this.l-Xe*(arguments.length?e:1)))},We.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},i.lab=Je;var Xe=18,$e=.95047,Ke=1,Qe=1.08883,et=Je.prototype=new Ge;function tt(e,t,r){var n=(e+16)/116,a=n+t/500,i=n-r/200;return new it(at(3.2404542*(a=rt(a)*$e)-1.5371385*(n=rt(n)*Ke)-.4985314*(i=rt(i)*Qe)),at(-.969266*a+1.8760108*n+.041556*i),at(.0556434*a-.2040259*n+1.0572252*i))}function rt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function nt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function at(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function it(e,t,r){return this instanceof it?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof it?new it(e.r,e.g,e.b):ct(""+e,it,qe):new it(e,t,r)}function ot(e){return new it(e>>16,e>>8&255,255&e)}function lt(e){return ot(e)+""}et.brighter=function(e){return new Je(Math.min(100,this.l+Xe*(arguments.length?e:1)),this.a,this.b)},et.darker=function(e){return new Je(Math.max(0,this.l-Xe*(arguments.length?e:1)),this.a,this.b)},et.rgb=function(){return tt(this.l,this.a,this.b)},i.rgb=it;var st=it.prototype=new Ge;function ut(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ct(e,t,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(pt(a[0]),pt(a[1]),pt(a[2]))}return(i=gt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ft(e,t,r){var n,a,i=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=e==o?(t-r)/l+(t<r?6:0):t==o?(r-e)/l+2:(e-t)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new Ye(n,a,s)}function dt(e,t,r){var n=nt((.4124564*(e=ht(e))+.3575761*(t=ht(t))+.1804375*(r=ht(r)))/$e),a=nt((.2126729*e+.7151522*t+.072175*r)/Ke);return Je(116*a-16,500*(n-a),200*(a-nt((.0193339*e+.119192*t+.9503041*r)/Qe)))}function ht(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}st.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t<a&&(t=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new it(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new it(a,a,a)},st.darker=function(e){return new it((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},st.hsl=function(){return ft(this.r,this.g,this.b)},st.toString=function(){return"#"+ut(this.r)+ut(this.g)+ut(this.b)};var gt=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function vt(e){return"function"==typeof e?e:function(){return e}}function yt(e){return function(t,r,n){return 2===arguments.length&&"function"==typeof r&&(n=r,r=null),mt(t,r,e,n)}}function mt(e,t,r,n){var a={},o=i.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;function f(){var e,t=u.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(u)||t>=200&&t<300||304===t){try{e=r.call(a,u)}catch(e){return void o.error.call(a,e)}o.load.call(a,e)}else o.error.call(a,u)}return self.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(e)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=f:u.onreadystatechange=function(){u.readyState>3&&f()},u.onprogress=function(e){var t=i.event;i.event=e;try{o.progress.call(a,u)}finally{i.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(c=e,a):c},a.response=function(e){return r=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}})),a.send=function(r,n,i){if(2===arguments.length&&"function"==typeof n&&(i=n,n=null),u.open(r,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=i&&a.on("error",i).on("load",(function(e){i(null,e)})),o.beforesend.call(a,u),u.send(null==n?null:n),a},a.abort=function(){return u.abort(),a},i.rebind(a,o,"on"),null==n?a:a.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(n))}gt.forEach((function(e,t){gt.set(e,ot(t))})),i.functor=vt,i.xhr=yt(I),i.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=mt(e,t,null==r?i:o(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?i:o(e)):r},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,(function(e,n){if(r)return r(e,n-1);var a=function(t){for(var r={},n=e.length,a=0;a<n;++a)r[e[a]]=t[a];return r};r=t?function(e,r){return t(a(e),r)}:a}))},a.parseRows=function(e,t){var r,a,i={},o={},l=[],s=e.length,u=0,c=0;function f(){if(u>=s)return o;if(a)return a=!1,i;var t=u;if(34===e.charCodeAt(t)){for(var r=t;r++<s;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return u=r+2,13===(l=e.charCodeAt(r+1))?(a=!0,10===e.charCodeAt(r+2)&&++u):10===l&&(a=!0),e.slice(t+1,r).replace(/""/g,'"')}for(;u<s;){var l,c=1;if(10===(l=e.charCodeAt(u++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(u)&&(++u,++c);else if(l!==n)continue;return e.slice(t,u-c)}return e.slice(t)}for(;(r=f())!==o;){for(var d=[];r!==i&&r!==o;)d.push(r),r=f();t&&null==(d=t(d,c++))||l.push(d)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var r=new E,n=[];return t.forEach((function(e){for(var t in e)r.has(t)||n.push(r.add(t))})),[n.map(s).join(e)].concat(t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var xt,bt,_t,wt,Mt=this[z(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function Tt(e,t,r){var n=arguments.length;n<2&&(t=0),n<3&&(r=Date.now());var a={c:e,t:r+t,n:null};return bt?bt.n=a:xt=a,bt=a,_t||(wt=clearTimeout(wt),_t=1,Mt(kt)),a}function kt(){var e=At(),t=St()-e;t>24?(isFinite(t)&&(clearTimeout(wt),wt=setTimeout(kt,t)),_t=0):(_t=1,Mt(kt))}function At(){for(var e=Date.now(),t=xt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function St(){for(var e,t=xt,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(e=t).n):t=e?e.n=t.n:xt=t.n;return bt=e,r}function Lt(e){return e[0]}function Dt(e){return e[1]}function Ct(e){for(var t,r,n,a=e.length,i=[0,1],o=2,l=2;l<a;l++){for(;o>1&&(t=e[i[o-2]],r=e[i[o-1]],n=e[l],(r[0]-t[0])*(n[1]-t[1])-(r[1]-t[1])*(n[0]-t[0])<=0);)--o;i[o++]=l}return i.slice(0,o)}function Pt(e,t){return e[0]-t[0]||e[1]-t[1]}i.timer=function(){Tt.apply(this,arguments)},i.timer.flush=function(){At(),St()},i.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},i.geom={},i.geom.hull=function(e){var t=Lt,r=Dt;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=vt(t),i=vt(r),o=e.length,l=[],s=[];for(n=0;n<o;n++)l.push([+a.call(this,e[n],n),+i.call(this,e[n],n),n]);for(l.sort(Pt),n=0;n<o;n++)s.push([l[n][0],-l[n][1]]);var u=Ct(l),c=Ct(s),f=c[0]===u[0],d=c[c.length-1]===u[u.length-1],h=[];for(n=u.length-1;n>=0;--n)h.push(e[l[u[n]][2]]);for(n=+f;n<c.length-d;++n)h.push(e[l[c[n]][2]]);return h}return n.x=function(e){return arguments.length?(t=e,n):t},n.y=function(e){return arguments.length?(r=e,n):r},n},i.geom.polygon=function(e){return V(e,Ot),e};var Ot=i.geom.polygon.prototype=[];function Rt(e,t,r){return(r[0]-t[0])*(e[1]-t[1])<(r[1]-t[1])*(e[0]-t[0])}function Et(e,t,r,n){var a=e[0],i=r[0],o=t[0]-a,l=n[0]-i,s=e[1],u=r[1],c=t[1]-s,f=n[1]-u,d=(l*(s-u)-f*(a-i))/(f*o-l*c);return[a+d*o,s+d*c]}function It(e){var t=e[0],r=e[e.length-1];return!(t[0]-r[0]||t[1]-r[1])}Ot.area=function(){for(var e,t=-1,r=this.length,n=this[r-1],a=0;++t<r;)e=n,n=this[t],a+=e[1]*n[0]-e[0]*n[1];return.5*a},Ot.centroid=function(e){var t,r,n=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++n<a;)t=l,l=this[n],r=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*r,o+=(t[1]+l[1])*r;return[i*e,o*e]},Ot.clip=function(e){for(var t,r,n,a,i,o,l=It(e),s=-1,u=this.length-It(this),c=this[u-1];++s<u;){for(t=e.slice(),e.length=0,a=this[s],i=t[(n=t.length-l)-1],r=-1;++r<n;)Rt(o=t[r],c,a)?(Rt(i,c,a)||e.push(Et(i,o,c,a)),e.push(o)):Rt(i,c,a)&&e.push(Et(i,o,c,a)),i=o;l&&e.push(e[0]),c=a}return e};var Nt,zt,Ft,jt,Bt,Ht=[],Gt=[];function Yt(){lr(this),this.edge=this.site=this.circle=null}function Ut(e){var t=Ht.pop()||new Yt;return t.site=e,t}function qt(e){er(e),Ft.remove(e),Ht.push(e),lr(e)}function Vt(e){var t=e.circle,r=t.x,n=t.cy,a={x:r,y:n},i=e.P,o=e.N,l=[e];qt(e);for(var s=i;s.circle&&w(r-s.circle.x)<Le&&w(n-s.circle.cy)<Le;)i=s.P,l.unshift(s),qt(s),s=i;l.unshift(s),er(s);for(var u=o;u.circle&&w(r-u.circle.x)<Le&&w(n-u.circle.cy)<Le;)o=u.N,l.push(u),qt(u),u=o;l.push(u),er(u);var c,f=l.length;for(c=1;c<f;++c)u=l[c],s=l[c-1],ar(u.edge,s.site,u.site,a);s=l[0],(u=l[f-1]).edge=nr(s.site,u.site,null,a),Qt(s),Qt(u)}function Wt(e){for(var t,r,n,a,i=e.x,o=e.y,l=Ft._;l;)if((n=Zt(l,o)-i)>Le)l=l.L;else{if(!((a=i-Jt(l,o))>Le)){n>-Le?(t=l.P,r=l):a>-Le?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=Ut(e);if(Ft.insert(t,s),t||r){if(t===r)return er(t),r=Ut(t.site),Ft.insert(s,r),s.edge=r.edge=nr(t.site,s.site),Qt(t),void Qt(r);if(r){er(t),er(r);var u=t.site,c=u.x,f=u.y,d=e.x-c,h=e.y-f,p=r.site,g=p.x-c,v=p.y-f,y=2*(d*v-h*g),m=d*d+h*h,x=g*g+v*v,b={x:(v*m-h*x)/y+c,y:(d*x-g*m)/y+f};ar(r.edge,u,p,b),s.edge=nr(u,e,null,b),r.edge=nr(e,p,null,b),Qt(t),Qt(r)}else s.edge=nr(t.site,s.site)}}function Zt(e,t){var r=e.site,n=r.x,a=r.y,i=a-t;if(!i)return n;var o=e.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,u=s-t;if(!u)return l;var c=l-n,f=1/i-1/u,d=c/u;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*u)-s+u/2+a-i/2)))/f+n:(n+l)/2}function Jt(e,t){var r=e.N;if(r)return Zt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Xt(e){this.site=e,this.edges=[]}function $t(e,t){return t.angle-e.angle}function Kt(){lr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,u=n.y-l,c=i.x-o,f=2*(s*(v=i.y-l)-u*c);if(!(f>=-De)){var d=s*s+u*u,h=c*c+v*v,p=(v*d-u*h)/f,g=(s*h-c*d)/f,v=g+l,y=Gt.pop()||new Kt;y.arc=e,y.site=a,y.x=p+o,y.y=v+Math.sqrt(p*p+g*g),y.cy=v,e.circle=y;for(var m=null,x=Bt._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}Bt.insert(m,y),m||(jt=y)}}}}function er(e){var t=e.circle;t&&(t.P||(jt=t.N),Bt.remove(t),Gt.push(t),lr(t),e.circle=null)}function tr(e,t){var r=e.b;if(r)return!0;var n,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],u=t[1][1],c=e.l,f=e.r,d=c.x,h=c.y,p=f.x,g=f.y,v=(d+p)/2,y=(h+g)/2;if(g===h){if(v<o||v>=l)return;if(d>p){if(i){if(i.y>=u)return}else i={x:v,y:s};r={x:v,y:u}}else{if(i){if(i.y<s)return}else i={x:v,y:u};r={x:v,y:s}}}else if(a=y-(n=(d-p)/(g-h))*v,n<-1||n>1)if(d>p){if(i){if(i.y>=u)return}else i={x:(s-a)/n,y:s};r={x:(u-a)/n,y:u}}else{if(i){if(i.y<s)return}else i={x:(u-a)/n,y:u};r={x:(s-a)/n,y:s}}else if(h<g){if(i){if(i.x>=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:n*l+a};r={x:o,y:n*o+a}}return e.a=i,e.b=r,!0}function rr(e,t){this.l=e,this.r=t,this.a=this.b=null}function nr(e,t,r,n){var a=new rr(e,t);return Nt.push(a),r&&ar(a,e,t,r),n&&ar(a,t,e,n),zt[e.i].edges.push(new ir(a,e,t)),zt[t.i].edges.push(new ir(a,t,e)),a}function ar(e,t,r,n){e.a||e.b?e.l===r?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=r)}function ir(e,t,r){var n=e.a,a=e.b;this.edge=e,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):e.l===t?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function or(){this._=null}function lr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function sr(e,t){var r=t,n=t.R,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function ur(e,t){var r=t,n=t.L,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function cr(e){for(;e.L;)e=e.L;return e}function fr(e,t){var r,n,a,i=e.sort(dr).pop();for(Nt=[],zt=new Array(e.length),Ft=new or,Bt=new or;;)if(a=jt,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===r&&i.y===n||(zt[i.i]=new Xt(i),Wt(i),r=i.x,n=i.y),i=e.pop();else{if(!a)break;Vt(a.arc)}t&&(function(e){for(var t,r,n,a,i,o=Nt,l=(r=e[0][0],n=e[0][1],a=e[1][0],i=e[1][1],function(e){var t,o=e.a,l=e.b,s=o.x,u=o.y,c=0,f=1,d=l.x-s,h=l.y-u;if(t=r-s,d||!(t>0)){if(t/=d,d<0){if(t<c)return;t<f&&(f=t)}else if(d>0){if(t>f)return;t>c&&(c=t)}if(t=a-s,d||!(t<0)){if(t/=d,d<0){if(t>f)return;t>c&&(c=t)}else if(d>0){if(t<c)return;t<f&&(f=t)}if(t=n-u,h||!(t>0)){if(t/=h,h<0){if(t<c)return;t<f&&(f=t)}else if(h>0){if(t>f)return;t>c&&(c=t)}if(t=i-u,h||!(t<0)){if(t/=h,h<0){if(t>f)return;t>c&&(c=t)}else if(h>0){if(t<c)return;t<f&&(f=t)}return c>0&&(e.a={x:s+c*d,y:u+c*h}),f<1&&(e.b={x:s+f*d,y:u+f*h}),e}}}}}),s=o.length;s--;)(!tr(t=o[s],e)||!l(t)||w(t.a.x-t.b.x)<Le&&w(t.a.y-t.b.y)<Le)&&(t.a=t.b=null,o.splice(s,1))}(t),function(e){for(var t,r,n,a,i,o,l,s,u,c,f=e[0][0],d=e[1][0],h=e[0][1],p=e[1][1],g=zt,v=g.length;v--;)if((i=g[v])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)n=(c=l[o].end()).x,a=c.y,t=(u=l[++o%s].start()).x,r=u.y,(w(n-t)>Le||w(a-r)>Le)&&(l.splice(o,0,new ir((y=i.site,m=c,x=w(n-f)<Le&&p-a>Le?{x:f,y:w(t-f)<Le?r:p}:w(a-p)<Le&&d-n>Le?{x:w(r-p)<Le?t:d,y:p}:w(n-d)<Le&&a-h>Le?{x:d,y:w(t-d)<Le?r:h}:w(a-h)<Le&&n-f>Le?{x:w(r-h)<Le?t:f,y:h}:null,b=void 0,(b=new rr(y,null)).a=m,b.b=x,Nt.push(b),b),i.site,null)),++s);var y,m,x,b}(t));var o={cells:zt,edges:Nt};return Ft=Bt=Nt=zt=null,o}function dr(e,t){return t.y-e.y||t.x-e.x}Xt.prototype.prepare=function(){for(var e,t=this.edges,r=t.length;r--;)(e=t[r].edge).b&&e.a||t.splice(r,1);return t.sort($t),t.length},ir.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},or.prototype={insert:function(e,t){var r,n,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=cr(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(a=n.R)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.R&&(sr(this,r),r=(e=r).U),r.C=!1,n.C=!0,ur(this,n)):(a=n.L)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.L&&(ur(this,r),r=(e=r).U),r.C=!1,n.C=!0,sr(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,a=e.U,i=e.L,o=e.R;if(r=i?o?cr(o):i:o,a?a.L===e?a.L=r:a.R=r:this._=r,i&&o?(n=r.C,r.C=e.C,r.L=i,i.U=r,r!==o?(a=r.U,r.U=e.U,e=r.R,a.L=e,r.R=o,o.U=r):(r.U=a,a=r,e=r.R)):(n=e.C,e=r),e&&(e.U=a),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,sr(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ur(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,sr(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,ur(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,sr(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,ur(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},i.geom.voronoi=function(e){var t=Lt,r=Dt,n=t,a=r,i=hr;if(e)return o(e);function o(e){var t=new Array(e.length),r=i[0][0],n=i[0][1],a=i[1][0],o=i[1][1];return fr(l(e),i).cells.forEach((function(i,l){var s=i.edges,u=i.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):u.x>=r&&u.x<=a&&u.y>=n&&u.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Le)*Le,y:Math.round(a(e,t)/Le)*Le,i:t}}))}return o.links=function(e){return fr(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return fr(l(e)).cells.forEach((function(r,n){for(var a,i,o,l,s=r.site,u=r.edges.sort($t),c=-1,f=u.length,d=u[f-1].edge,h=d.l===s?d.r:d.l;++c<f;)a=h,h=(d=u[c].edge).l===s?d.r:d.l,n<a.i&&n<h.i&&(o=a,l=h,((i=s).x-l.x)*(o.y-i.y)-(i.x-o.x)*(l.y-i.y)<0)&&t.push([e[n],e[a.i],e[h.i]])})),t},o.x=function(e){return arguments.length?(n=vt(t=e),o):t},o.y=function(e){return arguments.length?(a=vt(r=e),o):r},o.clipExtent=function(e){return arguments.length?(i=null==e?hr:e,o):i===hr?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===hr?null:i&&i[1]},o};var hr=[[-1e6,-1e6],[1e6,1e6]];function pr(e){return e.x}function gr(e){return e.y}function vr(e,t,r,n,a,i){if(!e(t,r,n,a,i)){var o=.5*(r+a),l=.5*(n+i),s=t.nodes;s[0]&&vr(e,s[0],r,n,o,l),s[1]&&vr(e,s[1],o,n,a,l),s[2]&&vr(e,s[2],r,l,o,i),s[3]&&vr(e,s[3],o,l,a,i)}}function yr(e,t){e=i.rgb(e),t=i.rgb(t);var r=e.r,n=e.g,a=e.b,o=t.r-r,l=t.g-n,s=t.b-a;return function(e){return"#"+ut(Math.round(r+o*e))+ut(Math.round(n+l*e))+ut(Math.round(a+s*e))}}function mr(e,t){var r,n={},a={};for(r in e)r in t?n[r]=Mr(e[r],t[r]):a[r]=e[r];for(r in t)r in e||(a[r]=t[r]);return function(e){for(r in n)a[r]=n[r](e);return a}}function xr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function br(e,t){var r,n,a,i=_r.lastIndex=wr.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=_r.exec(e))&&(n=wr.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:xr(r,n)})),i=wr.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}i.geom.delaunay=function(e){return i.geom.voronoi().triangles(e)},i.geom.quadtree=function(e,t,r,n,a){var i,o=Lt,l=Dt;if(i=arguments.length)return o=pr,l=gr,3===i&&(a=r,n=t,r=t=0),s(e);function s(e){var s,u,c,f,d,h,p,g,v,y=vt(o),m=vt(l);if(null!=t)h=t,p=r,g=n,v=a;else if(g=v=-(h=p=1/0),u=[],c=[],d=e.length,i)for(f=0;f<d;++f)(s=e[f]).x<h&&(h=s.x),s.y<p&&(p=s.y),s.x>g&&(g=s.x),s.y>v&&(v=s.y),u.push(s.x),c.push(s.y);else for(f=0;f<d;++f){var x=+y(s=e[f],f),b=+m(s,f);x<h&&(h=x),b<p&&(p=b),x>g&&(g=x),b>v&&(v=b),u.push(x),c.push(b)}var _=g-h,M=v-p;function T(e,t,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(w(s-r)+w(u-n)<.01)k(e,t,r,n,a,i,o,l);else{var c=e.point;e.x=e.y=e.point=null,k(e,c,s,u,a,i,o,l),k(e,t,r,n,a,i,o,l)}else e.x=r,e.y=n,e.point=t}else k(e,t,r,n,a,i,o,l)}function k(e,t,r,n,a,i,o,l){var s=.5*(a+o),u=.5*(i+l),c=r>=s,f=n>=u,d=f<<1|c;e.leaf=!1,c?a=s:o=s,f?i=u:l=u,T(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,i,o,l)}_>M?v=p+_:g=h+M;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(A,e,+y(e,++f),+m(e,f),h,p,g,v)}};if(A.visit=function(e){vr(e,A,h,p,g,v)},A.find=function(e){return function(e,t,r,n,a,i,o){var l,s=1/0;return function e(u,c,f,d,h){if(!(c>i||f>o||d<n||h<a)){if(p=u.point){var p,g=t-u.x,v=r-u.y,y=g*g+v*v;if(y<s){var m=Math.sqrt(s=y);n=t-m,a=r-m,i=t+m,o=r+m,l=p}}for(var x=u.nodes,b=.5*(c+d),_=.5*(f+h),w=(r>=_)<<1|t>=b,M=w+4;w<M;++w)if(u=x[3&w])switch(3&w){case 0:e(u,c,f,b,_);break;case 1:e(u,b,f,d,_);break;case 2:e(u,c,_,b,h);break;case 3:e(u,b,_,d,h)}}}(e,n,a,i,o),l}(A,e[0],e[1],h,p,g,v)},f=-1,null==t){for(;++f<d;)T(A,e[f],u[f],c[f],h,p,g,v);--f}else e.forEach(A.add);return u=c=e=s=null,A}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,r],[n,a]]},s.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),s):null==t?null:[n-t,a-r]},s},i.interpolateRgb=yr,i.interpolateObject=mr,i.interpolateNumber=xr,i.interpolateString=br;var _r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wr=new RegExp(_r.source,"g");function Mr(e,t){for(var r,n=i.interpolators.length;--n>=0&&!(r=i.interpolators[n](e,t)););return r}function Tr(e,t){var r,n=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(r=0;r<l;++r)n.push(Mr(e[r],t[r]));for(;r<i;++r)a[r]=e[r];for(;r<o;++r)a[r]=t[r];return function(e){for(r=0;r<l;++r)a[r]=n[r](e);return a}}i.interpolate=Mr,i.interpolators=[function(e,t){var r=typeof t;return("string"===r?gt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?yr:br:t instanceof Ge?yr:Array.isArray(t)?Tr:"object"===r&&isNaN(t)?mr:xr)(e,t)}],i.interpolateArray=Tr;var kr=function(){return I},Ar=i.map({linear:kr,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Cr},cubic:function(){return Pr},sin:function(){return Rr},exp:function(){return Er},circle:function(){return Ir},elastic:function(e,t){var r;return arguments.length<2&&(t=.45),arguments.length?r=t/Pe*Math.asin(1/e):(e=1,r=t/4),function(n){return 1+e*Math.pow(2,-10*n)*Math.sin((n-r)*Pe/t)}},back:function(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}},bounce:function(){return Nr}}),Sr=i.map({in:I,out:Lr,"in-out":Dr,"out-in":function(e){return Dr(Lr(e))}});function Lr(e){return function(t){return 1-e(1-t)}}function Dr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Cr(e){return e*e}function Pr(e){return e*e*e}function Or(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Rr(e){return 1-Math.cos(e*Re)}function Er(e){return Math.pow(2,10*(e-1))}function Ir(e){return 1-Math.sqrt(1-e*e)}function Nr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function zr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function Fr(e){var t,r,n,a=[e.a,e.b],i=[e.c,e.d],o=Br(a),l=jr(a,i),s=Br(((t=i)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*Ie,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*Ie:0}function jr(e,t){return e[0]*t[0]+e[1]*t[1]}function Br(e){var t=Math.sqrt(jr(e,e));return t&&(e[0]/=t,e[1]/=t),t}i.ease=function(e){var t,r=e.indexOf("-"),n=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r+1):"in";return n=Ar.get(n)||kr,a=Sr.get(a)||I,t=a(n.apply(null,o.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var r=e.h,n=e.c,a=e.l,o=t.h-r,l=t.c-n,s=t.l-a;return isNaN(l)&&(l=0,n=isNaN(n)?t.c:n),isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return Ze(r+o*e,n+l*e,a+s*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var r=e.h,n=e.s,a=e.l,o=t.h-r,l=t.s-n,s=t.l-a;return isNaN(l)&&(l=0,n=isNaN(n)?t.s:n),isNaN(o)?(o=0,r=isNaN(r)?t.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return qe(r+o*e,n+l*e,a+s*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var r=e.l,n=e.a,a=e.b,o=t.l-r,l=t.a-n,s=t.b-a;return function(e){return tt(r+o*e,n+l*e,a+s*e)+""}},i.interpolateRound=zr,i.transform=function(e){var t=s.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var r=t.transform.baseVal.consolidate()}return new Fr(r?r.matrix:Hr)})(e)},Fr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Hr={a:1,b:0,c:0,d:1,e:0,f:0};function Gr(e){return e.length?e.pop()+",":""}function Yr(e,t){var r=[],n=[];return e=i.transform(e),t=i.transform(t),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:xr(e[0],t[0])},{i:a-2,x:xr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(e.translate,t.translate,r,n),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(Gr(r)+"rotate(",null,")")-2,x:xr(e,t)})):t&&r.push(Gr(r)+"rotate("+t+")")}(e.rotate,t.rotate,r,n),function(e,t,r,n){e!==t?n.push({i:r.push(Gr(r)+"skewX(",null,")")-2,x:xr(e,t)}):t&&r.push(Gr(r)+"skewX("+t+")")}(e.skew,t.skew,r,n),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(Gr(r)+"scale(",null,",",null,")");n.push({i:a-4,x:xr(e[0],t[0])},{i:a-2,x:xr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(Gr(r)+"scale("+t+")")}(e.scale,t.scale,r,n),e=t=null,function(e){for(var t,a=-1,i=n.length;++a<i;)r[(t=n[a]).i]=t.x(e);return r.join("")}}function Ur(e,t){return t=(t-=e=+e)||1/t,function(r){return(r-e)/t}}function qr(e,t){return t=(t-=e=+e)||1/t,function(r){return Math.max(0,Math.min(1,(r-e)/t))}}function Vr(e){for(var t=e.source,r=e.target,n=function(e,t){if(e===t)return e;for(var r=Wr(e),n=Wr(t),a=r.pop(),i=n.pop(),o=null;a===i;)o=a,a=r.pop(),i=n.pop();return o}(t,r),a=[t];t!==n;)t=t.parent,a.push(t);for(var i=a.length;r!==n;)a.splice(i,0,r),r=r.parent;return a}function Wr(e){for(var t=[],r=e.parent;null!=r;)t.push(e),e=r,r=r.parent;return t.push(e),t}function Zr(e){e.fixed|=2}function Jr(e){e.fixed&=-7}function Xr(e){e.fixed|=4,e.px=e.x,e.py=e.y}function $r(e){e.fixed&=-5}function Kr(e,t,r){var n=0,a=0;if(e.charge=0,!e.leaf)for(var i,o=e.nodes,l=o.length,s=-1;++s<l;)null!=(i=o[s])&&(Kr(i,t,r),e.charge+=i.charge,n+=i.charge*i.cx,a+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=t*r[e.point.index];e.charge+=e.pointCharge=u,n+=u*e.point.x,a+=u*e.point.y}e.cx=n/e.charge,e.cy=a/e.charge}i.interpolateTransform=Yr,i.layout={},i.layout.bundle=function(){return function(e){for(var t=[],r=-1,n=e.length;++r<n;)t.push(Vr(e[r]));return t}},i.layout.chord=function(){var e,t,r,n,a,o,l,s={},u=0;function c(){var s,c,d,h,p,g={},v=[],y=i.range(n),m=[];for(e=[],t=[],s=0,h=-1;++h<n;){for(c=0,p=-1;++p<n;)c+=r[h][p];v.push(c),m.push(i.range(n)),s+=c}for(a&&y.sort((function(e,t){return a(v[e],v[t])})),o&&m.forEach((function(e,t){e.sort((function(e,n){return o(r[t][e],r[t][n])}))})),s=(Pe-u*n)/s,c=0,h=-1;++h<n;){for(d=c,p=-1;++p<n;){var x=y[h],b=m[x][p],_=r[x][b],w=c,M=c+=_*s;g[x+"-"+b]={index:x,subindex:b,startAngle:w,endAngle:M,value:_}}t[x]={index:x,startAngle:d,endAngle:c,value:v[x]},c+=u}for(h=-1;++h<n;)for(p=h-1;++p<n;){var T=g[h+"-"+p],k=g[p+"-"+h];(T.value||k.value)&&e.push(T.value<k.value?{source:k,target:T}:{source:T,target:k})}l&&f()}function f(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(a){return arguments.length?(n=(r=a)&&r.length,e=t=null,s):r},s.padding=function(r){return arguments.length?(u=r,e=t=null,s):u},s.sortGroups=function(r){return arguments.length?(a=r,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(o=t,e=null,s):o},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||c(),e},s.groups=function(){return t||c(),t},s},i.layout.force=function(){var e,t,r,n,a,o,l={},s=i.dispatch("start","tick","end"),u=[1,1],c=.9,f=Qr,d=en,h=-30,p=tn,g=.1,v=.64,y=[],m=[];function x(e){return function(t,r,n,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-r,s=i*i+o*o;if(l*l/v<s){if(s<p){var u=t.charge/s;e.px-=i*u,e.py-=o*u}return!0}t.point&&s&&s<p&&(u=t.pointCharge/s,e.px-=i*u,e.py-=o*u)}return!t.charge}}function b(e){e.px=i.event.x,e.py=i.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return e=null,s.end({type:"end",alpha:r=0}),!0;var t,l,f,d,p,v,b,_,w,M=y.length,T=m.length;for(l=0;l<T;++l)d=(f=m[l]).source,(v=(_=(p=f.target).x-d.x)*_+(w=p.y-d.y)*w)&&(_*=v=r*a[l]*((v=Math.sqrt(v))-n[l])/v,w*=v,p.x-=_*(b=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=w*b,d.x+=_*(b=1-b),d.y+=w*b);if((b=r*g)&&(_=u[0]/2,w=u[1]/2,l=-1,b))for(;++l<M;)(f=y[l]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(h)for(Kr(t=i.geom.quadtree(y),r,o),l=-1;++l<M;)(f=y[l]).fixed||t.visit(x(f));for(l=-1;++l<M;)(f=y[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(y=e,l):y},l.links=function(e){return arguments.length?(m=e,l):m},l.size=function(e){return arguments.length?(u=e,l):u},l.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.friction=function(e){return arguments.length?(c=+e,l):c},l.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,l):h},l.chargeDistance=function(e){return arguments.length?(p=e*e,l):Math.sqrt(p)},l.gravity=function(e){return arguments.length?(g=+e,l):g},l.theta=function(e){return arguments.length?(v=e*e,l):Math.sqrt(v)},l.alpha=function(t){return arguments.length?(t=+t,r?t>0?r=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:r=0})):t>0&&(s.start({type:"start",alpha:r=t}),e=Tt(l.tick)),l):r},l.start=function(){var e,t,r,i=y.length,s=m.length,c=u[0],p=u[1];for(e=0;e<i;++e)(r=y[e]).index=e,r.weight=0;for(e=0;e<s;++e)"number"==typeof(r=m[e]).source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<i;++e)r=y[e],isNaN(r.x)&&(r.x=g("x",c)),isNaN(r.y)&&(r.y=g("y",p)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(n=[],"function"==typeof f)for(e=0;e<s;++e)n[e]=+f.call(this,m[e],e);else for(e=0;e<s;++e)n[e]=f;if(a=[],"function"==typeof d)for(e=0;e<s;++e)a[e]=+d.call(this,m[e],e);else for(e=0;e<s;++e)a[e]=d;if(o=[],"function"==typeof h)for(e=0;e<i;++e)o[e]=+h.call(this,y[e],e);else for(e=0;e<i;++e)o[e]=h;function g(r,n){if(!t){for(t=new Array(i),u=0;u<i;++u)t[u]=[];for(u=0;u<s;++u){var a=m[u];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}for(var o,l=t[e],u=-1,c=l.length;++u<c;)if(!isNaN(o=l[u][r]))return o;return Math.random()*n}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=i.behavior.drag().origin(I).on("dragstart.force",Zr).on("drag.force",b).on("dragend.force",Jr)),!arguments.length)return t;this.on("mouseover.force",Xr).on("mouseout.force",$r).call(t)},i.rebind(l,s,"on")};var Qr=20,en=1,tn=1/0;function rn(e,t){return i.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=un,e}function nn(e,t){for(var r=[e];null!=(e=r.pop());)if(t(e),(a=e.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function an(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)r.push(i[o]);for(;null!=(e=n.pop());)t(e)}function on(e){return e.children}function ln(e){return e.value}function sn(e,t){return t.value-e.value}function un(e){return i.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}i.layout.hierarchy=function(){var e=sn,t=on,r=ln;function n(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(u=t.call(n,i,i.depth))&&(s=u.length)){for(var s,u,c;--s>=0;)o.push(c=u[s]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=u}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return an(a,(function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)})),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(nn(e,(function(e){e.children&&(e.value=0)})),an(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function r(e,t,n,a){var i=e.children;if(e.x=t,e.y=e.depth*a,e.dx=n,e.dy=a,i&&(o=i.length)){var o,l,s,u=-1;for(n=e.value?n/e.value:0;++u<o;)r(l=i[u],t,s=l.value*n,a),t+=s}}function n(e){var t=e.children,r=0;if(t&&(a=t.length))for(var a,i=-1;++i<a;)r=Math.max(r,n(t[i]));return 1+r}function a(a,i){var o=e.call(this,a,i);return r(o[0],0,t[0],t[1]/n(o[0])),o}return a.size=function(e){return arguments.length?(t=e,a):t},rn(a,e)},i.layout.pie=function(){var e=Number,t=cn,r=0,n=Pe,a=0;function o(l){var s,u=l.length,c=l.map((function(t,r){return+e.call(o,t,r)})),f=+("function"==typeof r?r.apply(this,arguments):r),d=("function"==typeof n?n.apply(this,arguments):n)-f,h=Math.min(Math.abs(d)/u,+("function"==typeof a?a.apply(this,arguments):a)),p=h*(d<0?-1:1),g=i.sum(c),v=g?(d-u*p)/g:0,y=i.range(u),m=[];return null!=t&&y.sort(t===cn?function(e,t){return c[t]-c[e]}:function(e,r){return t(l[e],l[r])}),y.forEach((function(e){m[e]={data:l[e],value:s=c[e],startAngle:f,endAngle:f+=s*v+p,padAngle:h}})),m}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(e){return arguments.length?(t=e,o):t},o.startAngle=function(e){return arguments.length?(r=e,o):r},o.endAngle=function(e){return arguments.length?(n=e,o):n},o.padAngle=function(e){return arguments.length?(a=e,o):a},o};var cn={};function fn(e){return e.x}function dn(e){return e.y}function hn(e,t,r){e.y0=t,e.y=r}i.layout.stack=function(){var e=I,t=vn,r=yn,n=hn,a=fn,o=dn;function l(s,u){if(!(h=s.length))return s;var c=s.map((function(t,r){return e.call(l,t,r)})),f=c.map((function(e){return e.map((function(e,t){return[a.call(l,e,t),o.call(l,e,t)]}))})),d=t.call(l,f,u);c=i.permute(c,d),f=i.permute(f,d);var h,p,g,v,y=r.call(l,f,u),m=c[0].length;for(g=0;g<m;++g)for(n.call(l,c[0][g],v=y[g],f[0][g][1]),p=1;p<h;++p)n.call(l,c[p][g],v+=f[p-1][g][1],f[p][g][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"==typeof e?e:pn.get(e)||vn,l):t},l.offset=function(e){return arguments.length?(r="function"==typeof e?e:gn.get(e)||yn,l):r},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(n=e,l):n},l};var pn=i.map({"inside-out":function(e){var t,r,n=e.length,a=e.map(mn),o=e.map(xn),l=i.range(n).sort((function(e,t){return a[e]-a[t]})),s=0,u=0,c=[],f=[];for(t=0;t<n;++t)r=l[t],s<u?(s+=o[r],c.push(r)):(u+=o[r],f.push(r));return f.reverse().concat(c)},reverse:function(e){return i.range(e.length).reverse()},default:vn}),gn=i.map({silhouette:function(e){var t,r,n,a=e.length,i=e[0].length,o=[],l=0,s=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];n>l&&(l=n),o.push(n)}for(r=0;r<i;++r)s[r]=(l-o[r])/2;return s},wiggle:function(e){var t,r,n,a,i,o,l,s,u,c=e.length,f=e[0],d=f.length,h=[];for(h[0]=s=u=0,r=1;r<d;++r){for(t=0,a=0;t<c;++t)a+=e[t][r][1];for(t=0,i=0,l=f[r][0]-f[r-1][0];t<c;++t){for(n=0,o=(e[t][r][1]-e[t][r-1][1])/(2*l);n<t;++n)o+=(e[n][r][1]-e[n][r-1][1])/l;i+=o*e[t][r][1]}h[r]=s-=a?i/a*l:0,s<u&&(u=s)}for(r=0;r<d;++r)h[r]-=u;return h},expand:function(e){var t,r,n,a=e.length,i=e[0].length,o=1/a,l=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];if(n)for(t=0;t<a;t++)e[t][r][1]/=n;else for(t=0;t<a;t++)e[t][r][1]=o}for(r=0;r<i;++r)l[r]=0;return l},zero:yn});function vn(e){return i.range(e.length)}function yn(e){for(var t=-1,r=e[0].length,n=[];++t<r;)n[t]=0;return n}function mn(e){for(var t,r=1,n=0,a=e[0][1],i=e.length;r<i;++r)(t=e[r][1])>a&&(n=r,a=t);return n}function xn(e){return e.reduce(bn,0)}function bn(e,t){return e+t[1]}function _n(e,t){return wn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function wn(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,i=[];++r<=t;)i[r]=a*r+n;return i}function Mn(e){return[i.min(e),i.max(e)]}function Tn(e,t){return e.value-t.value}function kn(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function An(e,t){e._pack_next=t,t._pack_prev=e}function Sn(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function Ln(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,i,o,l,s,u=1/0,c=-1/0,f=1/0,d=-1/0;if(t.forEach(Dn),(r=t[0]).x=-r.r,r.y=0,x(r),s>1&&((n=t[1]).x=n.r,n.y=0,x(n),s>2))for(On(r,n,a=t[2]),x(a),kn(r,a),r._pack_prev=a,kn(a,n),n=r._pack_next,i=3;i<s;i++){On(r,n,a=t[i]);var h=0,p=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,p++)if(Sn(o,a)){h=1;break}if(1==h)for(l=r._pack_prev;l!==o._pack_prev&&!Sn(l,a);l=l._pack_prev,g++);h?(p<g||p==g&&n.r<r.r?An(r,n=o):An(r=l,n),i--):(kn(r,a),n=a,x(a))}var v=(u+c)/2,y=(f+d)/2,m=0;for(i=0;i<s;i++)(a=t[i]).x-=v,a.y-=y,m=Math.max(m,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=m,t.forEach(Cn)}function x(e){u=Math.min(e.x-e.r,u),c=Math.max(e.x+e.r,c),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function Dn(e){e._pack_next=e._pack_prev=e}function Cn(e){delete e._pack_next,delete e._pack_prev}function Pn(e,t,r,n){var a=e.children;if(e.x=t+=n*e.x,e.y=r+=n*e.y,e.r*=n,a)for(var i=-1,o=a.length;++i<o;)Pn(a[i],t,r,n)}function On(e,t,r){var n=e.r+r.r,a=t.x-e.x,i=t.y-e.y;if(n&&(a||i)){var o=t.r+r.r,l=a*a+i*i,s=.5+((n*=n)-(o*=o))/(2*l),u=Math.sqrt(Math.max(0,2*o*(n+l)-(n-=l)*n-o*o))/(2*l);r.x=e.x+s*a+u*i,r.y=e.y+s*i-u*a}else r.x=e.x+n,r.y=e.y}function Rn(e,t){return e.parent==t.parent?1:2}function En(e){var t=e.children;return t.length?t[0]:e.t}function In(e){var t,r=e.children;return(t=r.length)?r[t-1]:e.t}function Nn(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function zn(e,t,r){return e.a.parent===t.parent?e.a:r}function Fn(e){var t=e.children;return t&&t.length?Fn(t[0]):e}function jn(e){var t,r=e.children;return r&&(t=r.length)?jn(r[t-1]):e}function Bn(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Hn(e,t){var r=e.x+t[3],n=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(r+=a/2,a=0),i<0&&(n+=i/2,i=0),{x:r,y:n,dx:a,dy:i}}function Gn(e){var t=e[0],r=e[e.length-1];return t<r?[t,r]:[r,t]}function Yn(e){return e.rangeExtent?e.rangeExtent():Gn(e.range())}function Un(e,t,r,n){var a=r(e[0],e[1]),i=n(t[0],t[1]);return function(e){return i(a(e))}}function qn(e,t){var r,n=0,a=e.length-1,i=e[n],o=e[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),e[n]=t.floor(i),e[a]=t.ceil(o),e}function Vn(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Wn}i.layout.histogram=function(){var e=!0,t=Number,r=Mn,n=_n;function a(a,o){for(var l,s,u=[],c=a.map(t,this),f=r.call(this,c,o),d=n.call(this,f,c,o),h=(o=-1,c.length),p=d.length-1,g=e?1:1/h;++o<p;)(l=u[o]=[]).dx=d[o+1]-(l.x=d[o]),l.y=0;if(p>0)for(o=-1;++o<h;)(s=c[o])>=f[0]&&s<=f[1]&&((l=u[i.bisect(d,s,1,p)-1]).y+=g,l.push(a[o]));return u}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(r=vt(e),a):r},a.bins=function(e){return arguments.length?(n="number"==typeof e?function(t){return wn(t,e)}:vt(e),a):n},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(Tn),r=0,n=[1,1];function a(a,i){var o=t.call(this,a,i),l=o[0],s=n[0],u=n[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(l.x=l.y=0,an(l,(function(e){e.r=+c(e.value)})),an(l,Ln),r){var f=r*(e?1:Math.max(2*l.r/s,2*l.r/u))/2;an(l,(function(e){e.r+=f})),an(l,Ln),an(l,(function(e){e.r-=f}))}return Pn(l,s/2,u/2,e?1:1/Math.max(2*l.r/s,2*l.r/u)),o}return a.size=function(e){return arguments.length?(n=e,a):n},a.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(r=+e,a):r},rn(a,t)},i.layout.tree=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Rn,r=[1,1],n=null;function a(a,i){var u=e.call(this,a,i),c=u[0],f=function(e){for(var t,r={A:null,children:[e]},n=[r];null!=(t=n.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)n.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return r.children[0]}(c);if(an(f,o),f.parent.m=-f.z,nn(f,l),n)nn(c,s);else{var d=c,h=c,p=c;nn(c,(function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>p.depth&&(p=e)}));var g=t(d,h)/2-d.x,v=r[0]/(h.x+t(h,d)/2+g),y=r[1]/(p.depth||1);nn(c,(function(e){e.x=(e.x+g)*v,e.y=e.depth*y}))}return u}function o(e){var r=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(r.length){!function(e){for(var t,r=0,n=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(r[0].z+r[r.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,r,n){if(r){for(var a,i=e,o=e,l=r,s=i.parent.children[0],u=i.m,c=o.m,f=l.m,d=s.m;l=In(l),i=En(i),l&&i;)s=En(s),(o=In(o)).a=e,(a=l.z+f-i.z-u+t(l._,i._))>0&&(Nn(zn(l,e,n),e,a),u+=a,c+=a),f+=l.m,u+=i.m,d+=s.m,c+=o.m;l&&!In(o)&&(o.t=l,o.m+=f-c),i&&!En(s)&&(s.t=i,s.m+=u-d,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=r[0],e.y=e.depth*r[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e)?s:null,a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null==(r=e)?null:s,a):n?r:null},rn(a,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=Rn,r=[1,1],n=!1;function a(a,o){var l,s=e.call(this,a,o),u=s[0],c=0;an(u,(function(e){var r=e.children;r&&r.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),e.y=function(e){return 1+i.max(e,(function(e){return e.y}))}(r)):(e.x=l?c+=t(e,l):0,e.y=0,l=e)}));var f=Fn(u),d=jn(u),h=f.x-t(f,d)/2,p=d.x+t(d,f)/2;return an(u,n?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-h)/(p-h)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e),a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null!=(r=e),a):n?r:null},rn(a,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),r=Math.round,n=[1,1],a=null,o=Bn,l=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var r,n,a=-1,i=e.length;++a<i;)n=(r=e[a]).value*(t<0?0:t),r.area=isNaN(n)||n<=0?0:n}function f(e){var t=e.children;if(t&&t.length){var r,n,a,i=o(e),l=[],u=t.slice(),d=1/0,g="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(c(u,i.dx*i.dy/e.value),l.area=0;(a=u.length)>0;)l.push(r=u[a-1]),l.area+=r.area,"squarify"!==s||(n=h(l,g))<=d?(u.pop(),d=n):(l.area-=l.pop().area,p(l,g,i,!1),g=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(p(l,g,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var r,n=o(e),a=t.slice(),i=[];for(c(a,n.dx*n.dy/e.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(p(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);t.forEach(d)}}function h(e,t){for(var r,n=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(r=e[o].area)&&(r<i&&(i=r),r>a&&(a=r));return t*=t,(n*=n)?Math.max(t*a*u/n,n/(t*i*u)):1/0}function p(e,t,n,a){var i,o=-1,l=e.length,s=n.x,u=n.y,c=t?r(e.area/t):0;if(t==n.dx){for((a||c>n.dy)&&(c=n.dy);++o<l;)(i=e[o]).x=s,i.y=u,i.dy=c,s+=i.dx=Math.min(n.x+n.dx-s,c?r(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((a||c>n.dx)&&(c=n.dx);++o<l;)(i=e[o]).x=s,i.y=u,i.dx=c,u+=i.dy=Math.min(n.y+n.dy-u,c?r(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-u,n.x+=c,n.dx-=c}}function g(r){var a=e||t(r),i=a[0];return i.x=i.y=0,i.value?(i.dx=n[0],i.dy=n[1]):i.dx=i.dy=0,e&&t.revalue(i),c([i],i.dx*i.dy/i.value),(e?d:f)(i),l&&(e=a),a}return g.size=function(e){return arguments.length?(n=e,g):n},g.padding=function(e){if(!arguments.length)return a;function t(t){return Hn(t,e)}var r;return o=null==(a=e)?Bn:"function"==(r=typeof e)?function(t){var r=e.call(g,t,t.depth);return null==r?Bn(t):Hn(t,"number"==typeof r?[r,r,r,r]:r)}:"number"===r?(e=[e,e,e,e],t):t,g},g.round=function(e){return arguments.length?(r=e?Math.round:Number,g):r!=Number},g.sticky=function(t){return arguments.length?(l=t,e=null,g):l},g.ratio=function(e){return arguments.length?(u=e,g):u},g.mode=function(e){return arguments.length?(s=e+"",g):s},rn(g,t)},i.random={normal:function(e,t){var r=arguments.length;return r<2&&(t=1),r<1&&(e=0),function(){var r,n,a;do{a=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!a||a>1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,r=0;r<e;r++)t+=Math.random();return t}}},i.scale={};var Wn={floor:I,ceil:I};function Zn(e,t,r,n){var a=[],o=[],l=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<=s;)a.push(r(e[l-1],e[l])),o.push(n(t[l-1],t[l]));return function(t){var r=i.bisect(e,t,1,s)-1;return o[r](a[r](t))}}function Jn(e,t,r,n){var a,i;function o(){var o=Math.min(e.length,t.length)>2?Zn:Un,s=n?qr:Ur;return a=o(e,t,s,r),i=o(t,e,s,Mr),l}function l(e){return a(e)}return l.invert=function(e){return i(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},l.range=function(e){return arguments.length?(t=e,o()):t},l.rangeRound=function(e){return l.range(e).interpolate(zr)},l.clamp=function(e){return arguments.length?(n=e,o()):n},l.interpolate=function(e){return arguments.length?(r=e,o()):r},l.ticks=function(t){return Qn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return $n(e,t),o()},l.copy=function(){return Jn(e,t,r,n)},o()}function Xn(e,t){return i.rebind(e,t,"range","rangeRound","interpolate","clamp")}function $n(e,t){return qn(e,Vn(Kn(e,t)[2])),qn(e,Vn(Kn(e,t)[2])),e}function Kn(e,t){null==t&&(t=10);var r=Gn(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),i=t/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function Qn(e,t){return i.range.apply(i,Kn(e,t))}function ea(e,t,r,n){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(a(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(a)),o):n},o.base=function(r){return arguments.length?(t=+r,e.domain(n.map(a)),o):t},o.nice=function(){var t=qn(n.map(a),r?Math:ta);return e.domain(t),n=t.map(i),o},o.ticks=function(){var e=Gn(n),o=[],l=e[0],s=e[1],u=Math.floor(a(l)),c=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(c-u)){if(r){for(;u<c;u++)for(var d=1;d<f;d++)o.push(i(u)*d);o.push(i(u))}else for(o.push(i(u));u++<c;)for(d=f-1;d>0;d--)o.push(i(u)*d);for(u=0;o[u]<l;u++);for(c=o.length;o[c-1]>s;c--);o=o.slice(u,c)}return o},o.copy=function(){return ea(e.copy(),t,r,n)},Xn(o,e)}i.scale.linear=function(){return Jn([0,1],[0,1],Mr,!1)},i.scale.log=function(){return ea(i.scale.linear().domain([0,1]),10,!0,[1,10])};var ta={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function ra(e,t,r){var n=na(t),a=na(1/t);function i(t){return e(n(t))}return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),i):r},i.ticks=function(e){return Qn(r,e)},i.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},i.nice=function(e){return i.domain($n(r,e))},i.exponent=function(o){return arguments.length?(n=na(t=o),a=na(1/t),e.domain(r.map(n)),i):t},i.copy=function(){return ra(e.copy(),t,r)},Xn(i,e)}function na(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function aa(e,t){var r,n,a;function o(a){return n[((r.get(a)||("range"===t.t?r.set(a,e.push(a)):NaN))-1)%n.length]}function l(t,r){return i.range(e.length).map((function(e){return t+r*e}))}return o.domain=function(n){if(!arguments.length)return e;e=[],r=new T;for(var a,i=-1,l=n.length;++i<l;)r.has(a=n[i])||r.set(a,e.push(a));return o[t.t].apply(o,t.a)},o.range=function(e){return arguments.length?(n=e,a=0,t={t:"range",a:arguments},o):n},o.rangePoints=function(r,i){arguments.length<2&&(i=0);var s=r[0],u=r[1],c=e.length<2?(s=(s+u)/2,0):(u-s)/(e.length-1+i);return n=l(s+c*i/2,c),a=0,t={t:"rangePoints",a:arguments},o},o.rangeRoundPoints=function(r,i){arguments.length<2&&(i=0);var s=r[0],u=r[1],c=e.length<2?(s=u=Math.round((s+u)/2),0):(u-s)/(e.length-1+i)|0;return n=l(s+Math.round(c*i/2+(u-s-(e.length-1+i)*c)/2),c),a=0,t={t:"rangeRoundPoints",a:arguments},o},o.rangeBands=function(r,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var u=r[1]<r[0],c=r[u-0],f=(r[1-u]-c)/(e.length-i+2*s);return n=l(c+f*s,f),u&&n.reverse(),a=f*(1-i),t={t:"rangeBands",a:arguments},o},o.rangeRoundBands=function(r,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var u=r[1]<r[0],c=r[u-0],f=r[1-u],d=Math.floor((f-c)/(e.length-i+2*s));return n=l(c+Math.round((f-c-(e.length-i)*d)/2),d),u&&n.reverse(),a=Math.round(d*(1-i)),t={t:"rangeRoundBands",a:arguments},o},o.rangeBand=function(){return a},o.rangeExtent=function(){return Gn(t.a[0])},o.copy=function(){return aa(e,t)},o.domain(e)}i.scale.pow=function(){return ra(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return aa([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(ia)},i.scale.category20=function(){return i.scale.ordinal().range(oa)},i.scale.category20b=function(){return i.scale.ordinal().range(la)},i.scale.category20c=function(){return i.scale.ordinal().range(sa)};var ia=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(lt),oa=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(lt),la=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(lt),sa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(lt);function ua(e,t){var r;function n(){var n=0,o=t.length;for(r=[];++n<o;)r[n-1]=i.quantile(e,n/o);return a}function a(e){if(!isNaN(e=+e))return t[i.bisect(r,e)]}return a.domain=function(t){return arguments.length?(e=t.map(y).filter(m).sort(v),n()):e},a.range=function(e){return arguments.length?(t=e,n()):t},a.quantiles=function(){return r},a.invertExtent=function(n){return(n=t.indexOf(n))<0?[NaN,NaN]:[n>0?r[n-1]:e[0],n<r.length?r[n]:e[e.length-1]]},a.copy=function(){return ua(e,t)},n()}function ca(e,t,r){var n,a;function i(t){return r[Math.max(0,Math.min(a,Math.floor(n*(t-e))))]}function o(){return n=r.length/(t-e),a=r.length-1,i}return i.domain=function(r){return arguments.length?(e=+r[0],t=+r[r.length-1],o()):[e,t]},i.range=function(e){return arguments.length?(r=e,o()):r},i.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/n+e,t+1/n]},i.copy=function(){return ca(e,t,r)},o()}function fa(e,t){function r(r){if(r<=r)return t[i.bisect(e,r)]}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(e){return arguments.length?(t=e,r):t},r.invertExtent=function(r){return r=t.indexOf(r),[e[r-1],e[r]]},r.copy=function(){return fa(e,t)},r}function da(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(e=r.map(t),t):e},t.ticks=function(t){return Qn(e,t)},t.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},t.copy=function(){return da(e)},t}function ha(){return 0}i.scale.quantile=function(){return ua([],[])},i.scale.quantize=function(){return ca(0,1,[0,1])},i.scale.threshold=function(){return fa([.5],[0,1])},i.scale.identity=function(){return da([0,1])},i.svg={},i.svg.arc=function(){var e=ga,t=va,r=ha,n=pa,a=ya,i=ma,o=xa;function l(){var l=Math.max(0,+e.apply(this,arguments)),u=Math.max(0,+t.apply(this,arguments)),c=a.apply(this,arguments)-Re,f=i.apply(this,arguments)-Re,d=Math.abs(f-c),h=c>f?0:1;if(u<l&&(p=u,u=l,l=p),d>=Oe)return s(u,h)+(l?s(l,1-h):"")+"Z";var p,g,v,y,m,x,b,_,w,M,T,k,A=0,S=0,L=[];if((y=(+o.apply(this,arguments)||0)/2)&&(v=n===pa?Math.sqrt(l*l+u*u):+n.apply(this,arguments),h||(S*=-1),u&&(S=Ne(v/u*Math.sin(y))),l&&(A=Ne(v/l*Math.sin(y)))),u){m=u*Math.cos(c+S),x=u*Math.sin(c+S),b=u*Math.cos(f-S),_=u*Math.sin(f-S);var D=Math.abs(f-c-2*S)<=Ce?0:1;if(S&&ba(m,x,b,_)===h^D){var C=(c+f)/2;m=u*Math.cos(C),x=u*Math.sin(C),b=_=null}}else m=x=0;if(l){w=l*Math.cos(f-A),M=l*Math.sin(f-A),T=l*Math.cos(c+A),k=l*Math.sin(c+A);var P=Math.abs(c-f+2*A)<=Ce?0:1;if(A&&ba(w,M,T,k)===1-h^P){var O=(c+f)/2;w=l*Math.cos(O),M=l*Math.sin(O),T=k=null}}else w=M=0;if(d>Le&&(p=Math.min(Math.abs(u-l)/2,+r.apply(this,arguments)))>.001){g=l<u^h?0:1;var R=p,E=p;if(d<Ce){var I=null==T?[w,M]:null==b?[m,x]:Et([m,x],[T,k],[b,_],[w,M]),N=m-I[0],z=x-I[1],F=b-I[0],j=_-I[1],B=1/Math.sin(Math.acos((N*F+z*j)/(Math.sqrt(N*N+z*z)*Math.sqrt(F*F+j*j)))/2),H=Math.sqrt(I[0]*I[0]+I[1]*I[1]);E=Math.min(p,(l-H)/(B-1)),R=Math.min(p,(u-H)/(B+1))}if(null!=b){var G=_a(null==T?[w,M]:[T,k],[m,x],u,R,h),Y=_a([b,_],[w,M],u,R,h);p===R?L.push("M",G[0],"A",R,",",R," 0 0,",g," ",G[1],"A",u,",",u," 0 ",1-h^ba(G[1][0],G[1][1],Y[1][0],Y[1][1]),",",h," ",Y[1],"A",R,",",R," 0 0,",g," ",Y[0]):L.push("M",G[0],"A",R,",",R," 0 1,",g," ",Y[0])}else L.push("M",m,",",x);if(null!=T){var U=_a([m,x],[T,k],l,-E,h),q=_a([w,M],null==b?[m,x]:[b,_],l,-E,h);p===E?L.push("L",q[0],"A",E,",",E," 0 0,",g," ",q[1],"A",l,",",l," 0 ",h^ba(q[1][0],q[1][1],U[1][0],U[1][1]),",",1-h," ",U[1],"A",E,",",E," 0 0,",g," ",U[0]):L.push("L",q[0],"A",E,",",E," 0 0,",g," ",U[0])}else L.push("L",w,",",M)}else L.push("M",m,",",x),null!=b&&L.push("A",u,",",u," 0 ",D,",",h," ",b,",",_),L.push("L",w,",",M),null!=T&&L.push("A",l,",",l," 0 ",P,",",1-h," ",T,",",k);return L.push("Z"),L.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=vt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=vt(e),l):t},l.cornerRadius=function(e){return arguments.length?(r=vt(e),l):r},l.padRadius=function(e){return arguments.length?(n=e==pa?pa:vt(e),l):n},l.startAngle=function(e){return arguments.length?(a=vt(e),l):a},l.endAngle=function(e){return arguments.length?(i=vt(e),l):i},l.padAngle=function(e){return arguments.length?(o=vt(e),l):o},l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Re;return[Math.cos(n)*r,Math.sin(n)*r]},l};var pa="auto";function ga(e){return e.innerRadius}function va(e){return e.outerRadius}function ya(e){return e.startAngle}function ma(e){return e.endAngle}function xa(e){return e&&e.padAngle}function ba(e,t,r,n){return(e-r)*t-(t-n)*e>0?0:1}function _a(e,t,r,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,u=-l*i,c=e[0]+s,f=e[1]+u,d=t[0]+s,h=t[1]+u,p=(c+d)/2,g=(f+h)/2,v=d-c,y=h-f,m=v*v+y*y,x=r-n,b=c*h-d*f,_=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),w=(b*y-v*_)/m,M=(-b*v-y*_)/m,T=(b*y+v*_)/m,k=(-b*v+y*_)/m,A=w-p,S=M-g,L=T-p,D=k-g;return A*A+S*S>L*L+D*D&&(w=T,M=k),[[w-s,M-u],[w*r/x,M*r/x]]}function wa(){return!0}function Ma(e){var t=Lt,r=Dt,n=wa,a=ka,i=a.key,o=.7;function l(i){var l,s=[],u=[],c=-1,f=i.length,d=vt(t),h=vt(r);function p(){s.push("M",a(e(u),o))}for(;++c<f;)n.call(this,l=i[c],c)?u.push([+d.call(this,l,c),+h.call(this,l,c)]):u.length&&(p(),u=[]);return u.length&&p(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(r=e,l):r},l.defined=function(e){return arguments.length?(n=e,l):n},l.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=Ta.get(e)||ka).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}i.svg.line=function(){return Ma(I)};var Ta=i.map({linear:ka,"linear-closed":Aa,step:function(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);return r>1&&a.push("H",n[0]),a.join("")},"step-before":Sa,"step-after":La,basis:Pa,"basis-open":function(e){if(e.length<4)return ka(e);for(var t,r=[],n=-1,a=e.length,i=[0],o=[0];++n<3;)t=e[n],i.push(t[0]),o.push(t[1]);for(r.push(Oa(Ia,i)+","+Oa(Ia,o)),--n;++n<a;)t=e[n],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Na(r,i,o);return r.join("")},"basis-closed":function(e){for(var t,r,n=-1,a=e.length,i=a+4,o=[],l=[];++n<4;)r=e[n%a],o.push(r[0]),l.push(r[1]);for(t=[Oa(Ia,o),",",Oa(Ia,l)],--n;++n<i;)r=e[n%a],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),Na(t,o,l);return t.join("")},bundle:function(e,t){var r=e.length-1;if(r)for(var n,a,i=e[0][0],o=e[0][1],l=e[r][0]-i,s=e[r][1]-o,u=-1;++u<=r;)a=u/r,(n=e[u])[0]=t*n[0]+(1-t)*(i+a*l),n[1]=t*n[1]+(1-t)*(o+a*s);return Pa(e)},cardinal:function(e,t){return e.length<3?ka(e):e[0]+Da(e,Ca(e,t))},"cardinal-open":function(e,t){return e.length<4?ka(e):e[1]+Da(e.slice(1,-1),Ca(e,t))},"cardinal-closed":function(e,t){return e.length<3?Aa(e):e[0]+Da((e.push(e[0]),e),Ca([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?ka(e):e[0]+Da(e,function(e){for(var t,r,n,a,i=[],o=function(e){for(var t=0,r=e.length-1,n=[],a=e[0],i=e[1],o=n[0]=za(a,i);++t<r;)n[t]=(o+(o=za(a=i,i=e[t+1])))/2;return n[t]=o,n}(e),l=-1,s=e.length-1;++l<s;)t=za(e[l],e[l+1]),w(t)<Le?o[l]=o[l+1]=0:(a=(r=o[l]/t)*r+(n=o[l+1]/t)*n)>9&&(a=3*t/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n);for(l=-1;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function ka(e){return e.length>1?e.join("L"):e+"Z"}function Aa(e){return e.join("L")+"Z"}function Sa(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("V",(n=e[t])[1],"H",n[0]);return a.join("")}function La(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n=e[t])[0],"V",n[1]);return a.join("")}function Da(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return ka(e);var r=e.length!=t.length,n="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(r&&(n+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var u=2;u<t.length;u++,s++)i=e[s],l=t[u],n+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(r){var c=e[s];n+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+c[0]+","+c[1]}return n}function Ca(e,t){for(var r,n=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)r=i,i=o,o=e[l],n.push([a*(o[0]-r[0]),a*(o[1]-r[1])]);return n}function Pa(e){if(e.length<3)return ka(e);var t=1,r=e.length,n=e[0],a=n[0],i=n[1],o=[a,a,a,(n=e[1])[0]],l=[i,i,i,n[1]],s=[a,",",i,"L",Oa(Ia,o),",",Oa(Ia,l)];for(e.push(e[r-1]);++t<=r;)n=e[t],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),Na(s,o,l);return e.pop(),s.push("L",n),s.join("")}function Oa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}Ta.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var Ra=[0,2/3,1/3,0],Ea=[0,1/3,2/3,0],Ia=[0,1/6,2/3,1/6];function Na(e,t,r){e.push("C",Oa(Ra,t),",",Oa(Ra,r),",",Oa(Ea,t),",",Oa(Ea,r),",",Oa(Ia,t),",",Oa(Ia,r))}function za(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Fa(e){for(var t,r,n,a=-1,i=e.length;++a<i;)r=(t=e[a])[0],n=t[1]-Re,t[0]=r*Math.cos(n),t[1]=r*Math.sin(n);return e}function ja(e){var t=Lt,r=Lt,n=0,a=Dt,i=wa,o=ka,l=o.key,s=o,u="L",c=.7;function f(l){var f,d,h,p=[],g=[],v=[],y=-1,m=l.length,x=vt(t),b=vt(n),_=t===r?function(){return d}:vt(r),w=n===a?function(){return h}:vt(a);function M(){p.push("M",o(e(v),c),u,s(e(g.reverse()),c),"Z")}for(;++y<m;)i.call(this,f=l[y],y)?(g.push([d=+x.call(this,f,y),h=+b.call(this,f,y)]),v.push([+_.call(this,f,y),+w.call(this,f,y)])):g.length&&(M(),g=[],v=[]);return g.length&&M(),p.length?p.join(""):null}return f.x=function(e){return arguments.length?(t=r=e,f):r},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(r=e,f):r},f.y=function(e){return arguments.length?(n=a=e,f):a},f.y0=function(e){return arguments.length?(n=e,f):n},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(i=e,f):i},f.interpolate=function(e){return arguments.length?(l="function"==typeof e?o=e:(o=Ta.get(e)||ka).key,s=o.reverse||o,u=o.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(c=e,f):c},f}function Ba(e){return e.source}function Ha(e){return e.target}function Ga(e){return e.radius}function Ya(e){return[e.x,e.y]}function Ua(){return 64}function qa(){return"circle"}function Va(e){var t=Math.sqrt(e/Ce);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}i.svg.line.radial=function(){var e=Ma(Fa);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Sa.reverse=La,La.reverse=Sa,i.svg.area=function(){return ja(I)},i.svg.area.radial=function(){var e=ja(Fa);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},i.svg.chord=function(){var e=Ba,t=Ha,r=Ga,n=ya,a=ma;function i(r,n){var a,i,u=o(this,e,r,n),c=o(this,t,r,n);return"M"+u.p0+l(u.r,u.p1,u.a1-u.a0)+(i=c,((a=u).a0==i.a0&&a.a1==i.a1?s(u.r,u.p1,u.r,u.p0):s(u.r,u.p1,c.r,c.p0)+l(c.r,c.p1,c.a1-c.a0)+s(c.r,c.p1,u.r,u.p0))+"Z")}function o(e,t,i,o){var l=t.call(e,i,o),s=r.call(e,l,o),u=n.call(e,l,o)-Re,c=a.call(e,l,o)-Re;return{r:s,a0:u,a1:c,p0:[s*Math.cos(u),s*Math.sin(u)],p1:[s*Math.cos(c),s*Math.sin(c)]}}function l(e,t,r){return"A"+e+","+e+" 0 "+ +(r>Ce)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return i.radius=function(e){return arguments.length?(r=vt(e),i):r},i.source=function(t){return arguments.length?(e=vt(t),i):e},i.target=function(e){return arguments.length?(t=vt(e),i):t},i.startAngle=function(e){return arguments.length?(n=vt(e),i):n},i.endAngle=function(e){return arguments.length?(a=vt(e),i):a},i},i.svg.diagonal=function(){var e=Ba,t=Ha,r=Ya;function n(n,a){var i=e.call(this,n,a),o=t.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=vt(t),n):e},n.target=function(e){return arguments.length?(t=vt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=Ya,r=e.projection;return e.projection=function(e){return arguments.length?r(function(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Re;return[r*Math.cos(n),r*Math.sin(n)]}}(t=e)):t},e},i.svg.symbol=function(){var e=qa,t=Ua;function r(r,n){return(Wa.get(e.call(this,r,n))||Va)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=vt(t),r):e},r.size=function(e){return arguments.length?(t=vt(e),r):t},r};var Wa=i.map({circle:Va,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Ja)),r=t*Ja;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Za),r=t*Za/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Za),r=t*Za/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});i.svg.symbolTypes=Wa.keys();var Za=Math.sqrt(3),Ja=Math.tan(30*Ee);$.transition=function(e){for(var t,r,n=Qa||++ri,a=ii(e),i=[],o=ei||{time:Date.now(),ease:Or,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(r=u[c])&&oi(r,c,a,n,o),t.push(r)}return Ka(i,a,n)},$.interrupt=function(e){return this.each(null==e?Xa:$a(ii(e)))};var Xa=$a(ii());function $a(e){return function(){var t,r,n;(t=this[e])&&(n=t[r=t.active])&&(n.timer.c=null,n.timer.t=NaN,--t.count?delete t[r]:delete this[e],t.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Ka(e,t,r){return V(e,ti),e.namespace=t,e.id=r,e}var Qa,ei,ti=[],ri=0;function ni(e,t,r,n){var a=e.id,i=e.namespace;return ge(e,"function"==typeof r?function(e,o,l){e[i][a].tween.set(t,n(r.call(e,e.__data__,o,l)))}:(r=n(r),function(e){e[i][a].tween.set(t,r)}))}function ai(e){return null==e&&(e=""),function(){this.textContent=e}}function ii(e){return null==e?"__transition__":"__transition_"+e+"__"}function oi(e,t,r,n,a){var i,o,l,s,u,c=e[r]||(e[r]={active:0,count:0}),f=c[n];function d(r){var a=c.active,d=c[a];for(var p in d&&(d.timer.c=null,d.timer.t=NaN,--c.count,delete c[a],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),c)if(+p<n){var g=c[p];g.timer.c=null,g.timer.t=NaN,--c.count,delete c[p]}o.c=h,Tt((function(){return o.c&&h(r||1)&&(o.c=null,o.t=NaN),1}),0,i),c.active=n,f.event&&f.event.start.call(e,e.__data__,t),u=[],f.tween.forEach((function(r,n){(n=n.call(e,e.__data__,t))&&u.push(n)})),s=f.ease,l=f.duration}function h(a){for(var i=a/l,o=s(i),d=u.length;d>0;)u[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[n]:delete e[r],1}f||(i=a.time,o=Tt((function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d}),0,i),f=c[n]={tween:new T,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++c.count)}ti.call=$.call,ti.empty=$.empty,ti.node=$.node,ti.size=$.size,i.transition=function(e,t){return e&&e.transition?Qa?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=ti,ti.select=function(e){var t,r,n,a=this.id,i=this.namespace,o=[];e=K(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(n=u[c])&&(r=e.call(n,n.__data__,c,l))?("__data__"in n&&(r.__data__=n.__data__),oi(r,c,i,a,n[i][a]),t.push(r)):t.push(null)}return Ka(o,i,a)},ti.selectAll=function(e){var t,r,n,a,i,o=this.id,l=this.namespace,s=[];e=Q(e);for(var u=-1,c=this.length;++u<c;)for(var f=this[u],d=-1,h=f.length;++d<h;)if(n=f[d]){i=n[l][o],r=e.call(n,n.__data__,d,u),s.push(t=[]);for(var p=-1,g=r.length;++p<g;)(a=r[p])&&oi(a,p,l,o,i),t.push(a)}return Ka(s,l,o)},ti.filter=function(e){var t,r,n=[];"function"!=typeof e&&(e=he(e));for(var a=0,i=this.length;a<i;a++){n.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(r=o[l])&&e.call(r,r.__data__,l,a)&&t.push(r)}return Ka(n,this.namespace,this.id)},ti.tween=function(e,t){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(e):ge(this,null==t?function(t){t[n][r].tween.remove(e)}:function(a){a[n][r].tween.set(e,t)})},ti.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var r="transform"==e?Yr:Mr,n=i.ns.qualify(e);function a(){this.removeAttribute(n)}function o(){this.removeAttributeNS(n.space,n.local)}return ni(this,"attr."+e,t,n.local?function(e){return null==e?o:(e+="",function(){var t,a=this.getAttributeNS(n.space,n.local);return a!==e&&(t=r(a,e),function(e){this.setAttributeNS(n.space,n.local,t(e))})})}:function(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(n);return a!==e&&(t=r(a,e),function(e){this.setAttribute(n,t(e))})})})},ti.attrTween=function(e,t){var r=i.ns.qualify(e);return this.tween("attr."+e,r.local?function(e,n){var a=t.call(this,e,n,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,n){var a=t.call(this,e,n,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},ti.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.style(r,e[r],t);return this}r=""}function a(){this.style.removeProperty(e)}return ni(this,"style."+e,t,(function(t){return null==t?a:(t+="",function(){var n,a=c(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(n=Mr(a,t),function(t){this.style.setProperty(e,n(t),r)})})}))},ti.styleTween=function(e,t,r){return arguments.length<3&&(r=""),this.tween("style."+e,(function(n,a){var i=t.call(this,n,a,c(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),r)}}))},ti.text=function(e){return ni(this,"text",e,ai)},ti.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},ti.ease=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].ease:("function"!=typeof e&&(e=i.ease.apply(i,arguments)),ge(this,(function(n){n[r][t].ease=e})))},ti.delay=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:ge(this,"function"==typeof e?function(n,a,i){n[r][t].delay=+e.call(n,n.__data__,a,i)}:(e=+e,function(n){n[r][t].delay=e}))},ti.duration=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:ge(this,"function"==typeof e?function(n,a,i){n[r][t].duration=Math.max(1,e.call(n,n.__data__,a,i))}:(e=Math.max(1,e),function(n){n[r][t].duration=e}))},ti.each=function(e,t){var r=this.id,n=this.namespace;if(arguments.length<2){var a=ei,o=Qa;try{Qa=r,ge(this,(function(t,a,i){ei=t[n][r],e.call(t,t.__data__,a,i)}))}finally{ei=a,Qa=o}}else ge(this,(function(a){var o=a[n][r];(o.event||(o.event=i.dispatch("start","end","interrupt"))).on(e,t)}));return this},ti.transition=function(){for(var e,t,r,n=this.id,a=++ri,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var u,c=0,f=(u=this[l]).length;c<f;c++)(t=u[c])&&oi(t,c,i,a,{time:(r=t[i][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),e.push(t)}return Ka(o,i,a)},i.svg.axis=function(){var e,t=i.scale.linear(),r=li,n=6,a=6,o=3,s=[10],u=null;function c(l){l.each((function(){var l,c=i.select(this),f=this.__chart__||t,d=this.__chart__=t.copy(),h=null==u?d.ticks?d.ticks.apply(d,s):d.domain():u,p=null==e?d.tickFormat?d.tickFormat.apply(d,s):I:e,g=c.selectAll(".tick").data(h,d),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Le),y=i.transition(g.exit()).style("opacity",Le).remove(),m=i.transition(g.order()).style("opacity",1),x=Math.max(n,0)+o,b=Yn(d),_=c.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),i.transition(_));v.append("line"),v.append("text");var M,T,k,A,S=v.select("line"),L=m.select("line"),D=g.select("text").text(p),C=v.select("text"),P=m.select("text"),O="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(l=ui,M="x",k="y",T="x2",A="y2",D.attr("dy",O<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+O*a+"V0H"+b[1]+"V"+O*a)):(l=ci,M="y",k="x",T="y2",A="x2",D.attr("dy",".32em").style("text-anchor",O<0?"end":"start"),w.attr("d","M"+O*a+","+b[0]+"H0V"+b[1]+"H"+O*a)),S.attr(A,O*n),C.attr(k,O*x),L.attr(T,0).attr(A,O*n),P.attr(M,0).attr(k,O*x),d.rangeBand){var R=d,E=R.rangeBand()/2;f=d=function(e){return R(e)+E}}else f.rangeBand?f=d:y.call(l,d,f);v.call(l,f,d),m.call(l,d,d)}))}return c.scale=function(e){return arguments.length?(t=e,c):t},c.orient=function(e){return arguments.length?(r=e in si?e+"":li,c):r},c.ticks=function(){return arguments.length?(s=l(arguments),c):s},c.tickValues=function(e){return arguments.length?(u=e,c):u},c.tickFormat=function(t){return arguments.length?(e=t,c):e},c.tickSize=function(e){var t=arguments.length;return t?(n=+e,a=+arguments[t-1],c):n},c.innerTickSize=function(e){return arguments.length?(n=+e,c):n},c.outerTickSize=function(e){return arguments.length?(a=+e,c):a},c.tickPadding=function(e){return arguments.length?(o=+e,c):o},c.tickSubdivide=function(){return arguments.length&&c},c};var li="bottom",si={top:1,right:1,bottom:1,left:1};function ui(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate("+(isFinite(n)?n:r(e))+",0)"}))}function ci(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate(0,"+(isFinite(n)?n:r(e))+")"}))}i.svg.brush=function(){var e,t,r=U(d,"brushstart","brush","brushend"),n=null,a=null,o=[0,0],l=[0,0],s=!0,u=!0,f=di[0];function d(e){e.each((function(){var e=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=e.selectAll(".resize").data(f,I);r.exit().remove(),r.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return fi[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",d.empty()?"none":null);var o,l=i.transition(e),s=i.transition(t);n&&(o=Yn(n),s.attr("x",o[0]).attr("width",o[1]-o[0]),p(l)),a&&(o=Yn(a),s.attr("y",o[0]).attr("height",o[1]-o[0]),g(l)),h(l)}))}function h(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+o[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"}))}function p(e){e.select(".extent").attr("x",o[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function g(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function v(){var f,v,y=this,m=i.select(i.event.target),x=r.of(y,arguments),b=i.select(y),_=m.datum(),w=!/^(n|s)$/.test(_)&&n,M=!/^(e|w)$/.test(_)&&a,T=m.classed("extent"),k=Te(y),A=i.mouse(y),S=i.select(c(y)).on("keydown.brush",(function(){32==i.event.keyCode&&(T||(f=null,A[0]-=o[1],A[1]-=l[1],T=2),G())})).on("keyup.brush",(function(){32==i.event.keyCode&&2==T&&(A[0]+=o[1],A[1]+=l[1],T=0,G())}));if(i.event.changedTouches?S.on("touchmove.brush",C).on("touchend.brush",O):S.on("mousemove.brush",C).on("mouseup.brush",O),b.interrupt().selectAll("*").interrupt(),T)A[0]=o[0]-A[0],A[1]=l[0]-A[1];else if(_){var L=+/w$/.test(_),D=+/^n/.test(_);v=[o[1-L]-A[0],l[1-D]-A[1]],A[0]=o[L],A[1]=l[D]}else i.event.altKey&&(f=A.slice());function C(){var e=i.mouse(y),t=!1;v&&(e[0]+=v[0],e[1]+=v[1]),T||(i.event.altKey?(f||(f=[(o[0]+o[1])/2,(l[0]+l[1])/2]),A[0]=o[+(e[0]<f[0])],A[1]=l[+(e[1]<f[1])]):f=null),w&&P(e,n,0)&&(p(b),t=!0),M&&P(e,a,1)&&(g(b),t=!0),t&&(h(b),x({type:"brush",mode:T?"move":"resize"}))}function P(r,n,a){var i,c,d=Yn(n),h=d[0],p=d[1],g=A[a],v=a?l:o,y=v[1]-v[0];if(T&&(h-=g,p-=y+g),i=(a?u:s)?Math.max(h,Math.min(p,r[a])):r[a],T?c=(i+=g)+y:(f&&(g=Math.max(h,Math.min(p,2*f[a]-i))),g<i?(c=i,i=g):c=g),v[0]!=i||v[1]!=c)return a?t=null:e=null,v[0]=i,v[1]=c,!0}function O(){C(),b.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),i.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),k(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",m.style("cursor")),x({type:"brushstart"}),C()}return d.event=function(n){n.each((function(){var n=r.of(this,arguments),a={x:o,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,Qa?i.select(this).transition().each("start.brush",(function(){e=s.i,t=s.j,o=s.x,l=s.y,n({type:"brushstart"})})).tween("brush:brush",(function(){var r=Tr(o,a.x),i=Tr(l,a.y);return e=t=null,function(e){o=a.x=r(e),l=a.y=i(e),n({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=a.i,t=a.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})})):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))}))},d.x=function(e){return arguments.length?(f=di[!(n=e)<<1|!a],d):n},d.y=function(e){return arguments.length?(f=di[!n<<1|!(a=e)],d):a},d.clamp=function(e){return arguments.length?(n&&a?(s=!!e[0],u=!!e[1]):n?s=!!e:a&&(u=!!e),d):n&&a?[s,u]:n?s:a?u:null},d.extent=function(r){var i,s,u,c,f;return arguments.length?(n&&(i=r[0],s=r[1],a&&(i=i[0],s=s[0]),e=[i,s],n.invert&&(i=n(i),s=n(s)),s<i&&(f=i,i=s,s=f),i==o[0]&&s==o[1]||(o=[i,s])),a&&(u=r[0],c=r[1],n&&(u=u[1],c=c[1]),t=[u,c],a.invert&&(u=a(u),c=a(c)),c<u&&(f=u,u=c,c=f),u==l[0]&&c==l[1]||(l=[u,c])),d):(n&&(e?(i=e[0],s=e[1]):(i=o[0],s=o[1],n.invert&&(i=n.invert(i),s=n.invert(s)),s<i&&(f=i,i=s,s=f))),a&&(t?(u=t[0],c=t[1]):(u=l[0],c=l[1],a.invert&&(u=a.invert(u),c=a.invert(c)),c<u&&(f=u,u=c,c=f))),n&&a?[[i,u],[s,c]]:n?[i,s]:a&&[u,c])},d.clear=function(){return d.empty()||(o=[0,0],l=[0,0],e=t=null),d},d.empty=function(){return!!n&&o[0]==o[1]||!!a&&l[0]==l[1]},i.rebind(d,r,"on")};var fi={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},di=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function hi(e){return JSON.parse(e.responseText)}function pi(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}i.text=yt((function(e){return e.responseText})),i.json=function(e,t){return mt(e,"application/json",hi,t)},i.html=function(e,t){return mt(e,"text/html",pi,t)},i.xml=yt((function(e){return e.responseXML})),void 0===(a="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=a)}).apply(self)},440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3256),a=6378137;function i(e){var t=0;if(e&&e.length>0){t+=Math.abs(o(e[0]));for(var r=1;r<e.length;r++)t-=Math.abs(o(e[r]))}return t}function o(e){var t,r,n,i,o,s,u=0,c=e.length;if(c>2){for(s=0;s<c;s++)s===c-2?(n=c-2,i=c-1,o=0):s===c-1?(n=c-1,i=0,o=1):(n=s,i=s+1,o=s+2),t=e[n],r=e[i],u+=(l(e[o][0])-l(t[0]))*Math.sin(l(r[1]));u=u*a*a/2}return u}function l(e){return e*Math.PI/180}t.default=function(e){return n.geomReduce(e,(function(e,t){return e+function(e){var t,r=0;switch(e.type){case"Polygon":return i(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=i(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)}),0)}},6284:function(e,t){"use strict";function r(e,t,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function n(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<o[o.length-1].length;l++)if(o[o.length-1][l]!==o[0][l])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function i(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function o(e,t){void 0===t&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function l(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function s(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function u(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function c(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e*n}function f(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e/n}function d(e){return e%(2*Math.PI)*180/Math.PI}function h(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936*t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=function(e,t,r){switch(void 0===r&&(r={}),e){case"Point":return n(t).geometry;case"LineString":return i(t).geometry;case"Polygon":return a(t).geometry;case"MultiPoint":return s(t).geometry;case"MultiLineString":return l(t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e+" is invalid")}},t.point=n,t.points=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return n(e,t)})),r)},t.polygon=a,t.polygons=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return a(e,t)})),r)},t.lineString=i,t.lineStrings=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return i(e,t)})),r)},t.featureCollection=o,t.multiLineString=l,t.multiPoint=s,t.multiPolygon=u,t.geometryCollection=function(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=c,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return d(f(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=d,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(f(e,t),r)},t.convertArea=function(e,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=t.areaFactors[r];if(!a)throw new Error("invalid original units");var i=t.areaFactors[n];if(!i)throw new Error("invalid final units");return e/a*i},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},3256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6284);function a(e,t,r){if(null!==e)for(var n,i,o,l,s,u,c,f,d=0,h=0,p=e.type,g="FeatureCollection"===p,v="Feature"===p,y=g?e.features.length:1,m=0;m<y;m++){s=(f=!!(c=g?e.features[m].geometry:v?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var x=0;x<s;x++){var b=0,_=0;if(null!==(l=f?c.geometries[x]:c)){u=l.coordinates;var w=l.type;switch(d=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(u,h,m,b,_))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===t(u[n],h,m,b,_))return!1;h++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(i=0;i<u[n].length-d;i++){if(!1===t(u[n][i],h,m,b,_))return!1;h++}"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(_=0,i=0;i<u[n].length;i++){for(o=0;o<u[n][i].length-d;o++){if(!1===t(u[n][i][o],h,m,b,_))return!1;h++}_++}b++}break;case"GeometryCollection":for(n=0;n<l.geometries.length;n++)if(!1===a(l.geometries[n],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function i(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function o(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function l(e,t){var r,n,a,i,o,l,s,u,c,f,d=0,h="FeatureCollection"===e.type,p="Feature"===e.type,g=h?e.features.length:1;for(r=0;r<g;r++){for(l=h?e.features[r].geometry:p?e.geometry:e,u=h?e.features[r].properties:p?e.properties:{},c=h?e.features[r].bbox:p?e.bbox:void 0,f=h?e.features[r].id:p?e.id:void 0,o=(s=!!l&&"GeometryCollection"===l.type)?l.geometries.length:1,a=0;a<o;a++)if(null!==(i=s?l.geometries[a]:l))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,d,u,c,f))return!1;break;case"GeometryCollection":for(n=0;n<i.geometries.length;n++)if(!1===t(i.geometries[n],d,u,c,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,d,u,c,f))return!1;d++}}function s(e,t){l(e,(function(e,r,a,i,o){var l,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(n.feature(e,a,{bbox:i,id:o}),r,0)&&void 0}switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon"}for(var u=0;u<e.coordinates.length;u++){var c={type:l,coordinates:e.coordinates[u]};if(!1===t(n.feature(c,a),r,u))return!1}}))}function u(e,t){s(e,(function(e,r,i){var o=0;if(e.geometry){var l=e.geometry.type;if("Point"!==l&&"MultiPoint"!==l){var s,u=0,c=0,f=0;return!1!==a(e,(function(a,l,d,h,p){if(void 0===s||r>u||h>c||p>f)return s=a,u=r,c=h,f=p,void(o=0);var g=n.lineString([s,a],e.properties);if(!1===t(g,r,i,p,o))return!1;o++,s=a}))&&void 0}}}))}function c(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,r,a){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,r,a,0,0))return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(!1===t(n.lineString(o[l],e.properties),r,a,l))return!1}}}))}t.coordEach=a,t.coordReduce=function(e,t,r,n){var i=r;return a(e,(function(e,n,a,o,l){i=0===n&&void 0===r?e:t(i,e,n,a,o,l)}),n),i},t.propEach=i,t.propReduce=function(e,t,r){var n=r;return i(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.featureEach=o,t.featureReduce=function(e,t,r){var n=r;return o(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.coordAll=function(e){var t=[];return a(e,(function(e){t.push(e)})),t},t.geomEach=l,t.geomReduce=function(e,t,r){var n=r;return l(e,(function(e,a,i,o,l){n=0===a&&void 0===r?e:t(n,e,a,i,o,l)})),n},t.flattenEach=s,t.flattenReduce=function(e,t,r){var n=r;return s(e,(function(e,a,i){n=0===a&&0===i&&void 0===r?e:t(n,e,a,i)})),n},t.segmentEach=u,t.segmentReduce=function(e,t,r){var n=r,a=!1;return u(e,(function(e,i,o,l,s){n=!1===a&&void 0===r?e:t(n,e,i,o,l,s),a=!0})),n},t.lineEach=c,t.lineReduce=function(e,t,r){var n=r;return c(e,(function(e,a,i,o){n=0===a&&void 0===r?e:t(n,e,a,i,o)})),n},t.findSegment=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return l<0&&(l=u.length+l-1),n.lineString([u[l],u[l+1]],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l-1),n.lineString([u[o][l],u[o][l+1]],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l-1),n.lineString([u[i][l],u[i][l+1]],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l-1),n.lineString([u[i][o][l],u[i][o][l+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return n.point(u,s,t);case"MultiPoint":return i<0&&(i=u.length+i),n.point(u[i],s,t);case"LineString":return l<0&&(l=u.length+l),n.point(u[l],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l),n.point(u[o][l],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l),n.point(u[i][l],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l),n.point(u[i][o][l],s,t)}throw new Error("geojson is invalid")}},2428:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2500);function a(e){var t=[1/0,1/0,-1/0,-1/0];return n.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}a.default=a,t.default=a},6796:function(e,t){"use strict";function r(e,t,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function n(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!h(e[0])||!h(e[1]))throw new Error("coordinates must contain numbers");return r({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<o[o.length-1].length;l++)if(o[o.length-1][l]!==o[0][l])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function i(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function o(e,t){void 0===t&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function l(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function s(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function u(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function c(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e*n}function f(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e/n}function d(e){return e%(2*Math.PI)*180/Math.PI}function h(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936*t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=function(e,t,r){switch(void 0===r&&(r={}),e){case"Point":return n(t).geometry;case"LineString":return i(t).geometry;case"Polygon":return a(t).geometry;case"MultiPoint":return s(t).geometry;case"MultiLineString":return l(t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e+" is invalid")}},t.point=n,t.points=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return n(e,t)})),r)},t.polygon=a,t.polygons=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return a(e,t)})),r)},t.lineString=i,t.lineStrings=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return i(e,t)})),r)},t.featureCollection=o,t.multiLineString=l,t.multiPoint=s,t.multiPolygon=u,t.geometryCollection=function(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=c,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return d(f(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=d,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(f(e,t),r)},t.convertArea=function(e,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=t.areaFactors[r];if(!a)throw new Error("invalid original units");var i=t.areaFactors[n];if(!i)throw new Error("invalid final units");return e/a*i},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},2500:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6796);function a(e,t,r){if(null!==e)for(var n,i,o,l,s,u,c,f,d=0,h=0,p=e.type,g="FeatureCollection"===p,v="Feature"===p,y=g?e.features.length:1,m=0;m<y;m++){s=(f=!!(c=g?e.features[m].geometry:v?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var x=0;x<s;x++){var b=0,_=0;if(null!==(l=f?c.geometries[x]:c)){u=l.coordinates;var w=l.type;switch(d=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(u,h,m,b,_))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===t(u[n],h,m,b,_))return!1;h++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(i=0;i<u[n].length-d;i++){if(!1===t(u[n][i],h,m,b,_))return!1;h++}"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(_=0,i=0;i<u[n].length;i++){for(o=0;o<u[n][i].length-d;o++){if(!1===t(u[n][i][o],h,m,b,_))return!1;h++}_++}b++}break;case"GeometryCollection":for(n=0;n<l.geometries.length;n++)if(!1===a(l.geometries[n],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function i(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function o(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function l(e,t){var r,n,a,i,o,l,s,u,c,f,d=0,h="FeatureCollection"===e.type,p="Feature"===e.type,g=h?e.features.length:1;for(r=0;r<g;r++){for(l=h?e.features[r].geometry:p?e.geometry:e,u=h?e.features[r].properties:p?e.properties:{},c=h?e.features[r].bbox:p?e.bbox:void 0,f=h?e.features[r].id:p?e.id:void 0,o=(s=!!l&&"GeometryCollection"===l.type)?l.geometries.length:1,a=0;a<o;a++)if(null!==(i=s?l.geometries[a]:l))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,d,u,c,f))return!1;break;case"GeometryCollection":for(n=0;n<i.geometries.length;n++)if(!1===t(i.geometries[n],d,u,c,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,d,u,c,f))return!1;d++}}function s(e,t){l(e,(function(e,r,a,i,o){var l,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(n.feature(e,a,{bbox:i,id:o}),r,0)&&void 0}switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon"}for(var u=0;u<e.coordinates.length;u++){var c={type:l,coordinates:e.coordinates[u]};if(!1===t(n.feature(c,a),r,u))return!1}}))}function u(e,t){s(e,(function(e,r,i){var o=0;if(e.geometry){var l=e.geometry.type;if("Point"!==l&&"MultiPoint"!==l){var s,u=0,c=0,f=0;return!1!==a(e,(function(a,l,d,h,p){if(void 0===s||r>u||h>c||p>f)return s=a,u=r,c=h,f=p,void(o=0);var g=n.lineString([s,a],e.properties);if(!1===t(g,r,i,p,o))return!1;o++,s=a}))&&void 0}}}))}function c(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,r,a){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,r,a,0,0))return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(!1===t(n.lineString(o[l],e.properties),r,a,l))return!1}}}))}t.coordEach=a,t.coordReduce=function(e,t,r,n){var i=r;return a(e,(function(e,n,a,o,l){i=0===n&&void 0===r?e:t(i,e,n,a,o,l)}),n),i},t.propEach=i,t.propReduce=function(e,t,r){var n=r;return i(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.featureEach=o,t.featureReduce=function(e,t,r){var n=r;return o(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.coordAll=function(e){var t=[];return a(e,(function(e){t.push(e)})),t},t.geomEach=l,t.geomReduce=function(e,t,r){var n=r;return l(e,(function(e,a,i,o,l){n=0===a&&void 0===r?e:t(n,e,a,i,o,l)})),n},t.flattenEach=s,t.flattenReduce=function(e,t,r){var n=r;return s(e,(function(e,a,i){n=0===a&&0===i&&void 0===r?e:t(n,e,a,i)})),n},t.segmentEach=u,t.segmentReduce=function(e,t,r){var n=r,a=!1;return u(e,(function(e,i,o,l,s){n=!1===a&&void 0===r?e:t(n,e,i,o,l,s),a=!0})),n},t.lineEach=c,t.lineReduce=function(e,t,r){var n=r;return c(e,(function(e,a,i,o){n=0===a&&void 0===r?e:t(n,e,a,i,o)})),n},t.findSegment=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return l<0&&(l=u.length+l-1),n.lineString([u[l],u[l+1]],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l-1),n.lineString([u[o][l],u[o][l+1]],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l-1),n.lineString([u[i][l],u[i][l+1]],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l-1),n.lineString([u[i][o][l],u[i][o][l+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return n.point(u,s,t);case"MultiPoint":return i<0&&(i=u.length+i),n.point(u[i],s,t);case"LineString":return l<0&&(l=u.length+l),n.point(u[l],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l),n.point(u[o][l],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l),n.point(u[i][l],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l),n.point(u[i][o][l],s,t)}throw new Error("geojson is invalid")}},7844:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3752),a=r(9840);t.default=function(e,t){void 0===t&&(t={});var r=0,i=0,o=0;return n.coordEach(e,(function(e){r+=e[0],i+=e[1],o++})),a.point([r/o,i/o],t.properties)}},9840:function(e,t){"use strict";function r(e,t,r){void 0===r&&(r={});var n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function n(e,t,n){return void 0===n&&(n={}),r({type:"Point",coordinates:e},t,n)}function a(e,t,n){void 0===n&&(n={});for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<o[o.length-1].length;l++)if(o[o.length-1][l]!==o[0][l])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function i(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function o(e,t){void 0===t&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function l(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function s(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function u(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function c(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e*n}function f(e,r){void 0===r&&(r="kilometers");var n=t.factors[r];if(!n)throw new Error(r+" units is invalid");return e/n}function d(e){return e%(2*Math.PI)*180/Math.PI}function h(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=function(e,t,r){switch(void 0===r&&(r={}),e){case"Point":return n(t).geometry;case"LineString":return i(t).geometry;case"Polygon":return a(t).geometry;case"MultiPoint":return s(t).geometry;case"MultiLineString":return l(t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e+" is invalid")}},t.point=n,t.points=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return n(e,t)})),r)},t.polygon=a,t.polygons=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return a(e,t)})),r)},t.lineString=i,t.lineStrings=function(e,t,r){return void 0===r&&(r={}),o(e.map((function(e){return i(e,t)})),r)},t.featureCollection=o,t.multiLineString=l,t.multiPoint=s,t.multiPolygon=u,t.geometryCollection=function(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r},t.radiansToLength=c,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return d(f(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=d,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,r){if(void 0===t&&(t="kilometers"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(f(e,t),r)},t.convertArea=function(e,r,n){if(void 0===r&&(r="meters"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=t.areaFactors[r];if(!a)throw new Error("invalid original units");var i=t.areaFactors[n];if(!i)throw new Error("invalid final units");return e/a*i},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")},t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},3752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9840);function a(e,t,r){if(null!==e)for(var n,i,o,l,s,u,c,f,d=0,h=0,p=e.type,g="FeatureCollection"===p,v="Feature"===p,y=g?e.features.length:1,m=0;m<y;m++){s=(f=!!(c=g?e.features[m].geometry:v?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var x=0;x<s;x++){var b=0,_=0;if(null!==(l=f?c.geometries[x]:c)){u=l.coordinates;var w=l.type;switch(d=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(u,h,m,b,_))return!1;h++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===t(u[n],h,m,b,_))return!1;h++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(i=0;i<u[n].length-d;i++){if(!1===t(u[n][i],h,m,b,_))return!1;h++}"MultiLineString"===w&&b++,"Polygon"===w&&_++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(_=0,i=0;i<u[n].length;i++){for(o=0;o<u[n][i].length-d;o++){if(!1===t(u[n][i][o],h,m,b,_))return!1;h++}_++}b++}break;case"GeometryCollection":for(n=0;n<l.geometries.length;n++)if(!1===a(l.geometries[n],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function i(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&!1!==t(e.features[r].properties,r);r++);break;case"Feature":t(e.properties,0)}}function o(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var r=0;r<e.features.length&&!1!==t(e.features[r],r);r++);}function l(e,t){var r,n,a,i,o,l,s,u,c,f,d=0,h="FeatureCollection"===e.type,p="Feature"===e.type,g=h?e.features.length:1;for(r=0;r<g;r++){for(l=h?e.features[r].geometry:p?e.geometry:e,u=h?e.features[r].properties:p?e.properties:{},c=h?e.features[r].bbox:p?e.bbox:void 0,f=h?e.features[r].id:p?e.id:void 0,o=(s=!!l&&"GeometryCollection"===l.type)?l.geometries.length:1,a=0;a<o;a++)if(null!==(i=s?l.geometries[a]:l))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,d,u,c,f))return!1;break;case"GeometryCollection":for(n=0;n<i.geometries.length;n++)if(!1===t(i.geometries[n],d,u,c,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,d,u,c,f))return!1;d++}}function s(e,t){l(e,(function(e,r,a,i,o){var l,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(n.feature(e,a,{bbox:i,id:o}),r,0)&&void 0}switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon"}for(var u=0;u<e.coordinates.length;u++){var c={type:l,coordinates:e.coordinates[u]};if(!1===t(n.feature(c,a),r,u))return!1}}))}function u(e,t){s(e,(function(e,r,i){var o=0;if(e.geometry){var l=e.geometry.type;if("Point"!==l&&"MultiPoint"!==l){var s,u=0,c=0,f=0;return!1!==a(e,(function(a,l,d,h,p){if(void 0===s||r>u||h>c||p>f)return s=a,u=r,c=h,f=p,void(o=0);var g=n.lineString([s,a],e.properties);if(!1===t(g,r,i,p,o))return!1;o++,s=a}))&&void 0}}}))}function c(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,r,a){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,r,a,0,0))return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(!1===t(n.lineString(o[l],e.properties),r,a,l))return!1}}}))}t.coordEach=a,t.coordReduce=function(e,t,r,n){var i=r;return a(e,(function(e,n,a,o,l){i=0===n&&void 0===r?e:t(i,e,n,a,o,l)}),n),i},t.propEach=i,t.propReduce=function(e,t,r){var n=r;return i(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.featureEach=o,t.featureReduce=function(e,t,r){var n=r;return o(e,(function(e,a){n=0===a&&void 0===r?e:t(n,e,a)})),n},t.coordAll=function(e){var t=[];return a(e,(function(e){t.push(e)})),t},t.geomEach=l,t.geomReduce=function(e,t,r){var n=r;return l(e,(function(e,a,i,o,l){n=0===a&&void 0===r?e:t(n,e,a,i,o,l)})),n},t.flattenEach=s,t.flattenReduce=function(e,t,r){var n=r;return s(e,(function(e,a,i){n=0===a&&0===i&&void 0===r?e:t(n,e,a,i)})),n},t.segmentEach=u,t.segmentReduce=function(e,t,r){var n=r,a=!1;return u(e,(function(e,i,o,l,s){n=!1===a&&void 0===r?e:t(n,e,i,o,l,s),a=!0})),n},t.lineEach=c,t.lineReduce=function(e,t,r){var n=r;return c(e,(function(e,a,i,o){n=0===a&&void 0===r?e:t(n,e,a,i,o)})),n},t.findSegment=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return l<0&&(l=u.length+l-1),n.lineString([u[l],u[l+1]],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l-1),n.lineString([u[o][l],u[o][l+1]],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l-1),n.lineString([u[i][l],u[i][l+1]],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l-1),n.lineString([u[i][o][l],u[i][o][l+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!n.isObject(t))throw new Error("options is invalid");var r,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":s=s||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return n.point(u,s,t);case"MultiPoint":return i<0&&(i=u.length+i),n.point(u[i],s,t);case"LineString":return l<0&&(l=u.length+l),n.point(u[l],s,t);case"Polygon":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l),n.point(u[o][l],s,t);case"MultiLineString":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l),n.point(u[i][l],s,t);case"MultiPolygon":return i<0&&(i=u.length+i),o<0&&(o=u[i].length+o),l<0&&(l=u[i][o].length-l),n.point(u[i][o][l],s,t)}throw new Error("geojson is invalid")}},3160:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return l},encode:function(){return o}});for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<64;i++)a[n.charCodeAt(i)]=i;var o=function(e){var t,r=new Uint8Array(e),a=r.length,i="";for(t=0;t<a;t+=3)i+=n[r[t]>>2],i+=n[(3&r[t])<<4|r[t+1]>>4],i+=n[(15&r[t+1])<<2|r[t+2]>>6],i+=n[63&r[t+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i},l=function(e){var t,r,n,i,o,l=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(l--,"="===e[e.length-2]&&l--);var c=new ArrayBuffer(l),f=new Uint8Array(c);for(t=0;t<s;t+=4)r=a[e.charCodeAt(t)],n=a[e.charCodeAt(t+1)],i=a[e.charCodeAt(t+2)],o=a[e.charCodeAt(t+3)],f[u++]=r<<2|n>>4,f[u++]=(15&n)<<4|i>>2,f[u++]=(3&i)<<6|63&o;return c}},6116:function(e){e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},376:function(e,t,r){"use strict";function n(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}r.d(t,{Uf:function(){return l},ik:function(){return s}}),1===(a=n).length&&(i=a,a=function(e,t){return n(i(e),t)});var a,i,o=Array.prototype;function l(e){for(var t,r,n,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(r=new Array(o);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r}function s(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(a);++n<a;)i[n]=e+n*r;return i}o.slice,o.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2)},7624:function(e,t,r){"use strict";function n(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{E9:function(){return d},SO:function(){return g}});var a,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=i.exec(e)))throw new Error("invalid format: "+e);var t;return new l({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function l(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function s(e,t){var r=n(e,t);if(!r)return e+"";var a=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}o.prototype=l.prototype,l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var u={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,t){var r=n(e,t);if(!r)return e+"";var i=r[0],o=r[1],l=o-(a=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return l===s?i:l>s?i+new Array(l-s+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+new Array(1-l).join("0")+n(e,Math.max(0,t+l-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var f,d,h=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function g(e){var t,r,i=void 0===e.grouping||void 0===e.thousands?c:(t=h.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(r)}),l=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",f=void 0===e.decimal?".":e.decimal+"",d=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(h.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"-":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function m(e){var t=(e=o(e)).fill,r=e.align,n=e.sign,c=e.symbol,h=e.zero,m=e.width,x=e.comma,b=e.precision,_=e.trim,w=e.type;"n"===w?(x=!0,w="g"):u[w]||(void 0===b&&(b=12),_=!0,w="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var M="$"===c?l:"#"===c&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T="$"===c?s:/[%p]/.test(w)?g:"",k=u[w],A=/[defgprs%]/.test(w);function S(e){var o,l,s,u=M,c=T;if("c"===w)c=k(e)+c,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),b),_&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==n&&(g=!1),u=(g?"("===n?n:v:"-"===n||"("===n?"":n)+u,c=("s"===w?p[8+a/3]:"")+c+(g&&"("===n?")":""),A)for(o=-1,l=e.length;++o<l;)if(48>(s=e.charCodeAt(o))||s>57){c=(46===s?f+e.slice(o+1):e.slice(o))+c,e=e.slice(0,o);break}}x&&!h&&(e=i(e,1/0));var S=u.length+e.length+c.length,L=S<m?new Array(m-S+1).join(t):"";switch(x&&h&&(e=i(L+e,L.length?m-c.length:1/0),L=""),r){case"<":e=u+e+c+L;break;case"=":e=u+L+e+c;break;case"^":e=L.slice(0,S=L.length>>1)+u+e+c+L.slice(S);break;default:e=L+u+e+c}return d(e)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return e+""},S}return{format:m,formatPrefix:function(e,t){var r,a=m(((e=o(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((r=t,((r=n(Math.abs(r)))?r[1]:NaN)/3)))),l=Math.pow(10,-i),s=p[8+i/3];return function(e){return a(l*e)+s}}}}f=g({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=f.format,f.formatPrefix},7108:function(e,t,r){"use strict";r.r(t),r.d(t,{geoAiry:function(){return I},geoAiryRaw:function(){return E},geoAitoff:function(){return z},geoAitoffRaw:function(){return N},geoArmadillo:function(){return j},geoArmadilloRaw:function(){return F},geoAugust:function(){return H},geoAugustRaw:function(){return B},geoBaker:function(){return q},geoBakerRaw:function(){return U},geoBerghaus:function(){return Z},geoBerghausRaw:function(){return W},geoBertin1953:function(){return re},geoBertin1953Raw:function(){return te},geoBoggs:function(){return ce},geoBoggsRaw:function(){return ue},geoBonne:function(){return ge},geoBonneRaw:function(){return pe},geoBottomley:function(){return ye},geoBottomleyRaw:function(){return ve},geoBromley:function(){return xe},geoBromleyRaw:function(){return me},geoChamberlin:function(){return Le},geoChamberlinAfrica:function(){return Se},geoChamberlinRaw:function(){return ke},geoCollignon:function(){return Ce},geoCollignonRaw:function(){return De},geoCraig:function(){return Oe},geoCraigRaw:function(){return Pe},geoCraster:function(){return Ie},geoCrasterRaw:function(){return Ee},geoCylindricalEqualArea:function(){return ze},geoCylindricalEqualAreaRaw:function(){return Ne},geoCylindricalStereographic:function(){return je},geoCylindricalStereographicRaw:function(){return Fe},geoEckert1:function(){return He},geoEckert1Raw:function(){return Be},geoEckert2:function(){return Ye},geoEckert2Raw:function(){return Ge},geoEckert3:function(){return qe},geoEckert3Raw:function(){return Ue},geoEckert4:function(){return We},geoEckert4Raw:function(){return Ve},geoEckert5:function(){return Je},geoEckert5Raw:function(){return Ze},geoEckert6:function(){return $e},geoEckert6Raw:function(){return Xe},geoEisenlohr:function(){return et},geoEisenlohrRaw:function(){return Qe},geoFahey:function(){return nt},geoFaheyRaw:function(){return rt},geoFoucaut:function(){return it},geoFoucautRaw:function(){return at},geoFoucautSinusoidal:function(){return lt},geoFoucautSinusoidalRaw:function(){return ot},geoGilbert:function(){return dt},geoGingery:function(){return vt},geoGingeryRaw:function(){return ht},geoGinzburg4:function(){return xt},geoGinzburg4Raw:function(){return mt},geoGinzburg5:function(){return _t},geoGinzburg5Raw:function(){return bt},geoGinzburg6:function(){return Mt},geoGinzburg6Raw:function(){return wt},geoGinzburg8:function(){return kt},geoGinzburg8Raw:function(){return Tt},geoGinzburg9:function(){return St},geoGinzburg9Raw:function(){return At},geoGringorten:function(){return Ct},geoGringortenQuincuncial:function(){return aa},geoGringortenRaw:function(){return Dt},geoGuyou:function(){return Et},geoGuyouRaw:function(){return Rt},geoHammer:function(){return K},geoHammerRaw:function(){return X},geoHammerRetroazimuthal:function(){return Ft},geoHammerRetroazimuthalRaw:function(){return Nt},geoHealpix:function(){return Wt},geoHealpixRaw:function(){return Yt},geoHill:function(){return Jt},geoHillRaw:function(){return Zt},geoHomolosine:function(){return tr},geoHomolosineRaw:function(){return er},geoHufnagel:function(){return nr},geoHufnagelRaw:function(){return rr},geoHyperelliptical:function(){return lr},geoHyperellipticalRaw:function(){return or},geoInterrupt:function(){return cr},geoInterruptedBoggs:function(){return dr},geoInterruptedHomolosine:function(){return pr},geoInterruptedMollweide:function(){return vr},geoInterruptedMollweideHemispheres:function(){return mr},geoInterruptedQuarticAuthalic:function(){return fn},geoInterruptedSinuMollweide:function(){return br},geoInterruptedSinusoidal:function(){return wr},geoKavrayskiy7:function(){return Tr},geoKavrayskiy7Raw:function(){return Mr},geoLagrange:function(){return Ar},geoLagrangeRaw:function(){return kr},geoLarrivee:function(){return Dr},geoLarriveeRaw:function(){return Lr},geoLaskowski:function(){return Pr},geoLaskowskiRaw:function(){return Cr},geoLittrow:function(){return Rr},geoLittrowRaw:function(){return Or},geoLoximuthal:function(){return Ir},geoLoximuthalRaw:function(){return Er},geoMiller:function(){return zr},geoMillerRaw:function(){return Nr},geoModifiedStereographic:function(){return Jr},geoModifiedStereographicAlaska:function(){return Ur},geoModifiedStereographicGs48:function(){return qr},geoModifiedStereographicGs50:function(){return Vr},geoModifiedStereographicLee:function(){return Zr},geoModifiedStereographicMiller:function(){return Wr},geoModifiedStereographicRaw:function(){return Fr},geoMollweide:function(){return oe},geoMollweideRaw:function(){return ie},geoMtFlatPolarParabolic:function(){return Qr},geoMtFlatPolarParabolicRaw:function(){return Kr},geoMtFlatPolarQuartic:function(){return tn},geoMtFlatPolarQuarticRaw:function(){return en},geoMtFlatPolarSinusoidal:function(){return nn},geoMtFlatPolarSinusoidalRaw:function(){return rn},geoNaturalEarth:function(){return an.c},geoNaturalEarth2:function(){return ln},geoNaturalEarth2Raw:function(){return on},geoNaturalEarthRaw:function(){return an.g},geoNellHammer:function(){return un},geoNellHammerRaw:function(){return sn},geoNicolosi:function(){return hn},geoNicolosiRaw:function(){return dn},geoPatterson:function(){return Tn},geoPattersonRaw:function(){return Mn},geoPeirceQuincuncial:function(){return ia},geoPierceQuincuncial:function(){return ia},geoPolyconic:function(){return An},geoPolyconicRaw:function(){return kn},geoPolyhedral:function(){return On},geoPolyhedralButterfly:function(){return jn},geoPolyhedralCollignon:function(){return Gn},geoPolyhedralWaterman:function(){return Yn},geoProject:function(){return Zn},geoQuantize:function(){return oa},geoQuincuncial:function(){return na},geoRectangularPolyconic:function(){return sa},geoRectangularPolyconicRaw:function(){return la},geoRobinson:function(){return fa},geoRobinsonRaw:function(){return ca},geoSatellite:function(){return ha},geoSatelliteRaw:function(){return da},geoSinuMollweide:function(){return Qt},geoSinuMollweideRaw:function(){return Kt},geoSinusoidal:function(){return he},geoSinusoidalRaw:function(){return de},geoStitch:function(){return Oa},geoTimes:function(){return Ea},geoTimesRaw:function(){return Ra},geoTwoPointAzimuthal:function(){return Fa},geoTwoPointAzimuthalRaw:function(){return Na},geoTwoPointAzimuthalUsa:function(){return za},geoTwoPointEquidistant:function(){return Ha},geoTwoPointEquidistantRaw:function(){return ja},geoTwoPointEquidistantUsa:function(){return Ba},geoVanDerGrinten:function(){return Ya},geoVanDerGrinten2:function(){return qa},geoVanDerGrinten2Raw:function(){return Ua},geoVanDerGrinten3:function(){return Wa},geoVanDerGrinten3Raw:function(){return Va},geoVanDerGrinten4:function(){return Ja},geoVanDerGrinten4Raw:function(){return Za},geoVanDerGrintenRaw:function(){return Ga},geoWagner:function(){return $a},geoWagner4:function(){return ri},geoWagner4Raw:function(){return ti},geoWagner6:function(){return ai},geoWagner6Raw:function(){return ni},geoWagner7:function(){return Ka},geoWagnerRaw:function(){return Xa},geoWiechel:function(){return oi},geoWiechelRaw:function(){return ii},geoWinkel3:function(){return si},geoWinkel3Raw:function(){return li}});var n=r(5572),a=Math.abs,i=Math.atan,o=Math.atan2,l=(Math.ceil,Math.cos),s=Math.exp,u=Math.floor,c=Math.log,f=Math.max,d=Math.min,h=Math.pow,p=Math.round,g=Math.sign||function(e){return e>0?1:e<0?-1:0},v=Math.sin,y=Math.tan,m=1e-6,x=1e-12,b=Math.PI,_=b/2,w=b/4,M=Math.SQRT1_2,T=P(2),k=P(b),A=2*b,S=180/b,L=b/180;function D(e){return e>1?_:e<-1?-_:Math.asin(e)}function C(e){return e>1?0:e<-1?b:Math.acos(e)}function P(e){return e>0?Math.sqrt(e):0}function O(e){return(s(e)-s(-e))/2}function R(e){return(s(e)+s(-e))/2}function E(e){var t=y(e/2),r=2*c(l(e/2))/(t*t);function n(e,t){var n=l(e),a=l(t),i=v(t),o=a*n,s=-((1-o?c((1+o)/2)/(1-o):-.5)+r/(1+o));return[s*a*v(e),s*i]}return n.invert=function(t,n){var i,s=P(t*t+n*n),u=-e/2,f=50;if(!s)return[0,0];do{var d=u/2,h=l(d),p=v(d),g=p/h,y=-c(a(h));u-=i=(2/g*y-r*g-s)/(-y/(p*p)+1-r/(2*h*h))*(h<0?.7:1)}while(a(i)>m&&--f>0);var x=v(u);return[o(t*x,s*l(u)),D(n*x/s)]},n}function I(){var e=_,t=(0,n.U)(E),r=t(e);return r.radius=function(r){return arguments.length?t(e=r*L):e*S},r.scale(179.976).clipAngle(147)}function N(e,t){var r=l(t),n=function(e){return e?e/Math.sin(e):1}(C(r*l(e/=2)));return[2*r*v(e)*n,v(t)*n]}function z(){return(0,n.c)(N).scale(152.63)}function F(e){var t=v(e),r=l(e),n=e>=0?1:-1,i=y(n*e),s=(1+t-r)/2;function u(e,a){var u=l(a),c=l(e/=2);return[(1+u)*v(e),(n*a>-o(c,i)-.001?0:10*-n)+s+v(a)*r-(1+u)*t*c]}return u.invert=function(e,u){var c=0,f=0,d=50;do{var h=l(c),p=v(c),g=l(f),y=v(f),x=1+g,b=x*p-e,_=s+y*r-x*t*h-u,w=x*h/2,M=-p*y,T=t*x*p/2,k=r*g+t*h*y,A=M*T-k*w,S=(_*M-b*k)/A/2,L=(b*T-_*w)/A;a(L)>2&&(L/=2),c-=S,f-=L}while((a(S)>m||a(L)>m)&&--d>0);return n*f>-o(l(c),i)-.001?[2*c,f]:null},u}function j(){var e=20*L,t=e>=0?1:-1,r=y(t*e),a=(0,n.U)(F),i=a(e),s=i.stream;return i.parallel=function(n){return arguments.length?(r=y((t=(e=n*L)>=0?1:-1)*e),a(e)):e*S},i.stream=function(n){var a=i.rotate(),u=s(n),c=(i.rotate([0,0]),s(n)),f=i.precision();return i.rotate(a),u.sphere=function(){c.polygonStart(),c.lineStart();for(var n=-180*t;t*n<180;n+=90*t)c.point(n,90*t);if(e)for(;t*(n-=3*t*f)>=-180;)c.point(n,t*-o(l(n*L/2),r)*S);c.lineEnd(),c.polygonEnd()},u},i.scale(218.695).center([0,28.0974])}function B(e,t){var r=y(t/2),n=P(1-r*r),a=1+n*l(e/=2),i=v(e)*n/a,o=r/a,s=i*i,u=o*o;return[4/3*i*(3+s-3*u),4/3*o*(3+3*s-u)]}function H(){return(0,n.c)(B).scale(66.1603)}N.invert=function(e,t){if(!(e*e+4*t*t>b*b+m)){var r=e,n=t,i=25;do{var o,s=v(r),u=v(r/2),c=l(r/2),f=v(n),d=l(n),h=v(2*n),p=f*f,g=d*d,y=u*u,x=1-g*c*c,_=x?C(d*c)*P(o=1/x):o=0,w=2*_*d*u-e,M=_*f-t,T=o*(g*y+_*d*c*p),k=o*(.5*s*h-2*_*f*u),A=.25*o*(h*u-_*f*g*s),S=o*(p*c+_*y*d),L=k*A-S*T;if(!L)break;var D=(M*k-w*S)/L,O=(w*A-M*T)/L;r-=D,n-=O}while((a(D)>m||a(O)>m)&&--i>0);return[r,n]}},B.invert=function(e,t){if(t*=3/8,!(e*=3/8)&&a(t)>1)return null;var r=1+e*e+t*t,n=P((r-P(r*r-4*t*t))/2),i=D(n)/3,s=n?function(e){return c(e+P(e*e-1))}(a(t/n))/3:function(e){return c(e+P(e*e+1))}(a(e))/3,u=l(i),f=R(s),d=f*f-u*u;return[2*g(e)*o(O(s)*u,.25-d),2*g(t)*o(f*v(i),.25+d)]};var G=P(8),Y=c(1+T);function U(e,t){var r=a(t);return r<w?[e,c(y(w+t/2))]:[e*l(r)*(2*T-1/v(r)),g(t)*(2*T*(r-w)-c(y(r/2)))]}function q(){return(0,n.c)(U).scale(112.314)}U.invert=function(e,t){if((n=a(t))<Y)return[e,2*i(s(t))-_];var r,n,o=w,u=25;do{var f=l(o/2),d=y(o/2);o-=r=(G*(o-w)-c(d)-n)/(G-f*f/(2*d))}while(a(r)>x&&--u>0);return[e/(l(o)*(G-1/v(o))),g(t)*o]};var V=r(9020);function W(e){var t=2*b/e;function r(e,r){var n=(0,V.O)(e,r);if(a(e)>_){var i=o(n[1],n[0]),s=P(n[0]*n[0]+n[1]*n[1]),u=t*p((i-_)/t)+_,c=o(v(i-=u),2-l(i));i=u+D(b/s*v(c))-c,n[0]=s*l(i),n[1]=s*v(i)}return n}return r.invert=function(e,r){var n=P(e*e+r*r);if(n>_){var a=o(r,e),s=t*p((a-_)/t)+_,u=a>s?-1:1,c=n*l(s-a),f=1/y(u*C((c-b)/P(b*(b-2*c)+n*n)));a=s+2*i((f+u*P(f*f-3))/3),e=n*l(a),r=n*v(a)}return V.O.invert(e,r)},r}function Z(){var e=5,t=(0,n.U)(W),r=t(e),a=r.stream,i=.01,s=-l(i*L),u=v(i*L);return r.lobes=function(r){return arguments.length?t(e=+r):e},r.stream=function(t){var n=r.rotate(),c=a(t),f=(r.rotate([0,0]),a(t));return r.rotate(n),c.sphere=function(){f.polygonStart(),f.lineStart();for(var t=0,r=360/e,n=2*b/e,a=90-180/e,c=_;t<e;++t,a-=r,c-=n)f.point(o(u*l(c),s)*S,D(u*v(c))*S),a<-90?(f.point(-90,-180-a-i),f.point(-90,-180-a+i)):(f.point(90,a+i),f.point(90,a-i));f.lineEnd(),f.polygonEnd()},c},r.scale(87.8076).center([0,17.1875]).clipAngle(179.999)}var J=r(2344);function X(e,t){if(arguments.length<2&&(t=e),1===t)return J.y;if(t===1/0)return $;function r(r,n){var a=(0,J.y)(r/t,n);return a[0]*=e,a}return r.invert=function(r,n){var a=J.y.invert(r/e,n);return a[0]*=t,a},r}function $(e,t){return[e*l(t)/l(t/=2),2*v(t)]}function K(){var e=2,t=(0,n.U)(X),r=t(e);return r.coefficient=function(r){return arguments.length?t(e=+r):e},r.scale(169.529)}function Q(e,t,r){var n,i,o,l=100;r=void 0===r?0:+r,t=+t;do{(i=e(r))===(o=e(r+m))&&(o=i+m),r-=n=-1*m*(i-t)/(i-o)}while(l-- >0&&a(n)>m);return l<0?NaN:r}function ee(e,t,r){return void 0===t&&(t=40),void 0===r&&(r=x),function(n,i,o,l){var s,u,c;o=void 0===o?0:+o,l=void 0===l?0:+l;for(var f=0;f<t;f++){var d=e(o,l),h=d[0]-n,p=d[1]-i;if(a(h)<r&&a(p)<r)break;var g=h*h+p*p;if(g>s)o-=u/=2,l-=c/=2;else{s=g;var v=(o>0?-1:1)*r,y=(l>0?-1:1)*r,m=e(o+v,l),x=e(o,l+y),b=(m[0]-d[0])/v,_=(m[1]-d[1])/v,w=(x[0]-d[0])/y,M=(x[1]-d[1])/y,T=M*b-_*w,k=(a(T)<.5?.5:1)/T;if(o+=u=(p*w-h*M)*k,l+=c=(h*_-p*b)*k,a(u)<r&&a(c)<r)break}}return[o,l]}}function te(){var e=X(1.68,2);function t(t,r){if(t+r<-1.4){var n=(t-r+1.6)*(t+r+1.4)/8;t+=n,r-=.8*n*v(r+b/2)}var a=e(t,r),i=(1-l(t*r))/12;return a[1]<0&&(a[0]*=1+i),a[1]>0&&(a[1]*=1+i/1.5*a[0]*a[0]),a}return t.invert=ee(t),t}function re(){return(0,n.c)(te()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ne(e,t){var r,n=e*v(t),i=30;do{t-=r=(t+v(t)-n)/(1+l(t))}while(a(r)>m&&--i>0);return t/2}function ae(e,t,r){function n(n,a){return[e*n*l(a=ne(r,a)),t*v(a)]}return n.invert=function(n,a){return a=D(a/t),[n/(e*l(a)),D((2*a+v(2*a))/r)]},n}$.invert=function(e,t){var r=2*D(t/2);return[e*l(r/2)/l(r),r]};var ie=ae(T/_,T,b);function oe(){return(0,n.c)(ie).scale(169.529)}var le=2.00276,se=1.11072;function ue(e,t){var r=ne(b,t);return[le*e/(1/l(t)+se/l(r)),(t+T*v(r))/le]}function ce(){return(0,n.c)(ue).scale(160.857)}function fe(e){var t=0,r=(0,n.U)(e),a=r(t);return a.parallel=function(e){return arguments.length?r(t=e*L):t*S},a}function de(e,t){return[e*l(t),t]}function he(){return(0,n.c)(de).scale(152.63)}function pe(e){if(!e)return de;var t=1/y(e);function r(r,n){var a=t+e-n,i=a?r*l(n)/a:a;return[a*v(i),t-a*l(i)]}return r.invert=function(r,n){var a=P(r*r+(n=t-n)*n),i=t+e-a;return[a/l(i)*o(r,n),i]},r}function ge(){return fe(pe).scale(123.082).center([0,26.1441]).parallel(45)}function ve(e){function t(t,r){var n=_-r,a=n?t*e*v(n)/n:n;return[n*v(a)/e,_-n*l(a)]}return t.invert=function(t,r){var n=t*e,a=_-r,i=P(n*n+a*a),l=o(n,a);return[(i?i/v(i):1)*l/e,_-i]},t}function ye(){var e=.5,t=(0,n.U)(ve),r=t(e);return r.fraction=function(r){return arguments.length?t(e=+r):e},r.scale(158.837)}ue.invert=function(e,t){var r,n,i=le*t,o=t<0?-w:w,s=25;do{n=i-T*v(o),o-=r=(v(2*o)+2*o-b*v(n))/(2*l(2*o)+2+b*l(n)*T*l(o))}while(a(r)>m&&--s>0);return n=i-T*v(o),[e*(1/l(n)+se/l(o))/le,n]},de.invert=function(e,t){return[e/l(t),t]};var me=ae(1,4/b,b);function xe(){return(0,n.c)(me).scale(152.63)}var be=r(4052),_e=r(2992);function we(e,t,r,n,i,s){var u,c=l(s);if(a(e)>1||a(s)>1)u=C(r*i+t*n*c);else{var f=v(e/2),d=v(s/2);u=2*D(P(f*f+t*n*d*d))}return a(u)>m?[u,o(n*v(s),t*i-r*n*c)]:[0,0]}function Me(e,t,r){return C((e*e+t*t-r*r)/(2*e*t))}function Te(e){return e-2*b*u((e+b)/(2*b))}function ke(e,t,r){for(var n,a=[[e[0],e[1],v(e[1]),l(e[1])],[t[0],t[1],v(t[1]),l(t[1])],[r[0],r[1],v(r[1]),l(r[1])]],i=a[2],o=0;o<3;++o,i=n)n=a[o],i.v=we(n[1]-i[1],i[3],i[2],n[3],n[2],n[0]-i[0]),i.point=[0,0];var s=Me(a[0].v[0],a[2].v[0],a[1].v[0]),u=Me(a[0].v[0],a[1].v[0],a[2].v[0]),c=b-s;a[2].point[1]=0,a[0].point[0]=-(a[1].point[0]=a[0].v[0]/2);var f=[a[2].point[0]=a[0].point[0]+a[2].v[0]*l(s),2*(a[0].point[1]=a[1].point[1]=a[2].v[0]*v(s))];return function(e,t){var r,n=v(t),i=l(t),o=new Array(3);for(r=0;r<3;++r){var s=a[r];if(o[r]=we(t-s[1],s[3],s[2],i,n,e-s[0]),!o[r][0])return s.point;o[r][1]=Te(o[r][1]-s.v[1])}var d=f.slice();for(r=0;r<3;++r){var h=2==r?0:r+1,p=Me(a[r].v[0],o[r][0],o[h][0]);o[r][1]<0&&(p=-p),r?1==r?(p=u-p,d[0]-=o[r][0]*l(p),d[1]-=o[r][0]*v(p)):(p=c-p,d[0]+=o[r][0]*l(p),d[1]+=o[r][0]*v(p)):(d[0]+=o[r][0]*l(p),d[1]-=o[r][0]*v(p))}return d[0]/=3,d[1]/=3,d}}function Ae(e){return e[0]*=L,e[1]*=L,e}function Se(){return Le([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Le(e,t,r){var a=(0,be.c)({type:"MultiPoint",coordinates:[e,t,r]}),i=[-a[0],-a[1]],o=(0,_e.c)(i),l=ke(Ae(o(e)),Ae(o(t)),Ae(o(r)));l.invert=ee(l);var s=(0,n.c)(l).rotate(i),u=s.center;return delete s.rotate,s.center=function(e){return arguments.length?u(o(e)):o.invert(u())},s.clipAngle(90)}function De(e,t){var r=P(1-v(t));return[2/k*e*r,k*(1-r)]}function Ce(){return(0,n.c)(De).scale(95.6464).center([0,30])}function Pe(e){var t=y(e);function r(e,r){return[e,(e?e/v(e):1)*(v(r)*l(e)-t*l(r))]}return r.invert=t?function(e,r){e&&(r*=v(e)/e);var n=l(e);return[e,2*o(P(n*n+t*t-r*r)-n,t-r)]}:function(e,t){return[e,D(e?t*y(e)/e:t)]},r}function Oe(){return fe(Pe).scale(249.828).clipAngle(90)}De.invert=function(e,t){var r=(r=t/k-1)*r;return[r>0?e*P(b/r)/2:0,D(1-r)]};var Re=P(3);function Ee(e,t){return[Re*e*(2*l(2*t/3)-1)/k,Re*k*v(t/3)]}function Ie(){return(0,n.c)(Ee).scale(156.19)}function Ne(e){var t=l(e);function r(e,r){return[e*t,v(r)/t]}return r.invert=function(e,r){return[e/t,D(r*t)]},r}function ze(){return fe(Ne).parallel(38.58).scale(195.044)}function Fe(e){var t=l(e);function r(e,r){return[e*t,(1+t)*y(r/2)]}return r.invert=function(e,r){return[e/t,2*i(r/(1+t))]},r}function je(){return fe(Fe).scale(124.75)}function Be(e,t){var r=P(8/(3*b));return[r*e*(1-a(t)/b),r*t]}function He(){return(0,n.c)(Be).scale(165.664)}function Ge(e,t){var r=P(4-3*v(a(t)));return[2/P(6*b)*e*r,g(t)*P(2*b/3)*(2-r)]}function Ye(){return(0,n.c)(Ge).scale(165.664)}function Ue(e,t){var r=P(b*(4+b));return[2/r*e*(1+P(1-4*t*t/(b*b))),4/r*t]}function qe(){return(0,n.c)(Ue).scale(180.739)}function Ve(e,t){var r=(2+_)*v(t);t/=2;for(var n=0,i=1/0;n<10&&a(i)>m;n++){var o=l(t);t-=i=(t+v(t)*(o+2)-r)/(2*o*(1+o))}return[2/P(b*(4+b))*e*(1+l(t)),2*P(b/(4+b))*v(t)]}function We(){return(0,n.c)(Ve).scale(180.739)}function Ze(e,t){return[e*(1+l(t))/P(2+b),2*t/P(2+b)]}function Je(){return(0,n.c)(Ze).scale(173.044)}function Xe(e,t){for(var r=(1+_)*v(t),n=0,i=1/0;n<10&&a(i)>m;n++)t-=i=(t+v(t)-r)/(1+l(t));return r=P(2+b),[e*(1+l(t))/r,2*t/r]}function $e(){return(0,n.c)(Xe).scale(173.044)}Ee.invert=function(e,t){var r=3*D(t/(Re*k));return[k*e/(Re*(2*l(2*r/3)-1)),r]},Be.invert=function(e,t){var r=P(8/(3*b)),n=t/r;return[e/(r*(1-a(n)/b)),n]},Ge.invert=function(e,t){var r=2-a(t)/P(2*b/3);return[e*P(6*b)/(2*r),g(t)*D((4-r*r)/3)]},Ue.invert=function(e,t){var r=P(b*(4+b))/2;return[e*r/(1+P(1-t*t*(4+b)/(4*b))),t*r/2]},Ve.invert=function(e,t){var r=t*P((4+b)/b)/2,n=D(r),a=l(n);return[e/(2/P(b*(4+b))*(1+a)),D((n+r*(a+2))/(2+_))]},Ze.invert=function(e,t){var r=P(2+b),n=t*r/2;return[r*e/(1+l(n)),n]},Xe.invert=function(e,t){var r=1+_,n=P(r/2);return[2*e*n/(1+l(t*=n)),D((t+v(t))/r)]};var Ke=3+2*T;function Qe(e,t){var r=v(e/=2),n=l(e),a=P(l(t)),o=l(t/=2),s=v(t)/(o+T*n*a),u=P(2/(1+s*s)),f=P((T*o+(n+r)*a)/(T*o+(n-r)*a));return[Ke*(u*(f-1/f)-2*c(f)),Ke*(u*s*(f+1/f)-2*i(s))]}function et(){return(0,n.c)(Qe).scale(62.5271)}Qe.invert=function(e,t){if(!(r=B.invert(e/1.2,1.065*t)))return null;var r,n=r[0],o=r[1],s=20;e/=Ke,t/=Ke;do{var u=n/2,h=o/2,p=v(u),g=l(u),y=v(h),x=l(h),b=l(o),w=P(b),k=y/(x+T*g*w),A=k*k,S=P(2/(1+A)),L=(T*x+(g+p)*w)/(T*x+(g-p)*w),D=P(L),C=D-1/D,O=D+1/D,R=S*C-2*c(D)-e,E=S*k*O-2*i(k)-t,I=y&&M*w*p*A/y,N=(T*g*x+w)/(2*(x+T*g*w)*(x+T*g*w)*w),z=-.5*k*S*S*S,F=z*I,j=z*N,H=(H=2*x+T*w*(g-p))*H*D,G=(T*g*x*w+b)/H,Y=-T*p*y/(w*H),U=C*F-2*G/D+S*(G+G/L),q=C*j-2*Y/D+S*(Y+Y/L),V=k*O*F-2*I/(1+A)+S*O*I+S*k*(G-G/L),W=k*O*j-2*N/(1+A)+S*O*N+S*k*(Y-Y/L),Z=q*V-W*U;if(!Z)break;var J=(E*q-R*W)/Z,X=(R*V-E*U)/Z;n-=J,o=f(-_,d(_,o-X))}while((a(J)>m||a(X)>m)&&--s>0);return a(a(o)-_)<m?[0,o]:s&&[n,o]};var tt=l(35*L);function rt(e,t){var r=y(t/2);return[e*tt*P(1-r*r),(1+tt)*r]}function nt(){return(0,n.c)(rt).scale(137.152)}function at(e,t){var r=t/2,n=l(r);return[2*e/k*l(t)*n*n,k*y(r)]}function it(){return(0,n.c)(at).scale(135.264)}function ot(e){var t=1-e,r=a(b,0)[0]-a(-b,0)[0],n=P(2*(a(0,_)[1]-a(0,-_)[1])/r);function a(r,n){var a=l(n),i=v(n);return[a/(t+e*a)*r,t*n+e*i]}function i(e,t){var r=a(e,t);return[r[0]*n,r[1]/n]}function o(e){return i(0,e)[1]}return i.invert=function(r,a){var i=Q(o,a);return[r/n*(e+t/l(i)),i]},i}function lt(){var e=.5,t=(0,n.U)(ot),r=t(e);return r.alpha=function(r){return arguments.length?t(e=+r):e},r.scale(168.725)}rt.invert=function(e,t){var r=t/(1+tt);return[e&&e/(tt*P(1-r*r)),2*i(r)]},at.invert=function(e,t){var r=i(t/k),n=l(r),a=2*r;return[e*k/2/(l(a)*n*n),a]};var st=r(2507),ut=r(1986);function ct(e){return[e[0]/2,D(y(e[1]/2*L))*S]}function ft(e){return[2*e[0],2*i(v(e[1]*L))*S]}function dt(e){null==e&&(e=st.c);var t=e(),r=(0,ut.c)().scale(S).precision(0).clipAngle(null).translate([0,0]);function n(e){return t(ct(e))}function a(e){n[e]=function(){return arguments.length?(t[e].apply(t,arguments),n):t[e]()}}return t.invert&&(n.invert=function(e){return ft(t.invert(e))}),n.stream=function(e){var n=t.stream(e),a=r.stream({point:function(e,t){n.point(e/2,D(y(-t/2*L))*S)},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}});return a.sphere=n.sphere,a},n.rotate=function(e){return arguments.length?(r.rotate(e),n):r.rotate()},n.center=function(e){return arguments.length?(t.center(ct(e)),n):ft(t.center())},a("angle"),a("clipAngle"),a("clipExtent"),a("fitExtent"),a("fitHeight"),a("fitSize"),a("fitWidth"),a("scale"),a("translate"),a("precision"),n.scale(249.5)}function ht(e,t){var r=2*b/t,n=e*e;function i(t,i){var s=(0,V.O)(t,i),u=s[0],c=s[1],f=u*u+c*c;if(f>n){var d=P(f),h=o(c,u),g=r*p(h/r),y=h-g,x=e*l(y),w=(e*v(y)-y*v(x))/(_-x),M=pt(y,w),T=(b-e)/gt(M,x,b);u=d;var k,A=50;do{u-=k=(e+gt(M,x,u)*T-d)/(M(u)*T)}while(a(k)>m&&--A>0);c=y*v(u),u<_&&(c-=w*(u-_));var S=v(g),L=l(g);s[0]=u*L-c*S,s[1]=u*S+c*L}return s}return i.invert=function(t,i){var s=t*t+i*i;if(s>n){var u=P(s),c=o(i,t),f=r*p(c/r),d=c-f;t=u*l(d),i=u*v(d);for(var h=t-_,g=v(t),y=i/g,m=t<_?1/0:0,w=10;;){var M=e*v(y),T=e*l(y),k=v(T),A=_-T,S=(M-y*k)/A,L=pt(y,S);if(a(m)<x||! --w)break;y-=m=(y*g-S*h-i)/(g-2*h*(A*(T+y*M*l(T)-k)-M*(M-y*k))/(A*A))}t=(u=e+gt(L,T,t)*(b-e)/gt(L,T,b))*l(c=f+y),i=u*v(c)}return V.O.invert(t,i)},i}function pt(e,t){return function(r){var n=e*l(r);return r<_&&(n-=t),P(1+n*n)}}function gt(e,t,r){for(var n=(r-t)/50,a=e(t)+e(r),i=1,o=t;i<50;++i)a+=2*e(o+=n);return.5*a*n}function vt(){var e=6,t=30*L,r=l(t),a=v(t),i=(0,n.U)(ht),s=i(t,e),u=s.stream,c=-l(.01*L),f=v(.01*L);return s.radius=function(n){return arguments.length?(r=l(t=n*L),a=v(t),i(t,e)):t*S},s.lobes=function(r){return arguments.length?i(t,e=+r):e},s.stream=function(t){var n=s.rotate(),i=u(t),d=(s.rotate([0,0]),u(t));return s.rotate(n),i.sphere=function(){d.polygonStart(),d.lineStart();for(var t=0,n=2*b/e,i=0;t<e;++t,i-=n)d.point(o(f*l(i),c)*S,D(f*v(i))*S),d.point(o(a*l(i-n/2),r)*S,D(a*v(i-n/2))*S);d.lineEnd(),d.polygonEnd()},i},s.rotate([90,-40]).scale(91.7095).clipAngle(179.999)}function yt(e,t,r,n,i,o,s,u){function c(a,c){if(!c)return[e*a/b,0];var f=c*c,d=e+f*(t+f*(r+f*n)),h=c*(i-1+f*(o-u+f*s)),p=(d*d+h*h)/(2*h),g=a*D(d/p)/b;return[p*v(g),c*(1+f*u)+p*(1-l(g))]}return arguments.length<8&&(u=0),c.invert=function(c,f){var d,h,p=b*c/e,g=f,y=50;do{var x=g*g,_=e+x*(t+x*(r+x*n)),w=g*(i-1+x*(o-u+x*s)),M=_*_+w*w,T=2*w,k=M/T,A=k*k,S=D(_/k)/b,L=p*S,C=_*_,O=(2*t+x*(4*r+6*x*n))*g,R=i+x*(3*o+5*x*s),E=(2*(_*O+w*(R-1))*T-M*(2*(R-1)))/(T*T),I=l(L),N=v(L),z=k*I,F=k*N,j=p/b*(1/P(1-C/A))*(O*k-_*E)/A,B=F-c,H=g*(1+x*u)+k-z-f,G=E*N+z*j,Y=z*S,U=1+E-(E*I-F*j),q=F*S,V=G*q-U*Y;if(!V)break;p-=d=(H*G-B*U)/V,g-=h=(B*q-H*Y)/V}while((a(d)>m||a(h)>m)&&--y>0);return[p,g]},c}var mt=yt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xt(){return(0,n.c)(mt).scale(149.995)}var bt=yt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function _t(){return(0,n.c)(bt).scale(153.93)}var wt=yt(5/6*b,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Mt(){return(0,n.c)(wt).scale(130.945)}function Tt(e,t){var r=e*e,n=t*t;return[e*(1-.162388*n)*(.87-952426e-9*r*r),t*(1+n/12)]}function kt(){return(0,n.c)(Tt).scale(131.747)}Tt.invert=function(e,t){var r,n=e,i=t,o=50;do{var l=i*i;i-=r=(i*(1+l/12)-t)/(1+l/4)}while(a(r)>m&&--o>0);o=50,e/=1-.162388*l;do{var s=(s=n*n)*s;n-=r=(n*(.87-952426e-9*s)-e)/(.87-.00476213*s)}while(a(r)>m&&--o>0);return[n,i]};var At=yt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function St(){return(0,n.c)(At).scale(131.087)}function Lt(e){var t=e(_,0)[0]-e(-_,0)[0];function r(r,n){var a=r>0?-.5:.5,i=e(r+a*b,n);return i[0]-=a*t,i}return e.invert&&(r.invert=function(r,n){var a=r>0?-.5:.5,i=e.invert(r+a*t,n),o=i[0]-a*b;return o<-b?o+=2*b:o>b&&(o-=2*b),i[0]=o,i}),r}function Dt(e,t){var r=g(e),n=g(t),i=l(t),s=l(e)*i,u=v(e)*i,c=v(n*t);e=a(o(u,c)),t=D(s),a(e-_)>m&&(e%=_);var f=function(e,t){if(t===_)return[0,0];var r,n,i=v(t),o=i*i,s=o*o,u=1+s,c=1+3*s,f=1-s,d=D(1/P(u)),h=f+o*u*d,p=(1-i)/h,g=P(p),y=p*u,x=P(y),w=g*f;if(0===e)return[0,-(w+o*x)];var M,T=l(t),k=1/T,A=2*i*T,S=(-h*T-(1-i)*((-3*o+d*c)*A))/(h*h),L=-k*A,C=-k*(o*u*S+p*c*A),O=-2*k*(f*(.5*S/g)-2*o*g*A),R=4*e/b;if(e>.222*b||t<b/4&&e>.175*b){if(r=(w+o*P(y*(1+s)-w*w))/(1+s),e>b/4)return[r,r];var E=r,I=.5*r;r=.5*(I+E),n=50;do{var N=r*(O+L*P(y-r*r))+C*D(r/x)-R;if(!N)break;N<0?I=r:E=r,r=.5*(I+E)}while(a(E-I)>m&&--n>0)}else{r=m,n=25;do{var z=r*r,F=P(y-z),j=O+L*F,B=r*j+C*D(r/x)-R;r-=M=F?B/(j+(C-L*z)/F):0}while(a(M)>m&&--n>0)}return[r,-w-o*P(y-r*r)]}(e>b/4?_-e:e,t);return e>b/4&&(c=f[0],f[0]=-f[1],f[1]=-c),f[0]*=r,f[1]*=-n,f}function Ct(){return(0,n.c)(Lt(Dt)).scale(239.75)}function Pt(e,t){var r,n,o,u,c,f;if(t<m)return[(u=v(e))-(r=t*(e-u*(n=l(e)))/4)*n,n+r*u,1-t*u*u/2,e-r];if(t>=1-m)return r=(1-t)/4,o=1/(n=R(e)),[(u=((f=s(2*(f=e)))-1)/(f+1))+r*((c=n*O(e))-e)/(n*n),o-r*u*o*(c-e),o+r*u*o*(c+e),2*i(s(e))-_+r*(c-e)/n];var d=[1,0,0,0,0,0,0,0,0],h=[P(t),0,0,0,0,0,0,0,0],p=0;for(n=P(1-t),c=1;a(h[p]/d[p])>m&&p<8;)r=d[p++],h[p]=(r-n)/2,d[p]=(r+n)/2,n=P(r*n),c*=2;o=c*d[p]*e;do{o=(D(u=h[p]*v(n=o)/d[p])+o)/2}while(--p);return[v(o),u=l(o),u/l(o-n),o]}function Ot(e,t){if(!t)return e;if(1===t)return c(y(e/2+w));for(var r=1,n=P(1-t),o=P(t),l=0;a(o)>m;l++){if(e%b){var s=i(n*y(e)/r);s<0&&(s+=b),e+=s+~~(e/b)*b}else e+=e;o=(r+n)/2,n=P(r*n),o=((r=o)-n)/2}return e/(h(2,l)*r)}function Rt(e,t){var r=(T-1)/(T+1),n=P(1-r*r),u=Ot(_,n*n),f=c(y(b/4+a(t)/2)),d=s(-1*f)/P(r),h=function(e,t){var r=e*e,n=t+1,a=1-r-t*t;return[.5*((e>=0?_:-_)-o(a,2*e)),-.25*c(a*a+4*r)+.5*c(n*n+r)]}(d*l(-1*e),d*v(-1*e)),p=function(e,t,r){var n=a(e),o=O(a(t));if(n){var l=1/v(n),s=1/(y(n)*y(n)),u=-(s+r*(o*o*l*l)-1+r),c=(-u+P(u*u-(r-1)*s*4))/2;return[Ot(i(1/P(c)),r)*g(e),Ot(i(P((c/s-1)/r)),1-r)*g(t)]}return[0,Ot(i(o),1-r)*g(t)]}(h[0],h[1],n*n);return[-p[1],(t>=0?1:-1)*(.5*u-p[0])]}function Et(){return(0,n.c)(Lt(Rt)).scale(151.496)}Dt.invert=function(e,t){a(e)>1&&(e=2*g(e)-e),a(t)>1&&(t=2*g(t)-t);var r=g(e),n=g(t),i=-r*e,s=-n*t,u=s/i<1,c=function(e,t){for(var r=0,n=1,i=.5,o=50;;){var s=i*i,u=P(i),c=D(1/P(1+s)),f=1-s+i*(1+s)*c,d=(1-u)/f,h=P(d),p=d*(1+s),g=h*(1-s),v=P(p-e*e),y=t+g+i*v;if(a(n-r)<x||0==--o||0===y)break;y>0?r=i:n=i,i=.5*(r+n)}if(!o)return null;var m=D(u),_=l(m),w=1/_,M=2*u*_,T=(-f*_-(-3*i+c*(1+3*s))*M*(1-u))/(f*f);return[b/4*(e*(-2*w*((1-s)*(.5*T/h)-2*i*h*M)+-w*M*v)+-w*(i*(1+s)*T+d*(1+3*s)*M)*D(e/P(p))),m]}(u?s:i,u?i:s),f=c[0],d=c[1],h=l(d);return u&&(f=-_-f),[r*(o(v(f)*h,-v(d))+b),n*D(l(f)*h)]},Rt.invert=function(e,t){var r,n,a,l,u,f,d=(T-1)/(T+1),h=P(1-d*d),p=(n=-e,a=h*h,(r=.5*Ot(_,h*h)-t)?(l=Pt(r,a),n?(f=(u=Pt(n,1-a))[1]*u[1]+a*l[0]*l[0]*u[0]*u[0],[[l[0]*u[2]/f,l[1]*l[2]*u[0]*u[1]/f],[l[1]*u[1]/f,-l[0]*l[2]*u[0]*u[2]/f],[l[2]*u[1]*u[2]/f,-a*l[0]*l[1]*u[0]/f]]):[[l[0],0],[l[1],0],[l[2],0]]):[[0,(u=Pt(n,1-a))[0]/u[1]],[1/u[1],0],[u[2]/u[1],0]]),g=function(e,t){var r=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/r,(e[1]*t[0]-e[0]*t[1])/r]}(p[0],p[1]);return[o(g[1],g[0])/-1,2*i(s(-.5*c(d*g[0]*g[0]+d*g[1]*g[1])))-_]};var It=r(9399);function Nt(e){var t=v(e),r=l(e),n=zt(e);function i(e,i){var o=n(e,i);e=o[0],i=o[1];var s=v(i),u=l(i),c=l(e),f=C(t*s+r*u*c),d=v(f),h=a(d)>m?f/d:1;return[h*r*v(e),(a(e)>_?h:-h)*(t*u-r*s*c)]}return n.invert=zt(-e),i.invert=function(e,r){var a=P(e*e+r*r),i=-v(a),s=l(a),u=a*s,c=-r*i,f=a*t,d=P(u*u+c*c-f*f),h=o(u*f+c*d,c*f-u*d),p=(a>_?-1:1)*o(e*i,a*l(h)*s+r*v(h)*i);return n.invert(p,h)},i}function zt(e){var t=v(e),r=l(e);return function(e,n){var a=l(n),i=l(e)*a,s=v(e)*a,u=v(n);return[o(s,i*r-u*t),D(u*r+i*t)]}}function Ft(){var e=0,t=(0,n.U)(Nt),r=t(e),a=r.rotate,i=r.stream,o=(0,It.c)();return r.parallel=function(n){if(!arguments.length)return e*S;var a=r.rotate();return t(e=n*L).rotate(a)},r.rotate=function(t){return arguments.length?(a.call(r,[t[0],t[1]-e*S]),o.center([-t[0],-t[1]]),r):((t=a.call(r))[1]+=e*S,t)},r.stream=function(e){return(e=i(e)).sphere=function(){e.polygonStart();var t,r=o.radius(89.99)().coordinates[0],n=r.length-1,a=-1;for(e.lineStart();++a<n;)e.point((t=r[a])[0],t[1]);for(e.lineEnd(),n=(r=o.radius(90.01)().coordinates[0]).length-1,e.lineStart();--a>=0;)e.point((t=r[a])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},r.scale(79.4187).parallel(45).clipAngle(179.999)}var jt=r(376),Bt=r(6016),Ht=D(1-1/3)*S,Gt=Ne(0);function Yt(e){var t=Ht*L,r=De(b,t)[0]-De(-b,t)[0],n=Gt(0,t)[1],i=De(0,t)[1],o=k-i,l=A/e,s=4/A,c=n+o*o*4/A;function h(h,p){var g,v=a(p);if(v>t){var y=d(e-1,f(0,u((h+b)/l)));(g=De(h+=b*(e-1)/e-y*l,v))[0]=g[0]*A/r-A*(e-1)/(2*e)+y*A/e,g[1]=n+4*(g[1]-i)*o/A,p<0&&(g[1]=-g[1])}else g=Gt(h,p);return g[0]*=s,g[1]/=c,g}return h.invert=function(t,h){t/=s;var p=a(h*=c);if(p>n){var g=d(e-1,f(0,u((t+b)/l)));t=(t+b*(e-1)/e-g*l)*r/A;var v=De.invert(t,.25*(p-n)*A/o+i);return v[0]-=b*(e-1)/e-g*l,h<0&&(v[1]=-v[1]),v}return Gt.invert(t,h)},h}function Ut(e,t){return[e,1&t?90-m:Ht]}function qt(e,t){return[e,1&t?-90+m:-Ht]}function Vt(e){return[e[0]*(1-m),e[1]]}function Wt(){var e=4,t=(0,n.U)(Yt),r=t(e),a=r.stream;return r.lobes=function(r){return arguments.length?t(e=+r):e},r.stream=function(t){var n=r.rotate(),i=a(t),o=(r.rotate([0,0]),a(t));return r.rotate(n),i.sphere=function(){var t,r;(0,Bt.c)((t=180/e,r=[].concat((0,jt.ik)(-180,180+t/2,t).map(Ut),(0,jt.ik)(180,-180-t/2,-t).map(qt)),{type:"Polygon",coordinates:[180===t?r.map(Vt):r]}),o)},i},r.scale(239.75)}function Zt(e){var t,r=1+e,n=D(v(1/r)),i=2*P(b/(t=b+4*n*r)),s=.5*i*(r+P(e*(2+e))),u=e*e,c=r*r;function f(f,d){var h,p,g=1-v(d);if(g&&g<2){var y,m=_-d,w=25;do{var M=v(m),T=l(m),k=n+o(M,r-T),A=1+c-2*r*T;m-=y=(m-u*n-r*M+A*k-.5*g*t)/(2*r*M*k)}while(a(y)>x&&--w>0);h=i*P(A),p=f*k/b}else h=i*(e+g),p=f*n/b;return[h*v(p),s-h*l(p)]}return f.invert=function(e,a){var l=e*e+(a-=s)*a,f=(1+c-l/(i*i))/(2*r),d=C(f),h=v(d),p=n+o(h,r-f);return[D(e/P(l))*b/p,D(1-2*(d-u*n-r*h+(1+c-2*r*f)*p)/t)]},f}function Jt(){var e=1,t=(0,n.U)(Zt),r=t(e);return r.ratio=function(r){return arguments.length?t(e=+r):e},r.scale(167.774).center([0,18.67])}var Xt=.7109889596207567,$t=.0528035274542;function Kt(e,t){return t>-Xt?((e=ie(e,t))[1]+=$t,e):de(e,t)}function Qt(){return(0,n.c)(Kt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function er(e,t){return a(t)>Xt?((e=ie(e,t))[1]-=t>0?$t:-$t,e):de(e,t)}function tr(){return(0,n.c)(er).scale(152.63)}function rr(e,t,r,n){var a=P(4*b/(2*r+(1+e-t/2)*v(2*r)+(e+t)/2*v(4*r)+t/2*v(6*r))),i=P(n*v(r)*P((1+e*l(2*r)+t*l(4*r))/(1+e+t))),o=r*u(1);function s(r){return P(1+e*l(2*r)+t*l(4*r))}function u(n){var a=n*r;return(2*a+(1+e-t/2)*v(2*a)+(e+t)/2*v(4*a)+t/2*v(6*a))/r}function c(e){return s(e)*v(e)}var f=function(e,t){var n=r*Q(u,o*v(t)/r,t/b);isNaN(n)&&(n=r*g(t));var c=a*s(n);return[c*i*e/b*l(n),c/i*v(n)]};return f.invert=function(e,t){var n=Q(c,t*i/a);return[e*b/(l(n)*a*i*s(n)),D(r*u(n/r)/o)]},0===r&&(a=P(n/b),(f=function(e,t){return[e*a,v(t)/a]}).invert=function(e,t){return[e/a,D(t*a)]}),f}function nr(){var e=1,t=0,r=45*L,a=2,i=(0,n.U)(rr),o=i(e,t,r,a);return o.a=function(n){return arguments.length?i(e=+n,t,r,a):e},o.b=function(n){return arguments.length?i(e,t=+n,r,a):t},o.psiMax=function(n){return arguments.length?i(e,t,r=+n*L,a):r*S},o.ratio=function(n){return arguments.length?i(e,t,r,a=+n):a},o.scale(180.739)}function ar(e,t,r,n,a,i,o,l,s,u,c){if(c.nanEncountered)return NaN;var f,d,h,p,g,v,y,m,x,b;if(d=e(t+.25*(f=r-t)),h=e(r-.25*f),isNaN(d))c.nanEncountered=!0;else{if(!isNaN(h))return b=((v=(p=f*(n+4*d+a)/12)+(g=f*(a+4*h+i)/12))-o)/15,u>s?(c.maxDepthCount++,v+b):Math.abs(b)<l?v+b:(m=ar(e,t,y=t+.5*f,n,d,a,p,.5*l,s,u+1,c),isNaN(m)?(c.nanEncountered=!0,NaN):(x=ar(e,y,r,a,h,i,g,.5*l,s,u+1,c),isNaN(x)?(c.nanEncountered=!0,NaN):m+x));c.nanEncountered=!0}}function ir(e,t,r,n,a){void 0===n&&(n=1e-8),void 0===a&&(a=20);var i=e(t),o=e(.5*(t+r)),l=e(r);return ar(e,t,r,i,o,l,(i+4*o+l)*(r-t)/6,n,a,1,{maxDepthCount:0,nanEncountered:!1})}function or(e,t,r){function n(r){return e+(1-e)*h(1-h(r,t),1/t)}function i(e){return ir(n,0,e,1e-4)}for(var o=1/i(1),l=1e3,s=(1+1e-8)*o,u=[],c=0;c<=l;c++)u.push(i(c/l)*s);function f(e){var t=0,r=l,n=500;do{u[n]>e?r=n:t=n,n=t+r>>1}while(n>t);var a=u[n+1]-u[n];return a&&(a=(e-u[n+1])/a),(n+1+a)/l}var d=2*f(1)/b*o/r,p=function(e,t){var r=f(a(v(t))),i=n(r)*e;return r/=d,[i,t>=0?r:-r]};return p.invert=function(e,t){var r;return a(t*=d)<1&&(r=g(t)*D(i(a(t))*o)),[e/n(a(t)),r]},p}function lr(){var e=0,t=2.5,r=1.183136,a=(0,n.U)(or),i=a(e,t,r);return i.alpha=function(n){return arguments.length?a(e=+n,t,r):e},i.k=function(n){return arguments.length?a(e,t=+n,r):t},i.gamma=function(n){return arguments.length?a(e,t,r=+n):r},i.scale(152.63)}function sr(e,t){return a(e[0]-t[0])<m&&a(e[1]-t[1])<m}function ur(e,t){for(var r,n,a,i=-1,o=e.length,l=e[0],s=[];++i<o;){n=((r=e[i])[0]-l[0])/t,a=(r[1]-l[1])/t;for(var u=0;u<t;++u)s.push([l[0]+u*n,l[1]+u*a]);l=r}return s.push(r),s}function cr(e,t,r){var a,i;function o(r,n){for(var a=n<0?-1:1,i=t[+(n<0)],o=0,l=i.length-1;o<l&&r>i[o][2][0];++o);var s=e(r-i[o][1][0],n);return s[0]+=e(i[o][1][0],a*n>a*i[o][0][1]?i[o][0][1]:n)[0],s}r?o.invert=r(o):e.invert&&(o.invert=function(r,n){for(var a=i[+(n<0)],l=t[+(n<0)],s=0,u=a.length;s<u;++s){var c=a[s];if(c[0][0]<=r&&r<c[1][0]&&c[0][1]<=n&&n<c[1][1]){var f=e.invert(r-e(l[s][1][0],0)[0],n);return f[0]+=l[s][1][0],sr(o(f[0],f[1]),[r,n])?f:null}}});var l=(0,n.c)(o),s=l.stream;return l.stream=function(e){var t=l.rotate(),r=s(e),n=(l.rotate([0,0]),s(e));return l.rotate(t),r.sphere=function(){(0,Bt.c)(a,n)},r},l.lobes=function(r){return arguments.length?(a=function(e){var t,r,n,a,i,o,l,s=[],u=e[0].length;for(l=0;l<u;++l)r=(t=e[0][l])[0][0],n=t[0][1],a=t[1][1],i=t[2][0],o=t[2][1],s.push(ur([[r+m,n+m],[r+m,a-m],[i-m,a-m],[i-m,o+m]],30));for(l=e[1].length-1;l>=0;--l)r=(t=e[1][l])[0][0],n=t[0][1],a=t[1][1],i=t[2][0],o=t[2][1],s.push(ur([[i-m,o-m],[i-m,a+m],[r+m,a+m],[r+m,n-m]],30));return{type:"Polygon",coordinates:[(0,jt.Uf)(s)]}}(r),t=r.map((function(e){return e.map((function(e){return[[e[0][0]*L,e[0][1]*L],[e[1][0]*L,e[1][1]*L],[e[2][0]*L,e[2][1]*L]]}))})),i=t.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],a=e(t[2][0],t[2][1])[0],i=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return i>o&&(r=i,i=o,o=r),[[n,i],[a,o]]}))})),l):t.map((function(e){return e.map((function(e){return[[e[0][0]*S,e[0][1]*S],[e[1][0]*S,e[1][1]*S],[e[2][0]*S,e[2][1]*S]]}))}))},null!=t&&l.lobes(t),l}Kt.invert=function(e,t){return t>-Xt?ie.invert(e,t-$t):de.invert(e,t)},er.invert=function(e,t){return a(t)>Xt?ie.invert(e,t+(t>0?$t:-$t)):de.invert(e,t)};var fr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function dr(){return cr(ue,fr).scale(160.857)}var hr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function pr(){return cr(er,hr).scale(152.63)}var gr=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function vr(){return cr(ie,gr).scale(169.529)}var yr=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function mr(){return cr(ie,yr).scale(169.529).rotate([20,0])}var xr=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function br(){return cr(Kt,xr,ee).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var _r=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function wr(){return cr(de,_r).scale(152.63).rotate([-20,0])}function Mr(e,t){return[3/A*e*P(b*b/3-t*t),t]}function Tr(){return(0,n.c)(Mr).scale(158.837)}function kr(e){function t(t,r){if(a(a(r)-_)<m)return[0,r<0?-2:2];var n=v(r),i=h((1+n)/(1-n),e/2),o=.5*(i+1/i)+l(t*=e);return[2*v(t)/o,(i-1/i)/o]}return t.invert=function(t,r){var n=a(r);if(a(n-2)<m)return t?null:[0,g(r)*_];if(n>2)return null;var i=(t/=2)*t,l=(r/=2)*r,s=2*r/(1+i+l);return s=h((1+s)/(1-s),1/e),[o(2*t,1-i-l)/e,D((s-1)/(s+1))]},t}function Ar(){var e=.5,t=(0,n.U)(kr),r=t(e);return r.spacing=function(r){return arguments.length?t(e=+r):e},r.scale(124.75)}Mr.invert=function(e,t){return[A/3*e/P(b*b/3-t*t),t]};var Sr=b/T;function Lr(e,t){return[e*(1+P(l(t)))/2,t/(l(t/2)*l(e/6))]}function Dr(){return(0,n.c)(Lr).scale(97.2672)}function Cr(e,t){var r=e*e,n=t*t;return[e*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),t*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function Pr(){return(0,n.c)(Cr).scale(139.98)}function Or(e,t){return[v(e)/l(t),y(t)*l(e)]}function Rr(){return(0,n.c)(Or).scale(144.049).clipAngle(89.999)}function Er(e){var t=l(e),r=y(w+e/2);function n(n,i){var o=i-e,l=a(o)<m?n*t:a(l=w+i/2)<m||a(a(l)-_)<m?0:n*o/c(y(l)/r);return[l,o]}return n.invert=function(n,i){var o,l=i+e;return[a(i)<m?n/t:a(o=w+l/2)<m||a(a(o)-_)<m?0:n*c(y(o)/r)/i,l]},n}function Ir(){return fe(Er).parallel(40).scale(158.837)}function Nr(e,t){return[e,1.25*c(y(w+.4*t))]}function zr(){return(0,n.c)(Nr).scale(108.318)}function Fr(e){var t=e.length-1;function r(r,n){for(var a,i=l(n),o=2/(1+i*l(r)),s=o*i*v(r),u=o*v(n),c=t,f=e[c],d=f[0],h=f[1];--c>=0;)d=(f=e[c])[0]+s*(a=d)-u*h,h=f[1]+s*h+u*a;return[d=s*(a=d)-u*h,h=s*h+u*a]}return r.invert=function(r,n){var s=20,u=r,c=n;do{for(var f,d=t,h=e[d],p=h[0],g=h[1],y=0,x=0;--d>=0;)y=p+u*(f=y)-c*x,x=g+u*x+c*f,p=(h=e[d])[0]+u*(f=p)-c*g,g=h[1]+u*g+c*f;var b,_,w=(y=p+u*(f=y)-c*x)*y+(x=g+u*x+c*f)*x;u-=b=((p=u*(f=p)-c*g-r)*y+(g=u*g+c*f-n)*x)/w,c-=_=(g*y-p*x)/w}while(a(b)+a(_)>m*m&&--s>0);if(s){var M=P(u*u+c*c),T=2*i(.5*M),k=v(T);return[o(u*k,M*l(T)),M?D(c*k/M):0]}},r}Lr.invert=function(e,t){var r=a(e),n=a(t),i=m,o=_;n<Sr?o*=n/Sr:i+=6*C(Sr/n);for(var s=0;s<25;s++){var u=v(o),c=P(l(o)),f=v(o/2),d=l(o/2),h=v(i/6),p=l(i/6),g=.5*i*(1+c)-r,y=o/(d*p)-n,x=c?-.25*i*u/c:0,b=.5*(1+c),w=(1+.5*o*f/d)/(d*p),M=o/d*(h/6)/(p*p),T=x*M-w*b,k=(g*M-y*b)/T,A=(y*x-g*w)/T;if(o-=k,i-=A,a(k)<m&&a(A)<m)break}return[e<0?-i:i,t<0?-o:o]},Cr.invert=function(e,t){var r=g(e)*b,n=t/2,i=50;do{var o=r*r,l=n*n,s=r*n,u=r*(.975534+l*(-.0143059*o-.119161+-.0547009*l))-e,c=n*(1.00384+o*(.0802894+-.02855*l+199025e-9*o)+l*(.0998909+-.0491032*l))-t,f=.975534-l*(.119161+3*o*.0143059+.0547009*l),d=-s*(.238322+.2188036*l+.0286118*o),h=s*(.1605788+7961e-7*o+-.0571*l),p=1.00384+o*(.0802894+199025e-9*o)+l*(3*(.0998909-.02855*o)-.245516*l),v=d*h-p*f,y=(c*d-u*p)/v,x=(u*h-c*f)/v;r-=y,n-=x}while((a(y)>m||a(x)>m)&&--i>0);return i&&[r,n]},Or.invert=function(e,t){var r=e*e,n=t*t+1,a=r+n,i=e?M*P((a-P(a*a-4*r))/r):1/P(n);return[D(e*i),g(t)*C(i)]},Nr.invert=function(e,t){return[e,2.5*i(s(.8*t))-.625*b]};var jr=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Br=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Hr=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Gr=[[.9245,0],[0,0],[.01943,0]],Yr=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ur(){return Jr(jr,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function qr(){return Jr(Br,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Vr(){return Jr(Hr,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Wr(){return Jr(Gr,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Zr(){return Jr(Yr,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Jr(e,t){var r=(0,n.c)(Fr(e)).rotate(t).clipAngle(90),a=(0,_e.c)(t),i=r.center;return delete r.rotate,r.center=function(e){return arguments.length?i(a(e)):a.invert(i())},r}var Xr=P(6),$r=P(7);function Kr(e,t){var r=D(7*v(t)/(3*Xr));return[Xr*e*(2*l(2*r/3)-1)/$r,9*v(r/3)/$r]}function Qr(){return(0,n.c)(Kr).scale(164.859)}function en(e,t){for(var r,n=(1+M)*v(t),i=t,o=0;o<25&&(i-=r=(v(i/2)+v(i)-n)/(.5*l(i/2)+l(i)),!(a(r)<m));o++);return[e*(1+2*l(i)/l(i/2))/(3*T),2*P(3)*v(i/2)/P(2+T)]}function tn(){return(0,n.c)(en).scale(188.209)}function rn(e,t){for(var r,n=P(6/(4+b)),i=(1+b/4)*v(t),o=t/2,s=0;s<25&&(o-=r=(o/2+v(o)-i)/(.5+l(o)),!(a(r)<m));s++);return[n*(.5+l(o))*e/1.5,n*o]}function nn(){return(0,n.c)(rn).scale(166.518)}Kr.invert=function(e,t){var r=3*D(t*$r/9);return[e*$r/(Xr*(2*l(2*r/3)-1)),D(3*v(r)*Xr/7)]},en.invert=function(e,t){var r=t*P(2+T)/(2*P(3)),n=2*D(r);return[3*T*e/(1+2*l(n)/l(n/2)),D((r+v(n))/(1+M))]},rn.invert=function(e,t){var r=P(6/(4+b)),n=t/r;return a(a(n)-_)<m&&(n=n<0?-_:_),[1.5*e/(r*(.5+l(n))),D((n/2+v(n))/(1+b/4))]};var an=r(7984);function on(e,t){var r=t*t,n=r*r,a=r*n;return[e*(.84719-.13063*r+a*a*(.05494*r-.04515-.02326*n+.00331*a)),t*(1.01183+n*n*(.01926*r-.02625-.00396*n))]}function ln(){return(0,n.c)(on).scale(175.295)}function sn(e,t){return[e*(1+l(t))/2,2*(t-y(t/2))]}function un(){return(0,n.c)(sn).scale(152.63)}on.invert=function(e,t){var r,n,i,o,l=t,s=25;do{l-=r=(l*(1.01183+(i=(n=l*l)*n)*i*(.01926*n-.02625-.00396*i))-t)/(1.01183+i*i*(.21186*n-.23625+-.05148*i))}while(a(r)>x&&--s>0);return[e/(.84719-.13063*(n=l*l)+(o=n*(i=n*n))*o*(.05494*n-.04515-.02326*i+.00331*o)),l]},sn.invert=function(e,t){for(var r=t/2,n=0,i=1/0;n<10&&a(i)>m;++n){var o=l(t/2);t-=i=(t-y(t/2)-r)/(1-.5/(o*o))}return[2*e/(1+l(t)),t]};var cn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function fn(){return cr(X(1/0),cn).rotate([20,0]).scale(152.63)}function dn(e,t){var r=v(t),n=l(t),i=g(e);if(0===e||a(t)===_)return[0,t];if(0===t)return[e,0];if(a(e)===_)return[e*n,_*r];var o=b/(2*e)-2*e/b,s=2*t/b,u=(1-s*s)/(r-s),c=o*o,f=u*u,d=1+c/f,h=1+f/c,p=(o*r/u-o/2)/d,y=(f*r/c+u/2)/h,m=y*y-(f*r*r/c+u*r-1)/h;return[_*(p+P(p*p+n*n/d)*i),_*(y+P(m<0?0:m)*g(-t*o)*i)]}function hn(){return(0,n.c)(dn).scale(127.267)}dn.invert=function(e,t){var r=(e/=_)*e,n=r+(t/=_)*t,a=b*b;return[e?(n-1+P((1-n)*(1-n)+4*r))/(2*e)*_:0,Q((function(e){return n*(b*v(e)-2*e)*b+4*e*e*(t-v(e))+2*b*e-a*t}),0)]};var pn=1.0148,gn=.23185,vn=-.14499,yn=.02406,mn=pn,xn=5*gn,bn=7*vn,_n=9*yn,wn=1.790857183;function Mn(e,t){var r=t*t;return[e,t*(pn+r*r*(gn+r*(vn+yn*r)))]}function Tn(){return(0,n.c)(Mn).scale(139.319)}function kn(e,t){if(a(t)<m)return[e,0];var r=y(t),n=e*v(t);return[v(n)/r,t+(1-l(n))/r]}function An(){return(0,n.c)(kn).scale(103.74)}Mn.invert=function(e,t){t>wn?t=wn:t<-1.790857183&&(t=-1.790857183);var r,n=t;do{var i=n*n;n-=r=(n*(pn+i*i*(gn+i*(vn+yn*i)))-t)/(mn+i*i*(xn+i*(bn+_n*i)))}while(a(r)>m);return[e,n]},kn.invert=function(e,t){if(a(t)<m)return[e,0];var r,n=e*e+t*t,i=.5*t,o=10;do{var s=y(i),u=1/l(i),c=n-2*t*i+i*i;i-=r=(s*c+2*(i-t))/(2+c*u*u+2*(i-t)*s)}while(a(r)>m&&--o>0);return s=y(i),[(a(t)<a(i+1/s)?D(e*s):g(t)*g(e)*(C(a(e*s))+_))/v(i),i]};var Sn=r(1315),Ln=r(7284);function Dn(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function Cn(e,t){return[e[0]-t[0],e[1]-t[1]]}function Pn(e){return P(e[0]*e[0]+e[1]*e[1])}function On(e,t,r){function a(e,r){var n,a=t(e,r),i=a.project([e*S,r*S]);return(n=a.transform)?[n[0]*i[0]+n[1]*i[1]+n[2],-(n[3]*i[0]+n[4]*i[1]+n[5])]:(i[1]=-i[1],i)}function i(e,r){var n=e.project.invert,a=e.transform,o=r;if(a&&(a=function(e){var t=1/(e[0]*e[4]-e[1]*e[3]);return[t*e[4],-t*e[1],t*(e[1]*e[5]-e[2]*e[4]),-t*e[3],t*e[0],t*(e[2]*e[3]-e[0]*e[5])]}(a),o=[a[0]*o[0]+a[1]*o[1]+a[2],a[3]*o[0]+a[4]*o[1]+a[5]]),n&&e===function(e){return t(e[0]*L,e[1]*L)}(l=n(o)))return l;for(var l,s=e.children,u=0,c=s&&s.length;u<c;++u)if(l=i(s[u],r))return l}!function e(t,r){if(t.edges=function(e){for(var t=e.length,r=[],n=e[t-1],a=0;a<t;++a)r.push([n,n=e[a]]);return r}(t.face),r.face){var n=t.shared=function(e,t){for(var r,n,a=e.length,i=null,o=0;o<a;++o){r=e[o];for(var l=t.length;--l>=0;)if(n=t[l],r[0]===n[0]&&r[1]===n[1]){if(i)return[i,r];i=r}}}(t.face,r.face),a=(c=n.map(r.project),f=n.map(t.project),d=Cn(c[1],c[0]),h=Cn(f[1],f[0]),p=function(e,t){return o(e[0]*t[1]-e[1]*t[0],e[0]*t[0]+e[1]*t[1])}(d,h),g=Pn(d)/Pn(h),Dn([1,0,c[0][0],0,1,c[0][1]],Dn([g,0,0,0,g,0],Dn([l(p),v(p),0,-v(p),l(p),0],[1,0,-f[0][0],0,1,-f[0][1]]))));t.transform=r.transform?Dn(r.transform,a):a;for(var i=r.edges,s=0,u=i.length;s<u;++s)En(n[0],i[s][1])&&En(n[1],i[s][0])&&(i[s]=t),En(n[0],i[s][0])&&En(n[1],i[s][1])&&(i[s]=t);for(s=0,u=(i=t.edges).length;s<u;++s)En(n[0],i[s][0])&&En(n[1],i[s][1])&&(i[s]=r),En(n[0],i[s][1])&&En(n[1],i[s][0])&&(i[s]=r)}else t.transform=r.transform;var c,f,d,h,p,g;return t.children&&t.children.forEach((function(r){e(r,t)})),t}(e,{transform:null}),In(e)&&(a.invert=function(t,r){var n=i(e,[t,-r]);return n&&(n[0]*=L,n[1]*=L,n)});var s=(0,n.c)(a),u=s.stream;return s.stream=function(t){var r=s.rotate(),n=u(t),a=(s.rotate([0,0]),u(t));return s.rotate(r),n.sphere=function(){a.polygonStart(),a.lineStart(),Rn(a,e),a.lineEnd(),a.polygonEnd()},n},s.angle(null==r?-30:r*S)}function Rn(e,t,r){var n,i,o=t.edges,l=o.length,s={type:"MultiPoint",coordinates:t.face},u=t.face.filter((function(e){return 90!==a(e[1])})),c=(0,Sn.c)({type:"MultiPoint",coordinates:u}),f=!1,d=-1,h=c[1][0]-c[0][0],p=180===h||360===h?[(c[0][0]+c[1][0])/2,(c[0][1]+c[1][1])/2]:(0,be.c)(s);if(r)for(;++d<l&&o[d]!==r;);++d;for(var g=0;g<l;++g)i=o[(g+d)%l],Array.isArray(i)?(f||(e.point((n=(0,Ln.c)(i[0],p)(m))[0],n[1]),f=!0),e.point((n=(0,Ln.c)(i[1],p)(m))[0],n[1])):(f=!1,i!==r&&Rn(e,i,t))}function En(e,t){return e&&t&&e[0]===t[0]&&e[1]===t[1]}function In(e){return e.project.invert||e.children&&e.children.some(In)}var Nn=r(3285),zn=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Fn=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(e){return e.map((function(e){return zn[e]}))}));function jn(e){e=e||function(e){var t=(0,be.c)({type:"MultiPoint",coordinates:e});return(0,Nn.c)().scale(1).translate([0,0]).rotate([-t[0],-t[1]])};var t=Fn.map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,r){var n=t[e];n&&(n.children||(n.children=[])).push(t[r])})),On(t[0],(function(e,r){return t[e<-b/2?r<0?6:4:e<0?r<0?2:0:e<b/2?r<0?3:1:r<0?7:5]})).angle(-30).scale(101.858).center([0,45])}var Bn=2/P(3);function Hn(e,t){var r=De(e,t);return[r[0]*Bn,r[1]]}function Gn(e){e=e||function(e){var t=(0,be.c)({type:"MultiPoint",coordinates:e});return(0,n.c)(Hn).translate([0,0]).scale(1).rotate(t[1]>0?[-t[0],0]:[180-t[0],180])};var t=Fn.map((function(t){return{face:t,project:e(t)}}));return[-1,0,0,1,0,1,4,5].forEach((function(e,r){var n=t[e];n&&(n.children||(n.children=[])).push(t[r])})),On(t[0],(function(e,r){return t[e<-b/2?r<0?6:4:e<0?r<0?2:0:e<b/2?r<0?3:1:r<0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])}function Yn(e){e=e||function(e){var t=6===e.length?(0,be.c)({type:"MultiPoint",coordinates:e}):e[0];return(0,Nn.c)().scale(1).translate([0,0]).rotate([-t[0],-t[1]])};var t=Fn.map((function(e){for(var t,r=e.map(Vn),n=r.length,a=r[n-1],i=[],o=0;o<n;++o)t=r[o],i.push(qn([.9486832980505138*a[0]+.31622776601683794*t[0],.9486832980505138*a[1]+.31622776601683794*t[1],.9486832980505138*a[2]+.31622776601683794*t[2]]),qn([.9486832980505138*t[0]+.31622776601683794*a[0],.9486832980505138*t[1]+.31622776601683794*a[1],.9486832980505138*t[2]+.31622776601683794*a[2]])),a=t;return i})),r=[],n=[-1,0,0,1,0,1,4,5];t.forEach((function(e,a){for(var i,o,l=Fn[a],s=l.length,u=r[a]=[],c=0;c<s;++c)t.push([l[c],e[(2*c+2)%(2*s)],e[(2*c+1)%(2*s)]]),n.push(a),u.push((i=Vn(e[(2*c+2)%(2*s)]),o=Vn(e[(2*c+1)%(2*s)]),[i[1]*o[2]-i[2]*o[1],i[2]*o[0]-i[0]*o[2],i[0]*o[1]-i[1]*o[0]]))}));var a=t.map((function(t){return{project:e(t),face:t}}));return n.forEach((function(e,t){var r=a[e];r&&(r.children||(r.children=[])).push(a[t])})),On(a[0],(function(e,t){var n=l(t),i=[n*l(e),n*v(e),v(t)],o=e<-b/2?t<0?6:4:e<0?t<0?2:0:e<b/2?t<0?3:1:t<0?7:5,s=r[o];return a[Un(s[0],i)<0?8+3*o:Un(s[1],i)<0?8+3*o+1:Un(s[2],i)<0?8+3*o+2:o]})).angle(-30).scale(110.625).center([0,45])}function Un(e,t){for(var r=0,n=e.length,a=0;r<n;++r)a+=e[r]*t[r];return a}function qn(e){return[o(e[1],e[0])*S,D(f(-1,d(1,e[2])))*S]}function Vn(e){var t=e[0]*L,r=e[1]*L,n=l(r);return[n*l(t),n*v(t),v(r)]}function Wn(){}function Zn(e,t){var r,n=t.stream;if(!n)throw new Error("invalid projection");switch(e&&e.type){case"Feature":r=Xn;break;case"FeatureCollection":r=Jn;break;default:r=$n}return r(e,n)}function Jn(e,t){return{type:"FeatureCollection",features:e.features.map((function(e){return Xn(e,t)}))}}function Xn(e,t){return{type:"Feature",id:e.id,properties:e.properties,geometry:$n(e.geometry,t)}}function $n(e,t){if(!e)return null;if("GeometryCollection"===e.type)return function(e,t){return{type:"GeometryCollection",geometries:e.geometries.map((function(e){return $n(e,t)}))}}(e,t);var r;switch(e.type){case"Point":case"MultiPoint":r=ea;break;case"LineString":case"MultiLineString":r=ta;break;case"Polygon":case"MultiPolygon":case"Sphere":r=ra;break;default:return null}return(0,Bt.c)(e,t(r)),r.result()}Hn.invert=function(e,t){return De.invert(e/Bn,t)};var Kn=[],Qn=[],ea={point:function(e,t){Kn.push([e,t])},result:function(){var e=Kn.length?Kn.length<2?{type:"Point",coordinates:Kn[0]}:{type:"MultiPoint",coordinates:Kn}:null;return Kn=[],e}},ta={lineStart:Wn,point:function(e,t){Kn.push([e,t])},lineEnd:function(){Kn.length&&(Qn.push(Kn),Kn=[])},result:function(){var e=Qn.length?Qn.length<2?{type:"LineString",coordinates:Qn[0]}:{type:"MultiLineString",coordinates:Qn}:null;return Qn=[],e}},ra={polygonStart:Wn,lineStart:Wn,point:function(e,t){Kn.push([e,t])},lineEnd:function(){var e=Kn.length;if(e){do{Kn.push(Kn[0].slice())}while(++e<4);Qn.push(Kn),Kn=[]}},polygonEnd:Wn,result:function(){if(!Qn.length)return null;var e=[],t=[];return Qn.forEach((function(r){!function(e){if((t=e.length)<4)return!1;for(var t,r=0,n=e[t-1][1]*e[0][0]-e[t-1][0]*e[0][1];++r<t;)n+=e[r-1][1]*e[r][0]-e[r-1][0]*e[r][1];return n<=0}(r)?t.push(r):e.push([r])})),t.forEach((function(t){var r=t[0];e.some((function(e){if(function(e,t){for(var r=t[0],n=t[1],a=!1,i=0,o=e.length,l=o-1;i<o;l=i++){var s=e[i],u=s[0],c=s[1],f=e[l],d=f[0],h=f[1];c>n^h>n&&r<(d-u)*(n-c)/(h-c)+u&&(a=!a)}return a}(e[0],r))return e.push(t),!0}))||e.push([t])})),Qn=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}};function na(e){var t=e(_,0)[0]-e(-_,0)[0];function r(r,n){var i=a(r)<_,o=e(i?r:r>0?r-b:r+b,n),l=(o[0]-o[1])*M,s=(o[0]+o[1])*M;if(i)return[l,s];var u=t*M,c=l>0^s>0?-1:1;return[c*l-g(s)*u,c*s-g(l)*u]}return e.invert&&(r.invert=function(r,n){var i=(r+n)*M,o=(n-r)*M,l=a(i)<.5*t&&a(o)<.5*t;if(!l){var s=t*M,u=i>0^o>0?-1:1,c=-u*r+(o>0?1:-1)*s,f=-u*n+(i>0?1:-1)*s;i=(-c-f)*M,o=(c-f)*M}var d=e.invert(i,o);return l||(d[0]+=i>0?b:-b),d}),(0,n.c)(r).rotate([-90,-90,45]).clipAngle(179.999)}function aa(){return na(Dt).scale(176.423)}function ia(){return na(Rt).scale(111.48)}function oa(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function r(e){var r=e.length,n=2,a=new Array(r);for(a[0]=+e[0].toFixed(t),a[1]=+e[1].toFixed(t);n<r;)a[n]=e[n],++n;return a}function n(e){return e.map(r)}function a(e){for(var t=r(e[0]),n=[t],a=1;a<e.length;a++){var i=r(e[a]);(i.length>2||i[0]!=t[0]||i[1]!=t[1])&&(n.push(i),t=i)}return 1===n.length&&e.length>1&&n.push(r(e[e.length-1])),n}function i(e){return e.map(a)}function o(e){if(null==e)return e;var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(o)};break;case"Point":t={type:"Point",coordinates:r(e.coordinates)};break;case"MultiPoint":t={type:e.type,coordinates:n(e.coordinates)};break;case"LineString":t={type:e.type,coordinates:a(e.coordinates)};break;case"MultiLineString":case"Polygon":t={type:e.type,coordinates:i(e.coordinates)};break;case"MultiPolygon":t={type:"MultiPolygon",coordinates:e.coordinates.map(i)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function l(e){var t={type:"Feature",properties:e.properties,geometry:o(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),t}if(null!=e)switch(e.type){case"Feature":return l(e);case"FeatureCollection":var s={type:"FeatureCollection",features:e.features.map(l)};return null!=e.bbox&&(s.bbox=e.bbox),s;default:return o(e)}return e}function la(e){var t=v(e);function r(r,n){var a=t?y(r*t/2)/t:r/2;if(!n)return[2*a,-e];var o=2*i(a*v(n)),s=1/y(n);return[v(o)*s,n+(1-l(o))*s-e]}return r.invert=function(r,n){if(a(n+=e)<m)return[t?2*i(t*r/2)/t:r,0];var o,s=r*r+n*n,u=0,c=10;do{var f=y(u),d=1/l(u),h=s-2*n*u+u*u;u-=o=(f*h+2*(u-n))/(2+h*d*d+2*(u-n)*f)}while(a(o)>m&&--c>0);var p=r*(f=y(u)),g=y(a(n)<a(u+1/f)?.5*D(p):.5*C(p)+b/4)/v(u);return[t?2*i(t*g)/t:2*g,u]},r}function sa(){return fe(la).scale(131.215)}var ua=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function ca(e,t){var r,n=d(18,36*a(t)/b),i=u(n),o=n-i,l=(r=ua[i])[0],s=r[1],c=(r=ua[++i])[0],f=r[1],h=(r=ua[d(19,++i)])[0],p=r[1];return[e*(c+o*(h-l)/2+o*o*(h-2*c+l)/2),(t>0?_:-_)*(f+o*(p-s)/2+o*o*(p-2*f+s)/2)]}function fa(){return(0,n.c)(ca).scale(152.63)}function da(e,t){var r=function(e){function t(t,r){var n=l(r),a=(e-1)/(e-n*l(t));return[a*n*v(t),a*v(r)]}return t.invert=function(t,r){var n=t*t+r*r,a=P(n),i=(e-P(1-n*(e+1)/(e-1)))/((e-1)/a+a/(e-1));return[o(t*i,a*P(1-i*i)),a?D(r*i/a):0]},t}(e);if(!t)return r;var n=l(t),a=v(t);function i(t,i){var o=r(t,i),l=o[1],s=l*a/(e-1)+n;return[o[0]*n/s,l/s]}return i.invert=function(t,i){var o=(e-1)/(e-1-i*a);return r.invert(o*t,o*i*n)},i}function ha(){var e=2,t=0,r=(0,n.U)(da),a=r(e,t);return a.distance=function(n){return arguments.length?r(e=+n,t):e},a.tilt=function(n){return arguments.length?r(e,t=n*L):t*S},a.scale(432.147).clipAngle(C(1/e)*S-1e-6)}ua.forEach((function(e){e[1]*=1.0144})),ca.invert=function(e,t){var r=t/_,n=90*r,i=d(18,a(n/5)),o=f(0,u(i));do{var l=ua[o][1],s=ua[o+1][1],c=ua[d(19,o+2)][1],h=c-l,p=c-2*s+l,g=2*(a(r)-s)/h,v=p/h,y=g*(1-v*g*(1-2*v*g));if(y>=0||1===o){n=(t>=0?5:-5)*(y+i);var m,b=50;do{y=(i=d(18,a(n)/5))-(o=u(i)),l=ua[o][1],s=ua[o+1][1],c=ua[d(19,o+2)][1],n-=(m=(t>=0?_:-_)*(s+y*(c-l)/2+y*y*(c-2*s+l)/2)-t)*S}while(a(m)>x&&--b>0);break}}while(--o>=0);var w=ua[o][0],M=ua[o+1][0],T=ua[d(19,o+2)][0];return[e/(M+y*(T-w)/2+y*y*(T-2*M+w)/2),n*L]};var pa=1e-4,ga=1e4,va=-180,ya=va+pa,ma=180,xa=ma-pa,ba=-90,_a=ba+pa,wa=90,Ma=wa-pa;function Ta(e){return e.length>0}function ka(e){return e===ba||e===wa?[0,e]:[va,(t=e,Math.floor(t*ga)/ga)];var t}function Aa(e){var t=e[0],r=e[1],n=!1;return t<=ya?(t=va,n=!0):t>=xa&&(t=ma,n=!0),r<=_a?(r=ba,n=!0):r>=Ma&&(r=wa,n=!0),n?[t,r]:e}function Sa(e){return e.map(Aa)}function La(e,t,r){for(var n=0,a=e.length;n<a;++n){var i=e[n].slice();r.push({index:-1,polygon:t,ring:i});for(var o=0,l=i.length;o<l;++o){var s=i[o],u=s[0],c=s[1];if(u<=ya||u>=xa||c<=_a||c>=Ma){i[o]=Aa(s);for(var f=o+1;f<l;++f){var d=i[f],h=d[0],p=d[1];if(h>ya&&h<xa&&p>_a&&p<Ma)break}if(f===o+1)continue;if(o){var g={index:-1,polygon:t,ring:i.slice(0,o+1)};g.ring[g.ring.length-1]=ka(c),r[r.length-1]=g}else r.pop();if(f>=l)break;r.push({index:-1,polygon:t,ring:i=i.slice(f-1)}),i[0]=ka(i[0][1]),o=-1,l=i.length}}}}function Da(e){var t,r,n,a,i,o,l=e.length,s={},u={};for(t=0;t<l;++t)n=(r=e[t]).ring[0],i=r.ring[r.ring.length-1],n[0]!==i[0]||n[1]!==i[1]?(r.index=t,s[n]=u[i]=r):(r.polygon.push(r.ring),e[t]=null);for(t=0;t<l;++t)if(r=e[t]){if(n=r.ring[0],i=r.ring[r.ring.length-1],a=u[n],o=s[i],delete s[n],delete u[i],n[0]===i[0]&&n[1]===i[1]){r.polygon.push(r.ring);continue}a?(delete u[n],delete s[a.ring[0]],a.ring.pop(),e[a.index]=null,r={index:-1,polygon:a.polygon,ring:a.ring.concat(r.ring)},a===o?r.polygon.push(r.ring):(r.index=l++,e.push(s[r.ring[0]]=u[r.ring[r.ring.length-1]]=r))):o?(delete s[i],delete u[o.ring[o.ring.length-1]],r.ring.pop(),r={index:l++,polygon:o.polygon,ring:r.ring.concat(o.ring)},e[o.index]=null,e.push(s[r.ring[0]]=u[r.ring[r.ring.length-1]]=r)):(r.ring.push(r.ring[0]),r.polygon.push(r.ring))}}function Ca(e){var t={type:"Feature",geometry:Pa(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function Pa(e){if(null==e)return e;var t,r,n,a;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(Pa)};break;case"Point":t={type:"Point",coordinates:Aa(e.coordinates)};break;case"MultiPoint":case"LineString":t={type:e.type,coordinates:Sa(e.coordinates)};break;case"MultiLineString":t={type:"MultiLineString",coordinates:e.coordinates.map(Sa)};break;case"Polygon":var i=[];La(e.coordinates,i,r=[]),Da(r),t={type:"Polygon",coordinates:i};break;case"MultiPolygon":r=[],n=-1,a=e.coordinates.length;for(var o=new Array(a);++n<a;)La(e.coordinates[n],o[n]=[],r);Da(r),t={type:"MultiPolygon",coordinates:o.filter(Ta)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function Oa(e){if(null==e)return e;switch(e.type){case"Feature":return Ca(e);case"FeatureCollection":var t={type:"FeatureCollection",features:e.features.map(Ca)};return null!=e.bbox&&(t.bbox=e.bbox),t;default:return Pa(e)}}function Ra(e,t){var r=y(t/2),n=v(w*r);return[e*(.74482-.34588*n*n),1.70711*r]}function Ea(){return(0,n.c)(Ra).scale(146.153)}function Ia(e,t,r){var a=(0,Ln.c)(t,r),i=a(.5),o=(0,_e.c)([-i[0],-i[1]])(t),l=a.distance/2,s=-D(v(o[1]*L)/v(l)),u=[-i[0],-i[1],-(o[0]>0?b-s:s)*S],c=(0,n.c)(e(l)).rotate(u),f=(0,_e.c)(u),d=c.center;return delete c.rotate,c.center=function(e){return arguments.length?d(f(e)):f.invert(d())},c.clipAngle(90)}function Na(e){var t=l(e);function r(e,r){var n=(0,Nn.Y)(e,r);return n[0]*=t,n}return r.invert=function(e,r){return Nn.Y.invert(e/t,r)},r}function za(){return Fa([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Fa(e,t){return Ia(Na,e,t)}function ja(e){if(!(e*=2))return V.O;var t=-e/2,r=-t,n=e*e,a=y(r),i=.5/v(r);function s(a,i){var o=C(l(i)*l(a-t)),s=C(l(i)*l(a-r));return[((o*=o)-(s*=s))/(2*e),(i<0?-1:1)*P(4*n*s-(n-o+s)*(n-o+s))/(2*e)]}return s.invert=function(e,n){var s,u,c=n*n,f=l(P(c+(s=e+t)*s)),d=l(P(c+(s=e+r)*s));return[o(u=f-d,s=(f+d)*a),(n<0?-1:1)*C(P(s*s+u*u)*i)]},s}function Ba(){return Ha([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ha(e,t){return Ia(ja,e,t)}function Ga(e,t){if(a(t)<m)return[e,0];var r=a(t/_),n=D(r);if(a(e)<m||a(a(t)-_)<m)return[0,g(t)*b*y(n/2)];var i=l(n),o=a(b/e-e/b)/2,s=o*o,u=i/(r+i-1),c=u*(2/r-1),f=c*c,d=f+s,h=u-f,p=s+u;return[g(e)*b*(o*h+P(s*h*h-d*(u*u-f)))/d,g(t)*b*(c*p-o*P((s+1)*d-p*p))/d]}function Ya(){return(0,n.c)(Ga).scale(79.4183)}function Ua(e,t){if(a(t)<m)return[e,0];var r=a(t/_),n=D(r);if(a(e)<m||a(a(t)-_)<m)return[0,g(t)*b*y(n/2)];var i=l(n),o=a(b/e-e/b)/2,s=o*o,u=i*(P(1+s)-o*i)/(1+s*r*r);return[g(e)*b*u,g(t)*b*P(1-u*(2*o+u))]}function qa(){return(0,n.c)(Ua).scale(79.4183)}function Va(e,t){if(a(t)<m)return[e,0];var r=t/_,n=D(r);if(a(e)<m||a(a(t)-_)<m)return[0,b*y(n/2)];var i=(b/e-e/b)/2,o=r/(1+l(n));return[b*(g(e)*P(i*i+1-o*o)-i),b*o]}function Wa(){return(0,n.c)(Va).scale(79.4183)}function Za(e,t){if(!t)return[e,0];var r=a(t);if(!e||r===_)return[0,t];var n=r/_,i=n*n,o=(8*n-i*(i+2)-5)/(2*i*(n-1)),l=o*o,s=n*o,u=i+l+2*s,c=n+3*o,f=e/_,d=f+1/f,h=g(a(e)-_)*P(d*d-4),p=h*h,v=(h*(u+l-1)+2*P(u*(i+l*p-1)+(1-i)*(i*(c*c+4*l)+12*s*l+4*l*l)))/(4*u+p);return[g(e)*_*v,g(t)*_*P(1+h*a(v)-v*v)]}function Ja(){return(0,n.c)(Za).scale(127.16)}function Xa(e,t,r,n){var a=b/3;e=f(e,m),t=f(t,m),e=d(e,_),t=d(t,b-m),r=f(r,0),r=d(r,100-m);var i=(n=f(n,m))/100,s=C((r/100+1)*l(a))/a,u=v(e)/v(s*_),c=t/b,h=P(i*v(e/2)/v(t/2));return function(e,t,r,n,a){function i(i,o){var s=r*v(n*o),u=P(1-s*s),c=P(2/(1+u*l(i*=a)));return[e*u*c*v(i),t*s*c]}return i.invert=function(i,l){var s=i/e,u=l/t,c=P(s*s+u*u),f=2*D(c/2);return[o(i*y(f),e*c)/a,c&&D(l*v(f)/(t*r*c))/n]},i}(h/P(c*u*s),1/(h*P(c*u*s)),u,s,c)}function $a(){var e=65*L,t=60*L,r=20,a=200,i=(0,n.U)(Xa),o=i(e,t,r,a);return o.poleline=function(n){return arguments.length?i(e=+n*L,t,r,a):e*S},o.parallels=function(n){return arguments.length?i(e,t=+n*L,r,a):t*S},o.inflation=function(n){return arguments.length?i(e,t,r=+n,a):r},o.ratio=function(n){return arguments.length?i(e,t,r,a=+n):a},o.scale(163.775)}function Ka(){return $a().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}Ra.invert=function(e,t){var r=t/1.70711,n=v(w*r);return[e/(.74482-.34588*n*n),2*i(r)]},Ga.invert=function(e,t){if(a(t)<m)return[e,0];if(a(e)<m)return[0,_*v(2*i(t/b))];var r=(e/=b)*e,n=(t/=b)*t,o=r+n,s=o*o,u=-a(t)*(1+o),c=u-2*n+r,f=-2*u+1+2*n+s,d=n/f+(2*c*c*c/(f*f*f)-9*u*c/(f*f))/27,h=(u-c*c/(3*f))/f,p=2*P(-h/3),y=C(3*d/(h*p))/3;return[b*(o-1+P(1+2*(r-n)+s))/(2*e),g(t)*b*(-p*l(y+b/3)-c/(3*f))]},Ua.invert=function(e,t){if(!e)return[0,_*v(2*i(t/b))];var r=a(e/b),n=(1-r*r-(t/=b)*t)/(2*r),l=P(n*n+1);return[g(e)*b*(l-n),g(t)*_*v(2*o(P((1-2*n*r)*(n+l)-r),P(l+n+r)))]},Va.invert=function(e,t){if(!t)return[e,0];var r=t/b,n=(b*b*(1-r*r)-e*e)/(2*b*e);return[e?b*(g(e)*P(n*n+1)-n):0,_*v(2*i(r))]},Za.invert=function(e,t){var r;if(!e||!t)return[e,t];t/=b;var n=g(e)*e/_,i=(n*n-1+4*t*t)/a(n),o=i*i,l=2*t,s=50;do{var u=l*l,c=(8*l-u*(u+2)-5)/(2*u*(l-1)),f=(3*l-u*l-10)/(2*u*l),d=c*c,h=l*c,p=l+c,v=p*p,y=l+3*c,x=-2*p*(4*h*d+(1-4*u+3*u*u)*(1+f)+d*(14*u-6-o+(8*u-8-2*o)*f)+h*(12*u-8+(10*u-10-o)*f)),w=P(v*(u+d*o-1)+(1-u)*(u*(y*y+4*d)+d*(12*h+4*d)));l-=r=(i*(v+d-1)+2*w-n*(4*v+o))/(i*(2*c*f+2*p*(1+f))+x/w-8*p*(i*(-1+d+v)+2*w)*(1+f)/(o+4*v))}while(r>m&&--s>0);return[g(e)*(P(i*i+4)+i)*b/4,_*l]};var Qa=4*b+3*P(3),ei=2*P(2*b*P(3)/Qa),ti=ae(ei*P(3)/b,ei,Qa/6);function ri(){return(0,n.c)(ti).scale(176.84)}function ni(e,t){return[e*P(1-3*t*t/(b*b)),t]}function ai(){return(0,n.c)(ni).scale(152.63)}function ii(e,t){var r=l(t),n=l(e)*r,a=1-n,i=l(e=o(v(e)*r,-v(t))),s=v(e);return[s*(r=P(1-n*n))-i*a,-i*r-s*a]}function oi(){return(0,n.c)(ii).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function li(e,t){var r=N(e,t);return[(r[0]+e/_)/2,(r[1]+t)/2]}function si(){return(0,n.c)(li).scale(158.837)}ni.invert=function(e,t){return[e/P(1-3*t*t/(b*b)),t]},ii.invert=function(e,t){var r=(e*e+t*t)/-2,n=P(-r*(2+r)),a=t*r+e*n,i=e*r-t*n,l=P(i*i+a*a);return[o(n*a,l*(1+r)),l?-D(n*i/l):0]},li.invert=function(e,t){var r=e,n=t,i=25;do{var o,s=l(n),u=v(n),c=v(2*n),f=u*u,d=s*s,h=v(r),p=l(r/2),g=v(r/2),y=g*g,x=1-d*p*p,b=x?C(s*p)*P(o=1/x):o=0,w=.5*(2*b*s*g+r/_)-e,M=.5*(b*u+n)-t,T=.5*o*(d*y+b*s*p*f)+.5/_,k=o*(h*c/4-b*u*g),A=.125*o*(c*g-b*u*d*h),S=.5*o*(f*p+b*y*s)+.5,L=k*A-S*T,D=(M*k-w*S)/L,O=(w*A-M*T)/L;r-=D,n-=O}while((a(D)>m||a(O)>m)&&--i>0);return[r,n]}},6348:function(e,t,r){"use strict";function n(){return new a}function a(){this.reset()}r.d(t,{c:function(){return n}}),a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(e){o(i,e,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new a;function o(e,t,r){var n=e.s=t+r,a=n-t,i=n-a;e.t=t-i+(r-a)}},5384:function(e,t,r){"use strict";r.d(t,{cp:function(){return x},mQ:function(){return d},oB:function(){return p}});var n,a,i,o,l,s=r(6348),u=r(4528),c=r(932),f=r(6016),d=(0,s.c)(),h=(0,s.c)(),p={point:c.c,lineStart:c.c,lineEnd:c.c,polygonStart:function(){d.reset(),p.lineStart=g,p.lineEnd=v},polygonEnd:function(){var e=+d;h.add(e<0?u.kD+e:e),this.lineStart=this.lineEnd=this.point=c.c},sphere:function(){h.add(u.kD)}};function g(){p.point=y}function v(){m(n,a)}function y(e,t){p.point=m,n=e,a=t,e*=u.qw,t*=u.qw,i=e,o=(0,u.W8)(t=t/2+u.wL),l=(0,u.g$)(t)}function m(e,t){e*=u.qw,t=(t*=u.qw)/2+u.wL;var r=e-i,n=r>=0?1:-1,a=n*r,s=(0,u.W8)(t),c=(0,u.g$)(t),f=l*c,h=o*s+f*(0,u.W8)(a),p=f*n*(0,u.g$)(a);d.add((0,u.WE)(p,h)),i=e,o=s,l=c}function x(e){return h.reset(),(0,f.c)(e,p),2*h}},1315:function(e,t,r){"use strict";r.d(t,{c:function(){return C}});var n,a,i,o,l,s,u,c,f,d,h=r(6348),p=r(5384),g=r(4220),v=r(4528),y=r(6016),m=(0,h.c)(),x={point:b,lineStart:w,lineEnd:M,polygonStart:function(){x.point=T,x.lineStart=k,x.lineEnd=A,m.reset(),p.oB.polygonStart()},polygonEnd:function(){p.oB.polygonEnd(),x.point=b,x.lineStart=w,x.lineEnd=M,p.mQ<0?(n=-(i=180),a=-(o=90)):m>v.Gg?o=90:m<-v.Gg&&(a=-90),d[0]=n,d[1]=i},sphere:function(){n=-(i=180),a=-(o=90)}};function b(e,t){f.push(d=[n=e,i=e]),t<a&&(a=t),t>o&&(o=t)}function _(e,t){var r=(0,g.ux)([e*v.qw,t*v.qw]);if(c){var s=(0,g.CW)(c,r),u=[s[1],-s[0],0],h=(0,g.CW)(u,s);(0,g.cJ)(h),h=(0,g.G)(h);var p,y=e-l,m=y>0?1:-1,x=h[0]*v.oh*m,b=(0,v.a2)(y)>180;b^(m*l<x&&x<m*e)?(p=h[1]*v.oh)>o&&(o=p):b^(m*l<(x=(x+360)%360-180)&&x<m*e)?(p=-h[1]*v.oh)<a&&(a=p):(t<a&&(a=t),t>o&&(o=t)),b?e<l?S(n,e)>S(n,i)&&(i=e):S(e,i)>S(n,i)&&(n=e):i>=n?(e<n&&(n=e),e>i&&(i=e)):e>l?S(n,e)>S(n,i)&&(i=e):S(e,i)>S(n,i)&&(n=e)}else f.push(d=[n=e,i=e]);t<a&&(a=t),t>o&&(o=t),c=r,l=e}function w(){x.point=_}function M(){d[0]=n,d[1]=i,x.point=b,c=null}function T(e,t){if(c){var r=e-l;m.add((0,v.a2)(r)>180?r+(r>0?360:-360):r)}else s=e,u=t;p.oB.point(e,t),_(e,t)}function k(){p.oB.lineStart()}function A(){T(s,u),p.oB.lineEnd(),(0,v.a2)(m)>v.Gg&&(n=-(i=180)),d[0]=n,d[1]=i,c=null}function S(e,t){return(t-=e)<0?t+360:t}function L(e,t){return e[0]-t[0]}function D(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function C(e){var t,r,l,s,u,c,h;if(o=i=-(n=a=1/0),f=[],(0,y.c)(e,x),r=f.length){for(f.sort(L),t=1,u=[l=f[0]];t<r;++t)D(l,(s=f[t])[0])||D(l,s[1])?(S(l[0],s[1])>S(l[0],l[1])&&(l[1]=s[1]),S(s[0],l[1])>S(l[0],l[1])&&(l[0]=s[0])):u.push(l=s);for(c=-1/0,t=0,l=u[r=u.length-1];t<=r;l=s,++t)s=u[t],(h=S(l[1],s[0]))>c&&(c=h,n=s[0],i=l[1])}return f=d=null,n===1/0||a===1/0?[[NaN,NaN],[NaN,NaN]]:[[n,a],[i,o]]}},4220:function(e,t,r){"use strict";r.d(t,{CW:function(){return l},Ez:function(){return o},G:function(){return a},cJ:function(){return c},mg:function(){return s},ux:function(){return i},wx:function(){return u}});var n=r(4528);function a(e){return[(0,n.WE)(e[1],e[0]),(0,n.qR)(e[2])]}function i(e){var t=e[0],r=e[1],a=(0,n.W8)(r);return[a*(0,n.W8)(t),a*(0,n.g$)(t),(0,n.g$)(r)]}function o(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function l(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function s(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function u(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function c(e){var t=(0,n._I)(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}},4052:function(e,t,r){"use strict";r.d(t,{c:function(){return R}});var n,a,i,o,l,s,u,c,f,d,h,p,g,v,y,m,x=r(4528),b=r(932),_=r(6016),w={sphere:b.c,point:M,lineStart:k,lineEnd:L,polygonStart:function(){w.lineStart=D,w.lineEnd=C},polygonEnd:function(){w.lineStart=k,w.lineEnd=L}};function M(e,t){e*=x.qw,t*=x.qw;var r=(0,x.W8)(t);T(r*(0,x.W8)(e),r*(0,x.g$)(e),(0,x.g$)(t))}function T(e,t,r){++n,i+=(e-i)/n,o+=(t-o)/n,l+=(r-l)/n}function k(){w.point=A}function A(e,t){e*=x.qw,t*=x.qw;var r=(0,x.W8)(t);v=r*(0,x.W8)(e),y=r*(0,x.g$)(e),m=(0,x.g$)(t),w.point=S,T(v,y,m)}function S(e,t){e*=x.qw,t*=x.qw;var r=(0,x.W8)(t),n=r*(0,x.W8)(e),i=r*(0,x.g$)(e),o=(0,x.g$)(t),l=(0,x.WE)((0,x._I)((l=y*o-m*i)*l+(l=m*n-v*o)*l+(l=v*i-y*n)*l),v*n+y*i+m*o);a+=l,s+=l*(v+(v=n)),u+=l*(y+(y=i)),c+=l*(m+(m=o)),T(v,y,m)}function L(){w.point=M}function D(){w.point=P}function C(){O(p,g),w.point=M}function P(e,t){p=e,g=t,e*=x.qw,t*=x.qw,w.point=O;var r=(0,x.W8)(t);v=r*(0,x.W8)(e),y=r*(0,x.g$)(e),m=(0,x.g$)(t),T(v,y,m)}function O(e,t){e*=x.qw,t*=x.qw;var r=(0,x.W8)(t),n=r*(0,x.W8)(e),i=r*(0,x.g$)(e),o=(0,x.g$)(t),l=y*o-m*i,p=m*n-v*o,g=v*i-y*n,b=(0,x._I)(l*l+p*p+g*g),_=(0,x.qR)(b),w=b&&-_/b;f+=w*l,d+=w*p,h+=w*g,a+=_,s+=_*(v+(v=n)),u+=_*(y+(y=i)),c+=_*(m+(m=o)),T(v,y,m)}function R(e){n=a=i=o=l=s=u=c=f=d=h=0,(0,_.c)(e,w);var t=f,r=d,p=h,g=t*t+r*r+p*p;return g<x.a8&&(t=s,r=u,p=c,a<x.Gg&&(t=i,r=o,p=l),(g=t*t+r*r+p*p)<x.a8)?[NaN,NaN]:[(0,x.WE)(r,t)*x.oh,(0,x.qR)(p/(0,x._I)(g))*x.oh]}},9399:function(e,t,r){"use strict";r.d(t,{Q:function(){return l},c:function(){return u}});var n=r(4220);function a(e){return function(){return e}}var i=r(4528),o=r(2992);function l(e,t,r,a,o,l){if(r){var u=(0,i.W8)(t),c=(0,i.g$)(t),f=a*r;null==o?(o=t+a*i.kD,l=t-f/2):(o=s(u,o),l=s(u,l),(a>0?o<l:o>l)&&(o+=a*i.kD));for(var d,h=o;a>0?h>l:h<l;h-=f)d=(0,n.G)([u,-c*(0,i.W8)(h),-c*(0,i.g$)(h)]),e.point(d[0],d[1])}}function s(e,t){(t=(0,n.ux)(t))[0]-=e,(0,n.cJ)(t);var r=(0,i.mE)(-t[1]);return((-t[2]<0?-r:r)+i.kD-i.Gg)%i.kD}function u(){var e,t,r=a([0,0]),n=a(90),s=a(6),u={point:function(r,n){e.push(r=t(r,n)),r[0]*=i.oh,r[1]*=i.oh}};function c(){var a=r.apply(this,arguments),c=n.apply(this,arguments)*i.qw,f=s.apply(this,arguments)*i.qw;return e=[],t=(0,o.O)(-a[0]*i.qw,-a[1]*i.qw,0).invert,l(u,c,f,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return c.center=function(e){return arguments.length?(r="function"==typeof e?e:a([+e[0],+e[1]]),c):r},c.radius=function(e){return arguments.length?(n="function"==typeof e?e:a(+e),c):n},c.precision=function(e){return arguments.length?(s="function"==typeof e?e:a(+e),c):s},c}},8284:function(e,t,r){"use strict";var n=r(4229),a=r(4528);t.c=(0,n.c)((function(){return!0}),(function(e){var t,r=NaN,n=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,l){var s=o>0?a.pi:-a.pi,u=(0,a.a2)(o-r);(0,a.a2)(u-a.pi)<a.Gg?(e.point(r,n=(n+l)/2>0?a.or:-a.or),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(o,n),t=0):i!==s&&u>=a.pi&&((0,a.a2)(r-i)<a.Gg&&(r-=i*a.Gg),(0,a.a2)(o-s)<a.Gg&&(o-=s*a.Gg),n=function(e,t,r,n){var i,o,l=(0,a.g$)(e-r);return(0,a.a2)(l)>a.Gg?(0,a.MQ)(((0,a.g$)(t)*(o=(0,a.W8)(n))*(0,a.g$)(r)-(0,a.g$)(n)*(i=(0,a.W8)(t))*(0,a.g$)(e))/(i*o*l)):(t+n)/2}(r,n,o,l),e.point(i,n),e.lineEnd(),e.lineStart(),e.point(s,n),t=0),e.point(r=o,n=l),i=s},lineEnd:function(){e.lineEnd(),r=n=NaN},clean:function(){return 2-t}}}),(function(e,t,r,n){var i;if(null==e)i=r*a.or,n.point(-a.pi,i),n.point(0,i),n.point(a.pi,i),n.point(a.pi,0),n.point(a.pi,-i),n.point(0,-i),n.point(-a.pi,-i),n.point(-a.pi,0),n.point(-a.pi,i);else if((0,a.a2)(e[0]-t[0])>a.Gg){var o=e[0]<t[0]?a.pi:-a.pi;i=r*o/2,n.point(-o,i),n.point(0,i),n.point(o,i)}else n.point(t[0],t[1])}),[-a.pi,-a.or])},7208:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});var n=r(932);function a(){var e,t=[];return{point:function(t,r,n){e.push([t,r,n])},lineStart:function(){t.push(e=[])},lineEnd:n.c,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],e=null,r}}}},2728:function(e,t,r){"use strict";r.d(t,{c:function(){return s}});var n=r(4220),a=r(9399),i=r(4528),o=r(1860),l=r(4229);function s(e){var t=(0,i.W8)(e),r=6*i.qw,s=t>0,u=(0,i.a2)(t)>i.Gg;function c(e,r){return(0,i.W8)(e)*(0,i.W8)(r)>t}function f(e,r,a){var o=(0,n.ux)(e),l=(0,n.ux)(r),s=[1,0,0],u=(0,n.CW)(o,l),c=(0,n.Ez)(u,u),f=u[0],d=c-f*f;if(!d)return!a&&e;var h=t*c/d,p=-t*f/d,g=(0,n.CW)(s,u),v=(0,n.wx)(s,h),y=(0,n.wx)(u,p);(0,n.mg)(v,y);var m=g,x=(0,n.Ez)(v,m),b=(0,n.Ez)(m,m),_=x*x-b*((0,n.Ez)(v,v)-1);if(!(_<0)){var w=(0,i._I)(_),M=(0,n.wx)(m,(-x-w)/b);if((0,n.mg)(M,v),M=(0,n.G)(M),!a)return M;var T,k=e[0],A=r[0],S=e[1],L=r[1];A<k&&(T=k,k=A,A=T);var D=A-k,C=(0,i.a2)(D-i.pi)<i.Gg;if(!C&&L<S&&(T=S,S=L,L=T),C||D<i.Gg?C?S+L>0^M[1]<((0,i.a2)(M[0]-k)<i.Gg?S:L):S<=M[1]&&M[1]<=L:D>i.pi^(k<=M[0]&&M[0]<=A)){var P=(0,n.wx)(m,(-x+w)/b);return(0,n.mg)(P,v),[M,(0,n.G)(P)]}}}function d(t,r){var n=s?e:i.pi-e,a=0;return t<-n?a|=1:t>n&&(a|=2),r<-n?a|=4:r>n&&(a|=8),a}return(0,l.c)(c,(function(e){var t,r,n,a,l;return{lineStart:function(){a=n=!1,l=1},point:function(h,p){var g,v=[h,p],y=c(h,p),m=s?y?0:d(h,p):y?d(h+(h<0?i.pi:-i.pi),p):0;if(!t&&(a=n=y)&&e.lineStart(),y!==n&&(!(g=f(t,v))||(0,o.c)(t,g)||(0,o.c)(v,g))&&(v[2]=1),y!==n)l=0,y?(e.lineStart(),g=f(v,t),e.point(g[0],g[1])):(g=f(t,v),e.point(g[0],g[1],2),e.lineEnd()),t=g;else if(u&&t&&s^y){var x;m&r||!(x=f(v,t,!0))||(l=0,s?(e.lineStart(),e.point(x[0][0],x[0][1]),e.point(x[1][0],x[1][1]),e.lineEnd()):(e.point(x[1][0],x[1][1]),e.lineEnd(),e.lineStart(),e.point(x[0][0],x[0][1],3)))}!y||t&&(0,o.c)(t,v)||e.point(v[0],v[1]),t=v,n=y,r=m},lineEnd:function(){n&&e.lineEnd(),t=null},clean:function(){return l|(a&&n)<<1}}}),(function(t,n,i,o){(0,a.Q)(o,e,r,i,t,n)}),s?[0,-e]:[-i.pi,e-i.pi])}},4229:function(e,t,r){"use strict";r.d(t,{c:function(){return s}});var n=r(7208),a=r(2232),i=r(4528),o=r(8196),l=r(376);function s(e,t,r,i){return function(s){var f,d,h,p=t(s),g=(0,n.c)(),v=t(g),y=!1,m={point:x,lineStart:_,lineEnd:w,polygonStart:function(){m.point=M,m.lineStart=T,m.lineEnd=k,d=[],f=[]},polygonEnd:function(){m.point=x,m.lineStart=_,m.lineEnd=w,d=(0,l.Uf)(d);var e=(0,o.c)(f,i);d.length?(y||(s.polygonStart(),y=!0),(0,a.c)(d,c,e,r,s)):e&&(y||(s.polygonStart(),y=!0),s.lineStart(),r(null,null,1,s),s.lineEnd()),y&&(s.polygonEnd(),y=!1),d=f=null},sphere:function(){s.polygonStart(),s.lineStart(),r(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function x(t,r){e(t,r)&&s.point(t,r)}function b(e,t){p.point(e,t)}function _(){m.point=b,p.lineStart()}function w(){m.point=x,p.lineEnd()}function M(e,t){h.push([e,t]),v.point(e,t)}function T(){v.lineStart(),h=[]}function k(){M(h[0][0],h[0][1]),v.lineEnd();var e,t,r,n,a=v.clean(),i=g.result(),o=i.length;if(h.pop(),f.push(h),h=null,o)if(1&a){if((t=(r=i[0]).length-1)>0){for(y||(s.polygonStart(),y=!0),s.lineStart(),e=0;e<t;++e)s.point((n=r[e])[0],n[1]);s.lineEnd()}}else o>1&&2&a&&i.push(i.pop().concat(i.shift())),d.push(i.filter(u))}return m}}function u(e){return e.length>1}function c(e,t){return((e=e.x)[0]<0?e[1]-i.or-i.Gg:i.or-e[1])-((t=t.x)[0]<0?t[1]-i.or-i.Gg:i.or-t[1])}},1676:function(e,t,r){"use strict";r.d(t,{c:function(){return u}});var n=r(4528),a=r(7208),i=r(2232),o=r(376),l=1e9,s=-l;function u(e,t,r,u){function c(n,a){return e<=n&&n<=r&&t<=a&&a<=u}function f(n,a,i,o){var l=0,s=0;if(null==n||(l=d(n,i))!==(s=d(a,i))||p(n,a)<0^i>0)do{o.point(0===l||3===l?e:r,l>1?u:t)}while((l=(l+i+4)%4)!==s);else o.point(a[0],a[1])}function d(a,i){return(0,n.a2)(a[0]-e)<n.Gg?i>0?0:3:(0,n.a2)(a[0]-r)<n.Gg?i>0?2:1:(0,n.a2)(a[1]-t)<n.Gg?i>0?1:0:i>0?3:2}function h(e,t){return p(e.x,t.x)}function p(e,t){var r=d(e,1),n=d(t,1);return r!==n?r-n:0===r?t[1]-e[1]:1===r?e[0]-t[0]:2===r?e[1]-t[1]:t[0]-e[0]}return function(n){var d,p,g,v,y,m,x,b,_,w,M,T=n,k=(0,a.c)(),A={point:S,lineStart:function(){A.point=L,p&&p.push(g=[]),w=!0,_=!1,x=b=NaN},lineEnd:function(){d&&(L(v,y),m&&_&&k.rejoin(),d.push(k.result())),A.point=S,_&&T.lineEnd()},polygonStart:function(){T=k,d=[],p=[],M=!0},polygonEnd:function(){var t=function(){for(var t=0,r=0,n=p.length;r<n;++r)for(var a,i,o=p[r],l=1,s=o.length,c=o[0],f=c[0],d=c[1];l<s;++l)a=f,i=d,f=(c=o[l])[0],d=c[1],i<=u?d>u&&(f-a)*(u-i)>(d-i)*(e-a)&&++t:d<=u&&(f-a)*(u-i)<(d-i)*(e-a)&&--t;return t}(),r=M&&t,a=(d=(0,o.Uf)(d)).length;(r||a)&&(n.polygonStart(),r&&(n.lineStart(),f(null,null,1,n),n.lineEnd()),a&&(0,i.c)(d,h,t,f,n),n.polygonEnd()),T=n,d=p=g=null}};function S(e,t){c(e,t)&&T.point(e,t)}function L(n,a){var i=c(n,a);if(p&&g.push([n,a]),w)v=n,y=a,m=i,w=!1,i&&(T.lineStart(),T.point(n,a));else if(i&&_)T.point(n,a);else{var o=[x=Math.max(s,Math.min(l,x)),b=Math.max(s,Math.min(l,b))],f=[n=Math.max(s,Math.min(l,n)),a=Math.max(s,Math.min(l,a))];!function(e,t,r,n,a,i){var o,l=e[0],s=e[1],u=0,c=1,f=t[0]-l,d=t[1]-s;if(o=r-l,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<c&&(c=o)}else if(f>0){if(o>c)return;o>u&&(u=o)}if(o=a-l,f||!(o<0)){if(o/=f,f<0){if(o>c)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<c&&(c=o)}if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<c&&(c=o)}else if(d>0){if(o>c)return;o>u&&(u=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>c)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<c&&(c=o)}return u>0&&(e[0]=l+u*f,e[1]=s+u*d),c<1&&(t[0]=l+c*f,t[1]=s+c*d),!0}}}}}(o,f,e,t,r,u)?i&&(T.lineStart(),T.point(n,a),M=!1):(_||(T.lineStart(),T.point(o[0],o[1])),T.point(f[0],f[1]),i||T.lineEnd(),M=!1)}x=n,b=a,_=i}return A}}},2232:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(1860),a=r(4528);function i(e,t,r,n){this.x=e,this.z=t,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function o(e,t,r,o,s){var u,c,f=[],d=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,r,o=e[0],l=e[t];if((0,n.c)(o,l)){if(!o[2]&&!l[2]){for(s.lineStart(),u=0;u<t;++u)s.point((o=e[u])[0],o[1]);return void s.lineEnd()}l[0]+=2*a.Gg}f.push(r=new i(o,e,null,!0)),d.push(r.o=new i(o,null,r,!1)),f.push(r=new i(l,e,null,!1)),d.push(r.o=new i(l,null,r,!0))}})),f.length){for(d.sort(t),l(f),l(d),u=0,c=d.length;u<c;++u)d[u].e=r=!r;for(var h,p,g=f[0];;){for(var v=g,y=!0;v.v;)if((v=v.n)===g)return;h=v.z,s.lineStart();do{if(v.v=v.o.v=!0,v.e){if(y)for(u=0,c=h.length;u<c;++u)s.point((p=h[u])[0],p[1]);else o(v.x,v.n.x,1,s);v=v.n}else{if(y)for(h=v.p.z,u=h.length-1;u>=0;--u)s.point((p=h[u])[0],p[1]);else o(v.x,v.p.x,-1,s);v=v.p}h=(v=v.o).z,y=!y}while(!v.v);s.lineEnd()}}}function l(e){if(t=e.length){for(var t,r,n=0,a=e[0];++n<t;)a.n=r=e[n],r.p=a,a=r;a.n=r=e[0],r.p=a}}},8120:function(e,t,r){"use strict";function n(e,t){function r(r,n){return r=e(r,n),t(r[0],r[1])}return e.invert&&t.invert&&(r.invert=function(r,n){return(r=t.invert(r,n))&&e.invert(r[0],r[1])}),r}r.d(t,{c:function(){return n}})},7376:function(e,t,r){"use strict";function n(e){return e}r.d(t,{c:function(){return n}})},3356:function(e,t,r){"use strict";r.r(t),r.d(t,{geoAlbers:function(){return qe},geoAlbersUsa:function(){return We},geoArea:function(){return n.cp},geoAzimuthalEqualArea:function(){return Ze.c},geoAzimuthalEqualAreaRaw:function(){return Ze.y},geoAzimuthalEquidistant:function(){return Je.c},geoAzimuthalEquidistantRaw:function(){return Je.O},geoBounds:function(){return a.c},geoCentroid:function(){return i.c},geoCircle:function(){return o.c},geoClipAntimeridian:function(){return l.c},geoClipCircle:function(){return s.c},geoClipExtent:function(){return c},geoClipRectangle:function(){return u.c},geoConicConformal:function(){return rt},geoConicConformalRaw:function(){return tt},geoConicEqualArea:function(){return Ue},geoConicEqualAreaRaw:function(){return Ye},geoConicEquidistant:function(){return it},geoConicEquidistantRaw:function(){return at},geoContains:function(){return N},geoDistance:function(){return S},geoEqualEarth:function(){return dt},geoEqualEarthRaw:function(){return ft},geoEquirectangular:function(){return nt.c},geoEquirectangularRaw:function(){return nt.u},geoGnomonic:function(){return ht.c},geoGnomonicRaw:function(){return ht.Y},geoGraticule:function(){return B},geoGraticule10:function(){return H},geoIdentity:function(){return gt},geoInterpolate:function(){return V.c},geoLength:function(){return T},geoMercator:function(){return Ke},geoMercatorRaw:function(){return $e},geoNaturalEarth1:function(){return vt.c},geoNaturalEarth1Raw:function(){return vt.g},geoOrthographic:function(){return yt.c},geoOrthographicRaw:function(){return yt.t},geoPath:function(){return Be},geoProjection:function(){return He.c},geoProjectionMutator:function(){return He.U},geoRotation:function(){return Xe.c},geoStereographic:function(){return bt},geoStereographicRaw:function(){return xt},geoStream:function(){return m.c},geoTransform:function(){return pt.c},geoTransverseMercator:function(){return wt},geoTransverseMercatorRaw:function(){return _t}});var n=r(5384),a=r(1315),i=r(4052),o=r(9399),l=r(8284),s=r(2728),u=r(1676);function c(){var e,t,r,n=0,a=0,i=960,o=500;return r={stream:function(r){return e&&t===r?e:e=(0,u.c)(n,a,i,o)(t=r)},extent:function(l){return arguments.length?(n=+l[0][0],a=+l[0][1],i=+l[1][0],o=+l[1][1],e=t=null,r):[[n,a],[i,o]]}}}var f,d,h,p=r(8196),g=r(6348),v=r(4528),y=r(932),m=r(6016),x=(0,g.c)(),b={sphere:y.c,point:y.c,lineStart:function(){b.point=w,b.lineEnd=_},lineEnd:y.c,polygonStart:y.c,polygonEnd:y.c};function _(){b.point=b.lineEnd=y.c}function w(e,t){e*=v.qw,t*=v.qw,f=e,d=(0,v.g$)(t),h=(0,v.W8)(t),b.point=M}function M(e,t){e*=v.qw,t*=v.qw;var r=(0,v.g$)(t),n=(0,v.W8)(t),a=(0,v.a2)(e-f),i=(0,v.W8)(a),o=n*(0,v.g$)(a),l=h*r-d*n*i,s=d*r+h*n*i;x.add((0,v.WE)((0,v._I)(o*o+l*l),s)),f=e,d=r,h=n}function T(e){return x.reset(),(0,m.c)(e,b),+x}var k=[null,null],A={type:"LineString",coordinates:k};function S(e,t){return k[0]=e,k[1]=t,T(A)}var L={Feature:function(e,t){return C(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,n=-1,a=r.length;++n<a;)if(C(r[n].geometry,t))return!0;return!1}},D={Sphere:function(){return!0},Point:function(e,t){return P(e.coordinates,t)},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)if(P(r[n],t))return!0;return!1},LineString:function(e,t){return O(e.coordinates,t)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)if(O(r[n],t))return!0;return!1},Polygon:function(e,t){return R(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)if(R(r[n],t))return!0;return!1},GeometryCollection:function(e,t){for(var r=e.geometries,n=-1,a=r.length;++n<a;)if(C(r[n],t))return!0;return!1}};function C(e,t){return!(!e||!D.hasOwnProperty(e.type))&&D[e.type](e,t)}function P(e,t){return 0===S(e,t)}function O(e,t){for(var r,n,a,i=0,o=e.length;i<o;i++){if(0===(n=S(e[i],t)))return!0;if(i>0&&(a=S(e[i],e[i-1]))>0&&r<=a&&n<=a&&(r+n-a)*(1-Math.pow((r-n)/a,2))<v.a8*a)return!0;r=n}return!1}function R(e,t){return!!(0,p.c)(e.map(E),I(t))}function E(e){return(e=e.map(I)).pop(),e}function I(e){return[e[0]*v.qw,e[1]*v.qw]}function N(e,t){return(e&&L.hasOwnProperty(e.type)?L[e.type]:C)(e,t)}var z=r(376);function F(e,t,r){var n=(0,z.ik)(e,t-v.Gg,r).concat(t);return function(e){return n.map((function(t){return[e,t]}))}}function j(e,t,r){var n=(0,z.ik)(e,t-v.Gg,r).concat(t);return function(e){return n.map((function(t){return[t,e]}))}}function B(){var e,t,r,n,a,i,o,l,s,u,c,f,d=10,h=d,p=90,g=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:x()}}function x(){return(0,z.ik)((0,v.Km)(n/p)*p,r,p).map(c).concat((0,z.ik)((0,v.Km)(l/g)*g,o,g).map(f)).concat((0,z.ik)((0,v.Km)(t/d)*d,e,d).filter((function(e){return(0,v.a2)(e%p)>v.Gg})).map(s)).concat((0,z.ik)((0,v.Km)(i/h)*h,a,h).filter((function(e){return(0,v.a2)(e%g)>v.Gg})).map(u))}return m.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},m.outline=function(){return{type:"Polygon",coordinates:[c(n).concat(f(o).slice(1),c(r).reverse().slice(1),f(l).reverse().slice(1))]}},m.extent=function(e){return arguments.length?m.extentMajor(e).extentMinor(e):m.extentMinor()},m.extentMajor=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],l=+e[0][1],o=+e[1][1],n>r&&(e=n,n=r,r=e),l>o&&(e=l,l=o,o=e),m.precision(y)):[[n,l],[r,o]]},m.extentMinor=function(r){return arguments.length?(t=+r[0][0],e=+r[1][0],i=+r[0][1],a=+r[1][1],t>e&&(r=t,t=e,e=r),i>a&&(r=i,i=a,a=r),m.precision(y)):[[t,i],[e,a]]},m.step=function(e){return arguments.length?m.stepMajor(e).stepMinor(e):m.stepMinor()},m.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],m):[p,g]},m.stepMinor=function(e){return arguments.length?(d=+e[0],h=+e[1],m):[d,h]},m.precision=function(d){return arguments.length?(y=+d,s=F(i,a,90),u=j(t,e,y),c=F(l,o,90),f=j(n,r,y),m):y},m.extentMajor([[-180,-90+v.Gg],[180,90-v.Gg]]).extentMinor([[-180,-80-v.Gg],[180,80+v.Gg]])}function H(){return B()()}var G,Y,U,q,V=r(7284),W=r(7376),Z=(0,g.c)(),J=(0,g.c)(),X={point:y.c,lineStart:y.c,lineEnd:y.c,polygonStart:function(){X.lineStart=$,X.lineEnd=ee},polygonEnd:function(){X.lineStart=X.lineEnd=X.point=y.c,Z.add((0,v.a2)(J)),J.reset()},result:function(){var e=Z/2;return Z.reset(),e}};function $(){X.point=K}function K(e,t){X.point=Q,G=U=e,Y=q=t}function Q(e,t){J.add(q*e-U*t),U=e,q=t}function ee(){Q(G,Y)}var te,re,ne,ae,ie=X,oe=r(3784),le=0,se=0,ue=0,ce=0,fe=0,de=0,he=0,pe=0,ge=0,ve={point:ye,lineStart:me,lineEnd:_e,polygonStart:function(){ve.lineStart=we,ve.lineEnd=Me},polygonEnd:function(){ve.point=ye,ve.lineStart=me,ve.lineEnd=_e},result:function(){var e=ge?[he/ge,pe/ge]:de?[ce/de,fe/de]:ue?[le/ue,se/ue]:[NaN,NaN];return le=se=ue=ce=fe=de=he=pe=ge=0,e}};function ye(e,t){le+=e,se+=t,++ue}function me(){ve.point=xe}function xe(e,t){ve.point=be,ye(ne=e,ae=t)}function be(e,t){var r=e-ne,n=t-ae,a=(0,v._I)(r*r+n*n);ce+=a*(ne+e)/2,fe+=a*(ae+t)/2,de+=a,ye(ne=e,ae=t)}function _e(){ve.point=ye}function we(){ve.point=Te}function Me(){ke(te,re)}function Te(e,t){ve.point=ke,ye(te=ne=e,re=ae=t)}function ke(e,t){var r=e-ne,n=t-ae,a=(0,v._I)(r*r+n*n);ce+=a*(ne+e)/2,fe+=a*(ae+t)/2,de+=a,he+=(a=ae*e-ne*t)*(ne+e),pe+=a*(ae+t),ge+=3*a,ye(ne=e,ae=t)}var Ae=ve;function Se(e){this._context=e}Se.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,v.kD)}},result:y.c};var Le,De,Ce,Pe,Oe,Re=(0,g.c)(),Ee={point:y.c,lineStart:function(){Ee.point=Ie},lineEnd:function(){Le&&Ne(De,Ce),Ee.point=y.c},polygonStart:function(){Le=!0},polygonEnd:function(){Le=null},result:function(){var e=+Re;return Re.reset(),e}};function Ie(e,t){Ee.point=Ne,De=Pe=e,Ce=Oe=t}function Ne(e,t){Pe-=e,Oe-=t,Re.add((0,v._I)(Pe*Pe+Oe*Oe)),Pe=e,Oe=t}var ze=Ee;function Fe(){this._string=[]}function je(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Be(e,t){var r,n,a=4.5;function i(e){return e&&("function"==typeof a&&n.pointRadius(+a.apply(this,arguments)),(0,m.c)(e,r(n))),n.result()}return i.area=function(e){return(0,m.c)(e,r(ie)),ie.result()},i.measure=function(e){return(0,m.c)(e,r(ze)),ze.result()},i.bounds=function(e){return(0,m.c)(e,r(oe.c)),oe.c.result()},i.centroid=function(e){return(0,m.c)(e,r(Ae)),Ae.result()},i.projection=function(t){return arguments.length?(r=null==t?(e=null,W.c):(e=t).stream,i):e},i.context=function(e){return arguments.length?(n=null==e?(t=null,new Fe):new Se(t=e),"function"!=typeof a&&n.pointRadius(a),i):t},i.pointRadius=function(e){return arguments.length?(a="function"==typeof e?e:(n.pointRadius(+e),+e),i):a},i.projection(e).context(t)}Fe.prototype={_radius:4.5,_circle:je(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=je(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var He=r(5572);function Ge(e){var t=0,r=v.pi/3,n=(0,He.U)(e),a=n(t,r);return a.parallels=function(e){return arguments.length?n(t=e[0]*v.qw,r=e[1]*v.qw):[t*v.oh,r*v.oh]},a}function Ye(e,t){var r=(0,v.g$)(e),n=(r+(0,v.g$)(t))/2;if((0,v.a2)(n)<v.Gg)return function(e){var t=(0,v.W8)(e);function r(e,r){return[e*t,(0,v.g$)(r)/t]}return r.invert=function(e,r){return[e/t,(0,v.qR)(r*t)]},r}(e);var a=1+r*(2*n-r),i=(0,v._I)(a)/n;function o(e,t){var r=(0,v._I)(a-2*n*(0,v.g$)(t))/n;return[r*(0,v.g$)(e*=n),i-r*(0,v.W8)(e)]}return o.invert=function(e,t){var r=i-t,o=(0,v.WE)(e,(0,v.a2)(r))*(0,v.kq)(r);return r*n<0&&(o-=v.pi*(0,v.kq)(e)*(0,v.kq)(r)),[o/n,(0,v.qR)((a-(e*e+r*r)*n*n)/(2*n))]},o}function Ue(){return Ge(Ye).scale(155.424).center([0,33.6442])}function qe(){return Ue().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}var Ve=r(6420);function We(){var e,t,r,n,a,i,o=qe(),l=Ue().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Ue().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,t){i=[e,t]}};function c(e){var t=e[0],o=e[1];return i=null,r.point(t,o),i||(n.point(t,o),i)||(a.point(t,o),i)}function f(){return e=t=null,c}return c.invert=function(e){var t=o.scale(),r=o.translate(),n=(e[0]-r[0])/t,a=(e[1]-r[1])/t;return(a>=.12&&a<.234&&n>=-.425&&n<-.214?l:a>=.166&&a<.234&&n>=-.214&&n<-.115?s:o).invert(e)},c.stream=function(r){return e&&t===r?e:(n=[o.stream(t=r),l.stream(r),s.stream(r)],a=n.length,e={point:function(e,t){for(var r=-1;++r<a;)n[r].point(e,t)},sphere:function(){for(var e=-1;++e<a;)n[e].sphere()},lineStart:function(){for(var e=-1;++e<a;)n[e].lineStart()},lineEnd:function(){for(var e=-1;++e<a;)n[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<a;)n[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<a;)n[e].polygonEnd()}});var n,a},c.precision=function(e){return arguments.length?(o.precision(e),l.precision(e),s.precision(e),f()):o.precision()},c.scale=function(e){return arguments.length?(o.scale(e),l.scale(.35*e),s.scale(e),c.translate(o.translate())):o.scale()},c.translate=function(e){if(!arguments.length)return o.translate();var t=o.scale(),i=+e[0],c=+e[1];return r=o.translate(e).clipExtent([[i-.455*t,c-.238*t],[i+.455*t,c+.238*t]]).stream(u),n=l.translate([i-.307*t,c+.201*t]).clipExtent([[i-.425*t+v.Gg,c+.12*t+v.Gg],[i-.214*t-v.Gg,c+.234*t-v.Gg]]).stream(u),a=s.translate([i-.205*t,c+.212*t]).clipExtent([[i-.214*t+v.Gg,c+.166*t+v.Gg],[i-.115*t-v.Gg,c+.234*t-v.Gg]]).stream(u),f()},c.fitExtent=function(e,t){return(0,Ve.QX)(c,e,t)},c.fitSize=function(e,t){return(0,Ve.UV)(c,e,t)},c.fitWidth=function(e,t){return(0,Ve.Qx)(c,e,t)},c.fitHeight=function(e,t){return(0,Ve.OW)(c,e,t)},c.scale(1070)}var Ze=r(2344),Je=r(9020),Xe=r(2992);function $e(e,t){return[e,(0,v.Yz)((0,v.a6)((v.or+t)/2))]}function Ke(){return Qe($e).scale(961/v.kD)}function Qe(e){var t,r,n,a=(0,He.c)(e),i=a.center,o=a.scale,l=a.translate,s=a.clipExtent,u=null;function c(){var i=v.pi*o(),l=a((0,Xe.c)(a.rotate()).invert([0,0]));return s(null==u?[[l[0]-i,l[1]-i],[l[0]+i,l[1]+i]]:e===$e?[[Math.max(l[0]-i,u),t],[Math.min(l[0]+i,r),n]]:[[u,Math.max(l[1]-i,t)],[r,Math.min(l[1]+i,n)]])}return a.scale=function(e){return arguments.length?(o(e),c()):o()},a.translate=function(e){return arguments.length?(l(e),c()):l()},a.center=function(e){return arguments.length?(i(e),c()):i()},a.clipExtent=function(e){return arguments.length?(null==e?u=t=r=n=null:(u=+e[0][0],t=+e[0][1],r=+e[1][0],n=+e[1][1]),c()):null==u?null:[[u,t],[r,n]]},c()}function et(e){return(0,v.a6)((v.or+e)/2)}function tt(e,t){var r=(0,v.W8)(e),n=e===t?(0,v.g$)(e):(0,v.Yz)(r/(0,v.W8)(t))/(0,v.Yz)(et(t)/et(e)),a=r*(0,v.g3)(et(e),n)/n;if(!n)return $e;function i(e,t){a>0?t<-v.or+v.Gg&&(t=-v.or+v.Gg):t>v.or-v.Gg&&(t=v.or-v.Gg);var r=a/(0,v.g3)(et(t),n);return[r*(0,v.g$)(n*e),a-r*(0,v.W8)(n*e)]}return i.invert=function(e,t){var r=a-t,i=(0,v.kq)(n)*(0,v._I)(e*e+r*r),o=(0,v.WE)(e,(0,v.a2)(r))*(0,v.kq)(r);return r*n<0&&(o-=v.pi*(0,v.kq)(e)*(0,v.kq)(r)),[o/n,2*(0,v.MQ)((0,v.g3)(a/i,1/n))-v.or]},i}function rt(){return Ge(tt).scale(109.5).parallels([30,30])}$e.invert=function(e,t){return[e,2*(0,v.MQ)((0,v.oN)(t))-v.or]};var nt=r(1986);function at(e,t){var r=(0,v.W8)(e),n=e===t?(0,v.g$)(e):(r-(0,v.W8)(t))/(t-e),a=r/n+e;if((0,v.a2)(n)<v.Gg)return nt.u;function i(e,t){var r=a-t,i=n*e;return[r*(0,v.g$)(i),a-r*(0,v.W8)(i)]}return i.invert=function(e,t){var r=a-t,i=(0,v.WE)(e,(0,v.a2)(r))*(0,v.kq)(r);return r*n<0&&(i-=v.pi*(0,v.kq)(e)*(0,v.kq)(r)),[i/n,a-(0,v.kq)(n)*(0,v._I)(e*e+r*r)]},i}function it(){return Ge(at).scale(131.154).center([0,13.9389])}var ot=1.340264,lt=-.081106,st=893e-6,ut=.003796,ct=(0,v._I)(3)/2;function ft(e,t){var r=(0,v.qR)(ct*(0,v.g$)(t)),n=r*r,a=n*n*n;return[e*(0,v.W8)(r)/(ct*(ot+3*lt*n+a*(7*st+9*ut*n))),r*(ot+lt*n+a*(st+ut*n))]}function dt(){return(0,He.c)(ft).scale(177.158)}ft.invert=function(e,t){for(var r,n=t,a=n*n,i=a*a*a,o=0;o<12&&(i=(a=(n-=r=(n*(ot+lt*a+i*(st+ut*a))-t)/(ot+3*lt*a+i*(7*st+9*ut*a)))*n)*a*a,!((0,v.a2)(r)<v.a8));++o);return[ct*e*(ot+3*lt*a+i*(7*st+9*ut*a))/(0,v.W8)(n),(0,v.qR)((0,v.g$)(n)/ct)]};var ht=r(3285),pt=r(7576);function gt(){var e,t,r,n,a,i,o,l=1,s=0,c=0,f=1,d=1,h=0,p=null,g=1,y=1,m=(0,pt.s)({point:function(e,t){var r=_([e,t]);this.stream.point(r[0],r[1])}}),x=W.c;function b(){return g=l*f,y=l*d,i=o=null,_}function _(r){var n=r[0]*g,a=r[1]*y;if(h){var i=a*e-n*t;n=n*e+a*t,a=i}return[n+s,a+c]}return _.invert=function(r){var n=r[0]-s,a=r[1]-c;if(h){var i=a*e+n*t;n=n*e-a*t,a=i}return[n/g,a/y]},_.stream=function(e){return i&&o===e?i:i=m(x(o=e))},_.postclip=function(e){return arguments.length?(x=e,p=r=n=a=null,b()):x},_.clipExtent=function(e){return arguments.length?(x=null==e?(p=r=n=a=null,W.c):(0,u.c)(p=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),b()):null==p?null:[[p,r],[n,a]]},_.scale=function(e){return arguments.length?(l=+e,b()):l},_.translate=function(e){return arguments.length?(s=+e[0],c=+e[1],b()):[s,c]},_.angle=function(r){return arguments.length?(h=r%360*v.qw,t=(0,v.g$)(h),e=(0,v.W8)(h),b()):h*v.oh},_.reflectX=function(e){return arguments.length?(f=e?-1:1,b()):f<0},_.reflectY=function(e){return arguments.length?(d=e?-1:1,b()):d<0},_.fitExtent=function(e,t){return(0,Ve.QX)(_,e,t)},_.fitSize=function(e,t){return(0,Ve.UV)(_,e,t)},_.fitWidth=function(e,t){return(0,Ve.Qx)(_,e,t)},_.fitHeight=function(e,t){return(0,Ve.OW)(_,e,t)},_}var vt=r(7984),yt=r(2507),mt=r(2280);function xt(e,t){var r=(0,v.W8)(t),n=1+(0,v.W8)(e)*r;return[r*(0,v.g$)(e)/n,(0,v.g$)(t)/n]}function bt(){return(0,He.c)(xt).scale(250).clipAngle(142)}function _t(e,t){return[(0,v.Yz)((0,v.a6)((v.or+t)/2)),-e]}function wt(){var e=Qe(_t),t=e.center,r=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?r([e[0],e[1],e.length>2?e[2]+90:90]):[(e=r())[0],e[1],e[2]-90]},r([0,0,90]).scale(159.155)}xt.invert=(0,mt.g)((function(e){return 2*(0,v.MQ)(e)})),_t.invert=function(e,t){return[-t,2*(0,v.MQ)((0,v.oN)(e))-v.or]}},7284:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});var n=r(4528);function a(e,t){var r=e[0]*n.qw,a=e[1]*n.qw,i=t[0]*n.qw,o=t[1]*n.qw,l=(0,n.W8)(a),s=(0,n.g$)(a),u=(0,n.W8)(o),c=(0,n.g$)(o),f=l*(0,n.W8)(r),d=l*(0,n.g$)(r),h=u*(0,n.W8)(i),p=u*(0,n.g$)(i),g=2*(0,n.qR)((0,n._I)((0,n.SD)(o-a)+l*u*(0,n.SD)(i-r))),v=(0,n.g$)(g),y=g?function(e){var t=(0,n.g$)(e*=g)/v,r=(0,n.g$)(g-e)/v,a=r*f+t*h,i=r*d+t*p,o=r*s+t*c;return[(0,n.WE)(i,a)*n.oh,(0,n.WE)(o,(0,n._I)(a*a+i*i))*n.oh]}:function(){return[r*n.oh,a*n.oh]};return y.distance=g,y}},4528:function(e,t,r){"use strict";r.d(t,{Gg:function(){return n},Km:function(){return g},MQ:function(){return d},SD:function(){return k},W8:function(){return p},WE:function(){return h},Yz:function(){return y},_I:function(){return _},a2:function(){return f},a6:function(){return w},a8:function(){return a},g$:function(){return x},g3:function(){return m},kD:function(){return s},kq:function(){return b},mE:function(){return M},oN:function(){return v},oh:function(){return u},or:function(){return o},pi:function(){return i},qR:function(){return T},qw:function(){return c},wL:function(){return l}});var n=1e-6,a=1e-12,i=Math.PI,o=i/2,l=i/4,s=2*i,u=180/i,c=i/180,f=Math.abs,d=Math.atan,h=Math.atan2,p=Math.cos,g=Math.ceil,v=Math.exp,y=(Math.floor,Math.log),m=Math.pow,x=Math.sin,b=Math.sign||function(e){return e>0?1:e<0?-1:0},_=Math.sqrt,w=Math.tan;function M(e){return e>1?0:e<-1?i:Math.acos(e)}function T(e){return e>1?o:e<-1?-o:Math.asin(e)}function k(e){return(e=x(e/2))*e}},932:function(e,t,r){"use strict";function n(){}r.d(t,{c:function(){return n}})},3784:function(e,t,r){"use strict";var n=r(932),a=1/0,i=a,o=-a,l=o,s={point:function(e,t){e<a&&(a=e),e>o&&(o=e),t<i&&(i=t),t>l&&(l=t)},lineStart:n.c,lineEnd:n.c,polygonStart:n.c,polygonEnd:n.c,result:function(){var e=[[a,i],[o,l]];return o=l=-(i=a=1/0),e}};t.c=s},1860:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});var n=r(4528);function a(e,t){return(0,n.a2)(e[0]-t[0])<n.Gg&&(0,n.a2)(e[1]-t[1])<n.Gg}},8196:function(e,t,r){"use strict";r.d(t,{c:function(){return s}});var n=r(6348),a=r(4220),i=r(4528),o=(0,n.c)();function l(e){return(0,i.a2)(e[0])<=i.pi?e[0]:(0,i.kq)(e[0])*(((0,i.a2)(e[0])+i.pi)%i.kD-i.pi)}function s(e,t){var r=l(t),n=t[1],s=(0,i.g$)(n),u=[(0,i.g$)(r),-(0,i.W8)(r),0],c=0,f=0;o.reset(),1===s?n=i.or+i.Gg:-1===s&&(n=-i.or-i.Gg);for(var d=0,h=e.length;d<h;++d)if(g=(p=e[d]).length)for(var p,g,v=p[g-1],y=l(v),m=v[1]/2+i.wL,x=(0,i.g$)(m),b=(0,i.W8)(m),_=0;_<g;++_,y=M,x=k,b=A,v=w){var w=p[_],M=l(w),T=w[1]/2+i.wL,k=(0,i.g$)(T),A=(0,i.W8)(T),S=M-y,L=S>=0?1:-1,D=L*S,C=D>i.pi,P=x*k;if(o.add((0,i.WE)(P*L*(0,i.g$)(D),b*A+P*(0,i.W8)(D))),c+=C?S+L*i.kD:S,C^y>=r^M>=r){var O=(0,a.CW)((0,a.ux)(v),(0,a.ux)(w));(0,a.cJ)(O);var R=(0,a.CW)(u,O);(0,a.cJ)(R);var E=(C^S>=0?-1:1)*(0,i.qR)(R[2]);(n>E||n===E&&(O[0]||O[1]))&&(f+=C^S>=0?1:-1)}}return(c<-i.Gg||c<i.Gg&&o<-i.Gg)^1&f}},2280:function(e,t,r){"use strict";r.d(t,{a:function(){return a},g:function(){return i}});var n=r(4528);function a(e){return function(t,r){var a=(0,n.W8)(t),i=(0,n.W8)(r),o=e(a*i);return[o*i*(0,n.g$)(t),o*(0,n.g$)(r)]}}function i(e){return function(t,r){var a=(0,n._I)(t*t+r*r),i=e(a),o=(0,n.g$)(i),l=(0,n.W8)(i);return[(0,n.WE)(t*o,a*l),(0,n.qR)(a&&r*o/a)]}}},2344:function(e,t,r){"use strict";r.d(t,{c:function(){return l},y:function(){return o}});var n=r(4528),a=r(2280),i=r(5572),o=(0,a.a)((function(e){return(0,n._I)(2/(1+e))}));function l(){return(0,i.c)(o).scale(124.75).clipAngle(179.999)}o.invert=(0,a.g)((function(e){return 2*(0,n.qR)(e/2)}))},9020:function(e,t,r){"use strict";r.d(t,{O:function(){return o},c:function(){return l}});var n=r(4528),a=r(2280),i=r(5572),o=(0,a.a)((function(e){return(e=(0,n.mE)(e))&&e/(0,n.g$)(e)}));function l(){return(0,i.c)(o).scale(79.4188).clipAngle(179.999)}o.invert=(0,a.g)((function(e){return e}))},1986:function(e,t,r){"use strict";r.d(t,{c:function(){return i},u:function(){return a}});var n=r(5572);function a(e,t){return[e,t]}function i(){return(0,n.c)(a).scale(152.63)}a.invert=a},6420:function(e,t,r){"use strict";r.d(t,{OW:function(){return u},QX:function(){return o},Qx:function(){return s},UV:function(){return l}});var n=r(6016),a=r(3784);function i(e,t,r){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),(0,n.c)(r,e.stream(a.c)),t(a.c.result()),null!=i&&e.clipExtent(i),e}function o(e,t,r){return i(e,(function(r){var n=t[1][0]-t[0][0],a=t[1][1]-t[0][1],i=Math.min(n/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),o=+t[0][0]+(n-i*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(a-i*(r[1][1]+r[0][1]))/2;e.scale(150*i).translate([o,l])}),r)}function l(e,t,r){return o(e,[[0,0],t],r)}function s(e,t,r){return i(e,(function(r){var n=+t,a=n/(r[1][0]-r[0][0]),i=(n-a*(r[1][0]+r[0][0]))/2,o=-a*r[0][1];e.scale(150*a).translate([i,o])}),r)}function u(e,t,r){return i(e,(function(r){var n=+t,a=n/(r[1][1]-r[0][1]),i=-a*r[0][0],o=(n-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([i,o])}),r)}},3285:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},c:function(){return l}});var n=r(4528),a=r(2280),i=r(5572);function o(e,t){var r=(0,n.W8)(t),a=(0,n.W8)(e)*r;return[r*(0,n.g$)(e)/a,(0,n.g$)(t)/a]}function l(){return(0,i.c)(o).scale(144.049).clipAngle(60)}o.invert=(0,a.g)(n.MQ)},5572:function(e,t,r){"use strict";r.d(t,{c:function(){return x},U:function(){return b}});var n=r(8284),a=r(2728),i=r(1676),o=r(8120),l=r(7376),s=r(4528),u=r(2992),c=r(7576),f=r(6420),d=r(4220),h=16,p=(0,s.W8)(30*s.qw);function g(e,t){return+t?function(e,t){function r(n,a,i,o,l,u,c,f,d,h,g,v,y,m){var x=c-n,b=f-a,_=x*x+b*b;if(_>4*t&&y--){var w=o+h,M=l+g,T=u+v,k=(0,s._I)(w*w+M*M+T*T),A=(0,s.qR)(T/=k),S=(0,s.a2)((0,s.a2)(T)-1)<s.Gg||(0,s.a2)(i-d)<s.Gg?(i+d)/2:(0,s.WE)(M,w),L=e(S,A),D=L[0],C=L[1],P=D-n,O=C-a,R=b*P-x*O;(R*R/_>t||(0,s.a2)((x*P+b*O)/_-.5)>.3||o*h+l*g+u*v<p)&&(r(n,a,i,o,l,u,D,C,S,w/=k,M/=k,T,y,m),m.point(D,C),r(D,C,S,w,M,T,c,f,d,h,g,v,y,m))}}return function(t){var n,a,i,o,l,s,u,c,f,p,g,v,y={point:m,lineStart:x,lineEnd:_,polygonStart:function(){t.polygonStart(),y.lineStart=w},polygonEnd:function(){t.polygonEnd(),y.lineStart=x}};function m(r,n){r=e(r,n),t.point(r[0],r[1])}function x(){c=NaN,y.point=b,t.lineStart()}function b(n,a){var i=(0,d.ux)([n,a]),o=e(n,a);r(c,f,u,p,g,v,c=o[0],f=o[1],u=n,p=i[0],g=i[1],v=i[2],h,t),t.point(c,f)}function _(){y.point=m,t.lineEnd()}function w(){x(),y.point=M,y.lineEnd=T}function M(e,t){b(n=e,t),a=c,i=f,o=p,l=g,s=v,y.point=b}function T(){r(c,f,u,p,g,v,a,i,n,o,l,s,h,t),y.lineEnd=_,_()}return y}}(e,t):function(e){return(0,c.s)({point:function(t,r){t=e(t,r),this.stream.point(t[0],t[1])}})}(e)}var v=(0,c.s)({point:function(e,t){this.stream.point(e*s.qw,t*s.qw)}});function y(e,t,r,n,a){function i(i,o){return[t+e*(i*=n),r-e*(o*=a)]}return i.invert=function(i,o){return[(i-t)/e*n,(r-o)/e*a]},i}function m(e,t,r,n,a,i){var o=(0,s.W8)(i),l=(0,s.g$)(i),u=o*e,c=l*e,f=o/e,d=l/e,h=(l*r-o*t)/e,p=(l*t+o*r)/e;function g(e,i){return[u*(e*=n)-c*(i*=a)+t,r-c*e-u*i]}return g.invert=function(e,t){return[n*(f*e-d*t+h),a*(p-d*e-f*t)]},g}function x(e){return b((function(){return e}))()}function b(e){var t,r,d,h,p,x,b,_,w,M,T=150,k=480,A=250,S=0,L=0,D=0,C=0,P=0,O=0,R=1,E=1,I=null,N=n.c,z=null,F=l.c,j=.5;function B(e){return _(e[0]*s.qw,e[1]*s.qw)}function H(e){return(e=_.invert(e[0],e[1]))&&[e[0]*s.oh,e[1]*s.oh]}function G(){var e=m(T,0,0,R,E,O).apply(null,t(S,L)),n=(O?m:y)(T,k-e[0],A-e[1],R,E,O);return r=(0,u.O)(D,C,P),b=(0,o.c)(t,n),_=(0,o.c)(r,b),x=g(b,j),Y()}function Y(){return w=M=null,B}return B.stream=function(e){return w&&M===e?w:w=v(function(e){return(0,c.s)({point:function(t,r){var n=e(t,r);return this.stream.point(n[0],n[1])}})}(r)(N(x(F(M=e)))))},B.preclip=function(e){return arguments.length?(N=e,I=void 0,Y()):N},B.postclip=function(e){return arguments.length?(F=e,z=d=h=p=null,Y()):F},B.clipAngle=function(e){return arguments.length?(N=+e?(0,a.c)(I=e*s.qw):(I=null,n.c),Y()):I*s.oh},B.clipExtent=function(e){return arguments.length?(F=null==e?(z=d=h=p=null,l.c):(0,i.c)(z=+e[0][0],d=+e[0][1],h=+e[1][0],p=+e[1][1]),Y()):null==z?null:[[z,d],[h,p]]},B.scale=function(e){return arguments.length?(T=+e,G()):T},B.translate=function(e){return arguments.length?(k=+e[0],A=+e[1],G()):[k,A]},B.center=function(e){return arguments.length?(S=e[0]%360*s.qw,L=e[1]%360*s.qw,G()):[S*s.oh,L*s.oh]},B.rotate=function(e){return arguments.length?(D=e[0]%360*s.qw,C=e[1]%360*s.qw,P=e.length>2?e[2]%360*s.qw:0,G()):[D*s.oh,C*s.oh,P*s.oh]},B.angle=function(e){return arguments.length?(O=e%360*s.qw,G()):O*s.oh},B.reflectX=function(e){return arguments.length?(R=e?-1:1,G()):R<0},B.reflectY=function(e){return arguments.length?(E=e?-1:1,G()):E<0},B.precision=function(e){return arguments.length?(x=g(b,j=e*e),Y()):(0,s._I)(j)},B.fitExtent=function(e,t){return(0,f.QX)(B,e,t)},B.fitSize=function(e,t){return(0,f.UV)(B,e,t)},B.fitWidth=function(e,t){return(0,f.Qx)(B,e,t)},B.fitHeight=function(e,t){return(0,f.OW)(B,e,t)},function(){return t=e.apply(this,arguments),B.invert=t.invert&&H,G()}}},7984:function(e,t,r){"use strict";r.d(t,{c:function(){return o},g:function(){return i}});var n=r(5572),a=r(4528);function i(e,t){var r=t*t,n=r*r;return[e*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),t*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function o(){return(0,n.c)(i).scale(175.295)}i.invert=function(e,t){var r,n=t,i=25;do{var o=n*n,l=o*o;n-=r=(n*(1.007226+o*(.015085+l*(.028874*o-.044475-.005916*l)))-t)/(1.007226+o*(.045255+l*(.259866*o-.311325-.005916*11*l)))}while((0,a.a2)(r)>a.Gg&&--i>0);return[e/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]}},2507:function(e,t,r){"use strict";r.d(t,{c:function(){return l},t:function(){return o}});var n=r(4528),a=r(2280),i=r(5572);function o(e,t){return[(0,n.W8)(t)*(0,n.g$)(e),(0,n.g$)(t)]}function l(){return(0,i.c)(o).scale(249.5).clipAngle(90+n.Gg)}o.invert=(0,a.g)(n.qR)},2992:function(e,t,r){"use strict";r.d(t,{O:function(){return o},c:function(){return c}});var n=r(8120),a=r(4528);function i(e,t){return[(0,a.a2)(e)>a.pi?e+Math.round(-e/a.kD)*a.kD:e,t]}function o(e,t,r){return(e%=a.kD)?t||r?(0,n.c)(s(e),u(t,r)):s(e):t||r?u(t,r):i}function l(e){return function(t,r){return[(t+=e)>a.pi?t-a.kD:t<-a.pi?t+a.kD:t,r]}}function s(e){var t=l(e);return t.invert=l(-e),t}function u(e,t){var r=(0,a.W8)(e),n=(0,a.g$)(e),i=(0,a.W8)(t),o=(0,a.g$)(t);function l(e,t){var l=(0,a.W8)(t),s=(0,a.W8)(e)*l,u=(0,a.g$)(e)*l,c=(0,a.g$)(t),f=c*r+s*n;return[(0,a.WE)(u*i-f*o,s*r-c*n),(0,a.qR)(f*i+u*o)]}return l.invert=function(e,t){var l=(0,a.W8)(t),s=(0,a.W8)(e)*l,u=(0,a.g$)(e)*l,c=(0,a.g$)(t),f=c*i-u*o;return[(0,a.WE)(u*i+c*o,s*r+f*n),(0,a.qR)(f*r-s*n)]},l}function c(e){function t(t){return(t=e(t[0]*a.qw,t[1]*a.qw))[0]*=a.oh,t[1]*=a.oh,t}return e=o(e[0]*a.qw,e[1]*a.qw,e.length>2?e[2]*a.qw:0),t.invert=function(t){return(t=e.invert(t[0]*a.qw,t[1]*a.qw))[0]*=a.oh,t[1]*=a.oh,t},t}i.invert=i},6016:function(e,t,r){"use strict";function n(e,t){e&&i.hasOwnProperty(e.type)&&i[e.type](e,t)}r.d(t,{c:function(){return s}});var a={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,a=-1,i=r.length;++a<i;)n(r[a].geometry,t)}},i={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){o(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)o(r[n],t,0)},Polygon:function(e,t){l(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)l(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,a=-1,i=r.length;++a<i;)n(r[a],t)}};function o(e,t,r){var n,a=-1,i=e.length-r;for(t.lineStart();++a<i;)n=e[a],t.point(n[0],n[1],n[2]);t.lineEnd()}function l(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)o(e[r],t,1);t.polygonEnd()}function s(e,t){e&&a.hasOwnProperty(e.type)?a[e.type](e,t):n(e,t)}},7576:function(e,t,r){"use strict";function n(e){return{stream:a(e)}}function a(e){return function(t){var r=new i;for(var n in e)r[n]=e[n];return r.stream=t,r}}function i(){}r.d(t,{c:function(){return n},s:function(){return a}}),i.prototype={constructor:i,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},4336:function(e,t,r){"use strict";r.d(t,{Yn:function(){return p},m_:function(){return d},E9:function(){return g}});var n=r(8208),a=r(8931),i=r(6192),o=r(8936),l=r(2171),s=r(3528);function u(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function c(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function f(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function d(e){var t=e.dateTime,r=e.date,l=e.time,s=e.periods,d=e.days,h=e.shortDays,p=e.months,g=e.shortMonths,y=w(s),m=M(s),x=w(d),b=M(d),_=w(h),Se=M(h),Le=w(p),De=M(p),Ce=w(g),Pe=M(g),Oe={a:function(e){return h[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return g[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:U,e:U,f:J,H:q,I:V,j:W,L:Z,m:X,M:$,p:function(e){return s[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ke,s:Ae,S:K,u:Q,U:ee,V:te,w:re,W:ne,x:null,X:null,y:ae,Y:ie,Z:oe,"%":Te},Re={a:function(e){return h[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return g[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:le,e:le,f:de,H:se,I:ue,j:ce,L:fe,m:he,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ke,s:Ae,S:ge,u:ve,U:ye,V:me,w:xe,W:be,x:null,X:null,y:_e,Y:we,Z:Me,"%":Te},Ee={a:function(e,t,r){var n=_.exec(t.slice(r));return n?(e.w=Se[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=x.exec(t.slice(r));return n?(e.w=b[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.m=Pe[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=Le.exec(t.slice(r));return n?(e.m=De[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return ze(e,t,r,n)},d:E,e:E,f:B,H:N,I:N,j:I,L:j,m:R,M:z,p:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.p=m[n[0].toLowerCase()],r+n[0].length):-1},q:O,Q:G,s:Y,S:F,u:k,U:A,V:S,w:T,W:L,x:function(e,t,n){return ze(e,r,t,n)},X:function(e,t,r){return ze(e,l,t,r)},y:C,Y:D,Z:P,"%":H};function Ie(e,t){return function(r){var n,a,i,o=[],l=-1,s=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=v[n=e.charAt(++l)])?n=e.charAt(++l):a="e"===n?" ":"0",(i=t[n])&&(n=i(r,a)),o.push(n),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function Ne(e,t){return function(r){var l,s,d=f(1900,void 0,1);if(ze(d,e,r+="",0)!=r.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(t&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(s=(l=c(f(d.y,0,1))).getUTCDay(),l=s>4||0===s?n.ot.ceil(l):(0,n.ot)(l),l=a.c.offset(l,7*(d.V-1)),d.y=l.getUTCFullYear(),d.m=l.getUTCMonth(),d.d=l.getUTCDate()+(d.w+6)%7):(s=(l=u(f(d.y,0,1))).getDay(),l=s>4||0===s?i.qT.ceil(l):(0,i.qT)(l),l=o.c.offset(l,7*(d.V-1)),d.y=l.getFullYear(),d.m=l.getMonth(),d.d=l.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),s="Z"in d?c(f(d.y,0,1)).getUTCDay():u(f(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(s+5)%7:d.w+7*d.U-(s+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,c(d)):u(d)}}function ze(e,t,r,n){for(var a,i,o=0,l=t.length,s=r.length;o<l;){if(n>=s)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Ee[a in v?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return Oe.x=Ie(r,Oe),Oe.X=Ie(l,Oe),Oe.c=Ie(t,Oe),Re.x=Ie(r,Re),Re.X=Ie(l,Re),Re.c=Ie(t,Re),{format:function(e){var t=Ie(e+="",Oe);return t.toString=function(){return e},t},parse:function(e){var t=Ne(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ie(e+="",Re);return t.toString=function(){return e},t},utcParse:function(e){var t=Ne(e+="",!0);return t.toString=function(){return e},t}}}var h,p,g,v={"-":"",_:" ",0:"0"},y=/^\s*\d+/,m=/^%/,x=/[\\^$*+?|[\]().{}]/g;function b(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function _(e){return e.replace(x,"\\$&")}function w(e){return new RegExp("^(?:"+e.map(_).join("|")+")","i")}function M(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function T(e,t,r){var n=y.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function k(e,t,r){var n=y.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function A(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function L(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function D(e,t,r){var n=y.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function C(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function P(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function O(e,t,r){var n=y.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function R(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function E(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function I(e,t,r){var n=y.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function N(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function z(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function F(e,t,r){var n=y.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function j(e,t,r){var n=y.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function B(e,t,r){var n=y.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function H(e,t,r){var n=m.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function G(e,t,r){var n=y.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Y(e,t,r){var n=y.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function U(e,t){return b(e.getDate(),t,2)}function q(e,t){return b(e.getHours(),t,2)}function V(e,t){return b(e.getHours()%12||12,t,2)}function W(e,t){return b(1+o.c.count((0,l.c)(e),e),t,3)}function Z(e,t){return b(e.getMilliseconds(),t,3)}function J(e,t){return Z(e,t)+"000"}function X(e,t){return b(e.getMonth()+1,t,2)}function $(e,t){return b(e.getMinutes(),t,2)}function K(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function ee(e,t){return b(i.uU.count((0,l.c)(e)-1,e),t,2)}function te(e,t){var r=e.getDay();return e=r>=4||0===r?(0,i.kD)(e):i.kD.ceil(e),b(i.kD.count((0,l.c)(e),e)+(4===(0,l.c)(e).getDay()),t,2)}function re(e){return e.getDay()}function ne(e,t){return b(i.qT.count((0,l.c)(e)-1,e),t,2)}function ae(e,t){return b(e.getFullYear()%100,t,2)}function ie(e,t){return b(e.getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function le(e,t){return b(e.getUTCDate(),t,2)}function se(e,t){return b(e.getUTCHours(),t,2)}function ue(e,t){return b(e.getUTCHours()%12||12,t,2)}function ce(e,t){return b(1+a.c.count((0,s.c)(e),e),t,3)}function fe(e,t){return b(e.getUTCMilliseconds(),t,3)}function de(e,t){return fe(e,t)+"000"}function he(e,t){return b(e.getUTCMonth()+1,t,2)}function pe(e,t){return b(e.getUTCMinutes(),t,2)}function ge(e,t){return b(e.getUTCSeconds(),t,2)}function ve(e){var t=e.getUTCDay();return 0===t?7:t}function ye(e,t){return b(n.EV.count((0,s.c)(e)-1,e),t,2)}function me(e,t){var r=e.getUTCDay();return e=r>=4||0===r?(0,n.yA)(e):n.yA.ceil(e),b(n.yA.count((0,s.c)(e),e)+(4===(0,s.c)(e).getUTCDay()),t,2)}function xe(e){return e.getUTCDay()}function be(e,t){return b(n.ot.count((0,s.c)(e)-1,e),t,2)}function _e(e,t){return b(e.getUTCFullYear()%100,t,2)}function we(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function Me(){return"+0000"}function Te(){return"%"}function ke(e){return+e}function Ae(e){return Math.floor(+e/1e3)}h=d({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),p=h.format,h.parse,g=h.utcFormat,h.utcParse},8936:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(1628),a=r(9792),i=(0,n.c)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.iy)/a.SK}),(function(e){return e.getDate()-1}));t.c=i;var o=i.range},9792:function(e,t,r){"use strict";r.d(t,{KK:function(){return l},SK:function(){return o},cg:function(){return i},iy:function(){return a},yc:function(){return n}});var n=1e3,a=6e4,i=36e5,o=864e5,l=6048e5},3220:function(e,t,r){"use strict";r.r(t),r.d(t,{timeDay:function(){return y.c},timeDays:function(){return y.m},timeFriday:function(){return m.iB},timeFridays:function(){return m.sJ},timeHour:function(){return g},timeHours:function(){return v},timeInterval:function(){return n.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return o},timeMinute:function(){return d},timeMinutes:function(){return h},timeMonday:function(){return m.qT},timeMondays:function(){return m.QP},timeMonth:function(){return b},timeMonths:function(){return _},timeSaturday:function(){return m.Wc},timeSaturdays:function(){return m.aI},timeSecond:function(){return u},timeSeconds:function(){return c},timeSunday:function(){return m.uU},timeSundays:function(){return m.Ab},timeThursday:function(){return m.kD},timeThursdays:function(){return m.eC},timeTuesday:function(){return m.Mf},timeTuesdays:function(){return m.Oc},timeWednesday:function(){return m.eg},timeWednesdays:function(){return m.sn},timeWeek:function(){return m.uU},timeWeeks:function(){return m.Ab},timeYear:function(){return w.c},timeYears:function(){return w.Q},utcDay:function(){return D.c},utcDays:function(){return D.o},utcFriday:function(){return C.od},utcFridays:function(){return C.iG},utcHour:function(){return S},utcHours:function(){return L},utcMillisecond:function(){return i},utcMilliseconds:function(){return o},utcMinute:function(){return T},utcMinutes:function(){return k},utcMonday:function(){return C.ot},utcMondays:function(){return C.iO},utcMonth:function(){return O},utcMonths:function(){return R},utcSaturday:function(){return C.Ad},utcSaturdays:function(){return C.K8},utcSecond:function(){return u},utcSeconds:function(){return c},utcSunday:function(){return C.EV},utcSundays:function(){return C.Wq},utcThursday:function(){return C.yA},utcThursdays:function(){return C.ob},utcTuesday:function(){return C.sG},utcTuesdays:function(){return C.kl},utcWednesday:function(){return C._6},utcWednesdays:function(){return C.W_},utcWeek:function(){return C.EV},utcWeeks:function(){return C.Wq},utcYear:function(){return E.c},utcYears:function(){return E.i}});var n=r(1628),a=(0,n.c)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,n.c)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):a:null};var i=a,o=a.range,l=r(9792),s=(0,n.c)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*l.yc)}),(function(e,t){return(t-e)/l.yc}),(function(e){return e.getUTCSeconds()})),u=s,c=s.range,f=(0,n.c)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.yc)}),(function(e,t){e.setTime(+e+t*l.iy)}),(function(e,t){return(t-e)/l.iy}),(function(e){return e.getMinutes()})),d=f,h=f.range,p=(0,n.c)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*l.yc-e.getMinutes()*l.iy)}),(function(e,t){e.setTime(+e+t*l.cg)}),(function(e,t){return(t-e)/l.cg}),(function(e){return e.getHours()})),g=p,v=p.range,y=r(8936),m=r(6192),x=(0,n.c)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),b=x,_=x.range,w=r(2171),M=(0,n.c)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l.iy)}),(function(e,t){return(t-e)/l.iy}),(function(e){return e.getUTCMinutes()})),T=M,k=M.range,A=(0,n.c)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*l.cg)}),(function(e,t){return(t-e)/l.cg}),(function(e){return e.getUTCHours()})),S=A,L=A.range,D=r(8931),C=r(8208),P=(0,n.c)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),O=P,R=P.range,E=r(3528)},1628:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var n=new Date,a=new Date;function i(e,t,r,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t<r-e?t:r},l.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},l.range=function(r,n,a){var i,o=[];if(r=l.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;do{o.push(i=new Date(+r)),t(r,a),e(r)}while(i<r&&r<n);return o},l.filter=function(r){return i((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(l.count=function(t,i){return n.setTime(+t),a.setTime(+i),e(n),e(a),Math.floor(r(n,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}},8931:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(1628),a=r(9792),i=(0,n.c)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/a.SK}),(function(e){return e.getUTCDate()-1}));t.c=i;var o=i.range},8208:function(e,t,r){"use strict";r.d(t,{Ad:function(){return d},EV:function(){return o},K8:function(){return x},W_:function(){return v},Wq:function(){return h},_6:function(){return u},iG:function(){return m},iO:function(){return p},kl:function(){return g},ob:function(){return y},od:function(){return f},ot:function(){return l},sG:function(){return s},yA:function(){return c}});var n=r(1628),a=r(9792);function i(e){return(0,n.c)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/a.KK}))}var o=i(0),l=i(1),s=i(2),u=i(3),c=i(4),f=i(5),d=i(6),h=o.range,p=l.range,g=s.range,v=u.range,y=c.range,m=f.range,x=d.range},3528:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(1628),a=(0,n.c)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,n.c)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null},t.c=a;var i=a.range},6192:function(e,t,r){"use strict";r.d(t,{Ab:function(){return h},Mf:function(){return s},Oc:function(){return g},QP:function(){return p},Wc:function(){return d},aI:function(){return x},eC:function(){return y},eg:function(){return u},iB:function(){return f},kD:function(){return c},qT:function(){return l},sJ:function(){return m},sn:function(){return v},uU:function(){return o}});var n=r(1628),a=r(9792);function i(e){return(0,n.c)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a.iy)/a.KK}))}var o=i(0),l=i(1),s=i(2),u=i(3),c=i(4),f=i(5),d=i(6),h=o.range,p=l.range,g=s.range,v=u.range,y=c.range,m=f.range,x=d.range},2171:function(e,t,r){"use strict";r.d(t,{Q:function(){return i}});var n=r(1628),a=(0,n.c)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));a.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,n.c)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null},t.c=a;var i=a.range},1252:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function a(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,a)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var a,i,o,u;if(l(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=s(e))>0&&o.length>a&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=c.bind(n);return a.listener=r,n.wrapFn=a,a}function d(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):p(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(i){n.once&&e.removeEventListener(t,a),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var u=s.length,c=p(s,u);for(r=0;r<u;++r)n(c[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,a,i,o;if(l(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},8248:function(e,t,r){"use strict";var n=r(4576);e.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0==(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},2408:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],v=t[14],y=t[15];return e[0]=l*(d*y-h*v)-f*(s*y-u*v)+g*(s*h-u*d),e[1]=-(n*(d*y-h*v)-f*(a*y-i*v)+g*(a*h-i*d)),e[2]=n*(s*y-u*v)-l*(a*y-i*v)+g*(a*u-i*s),e[3]=-(n*(s*h-u*d)-l*(a*h-i*d)+f*(a*u-i*s)),e[4]=-(o*(d*y-h*v)-c*(s*y-u*v)+p*(s*h-u*d)),e[5]=r*(d*y-h*v)-c*(a*y-i*v)+p*(a*h-i*d),e[6]=-(r*(s*y-u*v)-o*(a*y-i*v)+p*(a*u-i*s)),e[7]=r*(s*h-u*d)-o*(a*h-i*d)+c*(a*u-i*s),e[8]=o*(f*y-h*g)-c*(l*y-u*g)+p*(l*h-u*f),e[9]=-(r*(f*y-h*g)-c*(n*y-i*g)+p*(n*h-i*f)),e[10]=r*(l*y-u*g)-o*(n*y-i*g)+p*(n*u-i*l),e[11]=-(r*(l*h-u*f)-o*(n*h-i*f)+c*(n*u-i*l)),e[12]=-(o*(f*v-d*g)-c*(l*v-s*g)+p*(l*d-s*f)),e[13]=r*(f*v-d*g)-c*(n*v-a*g)+p*(n*d-a*f),e[14]=-(r*(l*v-s*g)-o*(n*v-a*g)+p*(n*s-a*l)),e[15]=r*(l*d-s*f)-o*(n*d-a*f)+c*(n*s-a*l),e}},6860:function(e){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},4492:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},4212:function(e){e.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},800:function(e){e.exports=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],c=e[9],f=e[10],d=e[11],h=e[12],p=e[13],g=e[14],v=e[15];return(t*o-r*i)*(f*v-d*g)-(t*l-n*i)*(c*v-d*p)+(t*s-a*i)*(c*g-f*p)+(r*l-n*o)*(u*v-d*h)-(r*s-a*o)*(u*g-f*h)+(n*s-a*l)*(u*p-c*h)}},1784:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,l=n+n,s=a+a,u=r*o,c=n*o,f=n*l,d=a*o,h=a*l,p=a*s,g=i*o,v=i*l,y=i*s;return e[0]=1-f-p,e[1]=c+y,e[2]=d-v,e[3]=0,e[4]=c-y,e[5]=1-u-p,e[6]=h+g,e[7]=0,e[8]=d+v,e[9]=h-g,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},1616:function(e){e.exports=function(e,t,r){var n,a,i,o=r[0],l=r[1],s=r[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(o*=u=1/u,l*=u,s*=u,n=Math.sin(t),i=1-(a=Math.cos(t)),e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},1944:function(e){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=n+n,s=a+a,u=i+i,c=n*l,f=n*s,d=n*u,h=a*s,p=a*u,g=i*u,v=o*l,y=o*s,m=o*u;return e[0]=1-(h+g),e[1]=f+m,e[2]=d-y,e[3]=0,e[4]=f-m,e[5]=1-(c+g),e[6]=p+v,e[7]=0,e[8]=d+y,e[9]=p-v,e[10]=1-(c+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},9444:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},8268:function(e){e.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},1856:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},9216:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},7736:function(e){e.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},8848:function(e){e.exports=function(e,t,r,n,a,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}},6635:function(e){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},6524:function(e,t,r){e.exports={create:r(4212),clone:r(6860),copy:r(4492),identity:r(6635),transpose:r(6520),invert:r(4308),adjoint:r(2408),determinant:r(800),multiply:r(944),translate:r(5176),scale:r(8152),rotate:r(16),rotateX:r(5456),rotateY:r(4840),rotateZ:r(4192),fromRotation:r(1616),fromRotationTranslation:r(1944),fromScaling:r(9444),fromTranslation:r(8268),fromXRotation:r(1856),fromYRotation:r(9216),fromZRotation:r(7736),fromQuat:r(1784),frustum:r(8848),perspective:r(1296),perspectiveFromFieldOfView:r(3688),ortho:r(7688),lookAt:r(6508),str:r(9412)}},4308:function(e){e.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],g=t[13],v=t[14],y=t[15],m=r*l-n*o,x=r*s-a*o,b=r*u-i*o,_=n*s-a*l,w=n*u-i*l,M=a*u-i*s,T=c*g-f*p,k=c*v-d*p,A=c*y-h*p,S=f*v-d*g,L=f*y-h*g,D=d*y-h*v,C=m*D-x*L+b*S+_*A-w*k+M*T;return C?(C=1/C,e[0]=(l*D-s*L+u*S)*C,e[1]=(a*L-n*D-i*S)*C,e[2]=(g*M-v*w+y*_)*C,e[3]=(d*w-f*M-h*_)*C,e[4]=(s*A-o*D-u*k)*C,e[5]=(r*D-a*A+i*k)*C,e[6]=(v*b-p*M-y*x)*C,e[7]=(c*M-d*b+h*x)*C,e[8]=(o*L-l*A+u*T)*C,e[9]=(n*A-r*L-i*T)*C,e[10]=(p*w-g*b+y*m)*C,e[11]=(f*b-c*w-h*m)*C,e[12]=(l*k-o*S-s*T)*C,e[13]=(r*S-n*k+a*T)*C,e[14]=(g*x-p*_-v*m)*C,e[15]=(c*_-f*x+d*m)*C,e):null}},6508:function(e,t,r){var n=r(6635);e.exports=function(e,t,r,a){var i,o,l,s,u,c,f,d,h,p,g=t[0],v=t[1],y=t[2],m=a[0],x=a[1],b=a[2],_=r[0],w=r[1],M=r[2];return Math.abs(g-_)<1e-6&&Math.abs(v-w)<1e-6&&Math.abs(y-M)<1e-6?n(e):(f=g-_,d=v-w,h=y-M,i=x*(h*=p=1/Math.sqrt(f*f+d*d+h*h))-b*(d*=p),o=b*(f*=p)-m*h,l=m*d-x*f,(p=Math.sqrt(i*i+o*o+l*l))?(i*=p=1/p,o*=p,l*=p):(i=0,o=0,l=0),s=d*l-h*o,u=h*i-f*l,c=f*o-d*i,(p=Math.sqrt(s*s+u*u+c*c))?(s*=p=1/p,u*=p,c*=p):(s=0,u=0,c=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=d,e[7]=0,e[8]=l,e[9]=c,e[10]=h,e[11]=0,e[12]=-(i*g+o*v+l*y),e[13]=-(s*g+u*v+c*y),e[14]=-(f*g+d*v+h*y),e[15]=1,e)}},944:function(e){e.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],d=t[9],h=t[10],p=t[11],g=t[12],v=t[13],y=t[14],m=t[15],x=r[0],b=r[1],_=r[2],w=r[3];return e[0]=x*n+b*l+_*f+w*g,e[1]=x*a+b*s+_*d+w*v,e[2]=x*i+b*u+_*h+w*y,e[3]=x*o+b*c+_*p+w*m,x=r[4],b=r[5],_=r[6],w=r[7],e[4]=x*n+b*l+_*f+w*g,e[5]=x*a+b*s+_*d+w*v,e[6]=x*i+b*u+_*h+w*y,e[7]=x*o+b*c+_*p+w*m,x=r[8],b=r[9],_=r[10],w=r[11],e[8]=x*n+b*l+_*f+w*g,e[9]=x*a+b*s+_*d+w*v,e[10]=x*i+b*u+_*h+w*y,e[11]=x*o+b*c+_*p+w*m,x=r[12],b=r[13],_=r[14],w=r[15],e[12]=x*n+b*l+_*f+w*g,e[13]=x*a+b*s+_*d+w*v,e[14]=x*i+b*u+_*h+w*y,e[15]=x*o+b*c+_*p+w*m,e}},7688:function(e){e.exports=function(e,t,r,n,a,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}},1296:function(e){e.exports=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}},3688:function(e){e.exports=function(e,t,r,n){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-l)*s*.5,e[9]=(a-i)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}},16:function(e){e.exports=function(e,t,r,n){var a,i,o,l,s,u,c,f,d,h,p,g,v,y,m,x,b,_,w,M,T,k,A,S,L=n[0],D=n[1],C=n[2],P=Math.sqrt(L*L+D*D+C*C);return Math.abs(P)<1e-6?null:(L*=P=1/P,D*=P,C*=P,a=Math.sin(r),o=1-(i=Math.cos(r)),l=t[0],s=t[1],u=t[2],c=t[3],f=t[4],d=t[5],h=t[6],p=t[7],g=t[8],v=t[9],y=t[10],m=t[11],x=L*L*o+i,b=D*L*o+C*a,_=C*L*o-D*a,w=L*D*o-C*a,M=D*D*o+i,T=C*D*o+L*a,k=L*C*o+D*a,A=D*C*o-L*a,S=C*C*o+i,e[0]=l*x+f*b+g*_,e[1]=s*x+d*b+v*_,e[2]=u*x+h*b+y*_,e[3]=c*x+p*b+m*_,e[4]=l*w+f*M+g*T,e[5]=s*w+d*M+v*T,e[6]=u*w+h*M+y*T,e[7]=c*w+p*M+m*T,e[8]=l*k+f*A+g*S,e[9]=s*k+d*A+v*S,e[10]=u*k+h*A+y*S,e[11]=c*k+p*A+m*S,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}},5456:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],l=t[6],s=t[7],u=t[8],c=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+u*n,e[5]=o*a+c*n,e[6]=l*a+f*n,e[7]=s*a+d*n,e[8]=u*a-i*n,e[9]=c*a-o*n,e[10]=f*a-l*n,e[11]=d*a-s*n,e}},4840:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],u=t[8],c=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-u*n,e[1]=o*a-c*n,e[2]=l*a-f*n,e[3]=s*a-d*n,e[8]=i*n+u*a,e[9]=o*n+c*a,e[10]=l*n+f*a,e[11]=s*n+d*a,e}},4192:function(e){e.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],u=t[4],c=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+u*n,e[1]=o*a+c*n,e[2]=l*a+f*n,e[3]=s*a+d*n,e[4]=u*a-i*n,e[5]=c*a-o*n,e[6]=f*a-l*n,e[7]=d*a-s*n,e}},8152:function(e){e.exports=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},9412:function(e){e.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},5176:function(e){e.exports=function(e,t,r){var n,a,i,o,l,s,u,c,f,d,h,p,g=r[0],v=r[1],y=r[2];return t===e?(e[12]=t[0]*g+t[4]*v+t[8]*y+t[12],e[13]=t[1]*g+t[5]*v+t[9]*y+t[13],e[14]=t[2]*g+t[6]*v+t[10]*y+t[14],e[15]=t[3]*g+t[7]*v+t[11]*y+t[15]):(n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],d=t[9],h=t[10],p=t[11],e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=l,e[5]=s,e[6]=u,e[7]=c,e[8]=f,e[9]=d,e[10]=h,e[11]=p,e[12]=n*g+l*v+f*y+t[12],e[13]=a*g+s*v+d*y+t[13],e[14]=i*g+u*v+h*y+t[14],e[15]=o*g+c*v+p*y+t[15]),e}},6520:function(e){e.exports=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},2264:function(e,t,r){"use strict";var n,a=r(1820);n="function"==typeof r.g.matchMedia?!r.g.matchMedia("(hover: none)").matches:a,e.exports=n},9184:function(e,t,r){"use strict";var n=r(1820);e.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},1820:function(e){e.exports=!0},4576:function(e){"use strict";e.exports=function(e){for(var t,r=e.length,n=0;n<r;n++)if(((t=e.charCodeAt(n))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},9128:function(e){var t={left:0,top:0};e.exports=function(e,r,n){r=r||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var a,i=e.clientX||0,o=e.clientY||0,l=(a=r)===window||a===document||a===document.body?t:a.getBoundingClientRect();return n[0]=i-l.left,n[1]=o-l.top,n}},8324:function(e,t,r){var n,a,i,o;a="Promise",o=function(){"use strict";var e,t,r,n=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function i(e,n){r.add(e,n),t||(t=a(r.drain))}function o(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e<this.chain.length;e++)s(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function s(e,t,r){var n,a;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(a=o(n))?a.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function u(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=o(e))?i((function(){var n=new d(r);try{t.call(e,(function(){u.apply(n,arguments)}),(function(){c.apply(n,arguments)}))}catch(e){c.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&i(l,r))}catch(e){c.call(new d(r),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(l,t))}function f(e,t,r,n){for(var a=0;a<t.length;a++)!function(a){e.resolve(t[a]).then((function(e){r(a,e)}),n)}(a)}function d(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&i(l,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){c.call(t,e)}))}catch(e){c.call(t,e)}}r=function(){var e,r,n;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){n=new a(t,i),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var g=e({},"constructor",p,!1);return p.prototype=g,e(g,"__NPO__",0,!1),e(p,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),e(p,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),e(p,"all",(function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;f(t,e,(function(e,t){i[e]=t,++o===a&&r(i)}),n)}))})),e(p,"race",(function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");f(t,e,(function(e,t){r(t)}),n)}))})),p},(i=void 0!==r.g?r.g:this)[a]=i[a]||o(),e.exports?e.exports=i[a]:void 0===(n=function(){return i[a]}.call(t,r,t,e))||(e.exports=n)},896:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in i=Object(arguments[s]))r.call(i,u)&&(l[u]=i[u]);if(t){o=t(i);for(var c=0;c<o.length;c++)n.call(i,o[c])&&(l[o[c]]=i[o[c]])}}return l}},9604:function(e){e.exports=function(e){var a=[];return e.replace(r,(function(e,r,i){var o=r.toLowerCase();for(i=function(e){var t=e.match(n);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(a.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==t[o])return i.unshift(r),a.push(i);if(i.length<t[o])throw new Error("malformed path data");a.push([r].concat(i.splice(0,t[o])))}})),a};var t={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi,n=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},1456:function(e){e.exports=function(e,t,r,n){var a=e[0],i=e[1],o=!1;void 0===r&&(r=0),void 0===n&&(n=t.length);for(var l=n-r,s=0,u=l-1;s<l;u=s++){var c=t[s+r][0],f=t[s+r][1],d=t[u+r][0],h=t[u+r][1];f>i!=h>i&&a<(d-c)*(i-f)/(h-f)+c&&(o=!o)}return o}},4756:function(e,t,r){var n,a=r(2928),i=r(8648),o=r(9819),l=r(1403),s=r(2368),u=r(7792),c=!1,f=i();function d(e,t,r){var a=n.segments(e),i=n.segments(t),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(e){return!0===e?c=a():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=o(!0,f,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,f,c).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return u.toPolygon(n,e)},polygonToGeoJSON:function(e){return u.fromPolygon(n,f,e)},union:function(e,t){return d(e,t,n.selectUnion)},intersect:function(e,t){return d(e,t,n.selectIntersect)},difference:function(e,t){return d(e,t,n.selectDifference)},differenceRev:function(e,t){return d(e,t,n.selectDifferenceRev)},xor:function(e,t){return d(e,t,n.selectXor)}},"object"==typeof window&&(window.PolyBool=n),e.exports=n},2928:function(e){e.exports=function(){var e,t=0,r=!1;function n(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return n("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return n("div_seg",{seg:e,pt:t}),n("chop",{seg:e,pt:t})},statusRemove:function(e){return n("pop_seg",{seg:e})},segmentUpdate:function(e){return n("seg_update",{seg:e})},segmentNew:function(e,t){return n("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return n("rem_seg",{seg:e})},tempStatus:function(e,t,r){return n("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return n("rewind",{seg:e})},status:function(e,t,r){return n("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,n("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),n("log",{txt:e})},reset:function(){return n("reset")},selected:function(e){return n("selected",{segs:e})},chainStart:function(e){return n("chain_start",{seg:e})},chainRemoveHead:function(e,t){return n("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return n("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return n("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return n("chain_match",{index:e})},chainClose:function(e){return n("chain_close",{index:e})},chainAddHead:function(e,t){return n("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return n("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return n("chain_con",{index1:e,index2:t})},chainReverse:function(e){return n("chain_rev",{index:e})},chainJoin:function(e,t){return n("chain_join",{index1:e,index2:t})},done:function(){return n("done")}}}},8648:function(e){e.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,r,n){var a=r[0],i=r[1],o=n[0],l=n[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,r,n){var a=t[1]-r[1],i=n[0]-r[0],o=t[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s<e||s-(i*i+l*l)>-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])<e},pointsSameY:function(t,r){return Math.abs(t[1]-r[1])<e},pointsSame:function(e,r){return t.pointsSameX(e,r)&&t.pointsSameY(e,r)},pointsCompare:function(e,r){return t.pointsSameX(e,r)?t.pointsSameY(e,r)?0:e[1]<r[1]?-1:1:e[0]<r[0]?-1:1},pointsCollinear:function(t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=r[0]-n[0],l=r[1]-n[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,r,n,a){var i=r[0]-t[0],o=r[1]-t[1],l=a[0]-n[0],s=a[1]-n[1],u=i*s-o*l;if(Math.abs(u)<e)return!1;var c=t[0]-n[0],f=t[1]-n[1],d=(l*f-s*c)/u,h=(i*f-o*c)/u,p={alongA:0,alongB:0,pt:[t[0]+d*i,t[1]+d*o]};return p.alongA=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,p.alongB=h<=-e?-2:h<e?-1:h-1<=-e?0:h-1<e?1:2,p},pointInsideRegion:function(t,r){for(var n=t[0],a=t[1],i=r[r.length-1][0],o=r[r.length-1][1],l=!1,s=0;s<r.length;s++){var u=r[s][0],c=r[s][1];c-a>e!=o-a>e&&(i-u)*(a-c)/(o-c)+u-n>e&&(l=!l),i=u,o=c}return l}};return t}},7792:function(e){var t={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),a=1;a<t.length;a++)n=e.selectDifference(e.combine(n,r(t[a])));return n}if("Polygon"===t.type)return e.polygon(r(t.coordinates));if("MultiPolygon"===t.type){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)n=e.selectUnion(e.combine(n,r(t.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){function n(e,r){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],r)}function a(e){return{region:e,children:[]}}r=e.polygon(e.segments(r));var i=a(null);function o(e,t){for(var r=0;r<e.children.length;r++)if(n(t,(l=e.children[r]).region))return void o(l,t);var i=a(t);for(r=0;r<e.children.length;r++){var l;n((l=e.children[r]).region,t)&&(i.children.push(l),e.children.splice(r,1),r--)}e.children.push(i)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(i,s)}function u(e,t){for(var r=0,n=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),r+=s*n-l*a,n=l,a=s}return r<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var c=[];function f(e){var t=[u(e.region,!1)];c.push(t);for(var r=0;r<e.children.length;r++)t.push(d(e.children[r]))}function d(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return u(e.region,!0)}for(l=0;l<i.children.length;l++)f(i.children[l]);return c.length<=0?{type:"Polygon",coordinates:[]}:1==c.length?{type:"Polygon",coordinates:c[0]}:{type:"MultiPolygon",coordinates:c}}};e.exports=t},9819:function(e,t,r){var n=r(8088);e.exports=function(e,t,r){function a(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var i=n.create();function o(e,r){i.insertBefore(e,(function(n){return a=e.isStart,i=e.pt,o=r,l=n.isStart,s=n.pt,u=n.other.pt,(0!==(c=t.pointsCompare(i,s))?c:t.pointsSame(o,u)?0:a!==l?a?1:-1:t.pointAboveOrOnLine(o,l?s:u,l?u:s)?1:-1)<0;var a,i,o,l,s,u,c}))}function l(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var a=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=a,o(a,e.pt)}(r,e,t),r}function s(e,t){var n=a(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(n,e.primary)}function u(a,o){var l=n.create();function u(e){return l.findTransition((function(r){var n,a,i,o,l,s;return n=e,a=r.ev,i=n.seg.start,o=n.seg.end,l=a.seg.start,s=a.seg.end,(t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0}))}function c(e,n){var a=e.seg,i=n.seg,o=a.start,l=a.end,u=i.start,c=i.end;r&&r.checkIntersection(a,i);var f=t.linesIntersect(o,l,u,c);if(!1===f){if(!t.pointsCollinear(o,l,u))return!1;if(t.pointsSame(o,c)||t.pointsSame(l,u))return!1;var d=t.pointsSame(o,u),h=t.pointsSame(l,c);if(d&&h)return n;var p=!d&&t.pointBetween(o,u,c),g=!h&&t.pointBetween(l,u,c);if(d)return g?s(n,l):s(e,c),n;p&&(h||(g?s(n,l):s(e,c)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(e,u):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,c)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var h=u(d),p=h.before?h.before.ev:null,g=h.after?h.after.ev:null;function v(){if(p){var e=c(d,p);if(e)return e}return!!g&&c(d,g)}r&&r.tempStatus(d.seg,!!p&&p.seg,!!g&&g.seg);var y,m,x=v();if(x)e?(m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,r&&r.segmentUpdate(x.seg),d.other.remove(),d.remove();if(i.getHead()!==d){r&&r.rewind(d.seg);continue}e?(m=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=g?g.seg.myFill.above:a,d.seg.myFill.above=m?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(y=g?d.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:y,below:y}),r&&r.status(d.seg,!!p&&p.seg,!!g&&g.seg),d.other.status=h.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&c(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return e?{addRegion:function(e){for(var n,a,i,o=e[e.length-1],s=0;s<e.length;s++){n=o,o=e[s];var u=t.pointsCompare(n,o);0!==u&&l((a=u<0?n:o,i=u<0?o:n,{id:r?r.segmentId():-1,start:a,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return u(e,!1)}}:{calculate:function(e,t,r,n){return e.forEach((function(e){l(a(e.start,e.end,e),!0)})),r.forEach((function(e){l(a(e.start,e.end,e),!1)})),u(t,n)}}}},8088:function(e){e.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,a=e.root.next;null!==a;){if(r(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);n=a,a=a.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;null!==n&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(e){return e.prev=r,e.next=n,r.next=e,null!==n&&(n.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},1403:function(e){e.exports=function(e,t,r){var n=[],a=[];return e.forEach((function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},u=l,c=0;c<n.length;c++){var f=(v=n[c])[0],d=(v[1],v[v.length-1]);if(v[v.length-2],t.pointsSame(f,i)){if(T(c,!0,!0))break}else if(t.pointsSame(f,o)){if(T(c,!0,!1))break}else if(t.pointsSame(d,i)){if(T(c,!1,!0))break}else if(t.pointsSame(d,o)&&T(c,!1,!1))break}if(u===l)return n.push([i,o]),void(r&&r.chainNew(i,o));if(u===s){r&&r.chainMatch(l.index);var h=l.index,p=l.matches_pt1?o:i,g=l.matches_head,v=n[h],y=g?v[0]:v[v.length-1],m=g?v[1]:v[v.length-2],x=g?v[v.length-1]:v[0],b=g?v[v.length-2]:v[1];return t.pointsCollinear(m,y,p)&&(g?(r&&r.chainRemoveHead(l.index,p),v.shift()):(r&&r.chainRemoveTail(l.index,p),v.pop()),y=m),t.pointsSame(x,p)?(n.splice(h,1),t.pointsCollinear(b,x,y)&&(g?(r&&r.chainRemoveTail(l.index,y),v.pop()):(r&&r.chainRemoveHead(l.index,y),v.shift())),r&&r.chainClose(l.index),void a.push(v)):void(g?(r&&r.chainAddHead(l.index,p),v.unshift(p)):(r&&r.chainAddTail(l.index,p),v.push(p)))}var _=l.index,w=s.index;r&&r.chainConnect(_,w);var M=n[_].length<n[w].length;l.matches_head?s.matches_head?M?(k(_),A(_,w)):(k(w),A(w,_)):A(w,_):s.matches_head?A(_,w):M?(k(_),A(w,_)):(k(w),A(_,w))}function T(e,t,r){return u.index=e,u.matches_head=t,u.matches_pt1=r,u===l?(u=s,!1):(u=null,!0)}function k(e){r&&r.chainReverse(e),n[e].reverse()}function A(e,a){var i=n[e],o=n[a],l=i[i.length-1],s=i[i.length-2],u=o[0],c=o[1];t.pointsCollinear(s,l,u)&&(r&&r.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,u,c)&&(r&&r.chainRemoveHead(a,u),o.shift()),r&&r.chainJoin(e,a),n[e]=i.concat(o),n.splice(a,1)}})),a}},2368:function(e){function t(e,t,r){var n=[];return e.forEach((function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&n.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),r&&r.selected(n),n}var r={union:function(e,r){return t(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return t(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return t(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return t(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return t(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};e.exports=r},9760:function(e,t,r){var n;!function(a){var i=/^\s+/,o=/\s+$/,l=0,s=a.round,u=a.min,c=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t,r,n,l={r:0,g:0,b:0},s=1,f=null,d=null,h=null,p=!1,g=!1;return"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,r=!1;if(C[e])e=C[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Y.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Y.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Y.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Y.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Y.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Y.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Y.hex8.exec(e))?{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:j(t[4]),format:r?"name":"hex8"}:(t=Y.hex6.exec(e))?{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:r?"name":"hex"}:(t=Y.hex4.exec(e))?{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:j(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=Y.hex3.exec(e))&&{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:r?"name":"hex"}}(e)),"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=e.r,r=e.g,n=e.b,l={r:255*R(t,255),g:255*R(r,255),b:255*R(n,255)},p=!0,g="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(f=z(e.s),d=z(e.v),l=function(e,t,r){e=6*R(e,360),t=R(t,100),r=R(r,100);var n=a.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6;return{r:255*[r,l,o,o,s,r][u],g:255*[s,r,r,l,o,o][u],b:255*[o,o,s,r,r,l][u]}}(e.h,f,d),p=!0,g="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(f=z(e.s),h=z(e.l),l=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=R(e,360),t=R(t,100),r=R(r,100),0===t)n=a=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(e.h,f,h),p=!0,g="hsl"),e.hasOwnProperty("a")&&(s=e.a)),s=O(s),{ok:p,format:e.format||g,r:u(255,c(l.r,0)),g:u(255,c(l.g,0)),b:u(255,c(l.b,0)),a:s}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=s(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=r.ok,this._tc_id=l++}function h(e,t,r){e=R(e,255),t=R(t,255),r=R(r,255);var n,a,i=c(e,t,r),o=u(e,t,r),l=(i+o)/2;if(i==o)n=a=0;else{var s=i-o;switch(a=l>.5?s/(2-i-o):s/(i+o),i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,l:l}}function p(e,t,r){e=R(e,255),t=R(t,255),r=R(r,255);var n,a,i=c(e,t,r),o=u(e,t,r),l=i,s=i-o;if(a=0===i?0:s/i,i==o)n=0;else{switch(i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:n,s:a,v:l}}function g(e,t,r,n){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,r,n){return[N(F(n)),N(s(e).toString(16)),N(s(t).toString(16)),N(s(r).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s-=t/100,r.s=E(r.s),d(r)}function m(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.s+=t/100,r.s=E(r.s),d(r)}function x(e){return d(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l+=t/100,r.l=E(r.l),d(r)}function _(e,t){t=0===t?0:t||10;var r=d(e).toRgb();return r.r=c(0,u(255,r.r-s(-t/100*255))),r.g=c(0,u(255,r.g-s(-t/100*255))),r.b=c(0,u(255,r.b-s(-t/100*255))),d(r)}function w(e,t){t=0===t?0:t||10;var r=d(e).toHsl();return r.l-=t/100,r.l=E(r.l),d(r)}function M(e,t){var r=d(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,d(r)}function T(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function k(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+120)%360,s:t.s,l:t.l}),d({h:(r+240)%360,s:t.s,l:t.l})]}function A(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+90)%360,s:t.s,l:t.l}),d({h:(r+180)%360,s:t.s,l:t.l}),d({h:(r+270)%360,s:t.s,l:t.l})]}function S(e){var t=d(e).toHsl(),r=t.h;return[d(e),d({h:(r+72)%360,s:t.s,l:t.l}),d({h:(r+216)%360,s:t.s,l:t.l})]}function L(e,t,r){t=t||6,r=r||30;var n=d(e).toHsl(),a=360/r,i=[d(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(d(n));return i}function D(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(d({h:n,s:a,v:i})),i=(i+l)%1;return o}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),r=s(100*e.s),n=s(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var i=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(r).toString(16)),N(F(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*R(this._r,255))+"%",g:s(100*R(this._g,255))+"%",b:s(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*R(this._r,255))+"%, "+s(100*R(this._g,255))+"%, "+s(100*R(this._b,255))+"%)":"rgba("+s(100*R(this._r,255))+"%, "+s(100*R(this._g,255))+"%, "+s(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+v(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:z(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),i=r/100;return d({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,i,o,l,s=d.readability(e,t);switch(a=!1,(i=r,"AA"!==(o=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(l=(i.size||"small").toLowerCase())&&"large"!==l&&(l="small"),n={level:o,size:l}).level+n.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},d.mostReadable=function(e,t,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;u<t.length;u++)(n=d.readability(e,t[u]))>s&&(s=n,l=d(t[u]));return d.isReadable(e,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var C=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(C);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function E(e){return u(1,c(0,e))}function I(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function F(e){return a.round(255*parseFloat(e)).toString(16)}function j(e){return I(e)/255}var B,H,G,Y=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",G="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+G),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!Y.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},5712:function(e,t,r){"use strict";function n(e){return e}function a(e,t){return"string"==typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return i(e,t)}))}:i(e,t)}function i(e,t){var r=t.id,a=t.bbox,i=null==t.properties?{}:t.properties,o=function(e,t){var r=function(e){if(null==e)return n;var t,r,a=e.scale[0],i=e.scale[1],o=e.translate[0],l=e.translate[1];return function(e,n){n||(t=r=0);var s=2,u=e.length,c=new Array(u);for(c[0]=(t+=e[0])*a+o,c[1]=(r+=e[1])*i+l;s<u;)c[s]=e[s],++s;return c}}(e.transform),a=e.arcs;function i(e,t){t.length&&t.pop();for(var n=a[e<0?~e:e],i=0,o=n.length;i<o;++i)t.push(r(n[i],i));e<0&&function(e,t){for(var r,n=e.length,a=n-t;a<--n;)r=e[a],e[a++]=e[n],e[n]=r}(t,o)}function o(e){return r(e)}function l(e){for(var t=[],r=0,n=e.length;r<n;++r)i(e[r],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=l(e);t.length<4;)t.push(t[0]);return t}function u(e){return e.map(s)}return function e(t){var r,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(e)};case"Point":r=o(t.coordinates);break;case"MultiPoint":r=t.coordinates.map(o);break;case"LineString":r=l(t.arcs);break;case"MultiLineString":r=t.arcs.map(l);break;case"Polygon":r=u(t.arcs);break;case"MultiPolygon":r=t.arcs.map(u);break;default:return null}return{type:n,coordinates:r}}(t)}(e,t);return null==r&&null==a?{type:"Feature",properties:i,geometry:o}:null==a?{type:"Feature",id:r,properties:i,geometry:o}:{type:"Feature",id:r,bbox:a,properties:i,geometry:o}}r.d(t,{NO:function(){return a}})},7020:function(e,t,r){var n=r(8700),a=r(896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"==typeof e){var r=e.match(s);return r?r[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return t&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if("string"==typeof e){var t=e.match(u);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},monthNamesShort:function(e){if("string"==typeof e){var t=e.match(c);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r,n=parseInt(t);if(isNaN(n))"闰"===t[0]&&(r=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),n=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];r="i"===a||"I"===a}return this.toMonthIndex(e,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!=typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var a=this.intercalaryMonth(e);if(r&&t!==a||t<1||t>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?!r&&t<=a?t-1:t:t-1},toChineseMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);if(t<0||t>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?t<r?t+1:t:t+1},intercalaryMonth:function(e){return e=this._validateYear(e),f[e-f[0]]>>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,r){var a,o=this._validateYear(e,n.local.invalidyear),l=d[o-d[0]],s=l>>9&4095,u=l>>5&15,c=31&l;(a=i.newDate(s,u,c)).add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,t,r)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=f[e-f[0]];if(t>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-t?30:29},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,l,r,n.local.invalidDate);e=this._validateYear(a.year()),t=a.month(),r=a.day();var o=this.isIntercalaryMonth(e,t),l=this.toChineseMonth(e,t),s=function(e,t,r,n,a){var i,o,l;if("object"==typeof e)o=e,i=t||{};else{var s;if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(s=!1,i=n):(s=!!n,i={}),o={year:e,month:t,day:r,isIntercalary:s}}l=o.day-1;var u,c=f[o.year-f[0]],h=c>>13;u=h&&(o.month>h||o.isIntercalary)?o.month:o.month-1;for(var p=0;p<u;p++)l+=c&1<<12-p?30:29;var g=d[o.year-d[0]],v=new Date(g>>9&4095,(g>>5&15)-1,(31&g)+l);return i.year=v.getFullYear(),i.month=1+v.getMonth(),i.day=v.getDate(),i}(e,l,r,o);return i.toJD(s.year,s.month,s.day)},fromJD:function(e){var t=i.fromJD(e),r=function(e,t,r,n){var a,i;if("object"==typeof e)a=e,i=t||{};else{if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},i={}}var o=d[a.year-d[0]],l=a.year<<9|a.month<<5|a.day;i.year=l>=o?a.year:a.year-1,o=d[i.year-d[0]];var s,u=new Date(o>>9&4095,(o>>5&15)-1,31&o),c=new Date(a.year,a.month-1,a.day);s=Math.round((c-u)/864e5);var h,p=f[i.year-f[0]];for(h=0;h<13;h++){var g=p&1<<12-h?30:29;if(s<g)break;s-=g}var v=p>>13;return!v||h<v?(i.isIntercalary=!1,i.month=1+h):h===v?(i.isIntercalary=!0,i.month=h):(i.isIntercalary=!1,i.month=h),i.day=1+s,i}(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(l),r=this._validateYear(+t[1]),n=+t[2],a=!!t[3],i=this.toMonthIndex(r,n,a),o=+t[4];return this.newDate(r,i,o)},add:function(e,t,r){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),l=this.toChineseMonth(n,a),s=Object.getPrototypeOf(o.prototype).add.call(this,e,t,r);if("y"===r){var u=s.year(),c=s.month(),f=this.isIntercalaryMonth(u,l),d=i&&f?this.toMonthIndex(u,l,!0):this.toMonthIndex(u,l,!1);d!==c&&s.month(d)}return s}});var l=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,s=/^\d?\d[iI]?/m,u=/^闰?十?[一二三四五六七八九]?月/m,c=/^闰?十?[一二三四五六七八九]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],d=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},7411:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.coptic=i},5668:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){return(this._validate(e,t,r,n.local.invalidDate).day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{century:o[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year()+(a.year()<0?1:0),t=a.month(),(r=a.day())+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-32*(r-1)+1;return this.newDate(t<=0?t-1:t,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=i},2787:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.ethiopian=i},2084:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return o(7*(e=e<0?e+1:e)+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),12===t&&this.leapYear(e)||8===t&&5===o(this.daysInYear(e),10)?30:9===t&&3===o(this.daysInYear(e),10)?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e<=0?e+1:e,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)o+=this.daysInMonth(e,l);for(l=1;l<t;l++)o+=this.daysInMonth(e,l)}else for(l=7;l<t;l++)o+=this.daysInMonth(e,l);return o},_delay1:function(e){var t=Math.floor((235*e-234)/19),r=12084+13753*t,n=29*t+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(e){var t=this._delay1(e-1),r=this._delay1(e);return this._delay1(e+1)-r==356?2:r-t==382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var t=Math.floor(98496*(e-this.jdEpoch)/35975351)-1;e>=this.toJD(-1===t?1:t+1,7,1);)t++;for(var r=e<this.toJD(t,1,1)?7:1;e>this.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.hebrew=i},6368:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),e=e<=0?e+1:e,(r=a.day())+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.islamic=i},4747:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()<0?t.year()+1:t.year())%4==0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),r=a.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,r=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*r),a=Math.floor((t-n)/30.6001),i=a-Math.floor(a<14?1:13),o=r-Math.floor(i>2?4716:4715),l=t-n-Math.floor(30.6001*a);return o<=0&&o--,this.newDate(o,i,l)}}),n.calendars.julian=i},5616:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}function l(e,t){return o(e-1,t)+1}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(e){e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year();var t=Math.floor(e/400);return e%=400,e+=e<0?400:0,t+"."+Math.floor(e/20)+"."+e%20},forYear:function(e){if((e=e.split(".")).length<3)throw"Invalid Mayan year";for(var t=0,r=0;r<e.length;r++){var n=parseInt(e[r],10);if(Math.abs(n)>19||r>0&&n<0)throw"Invalid Mayan year";t=20*t+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate).day()},weekDay:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),!0},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate).toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=o(8+(e-=this.jdEpoch)+340,365);return[Math.floor(t/20)+1,o(t,20)]},_toTzolkin:function(e){return[l(20+(e-=this.jdEpoch),20),l(e+4,13)]},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}}),n.calendars.mayan=i},632:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar;var o=n.instance("gregorian");a(i.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidMonth);(e=a.year())<0&&e++;for(var i=a.day(),l=1;l<a.month();l++)i+=this.daysPerMonth[l-1];return i+o.toJD(e+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var t=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}}),n.calendars.nanakshahi=i},3040:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){if(e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var t=0,r=this.minMonth;r<=12;r++)t+=this.NEPALI_CALENDAR_DATA[e][r];return t},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=n.instance(),o=0,l=t,s=e;this._createMissingCalendarData(e);var u=e-(l>9||9===l&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(9!==t&&(o=r,l--);9!==l;)l<=0&&(l=12,s--),o+=this.NEPALI_CALENDAR_DATA[s][l],l--;return 9===t?(o+=r-this.NEPALI_CALENDAR_DATA[s][0])<0&&(o+=i.daysInYear(u)):o+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var t=n.instance().fromJD(e),r=t.year(),a=t.dayOfYear(),i=r+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)++o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r<e+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=t)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=i},1104:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 682*((t.year()-(t.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e-(e>=0?474:473),l=474+o(i,2820);return r+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*l-110)/2816)+365*(l-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(e){var t=(e=Math.floor(e)+.5)-this.toJD(475,1,1),r=Math.floor(t/1029983),n=o(t,1029983),a=2820;if(1029982!==n){var i=Math.floor(n/366),l=o(n,366);a=Math.floor((2134*i+2816*l+2815)/1028522)+i+1}var s=a+2820*r+474;s=s<=0?s-1:s;var u=e-this.toJD(s,1,1)+1,c=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),f=e-this.toJD(s,c,1)+1;return this.newDate(s,c,f)}}),n.calendars.persian=i,n.calendars.jalali=i},9075:function(e,t,r){var n=r(8700),a=r(896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},4592:function(e,t,r){var n=r(8700),a=r(896),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),n.calendars.thai=o},5348:function(e,t,r){var n=r(8700),a=r(896);function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,a=0,i=0;i<o.length;i++){if(o[i]>r)return o[a]-o[a-1];a++}return 30},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate),i=12*(a.year()-1)+a.month()-15292;return a.day()+o[i-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>t);n++)r++;var a=r+15292,i=Math.floor((a-1)/12),l=i+1,s=a-12*i,u=t-o[r-1]+1;return this.newDate(l,s,u)},isValid:function(e,t,r){var a=n.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(e=null!=e.year?e.year:e)>=1276&&e<=1500),a},_validate:function(e,t,r,a){var i=n.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw a.replace(/\{0\}/,this.local.name);return i}}),n.calendars.ummalqura=i;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},8700:function(e,t,r){var n=r(896);function a(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(u.local.invalidDate||u.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(e,t){return"000000".substring(0,t-(e=""+e).length)+e}function l(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}n(a.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,a){return(n=(null!=e&&e.year?e.calendar():"string"==typeof n?this.instance(n,a):n)||this.instance()).newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,(function(t){return e[t]}))}},substituteChineseDigits:function(e,t){return function(r){for(var n="",a=0;r>0;){var i=r%10;n=(0===i?"":e[i]+t[a])+n,a++,r=Math.floor(r/10)}return 0===n.indexOf(e[1]+t[1])&&(n=n.substr(1)),n||e[0]}}}),n(i.prototype,{newDate:function(e,t,r){return this._calendar.newDate(null==e?this:e,t,r)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(u.local.invalidDate||u.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(u.local.differentCalendars||u.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(l.prototype,{_validateLevel:0,newDate:function(e,t,r){return null==e?this.today():(e.year&&(this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new i(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+o(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,"d"===r||"w"===r){var n=e.toJD()+t*("w"===r?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+("y"===r?t:0),o=e.monthOfYear()+("m"===r?t:0);a=e.day(),"y"===r?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):"m"===r&&(function(e){for(;o<e.minMonth;)i--,o+=e.monthsInYear(i);for(var t=e.monthsInYear(i);o>t-1+e.minMonth;)i++,o-=t,t=e.monthsInYear(i)}(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var l=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,l}catch(e){throw this._validateLevel--,e}},_correctAdd:function(e,t,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==t[0]&&e.year()>0==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=r<0?-1:1;t=this._add(e,r*a[0]+i*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[""].invalidDate);var n="y"===r?t:e.year(),a="m"===r?t:e.month(),i="d"===r?t:e.day();return"y"!==r&&"m"!==r||(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||0!==e;if(n){var a=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth<this.monthsInYear(a)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(a)}return this._validateLevel--,n},toJSDate:function(e,t,r){var n=this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate);return u.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(u.instance().fromJSDate(e).toJD())},_validate:function(e,t,r,n){if(e.year){if(0===this._validateLevel&&this.name!==e.calendar().name)throw(u.local.differentCalendars||u.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(e,t,r))throw n.replace(/\{0\}/,this.local.name);var a=this.newDate(e,t,r);return this._validateLevel--,a}catch(e){throw this._validateLevel--,e}}}),s.prototype=new l,n(s.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==0&&(e%100!=0||e%400==0)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate);e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<3&&(t+=12,e--);var a=Math.floor(e/100),i=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r+i-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=Math.floor((t-1867216.25)/36524.25),n=1524+(r=t+1+r-Math.floor(r/4)),a=Math.floor((n-122.1)/365.25),i=Math.floor(365.25*a),o=Math.floor((n-i)/30.6001),l=n-i-Math.floor(30.6001*o),s=o-(o>13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,u.local.invalidDate||u.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var u=e.exports=new a;u.cdate=i,u.baseCalendar=l,u.calendars.gregorian=s},5168:function(e,t,r){var n=r(896),a=r(8700);n(a.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),a.local=a.regionalOptions[""],n(a.cdate.prototype,{formatDate:function(e,t){return"string"!=typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),n(a.baseCalendar.prototype,{UNIX_EPOCH:a.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:a.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if("string"!=typeof e&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw a.local.invalidFormat||a.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var n,i,o,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,s=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,d=(r.calculateWeek||this.local.calculateWeek,function(t,r){for(var n=1;_+n<e.length&&e.charAt(_+n)===t;)n++;return _+=n-1,Math.floor(n/(r||1))>1}),h=function(e,t,r,n){var a=""+t;if(d(e,n))for(;a.length<r;)a="0"+a;return a},p=this,g=function(e){return"function"==typeof u?u.call(p,e,d("m")):m(h("m",e.month(),2))},v=function(e,t){return t?"function"==typeof f?f.call(p,e):f[e.month()-p.minMonth]:"function"==typeof c?c.call(p,e):c[e.month()-p.minMonth]},y=this.local.digits,m=function(e){return r.localNumbers&&y?y(e):e},x="",b=!1,_=0;_<e.length;_++)if(b)"'"!==e.charAt(_)||d("'")?x+=e.charAt(_):b=!1;else switch(e.charAt(_)){case"d":x+=m(h("d",t.day(),2));break;case"D":x+=("D",n=t.dayOfWeek(),i=l,o=s,d("D")?o[n]:i[n]);break;case"o":x+=h("o",t.dayOfYear(),3);break;case"w":x+=h("w",t.weekOfYear(),2);break;case"m":x+=g(t);break;case"M":x+=v(t,d("M"));break;case"y":x+=d("y",2)?t.year():(t.year()%100<10?"0":"")+t.year()%100;break;case"Y":d("Y",2),x+=t.formatYear();break;case"J":x+=t.toJD();break;case"@":x+=(t.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":x+=(t.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":d("'")?x+="'":b=!0;break;default:x+=e.charAt(_)}return x},parseDate:function(e,t,r){if(null==t)throw a.local.invalidArguments||a.regionalOptions[""].invalidArguments;if(""===(t="object"==typeof t?t.toString():t+""))return null;e=e||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n="string"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var i=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,l=r.parseMonth||this.local.parseMonth,s=r.monthNumbers||this.local.monthNumbers,u=r.monthNamesShort||this.local.monthNamesShort,c=r.monthNames||this.local.monthNames,f=-1,d=-1,h=-1,p=-1,g=-1,v=!1,y=!1,m=function(t,r){for(var n=1;A+n<e.length&&e.charAt(A+n)===t;)n++;return A+=n-1,Math.floor(n/(r||1))>1},x=function(e,r){var n=m(e,r),i=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+i+"}"),l=t.substring(k).match(o);if(!l)throw(a.local.missingNumberAt||a.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=l[0].length,parseInt(l[0],10)},b=this,_=function(){if("function"==typeof s){m("m");var e=s.call(b,t.substring(k));return k+=e.length,e}return x("m")},w=function(e,r,n,i){for(var o=m(e,i)?n:r,l=0;l<o.length;l++)if(t.substr(k,o[l].length).toLowerCase()===o[l].toLowerCase())return k+=o[l].length,l+b.minMonth;throw(a.local.unknownNameAt||a.regionalOptions[""].unknownNameAt).replace(/\{0\}/,k)},M=function(){if("function"==typeof c){var e=m("M")?c.call(b,t.substring(k)):u.call(b,t.substring(k));return k+=e.length,e}return w("M",u,c)},T=function(){if(t.charAt(k)!==e.charAt(A))throw(a.local.unexpectedLiteralAt||a.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,k);k++},k=0,A=0;A<e.length;A++)if(y)"'"!==e.charAt(A)||m("'")?T():y=!1;else switch(e.charAt(A)){case"d":p=x("d");break;case"D":w("D",i,o);break;case"o":g=x("o");break;case"w":x("w");break;case"m":h=_();break;case"M":h=M();break;case"y":var S=A;v=!m("y",2),A=S,d=x("y",2);break;case"Y":d=x("Y",2);break;case"J":f=x("J")+.5,"."===t.charAt(k)&&(k++,x("J"));break;case"@":f=x("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=x("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":k=t.length;break;case"'":m("'")?T():y=!0;break;default:T()}if(k<t.length)throw a.local.unexpectedText||a.regionalOptions[""].unexpectedText;if(-1===d?d=this.today().year():d<100&&v&&(d+=-1===n?1900:this.today().year()-this.today().year()%100-(d<=n?0:100)),"string"==typeof h&&(h=l.call(this,d,h)),g>-1){h=1,p=g;for(var L=this.daysInMonth(d,h);p>L;L=this.daysInMonth(d,h))h++,p-=L}return f>-1?this.fromJD(f):this.newDate(d,h,p)},determineDate:function(e,t,r,n,a){r&&"object"!=typeof r&&(a=n,n=r,r=null),"string"!=typeof n&&(a=n,n="");var i=this;return t=t?t.newDate():null,null==e?t:"string"==typeof e?function(e){try{return i.parseDate(n,e,a)}catch(e){}for(var t=((e=e.toLowerCase()).match(/^c/)&&r?r.newDate():null)||i.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,l=o.exec(e);l;)t.add(parseInt(l[1],10),l[2]||"d"),l=o.exec(e);return t}(e):"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?t:i.today().add(e,"d"):i.newDate(e)}})}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(9344)}()})); |