/** * plotly.js (basic - minified) v4.1.1 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ ( function(root, factory) { if (typeof module === "object" && module.exports) { module.exports = factory(); } else { root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { "use strict";var Plotly=(()=>{var yU=Object.create;var Bu=Object.defineProperty,bU=Object.defineProperties,xU=Object.getOwnPropertyDescriptor,_U=Object.getOwnPropertyDescriptors,wU=Object.getOwnPropertyNames,wx=Object.getOwnPropertySymbols,MU=Object.getPrototypeOf,Tx=Object.prototype.hasOwnProperty,TU=Object.prototype.propertyIsEnumerable;var Mx=(e,r,t)=>r in e?Bu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,lt=(e,r)=>{for(var t in r||(r={}))Tx.call(r,t)&&Mx(e,t,r[t]);if(wx)for(var t of wx(r))TU.call(r,t)&&Mx(e,t,r[t]);return e},kt=(e,r)=>bU(e,_U(r));var Hu=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var W=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ou=(e,r)=>{for(var t in r)Bu(e,t,{get:r[t],enumerable:!0})},Ax=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of wU(r))!Tx.call(e,n)&&n!==t&&Bu(e,n,{get:()=>r[n],enumerable:!(a=xU(r,n))||a.enumerable});return e};var Cp=(e,r,t)=>(t=e!=null?yU(MU(e)):{},Ax(r||!e||!e.__esModule?Bu(t,"default",{value:e,enumerable:!0}):t,e)),rn=e=>Ax(Bu({},"__esModule",{value:!0}),e);var Yu=W(kx=>{"use strict";kx.version="4.1.1"});var Sx=W((Cx,Av)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Av!="undefined"&&Av.exports&&(Av.exports=t[r])})("Promise",typeof window!="undefined"?window:Cx,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,M){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:M!==!1})}}catch(x){r=function(T,b,M){return T[b]=M,T}}a=(function(){var w,T,b;function M(S,A){this.fn=S,this.self=A,this.next=void 0}return{add:function(A,L){b=new M(A,L),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var A=w;for(w=T=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function l(x,w){a.add(x,w),t||(t=i(a.drain))}function o(x){var w,T=typeof x;return x!=null&&(T=="object"||T=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&l(s,T))}catch(b){v.call(new h(T),b)}}}function v(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&l(s,w))}function d(x,w,T,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var _=p.length,k=new Array(_);_--;)k[_]=p[_];return k}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,_){o.call(this,p,_+"")},l.setAttributeNS=function(p,_,k){s.call(this,p,_,k+"")},u.setProperty=function(p,_,k){f.call(this,p,_+"",k)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var _=-1,k=c.length,C,D;if(arguments.length===1){for(;++_=D){C=D;break}for(;++_D&&(C=D)}else{for(;++_=D){C=D;break}for(;++_D&&(C=D)}return C},e.max=function(c,p){var _=-1,k=c.length,C,D;if(arguments.length===1){for(;++_=D){C=D;break}for(;++_C&&(C=D)}else{for(;++_=D){C=D;break}for(;++_C&&(C=D)}return C},e.extent=function(c,p){var _=-1,k=c.length,C,D,z;if(arguments.length===1){for(;++_=D){C=z=D;break}for(;++_D&&(C=D),z=D){C=z=D;break}for(;++_D&&(C=D),z1)return z/(F-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,_,k,C){for(arguments.length<3&&(k=0),arguments.length<4&&(C=p.length);k>>1;c(p[D],_)<0?k=D+1:C=D}return k},right:function(p,_,k,C){for(arguments.length<3&&(k=0),arguments.length<4&&(C=p.length);k>>1;c(p[D],_)>0?C=D:k=D+1}return k}}}var y=m(v);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(c){return m(c.length===1?function(p,_){return v(c(p),_)}:c)},e.shuffle=function(c,p,_){(k=arguments.length)<3&&(_=c.length,k<2&&(p=0));for(var k=_-p,C,D;k;)D=Math.random()*k--|0,C=c[k+p],c[k+p]=c[D+p],c[D+p]=C;return c},e.permute=function(c,p){for(var _=p.length,k=new Array(_);_--;)k[_]=c[p[_]];return k},e.pairs=function(c){for(var p=0,_=c.length-1,k,C=c[0],D=new Array(_<0?0:_);p<_;)D[p]=[k=C,C=c[++p]];return D},e.transpose=function(c){if(!(D=c.length))return[];for(var p=-1,_=e.min(c,g),k=new Array(_);++p<_;)for(var C=-1,D,z=k[p]=new Array(D);++C=0;)for(z=c[p],_=z.length;--_>=0;)D[--C]=z[_];return D};var x=Math.abs;e.range=function(c,p,_){if(arguments.length<3&&(_=1,arguments.length<2&&(p=c,c=0)),(p-c)/_===1/0)throw new Error("infinite range");var k=[],C=w(x(_)),D=-1,z;if(c*=C,p*=C,_*=C,_<0)for(;(z=c+_*++D)>p;)k.push(z/C);else for(;(z=c+_*++D)=p.length)return C?C.call(c,F):k?F.sort(k):F;for(var V=-1,$=F.length,K=p[U++],se,me,Q,ae=new b,ie;++V<$;)(ie=ae.get(se=K(me=F[V])))?ie.push(me):ae.set(se,[me]);return E?(me=E(),Q=function(pe,ge){me.set(pe,D(E,ge,U))}):(me={},Q=function(pe,ge){me[pe]=D(E,ge,U)}),ae.forEach(Q),me}function z(E,F){if(F>=p.length)return E;var U=[],V=_[F++];return E.forEach(function($,K){U.push({key:$,values:z(K,F)})}),V?U.sort(function($,K){return V($.key,K.key)}):U}return c.map=function(E,F){return D(F,E,0)},c.entries=function(E){return z(D(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return _[p.length-1]=E,c},c.sortValues=function(E){return k=E,c},c.rollup=function(E){return C=E,c},c},e.set=function(c){var p=new I;if(c)for(var _=0,k=c.length;_=0&&(k=c.slice(_+1),c=c.slice(0,_)),c)return arguments.length<2?this[c].on(k):this[c].on(k,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(k,null);return this}};function Z(c){var p=[],_=new b;function k(){for(var C=p,D=-1,z=C.length,E;++D=0&&(_=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),qe.hasOwnProperty(_)?{space:qe[_],local:c}:c}},ce.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var _=this.node();return c=e.ns.qualify(c),c.local?_.getAttributeNS(c.space,c.local):_.getAttribute(c)}for(p in c)this.each(Ce(p,c[p]));return this}return this.each(Ce(c,p))};function Ce(c,p){c=e.ns.qualify(c);function _(){this.removeAttribute(c)}function k(){this.removeAttributeNS(c.space,c.local)}function C(){this.setAttribute(c,p)}function D(){this.setAttributeNS(c.space,c.local,p)}function z(){var F=p.apply(this,arguments);F==null?this.removeAttribute(c):this.setAttribute(c,F)}function E(){var F=p.apply(this,arguments);F==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,F)}return p==null?c.local?k:_:typeof p=="function"?c.local?E:z:c.local?D:C}function De(c){return c.trim().replace(/\s+/g," ")}ce.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var _=this.node(),k=(c=Ue(c)).length,C=-1;if(p=_.classList){for(;++C=0;)(D=_[k])&&(C&&C!==D.nextSibling&&C.parentNode.insertBefore(D,C),C=D);return this},ce.sort=function(c){c=he.apply(this,arguments);for(var p=-1,_=this.length;++p<_;)this[p].sort(c);return this.order()};function he(c){return arguments.length||(c=v),function(p,_){return p&&_?c(p.__data__,_.__data__):!p-!_}}ce.each=function(c){return Ve(this,function(p,_,k){c.call(p,p.__data__,_,k)})};function Ve(c,p){for(var _=0,k=c.length;_=p&&(p=C+1);!(F=z[p])&&++p0&&(c=c.slice(0,C));var z=He.get(c);z&&(c=z,D=Ie);function E(){var V=this[k];V&&(this.removeEventListener(c,V,V.$),delete this[k])}function F(){var V=D(p,t(arguments));E.call(this),this.addEventListener(c,this[k]=V,V.$=_),V._=p}function U(){var V=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),$;for(var K in this)if($=K.match(V)){var se=this[K];this.removeEventListener($[1],se,se.$),delete this[K]}}return C?p?F:E:p?X:U}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(c){"on"+c in a&&He.remove(c)});function Ze(c,p){return function(_){var k=e.event;e.event=_,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=k}}}function Ie(c,p){var _=Ze(c,p);return function(k){var C=this,D=k.relatedTarget;(!D||D!==C&&!(D.compareDocumentPosition(C)&8))&&_.call(C,k)}}var Ge,ar=0;function ir(c){var p=".dragsuppress-"+ ++ar,_="click"+p,k=e.select(i(c)).on("touchmove"+p,ee).on("dragstart"+p,ee).on("selectstart"+p,ee);if(Ge==null&&(Ge="onselectstart"in c?!1:G(c.style,"userSelect")),Ge){var C=n(c).style,D=C[Ge];C[Ge]="none"}return function(z){if(k.on(p,null),Ge&&(C[Ge]=D),z){var E=function(){k.on(_,null)};k.on(_,function(){ee(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Se(c,ne())};var ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Se(c,p){p.changedTouches&&(p=p.changedTouches[0]);var _=c.ownerSVGElement||c;if(_.createSVGPoint){var k=_.createSVGPoint();if(ur<0){var C=i(c);if(C.scrollX||C.scrollY){_=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=_[0][0].getScreenCTM();ur=!(D.f||D.e),_.remove()}}return ur?(k.x=p.pageX,k.y=p.pageY):(k.x=p.clientX,k.y=p.clientY),k=k.matrixTransform(c.getScreenCTM().inverse()),[k.x,k.y]}var z=c.getBoundingClientRect();return[p.clientX-z.left-c.clientLeft,p.clientY-z.top-c.clientTop]}e.touch=function(c,p,_){if(arguments.length<3&&(_=p,p=ne().changedTouches),p){for(var k=0,C=p.length,D;k0?1:c<0?-1:0}function Kr(c,p,_){return(p[0]-c[0])*(_[1]-c[1])-(p[1]-c[1])*(_[0]-c[0])}function ot(c){return c>1?0:c<-1?br:Math.acos(c)}function ct(c){return c>1?te:c<-1?-te:Math.asin(c)}function Ft(c){return((c=Math.exp(c))-1/c)/2}function Dt(c){return((c=Math.exp(c))+1/c)/2}function ga(c){return((c=Math.exp(2*c))-1)/(c+1)}function ln(c){return(c=Math.sin(c/2))*c}var Qt=Math.SQRT2,Qa=2,xn=4;e.interpolateZoom=function(c,p){var _=c[0],k=c[1],C=c[2],D=p[0],z=p[1],E=p[2],F=D-_,U=z-k,V=F*F+U*U,$,K;if(V0&&(rr=rr.transition().duration(z)),rr.call(ge.event)}function gr(){ae&&ae.domain(Q.range().map(function(rr){return(rr-c.x)/c.k}).map(Q.invert)),pe&&pe.domain(ie.range().map(function(rr){return(rr-c.y)/c.k}).map(ie.invert))}function yr(rr){E++||rr({type:"zoomstart"})}function Pr(rr){gr(),rr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function _r(rr){--E||(rr({type:"zoomend"}),_=null)}function Dr(){var rr=this,zr=me.of(rr,arguments),Rr=0,et=e.select(i(rr)).on(U,Aa).on(V,Ya),qt=le(e.mouse(rr)),ta=ir(rr);_v.call(rr),yr(zr);function Aa(){Rr=1,fr(e.mouse(rr),qt),Pr(zr)}function Ya(){et.on(U,null).on(V,null),ta(Rr),_r(zr)}}function Qr(){var rr=this,zr=me.of(rr,arguments),Rr={},et=0,qt,ta=".zoom-"+e.event.changedTouches[0].identifier,Aa="touchmove"+ta,Ya="touchend"+ta,en=[],Ua=e.select(rr),on=ir(rr);sn(),yr(zr),Ua.on(F,null).on(K,sn);function Pa(){var fi=e.touches(rr);return qt=c.k,fi.forEach(function(ka){ka.identifier in Rr&&(Rr[ka.identifier]=le(ka))}),fi}function sn(){var fi=e.event.target;e.select(fi).on(Aa,Lo).on(Ya,gU),en.push(fi);for(var ka=e.event.changedTouches,On=0,Ni=ka.length;On1){var qo=Yn[0],El=Yn[1],Tv=qo[0]-El[0],_x=qo[1]-El[1];et=Tv*Tv+_x*_x}}function Lo(){var fi=e.touches(rr),ka,On,Ni,Yn;_v.call(rr);for(var $s=0,qo=fi.length;$s1?1:p,_=_<0?0:_>1?1:_,C=_<=.5?_*(1+p):_+p-_*p,k=2*_-C;function D(E){return E>360?E-=360:E<0&&(E+=360),E<60?k+(C-k)*E/60:E<180?C:E<240?k+(C-k)*(240-E)/60:k}function z(E){return Math.round(D(E)*255)}return new Ha(z(c+120),z(c),z(c-120))}e.hcl=st;function st(c,p,_){return this instanceof st?(this.h=+c,this.c=+p,void(this.l=+_)):arguments.length<2?c instanceof st?new st(c.h,c.c,c.l):c instanceof Bt?rv(c.l,c.a,c.b):rv((c=iv((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new st(c,p,_)}var ea=st.prototype=new jr;ea.brighter=function(c){return new st(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?c:1)))},ea.darker=function(c){return new st(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?c:1)))},ea.rgb=function(){return In(this.h,this.c,this.l).rgb()};function In(c,p,_){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Bt(_,Math.cos(c*=ve)*p,Math.sin(c)*p)}e.lab=Bt;function Bt(c,p,_){return this instanceof Bt?(this.l=+c,this.a=+p,void(this.b=+_)):arguments.length<2?c instanceof Bt?new Bt(c.l,c.a,c.b):c instanceof st?In(c.h,c.c,c.l):iv((c=Ha(c)).r,c.g,c.b):new Bt(c,p,_)}var gt=18,Zt=.95047,Jt=1,Ao=1.08883,Dl=Bt.prototype=new jr;Dl.brighter=function(c){return new Bt(Math.min(100,this.l+gt*(arguments.length?c:1)),this.a,this.b)},Dl.darker=function(c){return new Bt(Math.max(0,this.l-gt*(arguments.length?c:1)),this.a,this.b)},Dl.rgb=function(){return ev(this.l,this.a,this.b)};function ev(c,p,_){var k=(c+16)/116,C=k+p/500,D=k-_/200;return C=Au(C)*Zt,k=Au(k)*Jt,D=Au(D)*Ao,new Ha(Cu(3.2404542*C-1.5371385*k-.4985314*D),Cu(-.969266*C+1.8760108*k+.041556*D),Cu(.0556434*C-.2040259*k+1.0572252*D))}function rv(c,p,_){return c>0?new st(Math.atan2(_,p)*Fe,Math.sqrt(p*p+_*_),c):new st(NaN,NaN,c)}function Au(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ku(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Cu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Ha;function Ha(c,p,_){return this instanceof Ha?(this.r=~~c,this.g=~~p,void(this.b=~~_)):arguments.length<2?c instanceof Ha?new Ha(c.r,c.g,c.b):av(""+c,Ha,At):new Ha(c,p,_)}function tv(c){return new Ha(c>>16,c>>8&255,c&255)}function Ys(c){return tv(c)+""}var Us=Ha.prototype=new jr;Us.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,_=this.g,k=this.b,C=30;return!p&&!_&&!k?new Ha(C,C,C):(p&&p>4,k=k>>4|k,C=F&240,C=C>>4|C,D=F&15,D=D<<4|D):c.length===7&&(k=(F&16711680)>>16,C=(F&65280)>>8,D=F&255)),p(k,C,D))}function nv(c,p,_){var k=Math.min(c/=255,p/=255,_/=255),C=Math.max(c,p,_),D=C-k,z,E,F=(C+k)/2;return D?(E=F<.5?D/(C+k):D/(2-C-k),c==C?z=(p-_)/D+(p<_?6:0):p==C?z=(_-c)/D+2:z=(c-p)/D+4,z*=60):(z=NaN,E=F>0&&F<1?0:z),new mt(z,E,F)}function iv(c,p,_){c=Su(c),p=Su(p),_=Su(_);var k=ku((.4124564*c+.3575761*p+.1804375*_)/Zt),C=ku((.2126729*c+.7151522*p+.072175*_)/Jt),D=ku((.0193339*c+.119192*p+.9503041*_)/Ao);return Bt(116*C-16,500*(k-C),200*(C-D))}function Su(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function Du(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var Mr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Mr.forEach(function(c,p){Mr.set(c,tv(p))});function wr(c){return typeof c=="function"?c:function(){return c}}e.functor=wr,e.xhr=rt(H);function rt(c){return function(p,_,k){return arguments.length===2&&typeof _=="function"&&(k=_,_=null),lr(p,_,c,k)}}function lr(c,p,_,k){var C={},D=e.dispatch("beforesend","progress","load","error"),z={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=U:E.onreadystatechange=function(){E.readyState>3&&U()};function U(){var V=E.status,$;if(!V&&yt(E)||V>=200&&V<300||V===304){try{$=_.call(C,E)}catch(K){D.error.call(C,K);return}D.load.call(C,$)}else D.error.call(C,E)}return E.onprogress=function(V){var $=e.event;e.event=V;try{D.progress.call(C,E)}finally{e.event=$}},C.header=function(V,$){return V=(V+"").toLowerCase(),arguments.length<2?z[V]:($==null?delete z[V]:z[V]=$+"",C)},C.mimeType=function(V){return arguments.length?(p=V==null?null:V+"",C):p},C.responseType=function(V){return arguments.length?(F=V,C):F},C.response=function(V){return _=V,C},["get","post"].forEach(function(V){C[V]=function(){return C.send.apply(C,[V].concat(t(arguments)))}}),C.send=function(V,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),E.open(V,c,!0),p!=null&&!("accept"in z)&&(z.accept=p+",*/*"),E.setRequestHeader)for(var se in z)E.setRequestHeader(se,z[se]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),F!=null&&(E.responseType=F),K!=null&&C.on("error",K).on("load",function(me){K(null,me)}),D.beforesend.call(C,E),E.send($==null?null:$),C},C.abort=function(){return E.abort(),C},e.rebind(C,D,"on"),k==null?C:C.get(Oa(k))}function Oa(c){return c.length===1?function(p,_){c(p==null?_:null)}:c}function yt(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var _=new RegExp('["'+c+` ]`),k=c.charCodeAt(0);function C(U,V,$){arguments.length<3&&($=V,V=null);var K=lr(U,p,V==null?D:z(V),$);return K.row=function(se){return arguments.length?K.response((V=se)==null?D:z(se)):V},K}function D(U){return C.parse(U.responseText)}function z(U){return function(V){return C.parse(V.responseText,U)}}C.parse=function(U,V){var $;return C.parseRows(U,function(K,se){if($)return $(K,se-1);var me=function(Q){for(var ae={},ie=K.length,pe=0;pe=me)return K;if(pe)return pe=!1,$;var Oe=Q;if(U.charCodeAt(Oe)===34){for(var nr=Oe;nr++24?(isFinite(p)&&(clearTimeout(ko),ko=setTimeout(Qh,p)),Bn=0):(Bn=1,o6(Qh))}e.timer.flush=function(){s6(),u6()};function s6(){for(var c=Date.now(),p=Ma;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function u6(){for(var c,p=Ma,_=1/0;p;)p.c?(p.t<_&&(_=p.t),p=(c=p).n):p=c?c.n=p.n:Ma=p.n;return Ta=c,_}e.round=function(c,p){return p?Math.round(c*(p=Math.pow(10,p)))/p:Math.round(c)},e.geom={};function Gs(c){return c[0]}function Lu(c){return c[1]}e.geom.hull=function(c){var p=Gs,_=Lu;if(arguments.length)return k(c);function k(C){if(C.length<3)return[];var D=wr(p),z=wr(_),E,F=C.length,U=[],V=[];for(E=0;E=0;--E)Q.push(C[U[$[E]][2]]);for(E=+se;E1&&Kr(c[_[k-2]],c[_[k-1]],c[C])<=0;)--k;_[k++]=C}return _.slice(0,k)}function xO(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return j(c,ov),c};var ov=e.geom.polygon.prototype=[];ov.area=function(){for(var c=-1,p=this.length,_,k=this[p-1],C=0;++cNe)E=E.L;else if(z=p-TO(E,_),z>Ne){if(!E.R){k=E;break}E=E.R}else{D>-Ne?(k=E.P,C=E):z>-Ne?(k=E,C=E.N):k=C=E;break}var F=h6(c);if(Xs.insert(k,F),!(!k&&!C)){if(k===C){Zs(k),C=h6(k.site),Xs.insert(F,C),F.edge=C.edge=Eu(k.site,F.site),Ws(k),Ws(C);return}if(!C){F.edge=Eu(k.site,F.site);return}Zs(k),Zs(C);var U=k.site,V=U.x,$=U.y,K=c.x-V,se=c.y-$,me=C.site,Q=me.x-V,ae=me.y-$,ie=2*(K*ae-se*Q),pe=K*K+se*se,ge=Q*Q+ae*ae,le={x:(ae*pe-se*ge)/ie+V,y:(K*ge-Q*pe)/ie+$};sv(C.edge,U,me,le),F.edge=Eu(U,c,null,le),C.edge=Eu(c,me,null,le),Ws(k),Ws(C)}}function p6(c,p){var _=c.site,k=_.x,C=_.y,D=C-p;if(!D)return k;var z=c.P;if(!z)return-1/0;_=z.site;var E=_.x,F=_.y,U=F-p;if(!U)return E;var V=E-k,$=1/D-1/U,K=V/U;return $?(-K+Math.sqrt(K*K-2*$*(V*V/(-2*U)-F+U/2+C-D/2)))/$+k:(k+E)/2}function TO(c,p){var _=c.N;if(_)return p6(_,p);var k=c.site;return k.y===p?k.x:1/0}function m6(c){this.site=c,this.edges=[]}m6.prototype.prepare=function(){for(var c=this.edges,p=c.length,_;p--;)_=c[p].edge,(!_.b||!_.a)&&c.splice(p,1);return c.sort(g6),c.length};function AO(c){for(var p=c[0][0],_=c[1][0],k=c[0][1],C=c[1][1],D,z,E,F,U=Co,V=U.length,$,K,se,me,Q,ae;V--;)if($=U[V],!(!$||!$.prepare()))for(se=$.edges,me=se.length,K=0;KNe||x(F-z)>Ne)&&(se.splice(K,0,new uv(LO($.site,ae,x(E-p)Ne?{x:p,y:x(D-p)Ne?{x:x(z-C)Ne?{x:_,y:x(D-_)Ne?{x:x(z-k)=-hr)){var K=F*F+U*U,se=V*V+ae*ae,me=(ae*K-U*se)/$,Q=(F*se-V*K)/$,ae=Q+E,ie=d6.pop()||new kO;ie.arc=c,ie.site=C,ie.x=me+z,ie.y=ae+Math.sqrt(me*me+Q*Q),ie.cy=ae,c.circle=ie;for(var pe=null,ge=qu._;ge;)if(ie.y0)){if(Q/=se,se<0){if(Q<$)return;Q0){if(Q>K)return;Q>$&&($=Q)}if(Q=_-E,!(!se&&Q<0)){if(Q/=se,se<0){if(Q>K)return;Q>$&&($=Q)}else if(se>0){if(Q<$)return;Q0)){if(Q/=me,me<0){if(Q<$)return;Q0){if(Q>K)return;Q>$&&($=Q)}if(Q=k-F,!(!me&&Q<0)){if(Q/=me,me<0){if(Q>K)return;Q>$&&($=Q)}else if(me>0){if(Q<$)return;Q0&&(C.a={x:E+$*se,y:F+$*me}),K<1&&(C.b={x:E+K*se,y:F+K*me}),C}}}}}}function SO(c){for(var p=Vs,_=CO(c[0][0],c[0][1],c[1][0],c[1][1]),k=p.length,C;k--;)C=p[k],(!DO(C,c)||!_(C)||x(C.a.x-C.b.x)=D)return;if(V>K){if(!k)k={x:me,y:z};else if(k.y>=E)return;_={x:me,y:E}}else{if(!k)k={x:me,y:E};else if(k.y1)if(V>K){if(!k)k={x:(z-ie)/ae,y:z};else if(k.y>=E)return;_={x:(E-ie)/ae,y:E}}else{if(!k)k={x:(E-ie)/ae,y:E};else if(k.y=D)return;_={x:D,y:ae*D+ie}}else{if(!k)k={x:D,y:ae*D+ie};else if(k.x=V&&ie.x<=K&&ie.y>=$&&ie.y<=se?[[V,se],[K,se],[K,$],[V,$]]:[];pe.point=F[Q]}),U}function E(F){return F.map(function(U,V){return{x:Math.round(k(U,V)/Ne)*Ne,y:Math.round(C(U,V)/Ne)*Ne,i:V}})}return z.links=function(F){return ip(E(F)).edges.filter(function(U){return U.l&&U.r}).map(function(U){return{source:F[U.l.i],target:F[U.r.i]}})},z.triangles=function(F){var U=[];return ip(E(F)).cells.forEach(function(V,$){for(var K=V.site,se=V.edges.sort(g6),me=-1,Q=se.length,ae,ie,pe=se[Q-1].edge,ge=pe.l===K?pe.r:pe.l;++mege&&(ge=V.x),V.y>le&&(le=V.y),se.push(V.x),me.push(V.y);else for(Q=0;Qge&&(ge=Oe),nr>le&&(le=nr),se.push(Oe),me.push(nr)}var fr=ge-ie,or=le-pe;fr>or?le=pe+fr:ge=ie+or;function gr(_r,Dr,Qr,Ht,at,rr,zr,Rr){if(!(isNaN(Qr)||isNaN(Ht)))if(_r.leaf){var et=_r.x,qt=_r.y;if(et!=null)if(x(et-Qr)+x(qt-Ht)<.01)yr(_r,Dr,Qr,Ht,at,rr,zr,Rr);else{var ta=_r.point;_r.x=_r.y=_r.point=null,yr(_r,ta,et,qt,at,rr,zr,Rr),yr(_r,Dr,Qr,Ht,at,rr,zr,Rr)}else _r.x=Qr,_r.y=Ht,_r.point=Dr}else yr(_r,Dr,Qr,Ht,at,rr,zr,Rr)}function yr(_r,Dr,Qr,Ht,at,rr,zr,Rr){var et=(at+zr)*.5,qt=(rr+Rr)*.5,ta=Qr>=et,Aa=Ht>=qt,Ya=Aa<<1|ta;_r.leaf=!1,_r=_r.nodes[Ya]||(_r.nodes[Ya]=x6()),ta?at=et:zr=et,Aa?rr=qt:Rr=qt,gr(_r,Dr,Qr,Ht,at,rr,zr,Rr)}var Pr=x6();if(Pr.add=function(_r){gr(Pr,_r,+$(_r,++Q),+K(_r,Q),ie,pe,ge,le)},Pr.visit=function(_r){Ru(_r,Pr,ie,pe,ge,le)},Pr.find=function(_r){return RO(Pr,_r[0],_r[1],ie,pe,ge,le)},Q=-1,p==null){for(;++QD||K>z||se=Oe,or=_>=nr,gr=or<<1|fr,yr=gr+4;gr_&&(D=p.slice(_,D),E[z]?E[z]+=D:E[++z]=D),(k=k[0])===(C=C[0])?E[z]?E[z]+=C:E[++z]=C:(E[++z]=null,F.push({i:z,x:sl(k,C)})),_=sp.lastIndex;return _=0&&!(k=e.interpolators[_](c,p)););return k}e.interpolators=[function(c,p){var _=typeof p;return(_==="string"?Mr.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?lp:w6:p instanceof jr?lp:Array.isArray(p)?vv:_==="object"&&isNaN(p)?_6:sl)(c,p)}],e.interpolateArray=vv;function vv(c,p){var _=[],k=[],C=c.length,D=p.length,z=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,k=p>=0?c.slice(p+1):"in";return _=FO.get(_)||M6,k=NO.get(k)||H,IO(k(_.apply(null,r.call(arguments,1))))};function IO(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function T6(c){return function(p){return 1-c(1-p)}}function A6(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function BO(c){return c*c}function HO(c){return c*c*c}function OO(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,_=p*c;return 4*(c<.5?_:3*(c-p)+_-.75)}function YO(c){return function(p){return Math.pow(p,c)}}function UO(c){return 1-Math.cos(c*te)}function GO(c){return Math.pow(2,10*(c-1))}function VO(c){return 1-Math.sqrt(1-c*c)}function XO(c,p){var _;return arguments.length<2&&(p=.45),arguments.length?_=p/sr*Math.asin(1/c):(c=1,_=p/4),function(k){return 1+c*Math.pow(2,-10*k)*Math.sin((k-_)*sr/p)}}function WO(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function ZO(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=JO;function JO(c,p){c=e.hcl(c),p=e.hcl(p);var _=c.h,k=c.c,C=c.l,D=p.h-_,z=p.c-k,E=p.l-C;return isNaN(z)&&(z=0,k=isNaN(k)?p.c:k),isNaN(D)?(D=0,_=isNaN(_)?p.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return In(_+D*F,k+z*F,C+E*F)+""}}e.interpolateHsl=$O;function $O(c,p){c=e.hsl(c),p=e.hsl(p);var _=c.h,k=c.s,C=c.l,D=p.h-_,z=p.s-k,E=p.l-C;return isNaN(z)&&(z=0,k=isNaN(k)?p.s:k),isNaN(D)?(D=0,_=isNaN(_)?p.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return At(_+D*F,k+z*F,C+E*F)+""}}e.interpolateLab=KO;function KO(c,p){c=e.lab(c),p=e.lab(p);var _=c.l,k=c.a,C=c.b,D=p.l-_,z=p.a-k,E=p.b-C;return function(F){return ev(_+D*F,k+z*F,C+E*F)+""}}e.interpolateRound=k6;function k6(c,p){return p-=c,function(_){return Math.round(c+p*_)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(_){if(_!=null){p.setAttribute("transform",_);var k=p.transform.baseVal.consolidate()}return new C6(k?k.matrix:QO)})(c)};function C6(c){var p=[c.a,c.b],_=[c.c,c.d],k=D6(p),C=S6(p,_),D=D6(jO(_,p,-C))||0;p[0]*_[1]<_[0]*p[1]&&(p[0]*=-1,p[1]*=-1,k*=-1,C*=-1),this.rotate=(k?Math.atan2(p[1],p[0]):Math.atan2(-_[0],_[1]))*Fe,this.translate=[c.e,c.f],this.scale=[k,D],this.skew=D?Math.atan2(C,D)*Fe:0}C6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function S6(c,p){return c[0]*p[0]+c[1]*p[1]}function D6(c){var p=Math.sqrt(S6(c,c));return p&&(c[0]/=p,c[1]/=p),p}function jO(c,p,_){return c[0]+=_*p[0],c[1]+=_*p[1],c}var QO={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=L6;function Js(c){return c.length?c.pop()+",":""}function eY(c,p,_,k){if(c[0]!==p[0]||c[1]!==p[1]){var C=_.push("translate(",null,",",null,")");k.push({i:C-4,x:sl(c[0],p[0])},{i:C-2,x:sl(c[1],p[1])})}else(p[0]||p[1])&&_.push("translate("+p+")")}function rY(c,p,_,k){c!==p?(c-p>180?p+=360:p-c>180&&(c+=360),k.push({i:_.push(Js(_)+"rotate(",null,")")-2,x:sl(c,p)})):p&&_.push(Js(_)+"rotate("+p+")")}function tY(c,p,_,k){c!==p?k.push({i:_.push(Js(_)+"skewX(",null,")")-2,x:sl(c,p)}):p&&_.push(Js(_)+"skewX("+p+")")}function aY(c,p,_,k){if(c[0]!==p[0]||c[1]!==p[1]){var C=_.push(Js(_)+"scale(",null,",",null,")");k.push({i:C-4,x:sl(c[0],p[0])},{i:C-2,x:sl(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&_.push(Js(_)+"scale("+p+")")}function L6(c,p){var _=[],k=[];return c=e.transform(c),p=e.transform(p),eY(c.translate,p.translate,_,k),rY(c.rotate,p.rotate,_,k),tY(c.skew,p.skew,_,k),aY(c.scale,p.scale,_,k),c=p=null,function(C){for(var D=-1,z=k.length,E;++D0?D=le:(_.c=null,_.t=NaN,_=null,p.end({type:"end",alpha:D=0})):le>0&&(p.start({type:"start",alpha:D=le}),_=lv(c.tick)),c):D},c.start=function(){var le,Oe=se.length,nr=me.length,fr=k[0],or=k[1],gr,yr;for(le=0;le=0;)D.push(V=U[F]),V.parent=E,V.depth=E.depth+1;_&&(E.value=0),E.children=U}else _&&(E.value=+_.call(k,E,E.depth)||0),delete E.children;return Fi(C,function($){var K,se;c&&(K=$.children)&&K.sort(c),_&&(se=$.parent)&&(se.value+=$.value)}),z}return k.sort=function(C){return arguments.length?(c=C,k):c},k.children=function(C){return arguments.length?(p=C,k):p},k.value=function(C){return arguments.length?(_=C,k):_},k.revalue=function(C){return _&&(Nu(C,function(D){D.children&&(D.value=0)}),Fi(C,function(D){var z;D.children||(D.value=+_.call(k,D,D.depth)||0),(z=D.parent)&&(z.value+=D.value)})),C},k};function Fu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=yY,c}function Nu(c,p){for(var _=[c];(c=_.pop())!=null;)if(p(c),(C=c.children)&&(k=C.length))for(var k,C;--k>=0;)_.push(C[k])}function Fi(c,p){for(var _=[c],k=[];(c=_.pop())!=null;)if(k.push(c),(z=c.children)&&(D=z.length))for(var C=-1,D,z;++CC&&(C=E),k.push(E)}for(z=0;z<_;++z)F[z]=(C-k[z])/2;return F},wiggle:function(c){var p=c.length,_=c[0],k=_.length,C,D,z,E,F,U,V,$,K,se=[];for(se[0]=$=K=0,D=1;Dk&&(_=p,k=C);return _}function AY(c){return c.reduce(kY,0)}function kY(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,_=SY,k=CY;function C(D,K){for(var E=[],F=D.map(p,this),U=_.call(this,F,K),V=k.call(this,U,F,K),$,K=-1,se=F.length,me=V.length-1,Q=c?1:1/se,ae;++K0)for(K=-1;++K=U[0]&&ae<=U[1]&&($=E[e.bisect(V,ae,1,me)-1],$.y+=Q,$.push(D[K]));return E}return C.value=function(D){return arguments.length?(p=D,C):p},C.range=function(D){return arguments.length?(_=wr(D),C):_},C.bins=function(D){return arguments.length?(k=typeof D=="number"?function(z){return z6(z,D)}:wr(D),C):k},C.frequency=function(D){return arguments.length?(c=!!D,C):c},C};function CY(c,p){return z6(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function z6(c,p){for(var _=-1,k=+c[0],C=(c[1]-k)/p,D=[];++_<=p;)D[_]=C*_+k;return D}function SY(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(DY),p=0,_=[1,1],k;function C(D,z){var E=c.call(this,D,z),F=E[0],U=_[0],V=_[1],$=k==null?Math.sqrt:typeof k=="function"?k:function(){return k};if(F.x=F.y=0,Fi(F,function(se){se.r=+$(se.value)}),Fi(F,N6),p){var K=p*(k?1:Math.max(2*F.r/U,2*F.r/V))/2;Fi(F,function(se){se.r+=K}),Fi(F,N6),Fi(F,function(se){se.r-=K})}return I6(F,U/2,V/2,k?1:1/Math.max(2*F.r/U,2*F.r/V)),E}return C.size=function(D){return arguments.length?(_=D,C):_},C.radius=function(D){return arguments.length?(k=D==null||typeof D=="function"?D:+D,C):k},C.padding=function(D){return arguments.length?(p=+D,C):p},Fu(C,c)};function DY(c,p){return c.value-p.value}function cp(c,p){var _=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=_,_._pack_prev=p}function R6(c,p){c._pack_next=p,p._pack_prev=c}function F6(c,p){var _=p.x-c.x,k=p.y-c.y,C=c.r+p.r;return .999*C*C>_*_+k*k}function N6(c){if(!(p=c.children)||!(K=p.length))return;var p,_=1/0,k=-1/0,C=1/0,D=-1/0,z,E,F,U,V,$,K;function se(le){_=Math.min(le.x-le.r,_),k=Math.max(le.x+le.r,k),C=Math.min(le.y-le.r,C),D=Math.max(le.y+le.r,D)}if(p.forEach(LY),z=p[0],z.x=-z.r,z.y=0,se(z),K>1&&(E=p[1],E.x=E.r,E.y=0,se(E),K>2))for(F=p[2],B6(z,E,F),se(F),cp(z,F),z._pack_prev=F,cp(F,E),E=z._pack_next,U=3;Uae.x&&(ae=Oe),Oe.depth>ie.depth&&(ie=Oe)});var pe=p(Q,ae)/2-Q.x,ge=_[0]/(ae.x+p(ae,Q)/2+pe),le=_[1]/(ie.depth||1);Nu(se,function(Oe){Oe.x=(Oe.x+pe)*ge,Oe.y=Oe.depth*le})}return K}function D(V){for(var $={A:null,children:[V]},K=[$],se;(se=K.pop())!=null;)for(var me=se.children,Q,ae=0,ie=me.length;ae0&&(EY(zY(Q,V,K),V,Oe),ie+=Oe,pe+=Oe),ge+=Q.m,ie+=se.m,le+=ae.m,pe+=me.m;Q&&!dp(me)&&(me.t=Q,me.m+=ge-pe),se&&!vp(ae)&&(ae.t=se,ae.m+=ie-le,K=V)}return K}function U(V){V.x*=_[0],V.y=V.depth*_[1]}return C.separation=function(V){return arguments.length?(p=V,C):p},C.size=function(V){return arguments.length?(k=(_=V)==null?U:null,C):k?null:_},C.nodeSize=function(V){return arguments.length?(k=(_=V)==null?null:U,C):k?_:null},Fu(C,c)};function H6(c,p){return c.parent==p.parent?1:2}function vp(c){var p=c.children;return p.length?p[0]:c.t}function dp(c){var p=c.children,_;return(_=p.length)?p[_-1]:c.t}function EY(c,p,_){var k=_/(p.i-c.i);p.c-=k,p.s+=_,c.c+=k,p.z+=_,p.m+=_}function PY(c){for(var p=0,_=0,k=c.children,C=k.length,D;--C>=0;)D=k[C],D.z+=p,D.m+=p,p+=D.s+(_+=D.c)}function zY(c,p,_){return c.a.parent===p.parent?c.a:_}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=H6,_=[1,1],k=!1;function C(D,z){var E=c.call(this,D,z),F=E[0],U,V=0;Fi(F,function(Q){var ae=Q.children;ae&&ae.length?(Q.x=FY(ae),Q.y=RY(ae)):(Q.x=U?V+=p(Q,U):0,Q.y=0,U=Q)});var $=O6(F),K=Y6(F),se=$.x-p($,K)/2,me=K.x+p(K,$)/2;return Fi(F,k?function(Q){Q.x=(Q.x-F.x)*_[0],Q.y=(F.y-Q.y)*_[1]}:function(Q){Q.x=(Q.x-se)/(me-se)*_[0],Q.y=(1-(F.y?Q.y/F.y:1))*_[1]}),E}return C.separation=function(D){return arguments.length?(p=D,C):p},C.size=function(D){return arguments.length?(k=(_=D)==null,C):k?null:_},C.nodeSize=function(D){return arguments.length?(k=(_=D)!=null,C):k?_:null},Fu(C,c)};function RY(c){return 1+e.max(c,function(p){return p.y})}function FY(c){return c.reduce(function(p,_){return p+_.x},0)/c.length}function O6(c){var p=c.children;return p&&p.length?O6(p[0]):c}function Y6(c){var p=c.children,_;return p&&(_=p.length)?Y6(p[_-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,_=[1,1],k=null,C=hp,D=!1,z,E="squarify",F=.5*(1+Math.sqrt(5));function U(Q,ae){for(var ie=-1,pe=Q.length,ge,le;++ie0;)pe.push(le=ge[or-1]),pe.area+=le.area,E!=="squarify"||(nr=K(pe,fr))<=Oe?(ge.pop(),Oe=nr):(pe.area-=pe.pop().area,se(pe,fr,ie,!1),fr=Math.min(ie.dx,ie.dy),pe.length=pe.area=0,Oe=1/0);pe.length&&(se(pe,fr,ie,!0),pe.length=pe.area=0),ae.forEach(V)}}function $(Q){var ae=Q.children;if(ae&&ae.length){var ie=C(Q),pe=ae.slice(),ge,le=[];for(U(pe,ie.dx*ie.dy/Q.value),le.area=0;ge=pe.pop();)le.push(ge),le.area+=ge.area,ge.z!=null&&(se(le,ge.z?ie.dx:ie.dy,ie,!pe.length),le.length=le.area=0);ae.forEach($)}}function K(Q,ae){for(var ie=Q.area,pe,ge=0,le=1/0,Oe=-1,nr=Q.length;++Oege&&(ge=pe));return ie*=ie,ae*=ae,ie?Math.max(ae*ge*F/ie,ie/(ae*le*F)):1/0}function se(Q,ae,ie,pe){var ge=-1,le=Q.length,Oe=ie.x,nr=ie.y,fr=ae?p(Q.area/ae):0,or;if(ae==ie.dx){for((pe||fr>ie.dy)&&(fr=ie.dy);++geie.dx)&&(fr=ie.dx);++ge1);return c+p*k*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,_=0;_2?BY:NY,U=k?iY:nY;return C=F(c,p,U,_),D=F(p,c,U,So),E}function E(F){return C(F)}return E.invert=function(F){return D(F)},E.domain=function(F){return arguments.length?(c=F.map(Number),z()):c},E.range=function(F){return arguments.length?(p=F,z()):p},E.rangeRound=function(F){return E.range(F).interpolate(k6)},E.clamp=function(F){return arguments.length?(k=F,z()):k},E.interpolate=function(F){return arguments.length?(_=F,z()):_},E.ticks=function(F){return gp(c,F)},E.tickFormat=function(F,U){return d3_scale_linearTickFormat(c,F,U)},E.nice=function(F){return W6(c,F),z()},E.copy=function(){return V6(c,p,_,k)},z()}function X6(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function W6(c,p){return pp(c,G6(mp(c,p)[2])),pp(c,G6(mp(c,p)[2])),c}function mp(c,p){p==null&&(p=10);var _=dv(c),k=_[1]-_[0],C=Math.pow(10,Math.floor(Math.log(k/p)/Math.LN10)),D=p/k*C;return D<=.15?C*=10:D<=.35?C*=5:D<=.75&&(C*=2),_[0]=Math.ceil(_[0]/C)*C,_[1]=Math.floor(_[1]/C)*C+C*.5,_[2]=C,_}function gp(c,p){return e.range.apply(e,mp(c,p))}var HY={s:1,g:1,p:1,r:1,e:1};function Z6(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function sde(c,p){var _=Z6(p[2]);return c in HY?Math.abs(_-Z6(Math.max(x(p[0]),x(p[1]))))+ +(c!=="e"):_-(c==="%")*2}e.scale.log=function(){return J6(e.scale.linear().domain([0,1]),10,!0,[1,10])};function J6(c,p,_,k){function C(E){return(_?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function D(E){return _?Math.pow(p,E):-Math.pow(p,-E)}function z(E){return c(C(E))}return z.invert=function(E){return D(c.invert(E))},z.domain=function(E){return arguments.length?(_=E[0]>=0,c.domain((k=E.map(Number)).map(C)),z):k},z.base=function(E){return arguments.length?(p=+E,c.domain(k.map(C)),z):p},z.nice=function(){var E=pp(k.map(C),_?Math:OY);return c.domain(E),k=E.map(D),z},z.ticks=function(){var E=dv(k),F=[],U=E[0],V=E[1],$=Math.floor(C(U)),K=Math.ceil(C(V)),se=p%1?2:p;if(isFinite(K-$)){if(_){for(;$0;me--)F.push(D($)*me);for($=0;F[$]V;K--);F=F.slice($,K)}return F},z.copy=function(){return J6(c.copy(),p,_,k)},X6(z,c)}var OY={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return $6(e.scale.linear(),1,[0,1])};function $6(c,p,_){var k=pv(p),C=pv(1/p);function D(z){return c(k(z))}return D.invert=function(z){return C(c.invert(z))},D.domain=function(z){return arguments.length?(c.domain((_=z.map(Number)).map(k)),D):_},D.ticks=function(z){return gp(_,z)},D.tickFormat=function(z,E){return d3_scale_linearTickFormat(_,z,E)},D.nice=function(z){return D.domain(W6(_,z))},D.exponent=function(z){return arguments.length?(k=pv(p=z),C=pv(1/p),c.domain(_.map(k)),D):p},D.copy=function(){return $6(c.copy(),p,_)},X6(D,c)}function pv(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return K6([],{t:"range",a:[[]]})};function K6(c,p){var _,k,C;function D(E){return k[((_.get(E)||(p.t==="range"?_.set(E,c.push(E)):NaN))-1)%k.length]}function z(E,F){return e.range(c.length).map(function(U){return E+F*U})}return D.domain=function(E){if(!arguments.length)return c;c=[],_=new b;for(var F=-1,U=E.length,V;++F0?_[D-1]:c[0],D<_.length?_[D]:c[c.length-1]]},C.copy=function(){return j6(c,p)},k()}e.scale.quantize=function(){return Q6(0,1,[0,1])};function Q6(c,p,_){var k,C;function D(E){return _[Math.max(0,Math.min(C,Math.floor(k*(E-c))))]}function z(){return k=_.length/(p-c),C=_.length-1,D}return D.domain=function(E){return arguments.length?(c=+E[0],p=+E[E.length-1],z()):[c,p]},D.range=function(E){return arguments.length?(_=E,z()):_},D.invertExtent=function(E){return E=_.indexOf(E),E=E<0?NaN:E/k+c,[E,E+1/k]},D.copy=function(){return Q6(c,p,_)},z()}e.scale.threshold=function(){return ex([.5],[0,1])};function ex(c,p){function _(k){if(k<=k)return p[e.bisect(c,k)]}return _.domain=function(k){return arguments.length?(c=k,_):c},_.range=function(k){return arguments.length?(p=k,_):p},_.invertExtent=function(k){return k=p.indexOf(k),[c[k-1],c[k]]},_.copy=function(){return ex(c,p)},_}e.scale.identity=function(){return rx([0,1])};function rx(c){function p(_){return+_}return p.invert=p,p.domain=p.range=function(_){return arguments.length?(c=_.map(p),p):c},p.ticks=function(_){return gp(c,_)},p.tickFormat=function(_,k){return d3_scale_linearTickFormat(c,_,k)},p.copy=function(){return rx(c)},p}e.svg={};function XY(){return 0}e.svg.arc=function(){var c=WY,p=ZY,_=XY,k=mv,C=tx,D=ax,z=JY;function E(){var U=Math.max(0,+c.apply(this,arguments)),V=Math.max(0,+p.apply(this,arguments)),$=C.apply(this,arguments)-te,K=D.apply(this,arguments)-te,se=Math.abs(K-$),me=$>K?0:1;if(V=pr)return F(V,me)+(U?F(U,1-me):"")+"Z";var Q,ae,ie,pe,ge=0,le=0,Oe,nr,fr,or,gr,yr,Pr,_r,Dr=[];if((pe=(+z.apply(this,arguments)||0)/2)&&(ie=k===mv?Math.sqrt(U*U+V*V):+k.apply(this,arguments),me||(le*=-1),V&&(le=ct(ie/V*Math.sin(pe))),U&&(ge=ct(ie/U*Math.sin(pe)))),V){Oe=V*Math.cos($+le),nr=V*Math.sin($+le),fr=V*Math.cos(K-le),or=V*Math.sin(K-le);var Qr=Math.abs(K-$-2*le)<=br?0:1;if(le&&gv(Oe,nr,fr,or)===me^Qr){var Ht=($+K)/2;Oe=V*Math.cos(Ht),nr=V*Math.sin(Ht),fr=or=null}}else Oe=nr=0;if(U){gr=U*Math.cos(K-ge),yr=U*Math.sin(K-ge),Pr=U*Math.cos($+ge),_r=U*Math.sin($+ge);var at=Math.abs($-K+2*ge)<=br?0:1;if(ge&&gv(gr,yr,Pr,_r)===1-me^at){var rr=($+K)/2;gr=U*Math.cos(rr),yr=U*Math.sin(rr),Pr=_r=null}}else gr=yr=0;if(se>Ne&&(Q=Math.min(Math.abs(V-U)/2,+_.apply(this,arguments)))>.001){ae=U0?0:1}function yv(c,p,_,k,C){var D=c[0]-p[0],z=c[1]-p[1],E=(C?k:-k)/Math.sqrt(D*D+z*z),F=E*z,U=-E*D,V=c[0]+F,$=c[1]+U,K=p[0]+F,se=p[1]+U,me=(V+K)/2,Q=($+se)/2,ae=K-V,ie=se-$,pe=ae*ae+ie*ie,ge=_-k,le=V*se-K*$,Oe=(ie<0?-1:1)*Math.sqrt(Math.max(0,ge*ge*pe-le*le)),nr=(le*ie-ae*Oe)/pe,fr=(-le*ae-ie*Oe)/pe,or=(le*ie+ae*Oe)/pe,gr=(-le*ae+ie*Oe)/pe,yr=nr-me,Pr=fr-Q,_r=or-me,Dr=gr-Q;return yr*yr+Pr*Pr>_r*_r+Dr*Dr&&(nr=or,fr=gr),[[nr-F,fr-U],[nr*_/ge,fr*_/ge]]}function nx(){return!0}function ix(c){var p=Gs,_=Lu,k=nx,C=ui,D=C.key,z=.7;function E(F){var U=[],V=[],$=-1,K=F.length,se,me=wr(p),Q=wr(_);function ae(){U.push("M",C(c(V),z))}for(;++$1?c.join("L"):c+"Z"}function lx(c){return c.join("L")+"Z"}function $Y(c){for(var p=0,_=c.length,k=c[0],C=[k[0],",",k[1]];++p<_;)C.push("H",(k[0]+(k=c[p])[0])/2,"V",k[1]);return _>1&&C.push("H",k[0]),C.join("")}function bp(c){for(var p=0,_=c.length,k=c[0],C=[k[0],",",k[1]];++p<_;)C.push("V",(k=c[p])[1],"H",k[0]);return C.join("")}function xp(c){for(var p=0,_=c.length,k=c[0],C=[k[0],",",k[1]];++p<_;)C.push("H",(k=c[p])[0],"V",k[1]);return C.join("")}function KY(c,p){return c.length<4?ui(c):c[1]+bv(c.slice(1,-1),_p(c,p))}function jY(c,p){return c.length<3?lx(c):c[0]+bv((c.push(c[0]),c),_p([c[c.length-2]].concat(c,[c[1]]),p))}function QY(c,p){return c.length<3?ui(c):c[0]+bv(c,_p(c,p))}function bv(c,p){if(p.length<1||c.length!=p.length&&c.length!=p.length+2)return ui(c);var _=c.length!=p.length,k="",C=c[0],D=c[1],z=p[0],E=z,F=1;if(_&&(k+="Q"+(D[0]-z[0]*2/3)+","+(D[1]-z[1]*2/3)+","+D[0]+","+D[1],C=c[1],F=2),p.length>1){E=p[1],D=c[F],F++,k+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(D[0]-E[0])+","+(D[1]-E[1])+","+D[0]+","+D[1];for(var U=2;U9&&(D=_*3/Math.sqrt(D),z[E]=D*k,z[E+1]=D*C));for(E=-1;++E<=F;)D=(c[Math.min(F,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+z[E]*z[E])),p.push([D||0,z[E]*D||0]);return p}function iU(c){return c.length<3?ui(c):c[0]+bv(c,nU(c))}e.svg.line.radial=function(){var c=ix(fx);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function fx(c){for(var p,_=-1,k=c.length,C,D;++_br)+",1 "+$}function U(V,$,K,se){return"Q 0,0 "+se}return D.radius=function(V){return arguments.length?(_=wr(V),D):_},D.source=function(V){return arguments.length?(c=wr(V),D):c},D.target=function(V){return arguments.length?(p=wr(V),D):p},D.startAngle=function(V){return arguments.length?(k=wr(V),D):k},D.endAngle=function(V){return arguments.length?(C=wr(V),D):C},D};function lU(c){return c.radius}e.svg.diagonal=function(){var c=vx,p=dx,_=hx;function k(C,D){var z=c.call(this,C,D),E=p.call(this,C,D),F=(z.y+E.y)/2,U=[z,{x:z.x,y:F},{x:E.x,y:F},E];return U=U.map(_),"M"+U[0]+"C"+U[1]+" "+U[2]+" "+U[3]}return k.source=function(C){return arguments.length?(c=wr(C),k):c},k.target=function(C){return arguments.length?(p=wr(C),k):p},k.projection=function(C){return arguments.length?(_=C,k):_},k};function hx(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=hx,_=c.projection;return c.projection=function(k){return arguments.length?_(oU(p=k)):p},c};function oU(c){return function(){var p=c.apply(this,arguments),_=p[0],k=p[1]-te;return[_*Math.cos(k),_*Math.sin(k)]}}e.svg.symbol=function(){var c=uU,p=sU;function _(k,C){return(mx.get(c.call(this,k,C))||px)(p.call(this,k,C))}return _.type=function(k){return arguments.length?(c=wr(k),_):c},_.size=function(k){return arguments.length?(p=wr(k),_):p},_};function sU(){return 64}function uU(){return"circle"}function px(c){var p=Math.sqrt(c/br);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var mx=e.map({circle:px,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*gx)),_=p*gx;return"M0,"+-p+"L"+_+",0 0,"+p+" "+-_+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/xv),_=p*xv/2;return"M0,"+_+"L"+p+","+-_+" "+-p+","+-_+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/xv),_=p*xv/2;return"M0,"+-_+"L"+p+","+_+" "+-p+","+_+"Z"}});e.svg.symbolTypes=mx.keys();var xv=Math.sqrt(3),gx=Math.tan(30*ve);ce.transition=function(c){for(var p=Do||++bx,_=Ap(c),k=[],C,D,z=wv||{time:Date.now(),ease:OO,delay:0,duration:250},E=-1,F=this.length;++E0;)$[--pe].call(c,ie);if(ae>=1)return z.event&&z.event.end.call(c,c.__data__,p),--D.count?delete D[k]:delete c[_],1}z||(E=C.time,F=lv(K,0,E),z=D[k]={tween:new b,time:E,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:p},C=null,++D.count)}e.svg.axis=function(){var c=e.scale.linear(),p=xx,_=6,k=6,C=3,D=[10],z=null,E;function F(U){U.each(function(){var V=e.select(this),$=this.__chart__||c,K=this.__chart__=c.copy(),se=z==null?K.ticks?K.ticks.apply(K,D):K.domain():z,me=E==null?K.tickFormat?K.tickFormat.apply(K,D):H:E,Q=V.selectAll(".tick").data(se,K),ae=Q.enter().insert("g",".domain").attr("class","tick").style("opacity",Ne),ie=e.transition(Q.exit()).style("opacity",Ne).remove(),pe=e.transition(Q.order()).style("opacity",1),ge=Math.max(_,0)+C,le,Oe=hv(K),nr=V.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ae.append("line"),ae.append("text");var or=ae.select("line"),gr=pe.select("line"),yr=Q.select("text").text(me),Pr=ae.select("text"),_r=pe.select("text"),Dr=p==="top"||p==="left"?-1:1,Qr,Ht,at,rr;if(p==="bottom"||p==="top"?(le=vU,Qr="x",at="y",Ht="x2",rr="y2",yr.attr("dy",Dr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Oe[0]+","+Dr*k+"V0H"+Oe[1]+"V"+Dr*k)):(le=dU,Qr="y",at="x",Ht="y2",rr="x2",yr.attr("dy",".32em").style("text-anchor",Dr<0?"end":"start"),fr.attr("d","M"+Dr*k+","+Oe[0]+"H0V"+Oe[1]+"H"+Dr*k)),or.attr(rr,Dr*_),Pr.attr(at,Dr*ge),gr.attr(Ht,0).attr(rr,Dr*_),_r.attr(Qr,0).attr(at,Dr*ge),K.rangeBand){var zr=K,Rr=zr.rangeBand()/2;$=K=function(et){return zr(et)+Rr}}else $.rangeBand?$=K:ie.call(le,K,$);ae.call(le,$,K),pe.call(le,K,K)})}return F.scale=function(U){return arguments.length?(c=U,F):c},F.orient=function(U){return arguments.length?(p=U in cU?U+"":xx,F):p},F.ticks=function(){return arguments.length?(D=t(arguments),F):D},F.tickValues=function(U){return arguments.length?(z=U,F):z},F.tickFormat=function(U){return arguments.length?(E=U,F):E},F.tickSize=function(U){var V=arguments.length;return V?(_=+U,k=+arguments[V-1],F):_},F.innerTickSize=function(U){return arguments.length?(_=+U,F):_},F.outerTickSize=function(U){return arguments.length?(k=+U,F):k},F.tickPadding=function(U){return arguments.length?(C=+U,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var xx="bottom",cU={top:1,right:1,bottom:1,left:1};function vU(c,p,_){c.attr("transform",function(k){var C=p(k);return"translate("+(isFinite(C)?C:_(k))+",0)"})}function dU(c,p,_){c.attr("transform",function(k){var C=p(k);return"translate(0,"+(isFinite(C)?C:_(k))+")"})}e.svg.brush=function(){var c=fe(V,"brushstart","brush","brushend"),p=null,_=null,k=[0,0],C=[0,0],D,z,E=!0,F=!0,U=kp[0];function V(Q){Q.each(function(){var ae=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",me).on("touchstart.brush",me),ie=ae.selectAll(".background").data([0]);ie.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ae.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pe=ae.selectAll(".resize").data(U,H);pe.exit().remove(),pe.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return hU[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pe.style("display",V.empty()?"none":null);var ge=e.transition(ae),le=e.transition(ie),Oe;p&&(Oe=hv(p),le.attr("x",Oe[0]).attr("width",Oe[1]-Oe[0]),K(ge)),_&&(Oe=hv(_),le.attr("y",Oe[0]).attr("height",Oe[1]-Oe[0]),se(ge)),$(ge)})}V.event=function(Q){Q.each(function(){var ae=c.of(this,arguments),ie={x:k,y:C,i:D,j:z},pe=this.__chart__||ie;this.__chart__=ie,Do?e.select(this).transition().each("start.brush",function(){D=pe.i,z=pe.j,k=pe.x,C=pe.y,ae({type:"brushstart"})}).tween("brush:brush",function(){var ge=vv(k,ie.x),le=vv(C,ie.y);return D=z=null,function(Oe){k=ie.x=ge(Oe),C=ie.y=le(Oe),ae({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ie.i,z=ie.j,ae({type:"brush",mode:"resize"}),ae({type:"brushend"})}):(ae({type:"brushstart"}),ae({type:"brush",mode:"resize"}),ae({type:"brushend"}))})};function $(Q){Q.selectAll(".resize").attr("transform",function(ae){return"translate("+k[+/e$/.test(ae)]+","+C[+/^s/.test(ae)]+")"})}function K(Q){Q.select(".extent").attr("x",k[0]),Q.selectAll(".extent,.n>rect,.s>rect").attr("width",k[1]-k[0])}function se(Q){Q.select(".extent").attr("y",C[0]),Q.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function me(){var Q=this,ae=e.select(e.event.target),ie=c.of(Q,arguments),pe=e.select(Q),ge=ae.datum(),le=!/^(n|s)$/.test(ge)&&p,Oe=!/^(e|w)$/.test(ge)&&_,nr=ae.classed("extent"),fr=ir(Q),or,gr=e.mouse(Q),yr,Pr=e.select(i(Q)).on("keydown.brush",Qr).on("keyup.brush",Ht);if(e.event.changedTouches?Pr.on("touchmove.brush",at).on("touchend.brush",zr):Pr.on("mousemove.brush",at).on("mouseup.brush",zr),pe.interrupt().selectAll("*").interrupt(),nr)gr[0]=k[0]-gr[0],gr[1]=C[0]-gr[1];else if(ge){var _r=+/w$/.test(ge),Dr=+/^n/.test(ge);yr=[k[1-_r]-gr[0],C[1-Dr]-gr[1]],gr[0]=k[_r],gr[1]=C[Dr]}else e.event.altKey&&(or=gr.slice());pe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ae.style("cursor")),ie({type:"brushstart"}),at();function Qr(){e.event.keyCode==32&&(nr||(or=null,gr[0]-=k[1],gr[1]-=C[1],nr=2),ee())}function Ht(){e.event.keyCode==32&&nr==2&&(gr[0]+=k[1],gr[1]+=C[1],nr=0,ee())}function at(){var Rr=e.mouse(Q),et=!1;yr&&(Rr[0]+=yr[0],Rr[1]+=yr[1]),nr||(e.event.altKey?(or||(or=[(k[0]+k[1])/2,(C[0]+C[1])/2]),gr[0]=k[+(Rr[0]{(function(e,r){typeof Cv=="object"&&typeof Dx!="undefined"?r(Cv):(e=e||self,r(e.d3=e.d3||{}))})(Cv,function(e){"use strict";var r=new Date,t=new Date;function a(re,he,Ve,dr){function Le(de){return re(de=arguments.length===0?new Date:new Date(+de)),de}return Le.floor=function(de){return re(de=new Date(+de)),de},Le.ceil=function(de){return re(de=new Date(de-1)),he(de,1),re(de),de},Le.round=function(de){var xe=Le(de),He=Le.ceil(de);return de-xe0))return Ze;do Ze.push(Ie=new Date(+de)),he(de,He),re(de);while(Ie=xe)for(;re(xe),!de(xe);)xe.setTime(xe-1)},function(xe,He){if(xe>=xe)if(He<0)for(;++He<=0;)for(;he(xe,-1),!de(xe););else for(;--He>=0;)for(;he(xe,1),!de(xe););})},Ve&&(Le.count=function(de,xe){return r.setTime(+de),t.setTime(+xe),re(r),re(t),Math.floor(Ve(r,t))},Le.every=function(de){return de=Math.floor(de),!isFinite(de)||!(de>0)?null:de>1?Le.filter(dr?function(xe){return dr(xe)%de===0}:function(xe){return Le.count(0,xe)%de===0}):Le}),Le}var n=a(function(){},function(re,he){re.setTime(+re+he)},function(re,he){return he-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(he){he.setTime(Math.floor(he/re)*re)},function(he,Ve){he.setTime(+he+Ve*re)},function(he,Ve){return(Ve-he)/re}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,he){re.setTime(+re+he*l)},function(re,he){return(he-re)/l},function(re){return re.getUTCSeconds()}),d=v.range,h=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l)},function(re,he){re.setTime(+re+he*o)},function(re,he){return(he-re)/o},function(re){return re.getMinutes()}),m=h.range,y=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l-re.getMinutes()*o)},function(re,he){re.setTime(+re+he*s)},function(re,he){return(he-re)/s},function(re){return re.getHours()}),g=y.range,x=a(function(re){re.setHours(0,0,0,0)},function(re,he){re.setDate(re.getDate()+he)},function(re,he){return(he-re-(he.getTimezoneOffset()-re.getTimezoneOffset())*o)/u},function(re){return re.getDate()-1}),w=x.range;function T(re){return a(function(he){he.setDate(he.getDate()-(he.getDay()+7-re)%7),he.setHours(0,0,0,0)},function(he,Ve){he.setDate(he.getDate()+Ve*7)},function(he,Ve){return(Ve-he-(Ve.getTimezoneOffset()-he.getTimezoneOffset())*o)/f})}var b=T(0),M=T(1),S=T(2),A=T(3),L=T(4),q=T(5),P=T(6),R=b.range,N=M.range,B=S.range,I=A.range,H=L.range,Y=q.range,G=P.range,O=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,he){re.setMonth(re.getMonth()+he)},function(re,he){return he.getMonth()-re.getMonth()+(he.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),X=O.range,J=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,he){re.setFullYear(re.getFullYear()+he)},function(re,he){return he.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});J.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(he){he.setFullYear(Math.floor(he.getFullYear()/re)*re),he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,Ve){he.setFullYear(he.getFullYear()+Ve*re)})};var Z=J.range,ee=a(function(re){re.setUTCSeconds(0,0)},function(re,he){re.setTime(+re+he*o)},function(re,he){return(he-re)/o},function(re){return re.getUTCMinutes()}),ne=ee.range,fe=a(function(re){re.setUTCMinutes(0,0,0)},function(re,he){re.setTime(+re+he*s)},function(re,he){return(he-re)/s},function(re){return re.getUTCHours()}),we=fe.range,j=a(function(re){re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCDate(re.getUTCDate()+he)},function(re,he){return(he-re)/u},function(re){return re.getUTCDate()-1}),_e=j.range;function ue(re){return a(function(he){he.setUTCDate(he.getUTCDate()-(he.getUTCDay()+7-re)%7),he.setUTCHours(0,0,0,0)},function(he,Ve){he.setUTCDate(he.getUTCDate()+Ve*7)},function(he,Ve){return(Ve-he)/f})}var Me=ue(0),ye=ue(1),ce=ue(2),Te=ue(3),Re=ue(4),be=ue(5),qe=ue(6),Ce=Me.range,De=ye.range,Ee=ce.range,Ue=Te.range,ke=Re.range,Xe=be.range,Ke=qe.range,We=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCMonth(re.getUTCMonth()+he)},function(re,he){return he.getUTCMonth()-re.getUTCMonth()+(he.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Ae=We.range,Pe=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCFullYear(re.getUTCFullYear()+he)},function(re,he){return he.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Pe.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(he){he.setUTCFullYear(Math.floor(he.getUTCFullYear()/re)*re),he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,Ve){he.setUTCFullYear(he.getUTCFullYear()+Ve*re)})};var je=Pe.range;e.timeDay=x,e.timeDays=w,e.timeFriday=q,e.timeFridays=Y,e.timeHour=y,e.timeHours=g,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=X,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=v,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=R,e.timeThursday=L,e.timeThursdays=H,e.timeTuesday=S,e.timeTuesdays=B,e.timeWednesday=A,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=R,e.timeYear=J,e.timeYears=Z,e.utcDay=j,e.utcDays=_e,e.utcFriday=be,e.utcFridays=Xe,e.utcHour=fe,e.utcHours=we,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=ne,e.utcMonday=ye,e.utcMondays=De,e.utcMonth=We,e.utcMonths=Ae,e.utcSaturday=qe,e.utcSaturdays=Ke,e.utcSecond=v,e.utcSeconds=d,e.utcSunday=Me,e.utcSundays=Ce,e.utcThursday=Re,e.utcThursdays=ke,e.utcTuesday=ce,e.utcTuesdays=Ee,e.utcWednesday=Te,e.utcWednesdays=Ue,e.utcWeek=Me,e.utcWeeks=Ce,e.utcYear=Pe,e.utcYears=je,Object.defineProperty(e,"__esModule",{value:!0})})});var Ks=W((Sv,Lx)=>{(function(e,r){typeof Sv=="object"&&typeof Lx!="undefined"?r(Sv,Sp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Sv,function(e,r){"use strict";function t(te){if(0<=te.y&&te.y<100){var ve=new Date(-1,te.m,te.d,te.H,te.M,te.S,te.L);return ve.setFullYear(te.y),ve}return new Date(te.y,te.m,te.d,te.H,te.M,te.S,te.L)}function a(te){if(0<=te.y&&te.y<100){var ve=new Date(Date.UTC(-1,te.m,te.d,te.H,te.M,te.S,te.L));return ve.setUTCFullYear(te.y),ve}return new Date(Date.UTC(te.y,te.m,te.d,te.H,te.M,te.S,te.L))}function n(te,ve,Fe){return{y:te,m:ve,d:Fe,H:0,M:0,S:0,L:0}}function i(te){var ve=te.dateTime,Fe=te.date,Ye=te.time,Kr=te.periods,ot=te.days,ct=te.shortDays,Ft=te.months,Dt=te.shortMonths,ga=d(Kr),ln=h(Kr),Qt=d(ot),Qa=h(ot),xn=d(ct),_n=h(ct),mr=d(Ft),vt=h(Ft),jr=d(Dt),mt=h(Dt),Lt={a:ku,A:Cu,b:Ha,B:tv,c:null,d:O,e:O,f:ne,g:be,G:Ce,H:X,I:J,j:Z,L:ee,m:fe,M:we,p:Ys,q:Us,Q:ir,s:ur,S:j,u:_e,U:ue,V:ye,w:ce,W:Te,x:null,X:null,y:Re,Y:qe,Z:De,"%":ar},At={a:Ll,A:av,b:nv,B:iv,c:null,d:Ee,e:Ee,f:We,g:He,G:Ie,H:Ue,I:ke,j:Xe,L:Ke,m:Ae,M:Pe,p:Su,q:Du,Q:ir,s:ur,S:je,u:re,U:he,V:dr,w:Le,W:de,x:null,X:null,y:xe,Y:Ze,Z:Ge,"%":ar},st={a:Zt,A:Jt,b:Ao,B:Dl,c:ev,d:L,e:L,f:I,g:b,G:T,H:P,I:P,j:q,L:B,m:A,M:R,p:gt,q:S,Q:Y,s:G,S:N,u:y,U:g,V:x,w:m,W:w,x:rv,X:Au,y:b,Y:T,Z:M,"%":H};Lt.x=ea(Fe,Lt),Lt.X=ea(Ye,Lt),Lt.c=ea(ve,Lt),At.x=ea(Fe,At),At.X=ea(Ye,At),At.c=ea(ve,At);function ea(Mr,wr){return function(rt){var lr=[],Oa=-1,yt=0,Ma=Mr.length,Ta,Bn,ko;for(rt instanceof Date||(rt=new Date(+rt));++Oa53)return null;"w"in lr||(lr.w=1),"Z"in lr?(yt=a(n(lr.y,0,1)),Ma=yt.getUTCDay(),yt=Ma>4||Ma===0?r.utcMonday.ceil(yt):r.utcMonday(yt),yt=r.utcDay.offset(yt,(lr.V-1)*7),lr.y=yt.getUTCFullYear(),lr.m=yt.getUTCMonth(),lr.d=yt.getUTCDate()+(lr.w+6)%7):(yt=t(n(lr.y,0,1)),Ma=yt.getDay(),yt=Ma>4||Ma===0?r.timeMonday.ceil(yt):r.timeMonday(yt),yt=r.timeDay.offset(yt,(lr.V-1)*7),lr.y=yt.getFullYear(),lr.m=yt.getMonth(),lr.d=yt.getDate()+(lr.w+6)%7)}else("W"in lr||"U"in lr)&&("w"in lr||(lr.w="u"in lr?lr.u%7:"W"in lr?1:0),Ma="Z"in lr?a(n(lr.y,0,1)).getUTCDay():t(n(lr.y,0,1)).getDay(),lr.m=0,lr.d="W"in lr?(lr.w+6)%7+lr.W*7-(Ma+5)%7:lr.w+lr.U*7-(Ma+6)%7);return"Z"in lr?(lr.H+=lr.Z/100|0,lr.M+=lr.Z%100,a(lr)):t(lr)}}function Bt(Mr,wr,rt,lr){for(var Oa=0,yt=wr.length,Ma=rt.length,Ta,Bn;Oa=Ma)return-1;if(Ta=wr.charCodeAt(Oa++),Ta===37){if(Ta=wr.charAt(Oa++),Bn=st[Ta in l?wr.charAt(Oa++):Ta],!Bn||(lr=Bn(Mr,rt,lr))<0)return-1}else if(Ta!=rt.charCodeAt(lr++))return-1}return lr}function gt(Mr,wr,rt){var lr=ga.exec(wr.slice(rt));return lr?(Mr.p=ln[lr[0].toLowerCase()],rt+lr[0].length):-1}function Zt(Mr,wr,rt){var lr=xn.exec(wr.slice(rt));return lr?(Mr.w=_n[lr[0].toLowerCase()],rt+lr[0].length):-1}function Jt(Mr,wr,rt){var lr=Qt.exec(wr.slice(rt));return lr?(Mr.w=Qa[lr[0].toLowerCase()],rt+lr[0].length):-1}function Ao(Mr,wr,rt){var lr=jr.exec(wr.slice(rt));return lr?(Mr.m=mt[lr[0].toLowerCase()],rt+lr[0].length):-1}function Dl(Mr,wr,rt){var lr=mr.exec(wr.slice(rt));return lr?(Mr.m=vt[lr[0].toLowerCase()],rt+lr[0].length):-1}function ev(Mr,wr,rt){return Bt(Mr,ve,wr,rt)}function rv(Mr,wr,rt){return Bt(Mr,Fe,wr,rt)}function Au(Mr,wr,rt){return Bt(Mr,Ye,wr,rt)}function ku(Mr){return ct[Mr.getDay()]}function Cu(Mr){return ot[Mr.getDay()]}function Ha(Mr){return Dt[Mr.getMonth()]}function tv(Mr){return Ft[Mr.getMonth()]}function Ys(Mr){return Kr[+(Mr.getHours()>=12)]}function Us(Mr){return 1+~~(Mr.getMonth()/3)}function Ll(Mr){return ct[Mr.getUTCDay()]}function av(Mr){return ot[Mr.getUTCDay()]}function nv(Mr){return Dt[Mr.getUTCMonth()]}function iv(Mr){return Ft[Mr.getUTCMonth()]}function Su(Mr){return Kr[+(Mr.getUTCHours()>=12)]}function Du(Mr){return 1+~~(Mr.getUTCMonth()/3)}return{format:function(Mr){var wr=ea(Mr+="",Lt);return wr.toString=function(){return Mr},wr},parse:function(Mr){var wr=In(Mr+="",!1);return wr.toString=function(){return Mr},wr},utcFormat:function(Mr){var wr=ea(Mr+="",At);return wr.toString=function(){return Mr},wr},utcParse:function(Mr){var wr=In(Mr+="",!0);return wr.toString=function(){return Mr},wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(te,ve,Fe){var Ye=te<0?"-":"",Kr=(Ye?-te:te)+"",ot=Kr.length;return Ye+(ot68?1900:2e3),Fe+Ye[0].length):-1}function M(te,ve,Fe){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ve.slice(Fe,Fe+6));return Ye?(te.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Fe+Ye[0].length):-1}function S(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+1));return Ye?(te.q=Ye[0]*3-3,Fe+Ye[0].length):-1}function A(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.m=Ye[0]-1,Fe+Ye[0].length):-1}function L(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.d=+Ye[0],Fe+Ye[0].length):-1}function q(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+3));return Ye?(te.m=0,te.d=+Ye[0],Fe+Ye[0].length):-1}function P(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.H=+Ye[0],Fe+Ye[0].length):-1}function R(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.M=+Ye[0],Fe+Ye[0].length):-1}function N(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.S=+Ye[0],Fe+Ye[0].length):-1}function B(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+3));return Ye?(te.L=+Ye[0],Fe+Ye[0].length):-1}function I(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+6));return Ye?(te.L=Math.floor(Ye[0]/1e3),Fe+Ye[0].length):-1}function H(te,ve,Fe){var Ye=s.exec(ve.slice(Fe,Fe+1));return Ye?Fe+Ye[0].length:-1}function Y(te,ve,Fe){var Ye=o.exec(ve.slice(Fe));return Ye?(te.Q=+Ye[0],Fe+Ye[0].length):-1}function G(te,ve,Fe){var Ye=o.exec(ve.slice(Fe));return Ye?(te.s=+Ye[0],Fe+Ye[0].length):-1}function O(te,ve){return f(te.getDate(),ve,2)}function X(te,ve){return f(te.getHours(),ve,2)}function J(te,ve){return f(te.getHours()%12||12,ve,2)}function Z(te,ve){return f(1+r.timeDay.count(r.timeYear(te),te),ve,3)}function ee(te,ve){return f(te.getMilliseconds(),ve,3)}function ne(te,ve){return ee(te,ve)+"000"}function fe(te,ve){return f(te.getMonth()+1,ve,2)}function we(te,ve){return f(te.getMinutes(),ve,2)}function j(te,ve){return f(te.getSeconds(),ve,2)}function _e(te){var ve=te.getDay();return ve===0?7:ve}function ue(te,ve){return f(r.timeSunday.count(r.timeYear(te)-1,te),ve,2)}function Me(te){var ve=te.getDay();return ve>=4||ve===0?r.timeThursday(te):r.timeThursday.ceil(te)}function ye(te,ve){return te=Me(te),f(r.timeThursday.count(r.timeYear(te),te)+(r.timeYear(te).getDay()===4),ve,2)}function ce(te){return te.getDay()}function Te(te,ve){return f(r.timeMonday.count(r.timeYear(te)-1,te),ve,2)}function Re(te,ve){return f(te.getFullYear()%100,ve,2)}function be(te,ve){return te=Me(te),f(te.getFullYear()%100,ve,2)}function qe(te,ve){return f(te.getFullYear()%1e4,ve,4)}function Ce(te,ve){var Fe=te.getDay();return te=Fe>=4||Fe===0?r.timeThursday(te):r.timeThursday.ceil(te),f(te.getFullYear()%1e4,ve,4)}function De(te){var ve=te.getTimezoneOffset();return(ve>0?"-":(ve*=-1,"+"))+f(ve/60|0,"0",2)+f(ve%60,"0",2)}function Ee(te,ve){return f(te.getUTCDate(),ve,2)}function Ue(te,ve){return f(te.getUTCHours(),ve,2)}function ke(te,ve){return f(te.getUTCHours()%12||12,ve,2)}function Xe(te,ve){return f(1+r.utcDay.count(r.utcYear(te),te),ve,3)}function Ke(te,ve){return f(te.getUTCMilliseconds(),ve,3)}function We(te,ve){return Ke(te,ve)+"000"}function Ae(te,ve){return f(te.getUTCMonth()+1,ve,2)}function Pe(te,ve){return f(te.getUTCMinutes(),ve,2)}function je(te,ve){return f(te.getUTCSeconds(),ve,2)}function re(te){var ve=te.getUTCDay();return ve===0?7:ve}function he(te,ve){return f(r.utcSunday.count(r.utcYear(te)-1,te),ve,2)}function Ve(te){var ve=te.getUTCDay();return ve>=4||ve===0?r.utcThursday(te):r.utcThursday.ceil(te)}function dr(te,ve){return te=Ve(te),f(r.utcThursday.count(r.utcYear(te),te)+(r.utcYear(te).getUTCDay()===4),ve,2)}function Le(te){return te.getUTCDay()}function de(te,ve){return f(r.utcMonday.count(r.utcYear(te)-1,te),ve,2)}function xe(te,ve){return f(te.getUTCFullYear()%100,ve,2)}function He(te,ve){return te=Ve(te),f(te.getUTCFullYear()%100,ve,2)}function Ze(te,ve){return f(te.getUTCFullYear()%1e4,ve,4)}function Ie(te,ve){var Fe=te.getUTCDay();return te=Fe>=4||Fe===0?r.utcThursday(te):r.utcThursday.ceil(te),f(te.getUTCFullYear()%1e4,ve,4)}function Ge(){return"+0000"}function ar(){return"%"}function ir(te){return+te}function ur(te){return Math.floor(+te/1e3)}var Se;$e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $e(te){return Se=i(te),e.timeFormat=Se.format,e.timeParse=Se.parse,e.utcFormat=Se.utcFormat,e.utcParse=Se.utcParse,Se}var Ne="%Y-%m-%dT%H:%M:%S.%LZ";function hr(te){return te.toISOString()}var br=Date.prototype.toISOString?hr:e.utcFormat(Ne);function sr(te){var ve=new Date(te);return isNaN(ve)?null:ve}var pr=+new Date("2000-01-01T00:00:00.000Z")?sr:e.utcParse(Ne);e.isoFormat=br,e.isoParse=pr,e.timeFormatDefaultLocale=$e,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Dp=W((Dv,qx)=>{(function(e,r){typeof Dv=="object"&&typeof qx!="undefined"?r(Dv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Dv,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,L){if((q=(A=L?A.toExponential(L-1):A.toExponential()).indexOf("e"))<0)return null;var q,P=A.slice(0,q);return[P.length>1?P[0]+P.slice(2):P,+A.slice(q+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,L){return function(q,P){for(var R=q.length,N=[],B=0,I=A[0],H=0;R>0&&I>0&&(H+I+1>P&&(I=Math.max(1,P-H)),N.push(q.substring(R-=I,R+I)),!((H+=I+1)>P));)I=A[B=(B+1)%A.length];return N.reverse().join(L)}}function i(A){return function(L){return L.replace(/[0-9]/g,function(q){return A[+q]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(L=l.exec(A)))throw new Error("invalid format: "+A);var L;return new s({fill:L[1],align:L[2],sign:L[3],symbol:L[4],zero:L[5],width:L[6],comma:L[7],precision:L[8]&&L[8].slice(1),trim:L[9],type:L[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(A){e:for(var L=A.length,q=1,P=-1,R;q0&&(P=0);break}return P>0?A.slice(0,P)+A.slice(R+1):A}var f;function v(A,L){var q=t(A,L);if(!q)return A+"";var P=q[0],R=q[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,B=P.length;return N===B?P:N>B?P+new Array(N-B+1).join("0"):N>0?P.slice(0,N)+"."+P.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,L+N-1))[0]}function d(A,L){var q=t(A,L);if(!q)return A+"";var P=q[0],R=q[1];return R<0?"0."+new Array(-R).join("0")+P:P.length>R+1?P.slice(0,R+1)+"."+P.slice(R+1):P+new Array(R-P.length+2).join("0")}var h={"%":function(A,L){return(A*100).toFixed(L)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,L){return A.toExponential(L)},f:function(A,L){return A.toFixed(L)},g:function(A,L){return A.toPrecision(L)},o:function(A){return Math.round(A).toString(8)},p:function(A,L){return d(A*100,L)},r:d,s:v,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function m(A){return A}var y=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(A){var L=A.grouping===void 0||A.thousands===void 0?m:n(y.call(A.grouping,Number),A.thousands+""),q=A.currency===void 0?"":A.currency[0]+"",P=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?m:i(y.call(A.numerals,String)),B=A.percent===void 0?"%":A.percent+"",I=A.minus===void 0?"-":A.minus+"",H=A.nan===void 0?"NaN":A.nan+"";function Y(O){O=o(O);var X=O.fill,J=O.align,Z=O.sign,ee=O.symbol,ne=O.zero,fe=O.width,we=O.comma,j=O.precision,_e=O.trim,ue=O.type;ue==="n"?(we=!0,ue="g"):h[ue]||(j===void 0&&(j=12),_e=!0,ue="g"),(ne||X==="0"&&J==="=")&&(ne=!0,X="0",J="=");var Me=ee==="$"?q:ee==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",ye=ee==="$"?P:/[%p]/.test(ue)?B:"",ce=h[ue],Te=/[defgprs%]/.test(ue);j=j===void 0?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function Re(be){var qe=Me,Ce=ye,De,Ee,Ue;if(ue==="c")Ce=ce(be)+Ce,be="";else{be=+be;var ke=be<0||1/be<0;if(be=isNaN(be)?H:ce(Math.abs(be),j),_e&&(be=u(be)),ke&&+be==0&&Z!=="+"&&(ke=!1),qe=(ke?Z==="("?Z:I:Z==="-"||Z==="("?"":Z)+qe,Ce=(ue==="s"?g[8+f/3]:"")+Ce+(ke&&Z==="("?")":""),Te){for(De=-1,Ee=be.length;++DeUe||Ue>57){Ce=(Ue===46?R+be.slice(De+1):be.slice(De))+Ce,be=be.slice(0,De);break}}}we&&!ne&&(be=L(be,1/0));var Xe=qe.length+be.length+Ce.length,Ke=Xe>1)+qe+be+Ce+Ke.slice(Xe);break;default:be=Ke+qe+be+Ce;break}return N(be)}return Re.toString=function(){return O+""},Re}function G(O,X){var J=Y((O=o(O),O.type="f",O)),Z=Math.max(-8,Math.min(8,Math.floor(a(X)/3)))*3,ee=Math.pow(10,-Z),ne=g[8+Z/3];return function(fe){return J(ee*fe)+ne}}return{format:Y,formatPrefix:G}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(A){return w=x(A),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(A){return Math.max(0,-a(Math.abs(A)))}function M(A,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(A)))}function S(A,L){return A=Math.abs(A),L=Math.abs(L)-A,Math.max(0,a(L)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var Px=W((vde,Ex)=>{"use strict";Ex.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Vr=W((dde,zx)=>{"use strict";var AU=Px();zx.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&AU(t))return!1}else if(r!=="number")return!1;return e-e<1}});var aa=W((hde,Rx)=>{"use strict";Rx.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Lp=W((Lv,Fx)=>{(function(e,r){typeof Lv=="object"&&typeof Fx!="undefined"?r(Lv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Lv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,d,h,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),g=new Uint8Array(y);for(u=0;u>4,g[f++]=(d&15)<<4|h>>2,g[f++]=(h&3)<<6|m&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Eo=W((pde,Nx)=>{"use strict";Nx.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var un=W(ci=>{"use strict";var kU=Lp().decode,CU=Eo(),qp=Array.isArray,SU=ArrayBuffer,DU=DataView;function Ix(e){return SU.isView(e)&&!(e instanceof DU)}ci.isTypedArray=Ix;function qv(e){return qp(e)||Ix(e)}ci.isArrayOrTypedArray=qv;function LU(e){return!qv(e[0])}ci.isArray1D=LU;ci.ensureArray=function(e,r){return qp(e)||(e=[]),e.length=r,e};var ya={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ya.uint8c=ya.u1c;ya.uint8=ya.u1;ya.int8=ya.i1;ya.uint16=ya.u2;ya.int16=ya.i2;ya.uint32=ya.u4;ya.int32=ya.i4;ya.float32=ya.f4;ya.float64=ya.f8;function Ep(e){return e.constructor===ArrayBuffer}ci.isArrayBuffer=Ep;ci.decodeTypedArraySpec=function(e){var r=[],t=qU(e),a=t.dtype,n=ya[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Ep(l)||(l=kU(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],d=i*v,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var Hx=Vr(),zp=un().isArrayOrTypedArray;Gx.exports=function(r,t){if(Hx(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var js=Ev(),FU=/^\w*$/,NU=0,Vx=1,Pv=2,Xx=3,Po=4;Wx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=js(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Pv,v.set(d,null);if(f){for(i=h;i{"use strict";var IU=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,BU=/^[^\.\[\]]+$/;Jx.exports=function(e,r){for(;r;){var t=e.match(IU);if(t)e=t[1];else if(e.match(BU))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var zv=W((xde,Kx)=>{"use strict";var HU=Vr();Kx.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return HU(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var e_=W((_de,Qx)=>{"use strict";var jx=un().isArrayOrTypedArray,Uu=Eo();Qx.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(jx(n)&&jx(i)&&Uu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;oOU,modHalf:()=>YU});function OU(e,r){let t=e%r;return t<0?t+r:t}function YU(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var e0=Hu(()=>{"use strict"});var na=W(Xu=>{"use strict";var r_=Eo(),Gu=Array.isArray;function UU(e,r){var t,a;for(t=0;t{"use strict";t_.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Wu=W((Tde,a_)=>{"use strict";a_.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var r0=W((Ade,l_)=>{"use strict";var n_=Wu(),i_=Ca(),Rp=i_({editType:"none"});Rp.family.dflt=n_.HOVERFONT;Rp.size.dflt=n_.HOVERFONTSIZE;l_.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"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Rp,grouptitlefont:i_({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Rv=W((kde,o_)=>{"use strict";var GU=Ca(),Zu=r0().hoverlabel,Ju=na().extendFlat;o_.exports={hoverlabel:{bgcolor:Ju({},Zu.bgcolor,{arrayOk:!0}),bordercolor:Ju({},Zu.bordercolor,{arrayOk:!0}),font:GU({arrayOk:!0,editType:"none"}),align:Ju({},Zu.align,{arrayOk:!0}),namelength:Ju({},Zu.namelength,{arrayOk:!0}),showarrow:Ju({},Zu.showarrow),editType:"none"}}});var vi=W((Cde,s_)=>{"use strict";var VU=Ca(),XU=Rv();s_.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:VU({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:XU.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var e8=W((zde,Q7)=>{var Cm=Object.defineProperty,WU=Object.getOwnPropertyDescriptor,ZU=Object.getOwnPropertyNames,JU=Object.prototype.hasOwnProperty,$U=(e,r)=>{for(var t in r)Cm(e,t,{get:r[t],enumerable:!0})},KU=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ZU(r))!JU.call(e,n)&&n!==t&&Cm(e,n,{get:()=>r[n],enumerable:!(a=WU(r,n))||a.enumerable});return e},jU=e=>KU(Cm({},"__esModule",{value:!0}),e),y_={};$U(y_,{a98:()=>UW,average:()=>ZG,averageAngle:()=>Hi,averageNumber:()=>R_,blend:()=>WX,blerp:()=>om,clampChroma:()=>dW,clampGamut:()=>eg,clampRgb:()=>vW,colorsNamed:()=>x_,convertA98ToXyz65:()=>sm,convertCubehelixToRgb:()=>P_,convertDlchToLab65:()=>Gv,convertHsiToRgb:()=>U_,convertHslToRgb:()=>X_,convertHsvToRgb:()=>Pm,convertHwbToRgb:()=>$_,convertItpToXyz65:()=>fm,convertJabToJch:()=>vm,convertJabToRgb:()=>Bm,convertJabToXyz65:()=>Nm,convertJchToJab:()=>dm,convertLab65ToDlch:()=>Vv,convertLab65ToRgb:()=>af,convertLab65ToXyz65:()=>Lm,convertLabToLch:()=>ul,convertLabToRgb:()=>Om,convertLabToXyz50:()=>r2,convertLchToLab:()=>fl,convertLchuvToLuv:()=>Gm,convertLrgbToOklab:()=>Vm,convertLrgbToRgb:()=>Ho,convertLuvToLchuv:()=>Um,convertLuvToXyz50:()=>Wv,convertOkhslToOklab:()=>mm,convertOkhsvToOklab:()=>ym,convertOklabToLrgb:()=>u0,convertOklabToOkhsl:()=>pm,convertOklabToOkhsv:()=>gm,convertOklabToRgb:()=>of,convertP3ToXyz65:()=>bm,convertProphotoToXyz50:()=>wm,convertRec2020ToXyz65:()=>Tm,convertRgbToCubehelix:()=>E_,convertRgbToHsi:()=>G_,convertRgbToHsl:()=>W_,convertRgbToHsv:()=>zm,convertRgbToHwb:()=>K_,convertRgbToJab:()=>Im,convertRgbToLab:()=>Ym,convertRgbToLab65:()=>nf,convertRgbToLrgb:()=>Bo,convertRgbToOklab:()=>lf,convertRgbToXyb:()=>A7,convertRgbToXyz50:()=>s0,convertRgbToXyz65:()=>Pl,convertRgbToYiq:()=>E7,convertXybToRgb:()=>k7,convertXyz50ToLab:()=>t2,convertXyz50ToLuv:()=>Xv,convertXyz50ToProphoto:()=>_m,convertXyz50ToRgb:()=>o0,convertXyz50ToXyz65:()=>L7,convertXyz65ToA98:()=>um,convertXyz65ToItp:()=>cm,convertXyz65ToJab:()=>Fm,convertXyz65ToLab65:()=>qm,convertXyz65ToP3:()=>xm,convertXyz65ToRec2020:()=>Mm,convertXyz65ToRgb:()=>zl,convertXyz65ToXyz50:()=>D7,convertYiqToRgb:()=>P7,converter:()=>bt,cubehelix:()=>GW,differenceCie76:()=>OG,differenceCie94:()=>YG,differenceCiede2000:()=>UG,differenceCmc:()=>GG,differenceEuclidean:()=>l0,differenceHueChroma:()=>tf,differenceHueNaive:()=>z_,differenceHueSaturation:()=>rf,differenceHyab:()=>VG,differenceItp:()=>WG,differenceKotsarenkoRamos:()=>XG,displayable:()=>Qm,dlab:()=>VW,dlch:()=>XW,easingGamma:()=>Z7,easingInOutSine:()=>OW,easingMidpoint:()=>O7,easingSmootherstep:()=>BW,easingSmoothstep:()=>FW,easingSmoothstepInverse:()=>NW,filterBrightness:()=>wW,filterContrast:()=>MW,filterDeficiencyDeuter:()=>zW,filterDeficiencyProt:()=>PW,filterDeficiencyTrit:()=>RW,filterGrayscale:()=>kW,filterHueRotate:()=>SW,filterInvert:()=>CW,filterSaturate:()=>AW,filterSepia:()=>TW,fixupAlpha:()=>ca,fixupHueDecreasing:()=>FG,fixupHueIncreasing:()=>RG,fixupHueLonger:()=>zG,fixupHueShorter:()=>Bi,formatCss:()=>HX,formatHex:()=>OX,formatHex8:()=>YX,formatHsl:()=>GX,formatRgb:()=>UX,getMode:()=>Ga,hsi:()=>WW,hsl:()=>ZW,hsv:()=>JW,hwb:()=>$W,inGamut:()=>i2,interpolate:()=>tW,interpolateWith:()=>U7,interpolateWithPremultipliedAlpha:()=>aW,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>L_,interpolatorSplineBasis:()=>V7,interpolatorSplineBasisClosed:()=>X7,interpolatorSplineMonotone:()=>lW,interpolatorSplineMonotone2:()=>oW,interpolatorSplineMonotoneClosed:()=>sW,interpolatorSplineNatural:()=>nW,interpolatorSplineNaturalClosed:()=>iW,itp:()=>KW,jab:()=>jW,jch:()=>QW,lab:()=>eZ,lab65:()=>rZ,lch:()=>tZ,lch65:()=>aZ,lchuv:()=>nZ,lerp:()=>Ro,lrgb:()=>iZ,luv:()=>lZ,mapAlphaDivide:()=>H7,mapAlphaMultiply:()=>B7,mapTransferGamma:()=>jX,mapTransferLinear:()=>$m,mapper:()=>sf,modeA98:()=>q_,modeCubehelix:()=>F_,modeDlab:()=>O_,modeDlch:()=>Y_,modeHsi:()=>V_,modeHsl:()=>Em,modeHsv:()=>Rm,modeHwb:()=>Q_,modeItp:()=>t7,modeJab:()=>a7,modeJch:()=>n7,modeLab:()=>a2,modeLab65:()=>l7,modeLch:()=>n2,modeLch65:()=>s7,modeLchuv:()=>c7,modeLrgb:()=>v7,modeLuv:()=>d7,modeOkhsl:()=>p7,modeOkhsv:()=>m7,modeOklab:()=>y7,modeOklch:()=>x7,modeP3:()=>_7,modeProphoto:()=>w7,modeRec2020:()=>M7,modeRgb:()=>Io,modeXyb:()=>C7,modeXyz50:()=>S7,modeXyz65:()=>q7,modeYiq:()=>z7,nearest:()=>mW,okhsl:()=>oZ,okhsv:()=>sZ,oklab:()=>uZ,oklch:()=>fZ,p3:()=>cZ,parse:()=>C_,parseHex:()=>w_,parseHsl:()=>J_,parseHslLegacy:()=>Z_,parseHwb:()=>j_,parseLab:()=>i7,parseLch:()=>o7,parseNamed:()=>__,parseOklab:()=>g7,parseOklch:()=>b7,parseRgb:()=>S_,parseRgbLegacy:()=>M_,parseTransparent:()=>D_,prophoto:()=>vZ,random:()=>KX,rec2020:()=>dZ,removeParser:()=>vG,rgb:()=>hZ,round:()=>R7,samples:()=>cW,serializeHex:()=>Jm,serializeHex8:()=>F7,serializeHsl:()=>I7,serializeRgb:()=>N7,toGamut:()=>hW,trilerp:()=>MG,unlerp:()=>wG,useMode:()=>ut,useParser:()=>A_,wcagContrast:()=>YW,wcagLuminance:()=>km,xyb:()=>pZ,xyz50:()=>mZ,xyz65:()=>gZ,yiq:()=>yZ});Q7.exports=jU(y_);var QU=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},b_=QU,eG={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},x_=eG,rG=e=>b_(x_[e.toLowerCase()],6),__=rG,tG=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,aG=e=>{let r;return(r=e.match(tG))?b_(parseInt(r[1],16),r[1].length):void 0},w_=aG,fn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Sde=`(?:${fn}|none)`,ju=`${fn}%`,Dde=`(?:${fn}%|none)`,Sm=`(?:${fn}%|${fn})`,nG=`(?:${fn}%|${fn}|none)`,iG=`(?:${fn}(deg|grad|rad|turn)|${fn})`,Lde=`(?:${fn}(deg|grad|rad|turn)|${fn}|none)`,n0="\\s*,\\s*",qde=new RegExp("^"+nG+"$"),lG=new RegExp(`^rgba?\\(\\s*${fn}${n0}${fn}${n0}${fn}\\s*(?:,\\s*${Sm}\\s*)?\\)$`),oG=new RegExp(`^rgba?\\(\\s*${ju}${n0}${ju}${n0}${ju}\\s*(?:,\\s*${Sm}\\s*)?\\)$`),sG=e=>{let r={mode:"rgb"},t;if(t=e.match(lG))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(oG))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},M_=sG,uG=(e,r)=>e===void 0?void 0:typeof e!="object"?C_(e):e.mode!==void 0?e:r?kt(lt({},e),{mode:r}):void 0,di=uG,fG=(e="rgb")=>r=>(r=di(r,e))!==void 0?r.mode===e?r:Ii[r.mode][e]?Ii[r.mode][e](r):e==="rgb"?Ii[r.mode].rgb(r):Ii.rgb[e](Ii[r.mode].rgb(r)):void 0,bt=fG,Ii={},T_={},i0=[],Dm={},cG=e=>e,ut=e=>(Ii[e.mode]=lt(lt({},Ii[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Ii[r]||(Ii[r]={}),Ii[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=cG)}),T_[e.mode]=e,(e.parse||[]).forEach(r=>{A_(r,e.mode)}),bt(e.mode)),Ga=e=>T_[e],A_=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");Dm[e]=r}else typeof e=="function"&&i0.indexOf(e)<0&&i0.push(e)},vG=e=>{if(typeof e=="string")delete Dm[e];else if(typeof e=="function"){let r=i0.indexOf(e);r>0&&i0.splice(r,1)}},im=/[^\x00-\x7F]|[a-zA-Z_]/,dG=/[^\x00-\x7F]|[-\w]/,cr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ir=0;function Fv(e){let r=e[Ir],t=e[Ir+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ir+2]):r==="."?/\d/.test(t):/\d/.test(r)}function lm(e){if(Ir>=e.length)return!1;let r=e[Ir];if(im.test(r))return!0;if(r==="-"){if(e.length-Ir<2)return!1;let t=e[Ir+1];return!!(t==="-"||im.test(t))}return!1}var hG={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function $u(e){let r="";if((e[Ir]==="-"||e[Ir]==="+")&&(r+=e[Ir++]),r+=Nv(e),e[Ir]==="."&&/\d/.test(e[Ir+1])&&(r+=e[Ir++]+Nv(e)),(e[Ir]==="e"||e[Ir]==="E")&&((e[Ir+1]==="-"||e[Ir+1]==="+")&&/\d/.test(e[Ir+2])?r+=e[Ir++]+e[Ir++]+Nv(e):/\d/.test(e[Ir+1])&&(r+=e[Ir++]+Nv(e))),lm(e)){let t=Hv(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:cr.Hue,value:r*hG[t]}:void 0}return e[Ir]==="%"?(Ir++,{type:cr.Percentage,value:+r}):{type:cr.Number,value:+r}}function Nv(e){let r="";for(;/\d/.test(e[Ir]);)r+=e[Ir++];return r}function Hv(e){let r="";for(;Ir4)){if(t.length===4){if(t[3].type!==cr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:cr.None,value:void 0}),t.every(n=>n.type!==cr.Alpha)?t:void 0}}function yG(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==cr.Function)return;let a=k_(e,r);if(a)return a.unshift(t.value),a}var bG=e=>{if(typeof e!="string")return;let r=mG(e),t=r?yG(r,!0):void 0,a,n=0,i=i0.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,D_=_G,Ro=(e,r,t)=>e+t*(r-e),wG=(e,r,t)=>(t-e)/(r-e),om=(e,r,t,a,n,i)=>Ro(Ro(e,r,n),Ro(t,a,n),i),MG=(e,r,t,a,n,i,l,o,s,u,f)=>Ro(om(e,r,t,a,s,u),om(n,i,l,o,s,u),f),TG=e=>{let r=[];for(let t=0;tr=>{let t=TG(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},xr=L_(Ro),ca=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},AG={mode:"rgb",channels:["r","g","b","alpha"],parse:[S_,w_,M_,__,D_,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:ca}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Io=AG,Fp=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),kG=e=>{let r=Fp(e.r),t=Fp(e.g),a=Fp(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},sm=kG,Np=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),CG=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:Np(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Np(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Np(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},um=CG,Ip=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},SG=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Ip(e),g:Ip(r),b:Ip(t)};return a!==void 0&&(n.alpha=a),n},Bo=SG,DG=e=>{let{r,g:t,b:a,alpha:n}=Bo(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},Pl=DG,Bp=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},LG=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Bp(e),g:Bp(r),b:Bp(t)};return a!==void 0&&(i.alpha=a),i},Ho=LG,qG=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ho({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},zl=qG,EG=kt(lt({},Io),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>um(Pl(e)),xyz65:um},toMode:{rgb:e=>zl(sm(e)),xyz65:sm}}),q_=EG,PG=e=>(e=e%360)<0?e+360:e,za=PG,Jv=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=za(t);return a===0||e[a-1]===void 0?i:r(i-za(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Bi=e=>Jv(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),zG=e=>Jv(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),RG=e=>Jv(e,r=>r>=0?r:r+360),FG=e=>Jv(e,r=>r<=0?r:r-360),Sa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],NG=Math.PI/180,IG=180/Math.PI,u_=Sa[3]*Sa[4],f_=Sa[1]*Sa[4],c_=Sa[1]*Sa[2]-Sa[0]*Sa[3],BG=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(c_*t+e*u_-r*f_)/(c_+u_-f_),i=t-n,l=(Sa[4]*(r-n)-Sa[2]*i)/Sa[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Sa[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*IG-120),a!==void 0&&(o.alpha=a),o},E_=BG,HG=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*NG,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Sa[0]*l+Sa[1]*o),n.g=t+i*(Sa[2]*l+Sa[3]*o),n.b=t+i*(Sa[4]*l+Sa[5]*o),a!==void 0&&(n.alpha=a),n},P_=HG,rf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=za(e.h),a=za(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},z_=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=za(e.h),a=za(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},tf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=za(e.h),a=za(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},l0=(e="rgb",r=[1,1,1,0])=>{let t=Ga(e),a=t.channels,n=t.difference,i=bt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,v,d)=>{let h=n[v]?n[v](s,u):s[v]-u[v];return f+(r[d]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},OG=()=>l0("lab65"),YG=(e=1,r=.045,t=.015)=>{let a=bt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,v=Math.sqrt(u*u+f*f),d=o.l,h=o.a,m=o.b,y=Math.sqrt(h*h+m*m),g=Math.pow(s-d,2),x=Math.pow(v-y,2),w=Math.pow(u-h,2)+Math.pow(f-m,2)-x;return Math.sqrt(g/Math.pow(e,2)+x/Math.pow(1+r*v,2)+w/Math.pow(1+t*v,2))}},UG=(e=1,r=1,t=1)=>{let a=bt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,v=Math.sqrt(u*u+f*f),d=o.l,h=o.a,m=o.b,y=Math.sqrt(h*h+m*m),g=(v+y)/2,x=.5*(1-Math.sqrt(Math.pow(g,7)/(Math.pow(g,7)+Math.pow(25,7)))),w=u*(1+x),T=h*(1+x),b=Math.sqrt(w*w+f*f),M=Math.sqrt(T*T+m*m),S=Math.abs(w)+Math.abs(f)===0?0:Math.atan2(f,w);S+=(S<0)*2*Math.PI;let A=Math.abs(T)+Math.abs(m)===0?0:Math.atan2(m,T);A+=(A<0)*2*Math.PI;let L=d-s,q=M-b,P=b*M===0?0:A-S;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let R=2*Math.sqrt(b*M)*Math.sin(P/2),N=(s+d)/2,B=(b+M)/2,I;b*M===0?I=S+A:(I=(S+A)/2,I-=(Math.abs(S-A)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let H=Math.pow(N-50,2),Y=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),G=1+.015*H/Math.sqrt(20+H),O=1+.045*B,X=1+.015*B*Y,J=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),Z=2*Math.sqrt(Math.pow(B,7)/(Math.pow(B,7)+Math.pow(25,7))),ee=-1*Math.sin(2*J)*Z;return Math.sqrt(Math.pow(L/(e*G),2)+Math.pow(q/(r*O),2)+Math.pow(R/(t*X),2)+ee*q/(r*O)*R/(t*X))}},GG=(e=1,r=1)=>{let t=bt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let v=t(n),d=v.l,h=v.a,m=v.b,y=Math.sqrt(h*h+m*m),g=Math.pow(l-d,2),x=Math.pow(u-y,2),w=Math.pow(o-h,2)+Math.pow(s-m,2)-x,T=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=l<16?.511:.040975*l/(1+.01765*l),S=.0638*u/(1+.0131*u)+.638,A=S*(T*b+1-T);return Math.sqrt(g/Math.pow(e*M,2)+x/Math.pow(r*S,2)+w/Math.pow(A,2))}},VG=()=>{let e=bt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},XG=()=>l0("yiq",[.5053,.299,.1957]),WG=()=>l0("itp",[518400,129600,518400]),Hi=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},R_=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Hp=e=>typeof e=="function";function ZG(e,r="rgb",t){let a=Ga(r),n=e.map(bt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;Hp(t)?s=t:t&&Hp(t[l])?s=t[l]:a.average&&Hp(a.average[l])?s=a.average[l]:s=R_,i[l]=s(o,l)}return i},{mode:r})}var JG={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:E_},toMode:{rgb:P_},interpolate:{h:{use:xr,fixup:Bi},s:xr,l:xr,alpha:{use:xr,fixup:ca}},difference:{h:rf},average:{h:Hi}},F_=JG,$G=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),l={mode:n,l:e,c:i};return i&&(l.h=za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},ul=$G,KG=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},fl=KG,N_=Math.pow(29,3)/Math.pow(3,3),I_=Math.pow(6,3)/Math.pow(29,3),fa={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},a0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Ede=Math.pow(29,3)/Math.pow(3,3),Pde=Math.pow(6,3)/Math.pow(29,3),Op=e=>Math.pow(e,3)>I_?Math.pow(e,3):(116*e-16)/N_,jG=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz65",x:Op(i)*a0.X,y:Op(n)*a0.Y,z:Op(l)*a0.Z};return a!==void 0&&(o.alpha=a),o},Lm=jG,QG=e=>zl(Lm(e)),af=QG,Yp=e=>e>I_?Math.cbrt(e):(N_*e+16)/116,eV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Yp(e/a0.X),i=Yp(r/a0.Y),l=Yp(t/a0.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},qm=eV,rV=e=>{let r=qm(Pl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},nf=rV,Ov=1,B_=1,ef=26/180*Math.PI,Yv=Math.cos(ef),Uv=Math.sin(ef),H_=100/Math.log(139/100),tV=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Ov/H_)-1)/.0039},i=(Math.exp(.0435*r*B_*Ov)-1)/.075,l=i*Math.cos(t/180*Math.PI-ef),o=i*Math.sin(t/180*Math.PI-ef);return n.a=l*Yv-o/.83*Uv,n.b=l*Uv+o/.83*Yv,a!==void 0&&(n.alpha=a),n},Gv=tV,aV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Yv+t*Uv,i=.83*(t*Yv-r*Uv),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:H_/Ov*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*B_*Ov)};return o.c&&(o.h=za((Math.atan2(i,n)+ef)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},Vv=aV,v_=e=>Gv(ul(e,"dlch")),d_=e=>fl(Vv(e),"dlab"),nV={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:v_,rgb:e=>af(v_(e))},fromMode:{lab65:d_,rgb:e=>d_(nf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:ca}}},O_=nV,iV={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gv,dlab:e=>fl(e,"dlab"),rgb:e=>af(Gv(e))},fromMode:{lab65:Vv,dlab:e=>ul(e,"dlch"),rgb:e=>Vv(nf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:xr,c:xr,h:{use:xr,fixup:Bi},alpha:{use:xr,fixup:ca}},difference:{h:tf},average:{h:Hi}},Y_=iV;function U_({h:e,s:r,i:t,alpha:a}){e=za(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function G_({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},sV=oV,uV=new RegExp(`^hsla?\\(\\s*${iG}${n0}${ju}${n0}${ju}\\s*(?:,\\s*${Sm}\\s*)?\\)$`),fV=e=>{let r=e.match(uV);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=sV(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},Z_=fV;function cV(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Percentage)return;t.h=a.value}if(n.type!==cr.None){if(n.type===cr.Hue)return;t.s=n.value/100}if(i.type!==cr.None){if(i.type===cr.Hue)return;t.l=i.value/100}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var J_=cV,vV={mode:"hsl",toMode:{rgb:X_},fromMode:{rgb:W_},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[J_,Z_],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Bi},s:xr,l:xr,alpha:{use:xr,fixup:ca}},difference:{h:rf},average:{h:Hi}},Em=vV;function Pm({h:e,s:r,v:t,alpha:a}){e=za(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function zm({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return Pm({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function K_(e){let r=zm(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function hV(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Percentage)return;t.h=a.value}if(n.type!==cr.None){if(n.type===cr.Hue)return;t.w=n.value/100}if(i.type!==cr.None){if(i.type===cr.Hue)return;t.b=i.value/100}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var j_=hV,pV={mode:"hwb",toMode:{rgb:$_},fromMode:{rgb:K_},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[j_],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Bi},w:xr,b:xr,alpha:{use:xr,fixup:ca}},difference:{h:z_},average:{h:Hi}},Q_=pV,e7=203,$v=.1593017578125,r7=78.84375,Kv=.8359375,jv=18.8515625,Qv=18.6875;function Up(e){if(e<0)return 0;let r=Math.pow(e,1/r7);return 1e4*Math.pow(Math.max(0,r-Kv)/(jv-Qv*r),1/$v)}function Gp(e){if(e<0)return 0;let r=Math.pow(e/1e4,$v);return Math.pow((Kv+jv*r)/(1+Qv*r),r7)}var Vp=e=>Math.max(e/e7,0),mV=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Up(e+.008609037037932761*r+.11102962500302593*t),i=Up(e-.00860903703793275*r-.11102962500302599*t),l=Up(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:Vp(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:Vp(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:Vp(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},fm=mV,Xp=(e=0)=>Math.max(e*e7,0),gV=({x:e,y:r,z:t,alpha:a})=>{let n=Xp(e),i=Xp(r),l=Xp(t),o=Gp(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=Gp(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=Gp(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,v=1.61376953125*o-3.323486328125*s+1.709716796875*u,d=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:v,p:d};return a!==void 0&&(h.alpha=a),h},cm=gV,yV={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:fm,rgb:e=>zl(fm(e))},fromMode:{xyz65:cm,rgb:e=>cm(Pl(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:ca}}},t7=yV,bV=134.03437499999998,xV=16295499532821565e-27,Wp=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,$v);return Math.pow((Kv+jv*r)/(1+Qv*r),bV)},Zp=(e=0)=>Math.max(e*203,0),_V=({x:e,y:r,z:t,alpha:a})=>{e=Zp(e),r=Zp(r),t=Zp(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=Wp(.41478972*n+.579999*i+.014648*t),o=Wp(-.20151*n+1.120649*i+.0531008*t),s=Wp(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-xV,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},Fm=_V,wV=134.03437499999998,h_=16295499532821565e-27,Jp=e=>{if(e<0)return 0;let r=Math.pow(e,1/wV);return 1e4*Math.pow((Kv-r)/(Qv*r-jv),1/$v)},$p=e=>e/203,MV=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+h_)/(.44+.56*(e+h_)),i=Jp(n+.13860504*r+.058047316*t),l=Jp(n-.13860504*r-.058047316*t),o=Jp(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:$p(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:$p(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:$p(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},Nm=MV,TV=e=>{let r=Fm(Pl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Im=TV,AV=e=>zl(Nm(e)),Bm=AV,kV={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Im,xyz65:Fm},toMode:{rgb:Bm,xyz65:Nm},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:ca}}},a7=kV,CV=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},vm=CV,SV=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},dm=SV,DV={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:dm,rgb:e=>Bm(dm(e))},fromMode:{rgb:e=>vm(Im(e)),jab:vm},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:Bi},c:xr,j:xr,alpha:{use:xr,fixup:ca}},difference:{h:tf},average:{h:Hi}},n7=DV,e2=Math.pow(29,3)/Math.pow(3,3),Hm=Math.pow(6,3)/Math.pow(29,3),Kp=e=>Math.pow(e,3)>Hm?Math.pow(e,3):(116*e-16)/e2,LV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz50",x:Kp(i)*fa.X,y:Kp(n)*fa.Y,z:Kp(l)*fa.Z};return a!==void 0&&(o.alpha=a),o},r2=LV,qV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ho({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},o0=qV,EV=e=>o0(r2(e)),Om=EV,PV=e=>{let{r,g:t,b:a,alpha:n}=Bo(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},s0=PV,jp=e=>e>Hm?Math.cbrt(e):(e2*e+16)/116,zV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=jp(e/fa.X),i=jp(r/fa.Y),l=jp(t/fa.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},t2=zV,RV=e=>{let r=t2(s0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Ym=RV;function FV(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===cr.Hue||n.type===cr.Hue||i.type===cr.Hue))return a.type!==cr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==cr.None&&(t.a=n.type===cr.Number?n.value:n.value*125/100),i.type!==cr.None&&(t.b=i.type===cr.Number?i.value:i.value*125/100),l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var i7=FV,NV={mode:"lab",toMode:{xyz50:r2,rgb:Om},fromMode:{xyz50:t2,rgb:Ym},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[i7],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:ca}}},a2=NV,IV=kt(lt({},a2),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Lm,rgb:af},fromMode:{xyz65:qm,rgb:nf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),l7=IV;function BV(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==cr.None&&(t.c=Math.max(0,n.type===cr.Number?n.value:n.value*150/100)),i.type!==cr.None){if(i.type===cr.Percentage)return;t.h=i.value}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var o7=BV,HV={mode:"lch",toMode:{lab:fl,rgb:e=>Om(fl(e))},fromMode:{rgb:e=>ul(Ym(e)),lab:ul},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[o7],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Bi},c:xr,l:xr,alpha:{use:xr,fixup:ca}},difference:{h:tf},average:{h:Hi}},n2=HV,OV=kt(lt({},n2),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>fl(e,"lab65"),rgb:e=>af(fl(e,"lab65"))},fromMode:{rgb:e=>ul(nf(e),"lch65"),lab65:e=>ul(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),s7=OV,YV=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Um=YV,UV=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Gm=UV,u7=(e,r,t)=>4*e/(e+15*r+3*t),f7=(e,r,t)=>9*r/(e+15*r+3*t),GV=u7(fa.X,fa.Y,fa.Z),VV=f7(fa.X,fa.Y,fa.Z),XV=e=>e<=Hm?e2*e:116*Math.cbrt(e)-16,WV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=XV(r/fa.Y),i=u7(e,r,t),l=f7(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-GV),l=13*n*(l-VV));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},Xv=WV,ZV=(e,r,t)=>4*e/(e+15*r+3*t),JV=(e,r,t)=>9*r/(e+15*r+3*t),$V=ZV(fa.X,fa.Y,fa.Z),KV=JV(fa.X,fa.Y,fa.Z),jV=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+$V,i=t/(13*e)+KV,l=fa.Y*(e<=8?e/e2:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},Wv=jV,QV=e=>Um(Xv(s0(e))),eX=e=>o0(Wv(Gm(e))),rX={mode:"lchuv",toMode:{luv:Gm,rgb:eX},fromMode:{rgb:QV,luv:Um},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:xr,fixup:Bi},c:xr,l:xr,alpha:{use:xr,fixup:ca}},difference:{h:tf},average:{h:Hi}},c7=rX,tX=kt(lt({},Io),{mode:"lrgb",toMode:{rgb:Ho},fromMode:{rgb:Bo},parse:["srgb-linear"],serialize:"srgb-linear"}),v7=tX,aX={mode:"luv",toMode:{xyz50:Wv,rgb:e=>o0(Wv(e))},fromMode:{xyz50:Xv,rgb:e=>Xv(s0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:xr,u:xr,v:xr,alpha:{use:xr,fixup:ca}}},d7=aX,nX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},Vm=nX,iX=e=>{let r=Vm(Bo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},lf=iX,lX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},u0=lX,oX=e=>Ho(u0(e)),of=oX;function hm(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Zv(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function sX(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,v=.3963377774*e+.2158037573*r,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let m=1+f*v,y=1+f*d,g=1+f*h,x=m*m*m,w=y*y*y,T=g*g*g,b=3*v*m*m,M=3*d*y*y,S=3*h*g*g,A=6*v*v*m,L=6*d*d*y,q=6*h*h*g,P=o*x+s*w+u*T,R=o*b+s*M+u*S,N=o*A+s*L+u*q;f=f-P*R/(R*R-.5*P*N)}return f}function Xm(e,r){let t=sX(e,r),a=u0({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function uX(e,r,t,a,n,i=null){i||(i=Xm(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,v=-.0894841775*e-1.291485548*r,d=o+s*u,h=o+s*f,m=o+s*v;{let y=n*(1-l)+l*t,g=l*a,x=y+g*u,w=y+g*f,T=y+g*v,b=x*x*x,M=w*w*w,S=T*T*T,A=3*d*x*x,L=3*h*w*w,q=3*m*T*T,P=6*d*d*x,R=6*h*h*w,N=6*m*m*T,B=4.0767416621*b-3.3077115913*M+.2309699292*S-1,I=4.0767416621*A-3.3077115913*L+.2309699292*q,H=4.0767416621*P-3.3077115913*R+.2309699292*N,Y=I/(I*I-.5*B*H),G=-B*Y,O=-1.2684380046*b+2.6097574011*M-.3413193965*S-1,X=-1.2684380046*A+2.6097574011*L-.3413193965*q,J=-1.2684380046*P+2.6097574011*R-.3413193965*N,Z=X/(X*X-.5*O*J),ee=-O*Z,ne=-.0041960863*b-.7034186147*M+1.707614701*S-1,fe=-.0041960863*A-.7034186147*L+1.707614701*q,we=-.0041960863*P-.7034186147*R+1.707614701*N,j=fe/(fe*fe-.5*ne*we),_e=-ne*j;G=Y>=0?G:1e6,ee=Z>=0?ee:1e6,_e=j>=0?_e:1e6,l+=Math.min(G,Math.min(ee,_e))}}}return l}function Wm(e,r,t=null){t||(t=Xm(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function h7(e,r,t){let a=Xm(r,t),n=uX(r,t,e,1,e,a),i=Wm(r,t,a),l=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),o=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*l,f=(1-e)*o,v=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),v,n]}function pm(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:hm(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[l,o,s]=h7(r,t/i,a/i),u;if(ipm(lf(e))},toMode:{oklab:mm,rgb:e=>of(mm(e))}}),p7=fX;function gm(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,l=n?a/n:1,[o,s]=Wm(i,l),u=.5,f=1-u/o,v=s/(n+r*s),d=v*r,h=v*n,m=Zv(d),y=h*m/d,g=u0({l:m,a:i*y,b:l*y}),x=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));r=r/x,n=n/x*hm(r)/r,r=hm(r);let w={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return w.s&&(w.h=za(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function ym(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[o,s]=Wm(i,l),u=.5,f=1-u/o,v=1-a*u/(u+s-s*f*a),d=a*s*u/(u+s-s*f*a),h=Zv(v),m=d*h/v,y=u0({l:h,a:i*m,b:l*m}),g=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),x=Zv(n*v),w=d*x/v;return r.l=x*g,r.a=w*i*g,r.b=w*l*g,r}var cX=kt(lt({},Rm),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:gm,rgb:e=>gm(lf(e))},toMode:{oklab:ym,rgb:e=>of(ym(e))}}),m7=cX;function vX(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===cr.Hue||n.type===cr.Hue||i.type===cr.Hue))return a.type!==cr.None&&(t.l=Math.min(Math.max(0,a.type===cr.Number?a.value:a.value/100),1)),n.type!==cr.None&&(t.a=n.type===cr.Number?n.value:n.value*.4/100),i.type!==cr.None&&(t.b=i.type===cr.Number?i.value:i.value*.4/100),l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var g7=vX,dX=kt(lt({},a2),{mode:"oklab",toMode:{lrgb:u0,rgb:of},fromMode:{lrgb:Vm,rgb:lf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[g7],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),y7=dX;function hX(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Hue)return;t.l=Math.min(Math.max(0,a.type===cr.Number?a.value:a.value/100),1)}if(n.type!==cr.None&&(t.c=Math.max(0,n.type===cr.Number?n.value:n.value*.4/100)),i.type!==cr.None){if(i.type===cr.Percentage)return;t.h=i.value}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var b7=hX,pX=kt(lt({},n2),{mode:"oklch",toMode:{oklab:e=>fl(e,"oklab"),rgb:e=>of(fl(e,"oklab"))},fromMode:{rgb:e=>ul(lf(e),"oklch"),oklab:e=>ul(e,"oklch")},parse:[b7],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),x7=pX,mX=e=>{let{r,g:t,b:a,alpha:n}=Bo(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},bm=mX,gX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ho({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},xm=gX,yX=kt(lt({},Io),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>xm(Pl(e)),xyz65:xm},toMode:{rgb:e=>zl(bm(e)),xyz65:bm}}),_7=yX,Qp=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},bX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:Qp(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Qp(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Qp(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},_m=bX,em=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},xX=e=>{let r=em(e.r),t=em(e.g),a=em(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},wm=xX,_X=kt(lt({},Io),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:_m,rgb:e=>_m(s0(e))},toMode:{xyz50:wm,rgb:e=>o0(wm(e))}}),w7=_X,p_=1.09929682680944,wX=.018053968510807,rm=e=>{let r=Math.abs(e);return r>wX?(Math.sign(e)||1)*(p_*Math.pow(r,.45)-(p_-1)):4.5*e},MX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:rm(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:rm(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:rm(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},Mm=MX,m_=1.09929682680944,TX=.018053968510807,tm=(e=0)=>{let r=Math.abs(e);return r{let r=tm(e.r),t=tm(e.g),a=tm(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Tm=AX,kX=kt(lt({},Io),{mode:"rec2020",fromMode:{xyz65:Mm,rgb:e=>Mm(Pl(e))},toMode:{xyz65:Tm,rgb:e=>zl(Tm(e))},parse:["rec2020"],serialize:"rec2020"}),M7=kX,Fo=.0037930732552754493,T7=Math.cbrt(Fo),am=e=>Math.cbrt(e)-T7,CX=e=>{let{r,g:t,b:a,alpha:n}=Bo(e),i=am(.3*r+.622*t+.078*a+Fo),l=am(.23*r+.692*t+.078*a+Fo),o=am(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Fo),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},A7=CX,nm=e=>Math.pow(e+T7,3),SX=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=nm(e+r)-Fo,i=nm(r-e)-Fo,l=nm(t+r)-Fo,o=Ho({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},k7=SX,DX={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:k7},fromMode:{rgb:A7},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:ca}}},C7=DX,LX={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:o0,lab:t2},fromMode:{rgb:s0,lab:r2},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:ca}}},S7=LX,qX=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},D7=qX,EX=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},L7=EX,PX={mode:"xyz65",toMode:{rgb:zl,xyz50:D7},fromMode:{rgb:Pl,xyz50:L7},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:ca}}},q7=PX,zX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},E7=zX,RX=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},P7=RX,FX={mode:"yiq",toMode:{rgb:P7},fromMode:{rgb:E7},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:xr,i:xr,q:xr,alpha:{use:xr,fixup:ca}}},z7=FX,NX=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,IX=(e=4)=>r=>typeof r=="number"?NX(r,e):r,R7=IX,Ku=R7(2),Qu=e=>Math.max(0,Math.min(1,e||0)),No=e=>Math.round(Qu(e)*255),Zm=bt("rgb"),BX=bt("hsl"),Jm=e=>{if(e===void 0)return;let r=No(e.r),t=No(e.g),a=No(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},F7=e=>{if(e===void 0)return;let r=No(e.alpha!==void 0?e.alpha:1);return Jm(e)+(256|r).toString(16).slice(1)},N7=e=>{if(e===void 0)return;let r=No(e.r),t=No(e.g),a=No(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${Ku(Qu(e.alpha))})`},I7=e=>{if(e===void 0)return;let r=Ku(e.h||0),t=Ku(Qu(e.s)*100)+"%",a=Ku(Qu(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${Ku(Qu(e.alpha))})`},HX=e=>{let r=di(e);if(!r)return;let t=Ga(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},OX=e=>Jm(Zm(e)),YX=e=>F7(Zm(e)),UX=e=>N7(Zm(e)),GX=e=>I7(BX(e)),VX={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},XX=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:VX[r],n=bt(t),i=Ga(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,v)=>(v!=="alpha"&&(u===0?f[v]=0:(f[v]=s.alpha*(1-o.alpha)*s[v]+s.alpha*o.alpha*a(o[v],s[v])+(1-s.alpha)*o.alpha*o[v],f[v]=Math.max(0,Math.min(1,f[v]/u)))),f),{mode:t,alpha:u})})},WX=XX,ZX=([e,r])=>e+Math.random()*(r-e),JX=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),$X=(e="rgb",r={})=>{let t=Ga(e),a=JX(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=ZX(a[i]||t.ranges[i])),n),{mode:e})},KX=$X,sf=(e,r="rgb",t=!1)=>{let a=r?Ga(r).channels:null,n=r?bt(r):di;return i=>{let l=n(i);if(!l)return;let o=(a||Ga(l.mode).channels).reduce((u,f)=>{let v=e(l[f],f,l,r);return v!==void 0&&!isNaN(v)&&(u[f]=v),u},{mode:l.mode});if(!t)return o;let s=di(i);return s&&s.mode!==o.mode?bt(s.mode)(o):o}},B7=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,H7=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,$m=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,jX=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,QX=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),O7=rW,Iv=e=>typeof e=="function",zo=e=>e&&typeof e=="object",g_=e=>typeof e=="number",Y7=(e,r="rgb",t,a)=>{let n=Ga(r),i=bt(r),l=[],o=[],s={};e.forEach(d=>{Array.isArray(d)?(l.push(i(d[0])),o.push(d[1])):g_(d)||Iv(d)?s[o.length]=d:(l.push(i(d)),o.push(void 0))}),eW(o);let u=n.channels.reduce((d,h)=>{let m;return zo(t)&&zo(t[h])&&t[h].fixup?m=t[h].fixup:zo(n.interpolate[h])&&n.interpolate[h].fixup?m=n.interpolate[h].fixup:m=y=>y,d[h]=m(l.map(y=>y[h])),d},{});if(a){let d=l.map((h,m)=>n.channels.reduce((y,g)=>(y[g]=u[g][m],y),{mode:r}));u=n.channels.reduce((h,m)=>(h[m]=d.map(y=>{let g=a(y[m],m,y,r);return isNaN(g)?void 0:g}),h),{})}let f=n.channels.reduce((d,h)=>{let m;return Iv(t)?m=t:zo(t)&&Iv(t[h])?m=t[h]:zo(t)&&zo(t[h])&&t[h].use?m=t[h].use:Iv(n.interpolate[h])?m=n.interpolate[h]:zo(n.interpolate[h])&&(m=n.interpolate[h].use),d[h]=m(u[h]),d},{}),v=l.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=o[0])return l[0];if(d>o[v])return l[v];let h=0;for(;o[h]{let M=f[b](w);return M!==void 0&&(T[b]=M),T},{mode:r})}},tW=(e,r="rgb",t)=>Y7(e,r,t),U7=(e,r)=>(t,a="rgb",n)=>{let i=r?sf(r,a):void 0,l=Y7(t,a,n,e);return i?o=>i(l(o)):l},aW=U7(B7,H7),Bv=(e,r)=>(e+r)%r,G7=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},V7=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return G7(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return G7(e[Bv(a-1,e.length)],e[Bv(a,e.length)],e[Bv(a+1,e.length)],e[Bv(a+2,e.length)],(r-a/t)*t)},W7=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},nW=e=>V7(W7(e)),iW=e=>X7(W7(e)),t0=Math.sign,Am=Math.min,wn=Math.abs,Km=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(t0(t[i-1])+t0(t[i]))*Am(wn(t[i-1]),wn(t[i]),.5*wn(a[i])):void 0);return[t,a,n]},jm=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},lW=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,a]=Km(e);return a[0]=t[0],a[r]=t[r-1],jm(e,a,t)},oW=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,a,n]=Km(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:wn(a[0])>2*wn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:wn(a[r])>2*wn(t[r-1])?2*t[r-1]:a[r],jm(e,n,t)},sW=e=>{let r=e.length-1,[t,a,n]=Km(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,l=i;return n[0]=(t0(i)+t0(t[0]))*Am(wn(i),wn(t[0]),.5*wn(a[0])),n[r]=(t0(t[r-1])+t0(l))*Am(wn(t[r-1]),wn(l),.5*wn(a[r])),jm(e,n,t)},uW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),Z7=uW,fW=(e=2,r=1)=>{let t=Z7(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},K7=e=>$7(J7(e)),j7=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function Qm(e){return j7(J7(e))}function i2(e="rgb"){let{gamut:r}=Ga(e);if(!r)return a=>!0;let t=bt(typeof r=="string"?r:e);return a=>j7(t(a))}function vW(e){return e=di(e),e===void 0||Qm(e)?e:bt(e.mode)(K7(e))}function eg(e="rgb"){let{gamut:r}=Ga(e);if(!r)return i=>di(i);let t=typeof r=="string"?r:e,a=bt(t),n=i2(t);return i=>{let l=di(i);if(!l)return;let o=a(l);if(n(o))return l;let s=$7(o);return l.mode===s.mode?s:bt(l.mode)(s)}}function dW(e,r="lch",t="rgb"){e=di(e);let a=t==="rgb"?Qm:i2(t),n=t==="rgb"?K7:eg(t);if(e===void 0||a(e))return e;let i=bt(e.mode);e=bt(r)(e);let l=kt(lt({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=Ga(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),v=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(v=l.c,o=l.c):s=l.c;return i(a(l)?l:kt(lt({},l),{c:v}))}function hW(e="rgb",r="oklch",t=l0("oklch"),a=.02){let n=bt(e),i=Ga(e);if(!i.gamut)return f=>n(f);let l=i2(e),o=eg(e),s=bt(r),{ranges:u}=Ga(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=di(f),f===void 0)return;let v=lt({},s(f));if(v.l===void 0&&(v.l=0),v.c===void 0&&(v.c=0),v.l>=u.l[1]){let g=kt(lt({},i.white),{mode:e});return f.alpha!==void 0&&(g.alpha=f.alpha),g}if(v.l<=u.l[0]){let g=kt(lt({},i.black),{mode:e});return f.alpha!==void 0&&(g.alpha=f.alpha),g}if(l(v))return n(v);let d=0,h=v.c,m=(u.c[1]-u.c[0])/4e3,y=o(v);for(;h-d>m;)v.c=(d+h)*.5,y=o(v),l(v)||t&&a>0&&t(v,y)<=a?d=v.c:h=v.c;return n(l(v)?v:y)}}var pW=(e,r=l0(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.de[o.i]))},mW=pW,rg=e=>Math.max(e,0),tg=e=>Math.max(Math.min(e,1),0),gW=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),yW=e=>{let r=1-tg(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},bW=e=>{let r=rg(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},xW=e=>{let r=1-tg(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},_W=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},l2=(e,r,t=!1)=>{let a=bt(r),n=Ga(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let v=0;v{let t=rg(e);return sf($m(t),r,!0)},MW=(e=1,r="rgb")=>{let t=rg(e);return sf($m(t,(1-t)/2),r,!0)},TW=(e=1,r="rgb")=>l2(yW(e),r,!0),AW=(e=1,r="rgb")=>l2(bW(e),r,!0),kW=(e=1,r="rgb")=>l2(xW(e),r,!0),CW=(e=1,r="rgb")=>{let t=tg(e);return sf((a,n)=>n==="alpha"?a:gW(t,1-t,a),r,!0)},SW=(e=0,r="rgb")=>l2(_W(e),r,!0),DW=bt("rgb"),LW=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],qW=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],EW=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],ag=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aRo(i[s],l[s],n))}return l=>{let o=di(l);if(o===void 0)return;let{r:s,g:u,b:f}=DW(o),v={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return o.alpha!==void 0&&(v.alpha=o.alpha),bt(o.mode)(v)}},PW=(e=1)=>ag(LW,e),zW=(e=1)=>ag(qW,e),RW=(e=1)=>ag(EW,e),FW=e=>e*e*(3-2*e),NW=e=>.5-Math.sin(Math.asin(1-2*e)/3),IW=e=>e*e*e*(e*(e*6-15)+10),BW=IW,HW=e=>(1-Math.cos(e*Math.PI))/2,OW=HW;function km(e){let r=bt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function YW(e,r){let t=km(e),a=km(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var UW=ut(q_),GW=ut(F_),VW=ut(O_),XW=ut(Y_),WW=ut(V_),ZW=ut(Em),JW=ut(Rm),$W=ut(Q_),KW=ut(t7),jW=ut(a7),QW=ut(n7),eZ=ut(a2),rZ=ut(l7),tZ=ut(n2),aZ=ut(s7),nZ=ut(c7),iZ=ut(v7),lZ=ut(d7),oZ=ut(p7),sZ=ut(m7),uZ=ut(y7),fZ=ut(x7),cZ=ut(_7),vZ=ut(w7),dZ=ut(M7),hZ=ut(Io),pZ=ut(C7),mZ=ut(S7),gZ=ut(q7),yZ=ut(z7)});var Rl=W((Fde,n8)=>{"use strict";var r8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},t8={};function a8(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),a8(a,r[t]))}}a8(r8,t8);n8.exports={configAttributes:r8,dfltConfig:t8}});var ig=W((Nde,i8)=>{"use strict";var ng=Hr(),bZ=Vr(),uf=[];i8.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||uf.indexOf(e)!==-1)return;uf.push(e);var a=1e3;bZ(r)?a=r:r==="long"&&(a=3e3);var n=ng.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(uf);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=uf.indexOf(u);f!==-1&&uf.splice(f,1),ng.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=ng.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),v=s.split(//g),d=0;d{"use strict";var f0=Rl().dfltConfig,lg=ig(),og=l8.exports={};og.log=function(){var e;if(f0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};og.warn=function(){var e;if(f0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};og.error=function(){var e;if(f0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Oi=W(Oo=>{"use strict";Oo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Oo.defaultLine="#444";Oo.lightLine="#eee";Oo.background="#fff";Oo.borderLine="#BEC8D9";Oo.lightFraction=1e3/11});var Fr=W((Hde,p8)=>{"use strict";var{converter:o8,formatHex:xZ,formatRgb:_Z,wcagContrast:wZ,wcagLuminance:MZ}=e8(),{isArrayOrTypedArray:s8}=un(),{warn:TZ}=Fl(),{background:cf,defaultLine:fg,defaults:AZ,lightLine:kZ}=Oi(),u8=o8("rgb"),CZ=o8("hsl"),f8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return u8(r)}catch(t){return}},Va=e=>e>0?e>1?1:e:0,SZ={mode:"rgb",r:0,g:0,b:0,alpha:1},sg=e=>Math.round(e*255e6)/255e6,c8=e=>kt(lt({},e),{r:sg(e.r),g:sg(e.g),b:sg(e.b)}),Mn=e=>_Z(c8(e)),DZ=e=>xZ(c8(e)),LZ=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:s8(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Et=(e,r)=>{var a;let t=f8(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&TZ(`Invalid color specifier: ${LZ(e)}. Defaulting to "#000"`),SZ)},ff=e=>Mn(kt(lt({},Et(e)),{alpha:1})),qZ=e=>e?Et(e).alpha:0,v8=e=>s8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),EZ=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},PZ=(e,r)=>{let t=v8(e)?EZ(e):Et(e,!0),a=[Va(t.r),Va(t.g),Va(t.b),Va(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},zZ=(e,r)=>Mn(kt(lt({},Et(e)),{alpha:Va(r)})),d8=(e,r)=>{let t=Et(e),a=t.alpha;if(a===1)return Mn(t);let n=Et(r||cf),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Mn({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},RZ=(e,r,t)=>{let a=Et(e),n=Et(r),i=(l,o)=>t*l+(1-t)*o;return Mn({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},ug=(e,r)=>{let t=Et(e),a=CZ(t)||{mode:"hsl",h:0,s:0,l:0};return Mn(u8(kt(lt({},a),{l:Va((a.l*100+r)/100),alpha:t.alpha})))},o2=(e,r)=>wZ(Et(e),Et(r)),h8=e=>o2(e,cf)>o2(e,fg),FZ=Mn(Et(cf)),NZ=Mn(Et(fg)),IZ=(e,r,t)=>(Et(e).alpha!==1&&(e=d8(e,cf)),h8(e)?r?ug(e,r):FZ:t?ug(e,-t):NZ),BZ=(e,r)=>{e.style({stroke:ff(r),"stroke-opacity":Et(r).alpha})},HZ=(e,r)=>{e.style({fill:ff(r),"fill-opacity":Et(r).alpha})},OZ=(e,r)=>!!(e&&r&&ff(e)===ff(r)),YZ=e=>f8(e)!==void 0,UZ=(e,r)=>{r=r===0?0:r||10;let t=Et(e),a=r/100;return Mn(kt(lt({},t),{r:Va(t.r+a),g:Va(t.g+a),b:Va(t.b+a)}))},GZ=(e,r,t)=>{let a=Et(e),n=Et(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(v,d)=>u*v+s*d;return Mn({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},VZ=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=o2(e,n);i>a&&(a=i,t=Mn(Et(n)))}return t},XZ=e=>Mn(Et(e)),WZ=e=>DZ(Et(e)).toUpperCase(),ZZ=e=>{let r=Et(e);return[Va(r.r)*255,Va(r.g)*255,Va(r.b)*255,Va(r.alpha)]},JZ=([e,r,t,a])=>Mn({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),$Z=e=>{let r=Et(e);return MZ({mode:"rgb",r:Va(r.r),g:Va(r.g),b:Va(r.b)})};p8.exports={addOpacity:zZ,adjustLightness:ug,background:cf,brighten:UZ,combine:d8,contrast:IZ,defaultLine:fg,defaults:AZ,equals:OZ,fill:HZ,hexString:WZ,interpolate:RZ,isChannelArray:v8,isDark:h8,isValid:YZ,lightLine:kZ,luminosity:$Z,mix:GZ,mostReadable:VZ,normalize:PZ,opacity:qZ,parse:Et,rgb:ff,rgbaArray:ZZ,rgbaArrayToString:JZ,rgbaString:XZ,stroke:BZ,wcagContrast:o2}});var Yo=W((Yde,y8)=>{"use strict";var KZ=Fr(),s2={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)"]]},m8=s2.RdBu;function jZ(e,r){if(r||(r=m8),!e)return r;function t(){try{e=s2[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),g8(e)?e:r}function g8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";b8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var c0={};Ou(c0,{counter:()=>eJ});function eJ(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+cg+"y"+cg+n):new RegExp(i+e+cg+n)}var cg,v0=Hu(()=>{"use strict";cg="([2-9]|[1-9][0-9]+)?"});var w8=W(cn=>{"use strict";var vg=Vr(),x8=na().extendFlat,rJ=vi(),tJ=Yo(),dg=Fr(),aJ=u2().DESELECTDIM,d0=Ev(),_8=(v0(),rn(c0)).counter,nJ=(e0(),rn(Qs)).modHalf,hi=un().isArrayOrTypedArray,Nl=un().isTypedArraySpec,Il=un().decodeTypedArraySpec;cn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(hi(e)?e:Nl(e)?Il(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Nl(e)&&(e=Il(e)),!vg(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Nl(e)&&(e=Il(e)),e%1||!vg(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Nl(e)&&(e=Il(e)),dg.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>dg.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(tJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){Nl(e)&&(e=Il(e)),e==="auto"?r.set("auto"):vg(e)?r.set(nJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||_8(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&hi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!_8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";M8.exports=function(){}});var hg=W((Xde,T8)=>{"use strict";T8.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{A8.exports=iJ;function iJ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var S8=W((Zde,C8)=>{C8.exports=lJ;function lJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var L8=W((Jde,D8)=>{D8.exports=oJ;function oJ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var pg=W(($de,q8)=>{q8.exports=sJ;function sJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var P8=W((Kde,E8)=>{E8.exports=uJ;function uJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var R8=W((jde,z8)=>{z8.exports=fJ;function fJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],d=r[10],h=r[11],m=r[12],y=r[13],g=r[14],x=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,M=a*s-n*o,S=a*u-i*o,A=n*u-i*s,L=f*y-v*m,q=f*g-d*m,P=f*x-h*m,R=v*g-d*y,N=v*x-h*y,B=d*x-h*g,I=w*B-T*N+b*R+M*P-S*q+A*L;return I?(I=1/I,e[0]=(o*B-s*N+u*R)*I,e[1]=(n*N-a*B-i*R)*I,e[2]=(y*A-g*S+x*M)*I,e[3]=(d*S-v*A-h*M)*I,e[4]=(s*P-l*B-u*q)*I,e[5]=(t*B-n*P+i*q)*I,e[6]=(g*b-m*A-x*T)*I,e[7]=(f*A-d*b+h*T)*I,e[8]=(l*N-o*P+u*L)*I,e[9]=(a*P-t*N-i*L)*I,e[10]=(m*S-y*b+x*w)*I,e[11]=(v*b-f*S-h*w)*I,e[12]=(o*q-l*R-s*L)*I,e[13]=(t*R-a*q+n*L)*I,e[14]=(y*T-m*M-g*w)*I,e[15]=(f*M-v*T+d*w)*I,e):null}});var N8=W((Qde,F8)=>{F8.exports=cJ;function cJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],d=r[10],h=r[11],m=r[12],y=r[13],g=r[14],x=r[15];return e[0]=o*(d*x-h*g)-v*(s*x-u*g)+y*(s*h-u*d),e[1]=-(a*(d*x-h*g)-v*(n*x-i*g)+y*(n*h-i*d)),e[2]=a*(s*x-u*g)-o*(n*x-i*g)+y*(n*u-i*s),e[3]=-(a*(s*h-u*d)-o*(n*h-i*d)+v*(n*u-i*s)),e[4]=-(l*(d*x-h*g)-f*(s*x-u*g)+m*(s*h-u*d)),e[5]=t*(d*x-h*g)-f*(n*x-i*g)+m*(n*h-i*d),e[6]=-(t*(s*x-u*g)-l*(n*x-i*g)+m*(n*u-i*s)),e[7]=t*(s*h-u*d)-l*(n*h-i*d)+f*(n*u-i*s),e[8]=l*(v*x-h*y)-f*(o*x-u*y)+m*(o*h-u*v),e[9]=-(t*(v*x-h*y)-f*(a*x-i*y)+m*(a*h-i*v)),e[10]=t*(o*x-u*y)-l*(a*x-i*y)+m*(a*u-i*o),e[11]=-(t*(o*h-u*v)-l*(a*h-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*g-d*y)-f*(o*g-s*y)+m*(o*d-s*v)),e[13]=t*(v*g-d*y)-f*(a*g-n*y)+m*(a*d-n*v),e[14]=-(t*(o*g-s*y)-l*(a*g-n*y)+m*(a*s-n*o)),e[15]=t*(o*d-s*v)-l*(a*d-n*v)+f*(a*s-n*o),e}});var B8=W((ehe,I8)=>{I8.exports=vJ;function vJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],d=e[11],h=e[12],m=e[13],y=e[14],g=e[15],x=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,M=t*s-n*l,S=a*s-n*o,A=u*m-f*h,L=u*y-v*h,q=u*g-d*h,P=f*y-v*m,R=f*g-d*m,N=v*g-d*y;return x*N-w*R+T*P+b*q-M*L+S*A}});var O8=W((rhe,H8)=>{H8.exports=dJ;function dJ(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],d=r[9],h=r[10],m=r[11],y=r[12],g=r[13],x=r[14],w=r[15],T=t[0],b=t[1],M=t[2],S=t[3];return e[0]=T*a+b*o+M*v+S*y,e[1]=T*n+b*s+M*d+S*g,e[2]=T*i+b*u+M*h+S*x,e[3]=T*l+b*f+M*m+S*w,T=t[4],b=t[5],M=t[6],S=t[7],e[4]=T*a+b*o+M*v+S*y,e[5]=T*n+b*s+M*d+S*g,e[6]=T*i+b*u+M*h+S*x,e[7]=T*l+b*f+M*m+S*w,T=t[8],b=t[9],M=t[10],S=t[11],e[8]=T*a+b*o+M*v+S*y,e[9]=T*n+b*s+M*d+S*g,e[10]=T*i+b*u+M*h+S*x,e[11]=T*l+b*f+M*m+S*w,T=t[12],b=t[13],M=t[14],S=t[15],e[12]=T*a+b*o+M*v+S*y,e[13]=T*n+b*s+M*d+S*g,e[14]=T*i+b*u+M*h+S*x,e[15]=T*l+b*f+M*m+S*w,e}});var U8=W((the,Y8)=>{Y8.exports=hJ;function hJ(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,d,h,m,y,g,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],d=r[6],h=r[7],m=r[8],y=r[9],g=r[10],x=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=d,e[7]=h,e[8]=m,e[9]=y,e[10]=g,e[11]=x,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+y*i+r[13],e[14]=s*a+d*n+g*i+r[14],e[15]=u*a+h*n+x*i+r[15]),e}});var V8=W((ahe,G8)=>{G8.exports=pJ;function pJ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var W8=W((nhe,X8)=>{X8.exports=mJ;function mJ(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,d,h,m,y,g,x,w,T,b,M,S,A,L,q,P,R,N,B,I,H;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],d=r[1],h=r[2],m=r[3],y=r[4],g=r[5],x=r[6],w=r[7],T=r[8],b=r[9],M=r[10],S=r[11],A=n*n*f+u,L=i*n*f+l*s,q=l*n*f-i*s,P=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,B=n*l*f+i*s,I=i*l*f-n*s,H=l*l*f+u,e[0]=v*A+y*L+T*q,e[1]=d*A+g*L+b*q,e[2]=h*A+x*L+M*q,e[3]=m*A+w*L+S*q,e[4]=v*P+y*R+T*N,e[5]=d*P+g*R+b*N,e[6]=h*P+x*R+M*N,e[7]=m*P+w*R+S*N,e[8]=v*B+y*I+T*H,e[9]=d*B+g*I+b*H,e[10]=h*B+x*I+M*H,e[11]=m*B+w*I+S*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var J8=W((ihe,Z8)=>{Z8.exports=gJ;function gJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],d=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=d*n-s*a,e}});var K8=W((lhe,$8)=>{$8.exports=yJ;function yJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],d=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+d*n,e}});var Q8=W((ohe,j8)=>{j8.exports=bJ;function bJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],d=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=d*n-s*a,e}});var r9=W((she,e9)=>{e9.exports=xJ;function xJ(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var a9=W((uhe,t9)=>{t9.exports=_J;function _J(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,d=a*u,h=n*s,m=n*u,y=i*u,g=l*o,x=l*s,w=l*u;return e[0]=1-(h+y),e[1]=v+w,e[2]=d-x,e[3]=0,e[4]=v-w,e[5]=1-(f+y),e[6]=m+g,e[7]=0,e[8]=d+x,e[9]=m-g,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var i9=W((fhe,n9)=>{n9.exports=wJ;function wJ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var o9=W((che,l9)=>{l9.exports=MJ;function MJ(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var u9=W((vhe,s9)=>{s9.exports=TJ;function TJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var c9=W((dhe,f9)=>{f9.exports=AJ;function AJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var d9=W((hhe,v9)=>{v9.exports=kJ;function kJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var p9=W((phe,h9)=>{h9.exports=CJ;function CJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,d=n*l,h=n*o,m=n*s,y=i*l,g=i*o,x=i*s;return e[0]=1-v-m,e[1]=f+x,e[2]=d-g,e[3]=0,e[4]=f-x,e[5]=1-u-m,e[6]=h+y,e[7]=0,e[8]=d+g,e[9]=h-y,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var g9=W((mhe,m9)=>{m9.exports=SJ;function SJ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var b9=W((ghe,y9)=>{y9.exports=DJ;function DJ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var _9=W((yhe,x9)=>{x9.exports=LJ;function LJ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var M9=W((bhe,w9)=>{w9.exports=qJ;function qJ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var A9=W((xhe,T9)=>{var EJ=pg();T9.exports=PJ;function PJ(e,r,t,a){var n,i,l,o,s,u,f,v,d,h,m=r[0],y=r[1],g=r[2],x=a[0],w=a[1],T=a[2],b=t[0],M=t[1],S=t[2];return Math.abs(m-b)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(g-S)<1e-6?EJ(e):(f=m-b,v=y-M,d=g-S,h=1/Math.sqrt(f*f+v*v+d*d),f*=h,v*=h,d*=h,n=w*d-T*v,i=T*f-x*d,l=x*v-w*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=v*l-d*i,s=d*n-f*l,u=f*i-v*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=d,e[11]=0,e[12]=-(n*m+i*y+l*g),e[13]=-(o*m+s*y+u*g),e[14]=-(f*m+v*y+d*g),e[15]=1,e)}});var C9=W((_he,k9)=>{k9.exports=zJ;function zJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var mg=W((whe,S9)=>{S9.exports={create:k8(),clone:S8(),copy:L8(),identity:pg(),transpose:P8(),invert:R8(),adjoint:N8(),determinant:B8(),multiply:O8(),translate:U8(),scale:V8(),rotate:W8(),rotateX:J8(),rotateY:K8(),rotateZ:Q8(),fromRotation:r9(),fromRotationTranslation:a9(),fromScaling:i9(),fromTranslation:o9(),fromXRotation:u9(),fromYRotation:c9(),fromZRotation:d9(),fromQuat:p9(),frustum:g9(),perspective:b9(),perspectiveFromFieldOfView:_9(),ortho:M9(),lookAt:A9(),str:C9()}});var v2=W(Ot=>{"use strict";var RJ=mg();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var FJ=Hr(),D9=Fl(),NJ=v2(),IJ=mg();function BJ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function HJ(e){var r=FJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function L9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function OJ(e,r){q9("global",e,r)}function q9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):D9.warn("addStyleRule failed"):D9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function YJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&L9(t)}function UJ(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function GJ(e){var r=P9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=E9(a);if(n){var i=NJ.convertCssMatrix(n);t=IJ.multiply(t,t,i)}}),t}function E9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function P9(e){for(var r=[];VJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function VJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function XJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}z9.exports={getGraphDiv:BJ,isPlotDiv:HJ,removeElement:L9,addStyleRule:OJ,addRelatedStyleRule:q9,deleteRelatedStyleRule:YJ,setStyleOnHover:UJ,getFullTransformMatrix:GJ,getElementTransformMatrix:E9,getElementAndAncestors:P9,equalDomRects:XJ}});var df=W((Ahe,R9)=>{"use strict";R9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Yi=W((khe,Y9)=>{"use strict";var N9=na().extendFlat,WJ=Eo(),I9={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},B9={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ZJ=I9.flags.slice().concat(["fullReplot"]),JJ=B9.flags.slice().concat("layoutReplot");Y9.exports={traces:I9,layout:B9,traceFlags:function(){return F9(ZJ)},layoutFlags:function(){return F9(JJ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";gg.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};gg.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var yg=W((She,U9)=>{"use strict";U9.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Uo=W(h0=>{"use strict";var{DATE_FORMAT_LINK:$J,FORMAT_LINK:KJ}=yg(),jJ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function QJ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,KJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,$J,"for details on the date formatting syntax.",jJ].join(" ")}h0.templateFormatStringDescription=QJ;h0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>lt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});h0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>lt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});h0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});h0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var p2=W((qhe,J9)=>{"use strict";function Bl(e,r){return r?r.d2l(e):e}function G9(e,r){return r?r.l2d(e):e}function e$(e){return e.x0}function r$(e){return e.x1}function t$(e){return e.y0}function a$(e){return e.y1}function V9(e){return e.x0shift||0}function X9(e){return e.x1shift||0}function W9(e){return e.y0shift||0}function Z9(e){return e.y1shift||0}function d2(e,r){return Bl(e.x1,r)+X9(e)-Bl(e.x0,r)-V9(e)}function h2(e,r,t){return Bl(e.y1,t)+Z9(e)-Bl(e.y0,t)-W9(e)}function n$(e,r){return Math.abs(d2(e,r))}function i$(e,r,t){return Math.abs(h2(e,r,t))}function l$(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(d2(e,r),2)+Math.pow(h2(e,r,t),2))}function o$(e,r){return G9((Bl(e.x1,r)+X9(e)+Bl(e.x0,r)+V9(e))/2,r)}function s$(e,r,t){return G9((Bl(e.y1,t)+Z9(e)+Bl(e.y0,t)+W9(e))/2,t)}function u$(e,r,t){return e.type!=="line"?void 0:h2(e,r,t)/d2(e,r)}var f$=["x0","x1","y0","y1","dy","height","ycenter"],c$=["x0","x1","y0","y1","dx","width","xcenter"];J9.exports={x0:e$,x1:r$,y0:t$,y1:a$,slope:u$,dx:d2,dy:h2,width:n$,height:i$,length:l$,xcenter:o$,ycenter:s$,simpleXVariables:f$,simpleYVariables:c$}});var j9=W((Ehe,K9)=>{"use strict";var v$=Yi().overrideAll,Go=vi(),$9=Ca(),d$=Ui().dash,Hl=na().extendFlat,{shapeTexttemplateAttrs:h$,templatefallbackAttrs:p$}=Uo(),m$=p2();K9.exports=v$({newshape:{visible:Hl({},Go.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Go.legend,{}),legendgroup:Hl({},Go.legendgroup,{}),legendgrouptitle:{text:Hl({},Go.legendgrouptitle.text,{}),font:$9({})},legendrank:Hl({},Go.legendrank,{}),legendwidth:Hl({},Go.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},d$,{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:Hl({},Go.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:h$({newshape:!0},{keys:Object.keys(m$)}),texttemplatefallback:p$({editType:"arraydraw"}),font:$9({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var ew=W((Phe,Q9)=>{"use strict";var g$=Ui().dash,y$=na().extendFlat;Q9.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:y$({},g$,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var m2=W((zhe,rw)=>{"use strict";rw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var p0=W((Rhe,iw)=>{"use strict";var bg=Ca(),b$=df(),g2=Oi(),tw=j9(),aw=ew(),x$=m2(),nw=na().extendFlat,y2=bg({editType:"calc"});y2.family.dflt='"Open Sans", verdana, arial, sans-serif';y2.size.dflt=12;y2.color.dflt=g2.defaultLine;iw.exports={font:y2,title:{text:{valType:"string",editType:"layoutstyle"},font:bg({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:bg({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:nw(x$({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:g2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:g2.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:g2.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:tw.newshape,activeshape:tw.activeshape,newselection:aw.newselection,activeselection:aw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:nw({},b$.transition,{editType:"none"})}});var lw=W(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ar=W(Or=>{"use strict";var xg=Fl(),ow=c2(),sw=hg(),Ihe=vf().addStyleRule,uw=na(),_$=vi(),w$=p0(),M$=uw.extendFlat,_g=uw.extendDeepAll;Or.modules={};Or.allCategories={};Or.allTypes=[];Or.subplotsRegistry={};Or.componentsRegistry={};Or.layoutArrayContainers=[];Or.layoutArrayRegexes=[];Or.traceLayoutAttributes={};Or.localeRegistry={};Or.apiMethodRegistry={};Or.collectableSubplotTypes=null;Or.register=function(r){if(Or.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var S$=Ks().timeFormat,xw=Vr(),wg=Fl(),Yl=(e0(),rn(Qs)).mod,y0=aa(),Un=y0.BADNUM,vn=y0.ONEDAY,hf=y0.ONEHOUR,Ol=y0.ONEMIN,g0=y0.ONESEC,pf=y0.EPOCHJD,cl=Ar(),hw=Ks().utcFormat,D$=/^\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,L$=/^\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,pw=new Date().getFullYear()-70;function vl(e){return e&&cl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Yt.dateTick0=function(e,r){var t=q$(e,!!r);if(r<2)return t;var a=Yt.dateTime2ms(t,e);return a+=vn*(r-1),Yt.ms2DateTime(a,0,e)};function q$(e,r){return vl(e)?r?cl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:cl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Yt.dfltRange=function(e){return vl(e)?cl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Yt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var x2,_2;Yt.dateTime2ms=function(e,r){if(Yt.isJSDate(e)){var t=e.getTimezoneOffset()*Ol,a=(e.getUTCMinutes()-e.getMinutes())*Ol+(e.getUTCSeconds()-e.getSeconds())*g0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ol;t=t-n/2+Yl(a-t+n/2,n)}return e=Number(e)-t,e>=x2&&e<=_2?e:Un}if(typeof e!="string"&&typeof e!="number")return Un;e=String(e);var i=vl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?L$:D$);if(!s)return Un;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Un;u=Number(u);var y;try{var g=cl.getComponentMethod("calendars","getCal")(r);if(o){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=g.newDate(u,g.toMonthIndex(u,f,x),v)}else y=g.newDate(u,Number(f),v)}catch(T){return Un}return y?(y.toJD()-pf)*vn+d*hf+h*Ol+m*g0:Un}u.length===2?u=(Number(u)+2e3-pw)%100+pw:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,v,d,h));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==v?Un:w.getTime()+m*g0};x2=Yt.MIN_MS=Yt.dateTime2ms("-9999");_2=Yt.MAX_MS=Yt.dateTime2ms("9999-12-31 23:59:59.9999");Yt.isDateTime=function(e,r){return Yt.dateTime2ms(e,r)!==Un};function m0(e,r){return String(e+Math.pow(10,r)).slice(1)}var b2=90*vn,mw=3*hf,gw=5*Ol;Yt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=x2&&e<=_2))return Un;r||(r=0);var a=Math.floor(Yl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(vl(t)){var v=Math.floor(n/vn)+pf,d=Math.floor(Yl(e,vn));try{i=cl.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(h){i=hw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=x2+vn&&e<=_2-vn))return Un;var r=Math.floor(Yl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=S$("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return _w(a,n,i,l,o)};function _w(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+m0(r,2)+":"+m0(t,2),(a||n)&&(e+=":"+m0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+m0(n,i)}return e}Yt.cleanDate=function(e,r,t){if(e===Un)return r;if(Yt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(vl(t))return wg.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Yt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Yt.isDateTime(e,t))return wg.error("unrecognized date",e),r;return e};var E$=/%\d?f/g,P$=/%h/g,z$={1:"1",2:"1",3:"2",4:"2"};function yw(e,r,t,a){e=e.replace(E$,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(P$,function(){return z$[t("%q")(n)]}),vl(a))try{e=cl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var R$=[59,59.9,59.99,59.999,59.9999];function F$(e,r){var t=Yl(e+.05,vn),a=m0(Math.floor(t/hf),2)+":"+m0(Yl(Math.floor(t/Ol),60),2);if(r!=="M"){xw(r)||(r=0);var n=Math.min(Yl(e/g0,60),R$[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Yt.formatDate=function(e,r,t,a,n,i){if(n=vl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` `+i.year;else return F$(e,t)+` `+yw(i.dayMonthYear,e,a,n);return yw(r,e,a,n)};var bw=3*vn;Yt.incrementMonth=function(e,r,t){t=vl(t)&&t;var a=Yl(e,vn);if(e=Math.round(e-a),t)try{var n=Math.round(e/vn)+pf,i=cl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-pf)*vn+a}catch(s){wg.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+bw);return o.setUTCMonth(o.getUTCMonth()+r)+a-bw};Yt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=vl(r)&&cl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Mw.exports=function(r){return r}});var Ag=W(dl=>{"use strict";var N$=Vr(),I$=Fl(),B$=Mg(),H$=aa().BADNUM,Tg=1e-9;dl.findBin=function(e,r,t){if(N$(r.start))return t?Math.ceil((e-r.start)/r.size-Tg)-1:Math.floor((e-r.start)/r.size+Tg);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?O$:Y$:s=t?G$:U$,e+=l*Tg*(t?-1:1)*(l>=0?1:-1);a90&&I$.log("Long binary search..."),a-1};function O$(e,r){return er}function G$(e,r){return e>=r}dl.sorterAsc=function(e,r){return e-r};dl.sorterDes=function(e,r){return r-e};dl.distinctVals=function(e){var r=e.slice();r.sort(dl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===H$;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};dl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};dl.findIndexOfMin=function(e,r){r=r||B$;for(var t=1/0,a,n=0;nX$});function V$(e){return Object.keys(e).sort()}var X$,Cg=Hu(()=>{"use strict";X$=V$});var Tw=W(Ut=>{"use strict";var mf=Vr(),W$=un().isArrayOrTypedArray;Ut.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),mf(r)||(r=!1),W$(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Dw=W((Ghe,Sw)=>{"use strict";var Aw=(e0(),rn(Qs)),Sg=Aw.mod,Z$=Aw.modHalf,gf=Math.PI,Ul=2*gf;function J$(e){return e/180*gf}function $$(e){return e/gf*180}function Dg(e){return Math.abs(e[1]-e[0])>Ul-1e-14}function kw(e,r){return Z$(r-e,Ul)}function K$(e,r){return Math.abs(kw(e,r))}function Cw(e,r){if(Dg(r))return!0;var t,a;r[0]a&&(a+=Ul);var n=Sg(e,Ul),i=n+Ul;return n>=t&&n<=a||i>=t&&i<=a}function j$(e,r,t,a){if(!Cw(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Lg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=Dg([t,a]),s,u,f,v,d;o?(s=0,u=gf,f=Ul):t{"use strict";Vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Pw=W(Xo=>{"use strict";var qg=(e0(),rn(Qs)).mod;Xo.segmentsIntersect=Ew;function Ew(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,d=i-r,h=o-i,m=s*h-f*v;if(m===0)return null;var y=(u*h-f*d)/m,g=(u*v-s*d)/m;return g<0||g>1||y<0||y>1?null:{x:e+s*y,y:r+v*y}}Xo.segmentDistance=function(r,t,a,n,i,l,o,s){if(Ew(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,d=s-l,h=u*u+f*f,m=v*v+d*d,y=Math.min(w2(u,f,h,i-r,l-t),w2(u,f,h,o-r,s-t),w2(v,d,m,r-i,t-l),w2(v,d,m,a-i,n-l));return Math.sqrt(y)};function w2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var M2,Eg,qw;Xo.getTextLocation=function(r,t,a,n){if((r!==Eg||n!==qw)&&(M2={},Eg=r,qw=n),M2[a])return M2[a];var i=r.getPointAtLength(qg(a-n/2,t)),l=r.getPointAtLength(qg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(qg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return M2[a]=v,v};Xo.clearLocationCache=function(){Eg=null};Xo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,d;function h(y){var g=r.getPointAtLength(y);y===0?v=g:y===u&&(d=g);var x=g.xi?g.x-i:0,w=g.yo?g.y-o:0;return Math.sqrt(x*x+w*w)}for(var m=h(s);m;){if(s+=m+a,s>f)return;m=h(s)}for(m=h(f);m;){if(f-=m+a,s>f)return;m=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-d.x)<.1&&Math.abs(v.y-d.y)<.1}};Xo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,d,h,m;u0?v=d:f=d,u++}return h}});var T2=W(yf=>{"use strict";var hl={};yf.throttle=function(r,t,a){var n=hl[r],i=Date.now();if(!n){for(var l in hl)hl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};yf.done=function(e){var r=hl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};yf.clear=function(e){if(e)zw(hl[e]),delete hl[e];else for(var r in hl)yf.clear(r)};function zw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Fw=W((Zhe,Rw)=>{"use strict";Rw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Nw=W((Jhe,A2)=>{"use strict";A2.exports=Pg;A2.exports.isMobile=Pg;A2.exports.default=Pg;var tK=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,aK=/CrOS/,nK=/android|ipad|playbook|silk/i;function Pg(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=tK.test(r)&&!aK.test(r)||!!e.tablet&&nK.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Bw=W(($he,Iw)=>{"use strict";var iK=Vr(),lK=Nw();Iw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=oK(),typeof t!="string")return!0;var a=lK({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(iK(u)&&(u=+u),u>=13)return!0}}}return a};function oK(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Ow=W((Khe,Hw)=>{"use strict";var sK=Hr();Hw.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=sK.select(this)}),n}});var Uw=W((jhe,Yw)=>{"use strict";var uK=Ar();Yw.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=uK.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var Vw=W((Qhe,Gw)=>{"use strict";Gw.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Xw.exports=function(r){for(var t=vK(r)?cK:fK,a=[],n=0;n{"use strict";Zw.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var jw={};Ou(jw,{default:()=>pK});function hK(e){return typeof e=="string"&&(e=e.replace(dK,"")),(0,$w.default)(e)?Number(e):Kw.BADNUM}var $w,Kw,dK,pK,Qw=Hu(()=>{"use strict";$w=Cp(Vr()),Kw=Cp(aa()),dK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;pK=hK});var tM=W((tpe,rM)=>{"use strict";var mK=/<[^>]*>/g,gK=/[\p{S}\p{P}]/gu,yK=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,bK=/�/g,xK=/\s+/g,k2="-",eM=k2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),_K=new RegExp(eM+"{3,}","g"),wK=new RegExp(eM+"$","g"),MK=60;function TK(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}rM.exports=function(r,t=MK){var a=TK(r!=null?r:"").replace(bK,"").replace(mK," ").replace(gK,n=>n===k2?n:"").toLowerCase().trim().replace(xK,k2).replace(yK,"").replace(_K,k2);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(wK,"")}});var ze=W((ape,hM)=>{"use strict";var bf=Hr(),AK=Ks().utcFormat,kK=Dp().format,sM=Vr(),uM=aa(),fM=uM.FP_SAFE,CK=-fM,aM=uM.BADNUM,oe=hM.exports={};oe.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var nM={};oe.warnBadFormat=function(e){var r=String(e);nM[r]||(nM[r]=1,oe.warn('encountered bad format: "'+r+'"'))};oe.noFormat=function(e){return String(e)};oe.numberFormat=function(e){var r;try{r=kK(oe.adjustFormat(e))}catch(t){return oe.warnBadFormat(e),oe.noFormat}return r};oe.nestedProperty=Ev();oe.keyedContainer=Zx();oe.relativeAttr=$x();oe.isPlainObject=Eo();oe.toLogRange=zv();oe.relinkPrivateKeys=e_();var Gl=un();oe.isArrayBuffer=Gl.isArrayBuffer;oe.isTypedArray=Gl.isTypedArray;oe.isArrayOrTypedArray=Gl.isArrayOrTypedArray;oe.isArray1D=Gl.isArray1D;oe.ensureArray=Gl.ensureArray;oe.concat=Gl.concat;oe.maxRowLength=Gl.maxRowLength;oe.minRowLength=Gl.minRowLength;var cM=(e0(),rn(Qs));oe.mod=cM.mod;oe.modHalf=cM.modHalf;var Vl=w8();oe.valObjectMeta=Vl.valObjectMeta;oe.coerce=Vl.coerce;oe.coerce2=Vl.coerce2;oe.coerceFont=Vl.coerceFont;oe.coercePattern=Vl.coercePattern;oe.coerceHoverinfo=Vl.coerceHoverinfo;oe.coerceSelectionMarkerOpacity=Vl.coerceSelectionMarkerOpacity;oe.validate=Vl.validate;var Tn=ww();oe.dateTime2ms=Tn.dateTime2ms;oe.isDateTime=Tn.isDateTime;oe.ms2DateTime=Tn.ms2DateTime;oe.ms2DateTimeLocal=Tn.ms2DateTimeLocal;oe.cleanDate=Tn.cleanDate;oe.isJSDate=Tn.isJSDate;oe.formatDate=Tn.formatDate;oe.incrementMonth=Tn.incrementMonth;oe.dateTick0=Tn.dateTick0;oe.dfltRange=Tn.dfltRange;oe.findExactDates=Tn.findExactDates;oe.MIN_MS=Tn.MIN_MS;oe.MAX_MS=Tn.MAX_MS;var Wo=Ag();oe.findBin=Wo.findBin;oe.sorterAsc=Wo.sorterAsc;oe.sorterDes=Wo.sorterDes;oe.distinctVals=Wo.distinctVals;oe.roundUp=Wo.roundUp;oe.sort=Wo.sort;oe.findIndexOfMin=Wo.findIndexOfMin;oe.sortObjectKeys=(Cg(),rn(kg)).default;var pl=Tw();oe.aggNums=pl.aggNums;oe.len=pl.len;oe.mean=pl.mean;oe.geometricMean=pl.geometricMean;oe.median=pl.median;oe.midRange=pl.midRange;oe.variance=pl.variance;oe.stdev=pl.stdev;oe.interp=pl.interp;var pi=v2();oe.init2dArray=pi.init2dArray;oe.transposeRagged=pi.transposeRagged;oe.dot=pi.dot;oe.translationMatrix=pi.translationMatrix;oe.rotationMatrix=pi.rotationMatrix;oe.rotationXYMatrix=pi.rotationXYMatrix;oe.apply3DTransform=pi.apply3DTransform;oe.apply2DTransform=pi.apply2DTransform;oe.apply2DTransform2=pi.apply2DTransform2;oe.convertCssMatrix=pi.convertCssMatrix;oe.inverseTransformMatrix=pi.inverseTransformMatrix;var Gi=Dw();oe.deg2rad=Gi.deg2rad;oe.rad2deg=Gi.rad2deg;oe.angleDelta=Gi.angleDelta;oe.angleDist=Gi.angleDist;oe.isFullCircle=Gi.isFullCircle;oe.isAngleInsideSector=Gi.isAngleInsideSector;oe.isPtInsideSector=Gi.isPtInsideSector;oe.pathArc=Gi.pathArc;oe.pathSector=Gi.pathSector;oe.pathAnnulus=Gi.pathAnnulus;var x0=Lw();oe.isLeftAnchor=x0.isLeftAnchor;oe.isCenterAnchor=x0.isCenterAnchor;oe.isRightAnchor=x0.isRightAnchor;oe.isTopAnchor=x0.isTopAnchor;oe.isMiddleAnchor=x0.isMiddleAnchor;oe.isBottomAnchor=x0.isBottomAnchor;var _0=Pw();oe.segmentsIntersect=_0.segmentsIntersect;oe.segmentDistance=_0.segmentDistance;oe.getTextLocation=_0.getTextLocation;oe.clearLocationCache=_0.clearLocationCache;oe.getVisibleSegment=_0.getVisibleSegment;oe.findPointOnPath=_0.findPointOnPath;var D2=na();oe.extendFlat=D2.extendFlat;oe.extendDeep=D2.extendDeep;oe.extendDeepAll=D2.extendDeepAll;oe.extendDeepNoArrays=D2.extendDeepNoArrays;var zg=Fl();oe.log=zg.log;oe.warn=zg.warn;oe.error=zg.error;var SK=(v0(),rn(c0));oe.counterRegex=SK.counter;var Rg=T2();oe.throttle=Rg.throttle;oe.throttleDone=Rg.done;oe.clearThrottle=Rg.clear;var mi=vf();oe.getGraphDiv=mi.getGraphDiv;oe.isPlotDiv=mi.isPlotDiv;oe.removeElement=mi.removeElement;oe.addStyleRule=mi.addStyleRule;oe.addRelatedStyleRule=mi.addRelatedStyleRule;oe.deleteRelatedStyleRule=mi.deleteRelatedStyleRule;oe.setStyleOnHover=mi.setStyleOnHover;oe.getFullTransformMatrix=mi.getFullTransformMatrix;oe.getElementTransformMatrix=mi.getElementTransformMatrix;oe.getElementAndAncestors=mi.getElementAndAncestors;oe.equalDomRects=mi.equalDomRects;oe.clearResponsive=Fw();oe.preserveDrawingBuffer=Bw();oe.makeTraceGroups=Ow();oe._=Uw();oe.notifier=ig();oe.filterUnique=Vw();oe.filterVisible=Ww();oe.pushUnique=hg();oe.increment=Jw();oe.cleanNumber=(Qw(),rn(jw)).default;oe.slugify=tM();oe.ensureNumber=function(r){return sM(r)?(r=Number(r),r>fM||r=r?!1:sM(e)&&e>=0&&e%1===0};oe.noop=c2();oe.identity=Mg();oe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};oe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};oe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(oe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};oe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};oe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};oe.syncOrAsync=function(e,r,t){var a,n;function i(){return oe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};oe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};oe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};oe.fillArray=function(e,r,t,a){if(a=a||oe.identity,oe.isArrayOrTypedArray(e))for(var n=0;nqK.test(window.navigator.userAgent);var EK=/Firefox\/(\d+)\.\d+/;oe.getFirefoxVersion=function(){var e=EK.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};oe.isD3Selection=function(e){return e instanceof bf.selection};oe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};oe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};oe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};oe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var dM=/^\w*$/;oe.templateString=function(e,r){var t={};return e.replace(oe.TEMPLATE_STRING_REGEX,function(a,n){var i;return dM.test(n)?i=r[n]:(t[n]=t[n]||oe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var RK={max:10,count:0,name:"hovertemplate"};oe.hovertemplateString=e=>Fg(kt(lt({},e),{opts:RK}));var FK={max:10,count:0,name:"texttemplate"};oe.texttemplateString=e=>Fg(kt(lt({},e),{opts:FK}));var NK=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function IK(e){var r=e.match(NK);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var BK={max:10,count:0,name:"texttemplate",parseMultDiv:!0};oe.texttemplateStringForShapes=e=>Fg(kt(lt({},e),{opts:BK}));var iM=/^[:|\|]/;function Fg({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(oe.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),v=["_xother_","_yother_"].includes(o),d=["xother_","yother_"].includes(o),h=u||f||d||v;(f||v)&&(o=o.substring(1)),(d||v)&&(o=o.substring(0,o.length-1));let m=null,y=null;if(n.parseMultDiv){var g=IK(o);o=g.key,m=g.op,y=g.number}let x;if(h){if(a[o]===void 0)return"";x=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){x=M[o];break}if(dM.test(o)||(x=oe.nestedProperty(M,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:M,max:S,name:A}=n,L=t===!1?l:t;return M=S2&&l<=lM,u=o>=S2&&o<=lM;if(s&&(a=10*a+l-S2),u&&(n=10*n+o-S2),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var b0=2e9;oe.seedPseudoRandom=function(){b0=2e9};oe.pseudoRandom=function(){var e=b0;return b0=(69069*b0+1)%4294967296,Math.abs(b0-e)<429496729?oe.pseudoRandom():b0/4294967296};oe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=oe.extractOption(e,r,"htx","hovertext");if(oe.isValidTextValue(n))return a(n);var i=oe.extractOption(e,r,"tx","text");if(oe.isValidTextValue(i))return a(i)};oe.isValidTextValue=function(e){return e||e===0};oe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,oe.strTranslate(n-u*(t+l),i-u*(a+o))+oe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};oe.setTransormAndDisplay=function(e,r){e.attr("transform",oe.getTextTransform(r)),e.style("display",r.scale?null:"none")};oe.ensureUniformFontSize=function(e,r){var t=oe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};oe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};oe.bigFont=function(e){return Math.round(1.2*e)};var oM=oe.getFirefoxVersion(),HK=oM!==null&&oM<86;oe.getPositionFromD3Event=function(){return HK?[bf.event.layerX,bf.event.layerY]:[bf.event.offsetX,bf.event.offsetY]}});var gM=W(()=>{"use strict";var OK=ze(),pM={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(Ng in pM)mM=Ng.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),OK.addStyleRule(mM,pM[Ng]);var mM,Ng});var Ig=W((ope,yM)=>{yM.exports=!0});var Hg=W((spe,bM)=>{"use strict";var YK=Ig(),Bg;typeof window.matchMedia=="function"?Bg=!window.matchMedia("(hover: none)").matches:Bg=YK;bM.exports=Bg});var E2=W((upe,Og)=>{"use strict";var w0=typeof Reflect=="object"?Reflect:null,xM=w0&&typeof w0.apply=="function"?w0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},L2;w0&&typeof w0.ownKeys=="function"?L2=w0.ownKeys:Object.getOwnPropertySymbols?L2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:L2=function(r){return Object.getOwnPropertyNames(r)};function UK(e){console&&console.warn&&console.warn(e)}var wM=Number.isNaN||function(r){return r!==r};function xt(){xt.init.call(this)}Og.exports=xt;Og.exports.once=WK;xt.EventEmitter=xt;xt.prototype._events=void 0;xt.prototype._eventsCount=0;xt.prototype._maxListeners=void 0;var _M=10;function q2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(xt,"defaultMaxListeners",{enumerable:!0,get:function(){return _M},set:function(e){if(typeof e!="number"||e<0||wM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");_M=e}});xt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};xt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||wM(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function MM(e){return e._maxListeners===void 0?xt.defaultMaxListeners:e._maxListeners}xt.prototype.getMaxListeners=function(){return MM(this)};xt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")xM(s,this,t);else for(var u=s.length,f=SM(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,UK(o)}return e}xt.prototype.addListener=function(r,t){return TM(this,r,t,!1)};xt.prototype.on=xt.prototype.addListener;xt.prototype.prependListener=function(r,t){return TM(this,r,t,!0)};function GK(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function AM(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=GK.bind(a);return n.listener=t,a.wrapFn=n,n}xt.prototype.once=function(r,t){return q2(t),this.on(r,AM(this,r,t)),this};xt.prototype.prependOnceListener=function(r,t){return q2(t),this.prependListener(r,AM(this,r,t)),this};xt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(q2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():VK(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};xt.prototype.off=xt.prototype.removeListener;xt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function kM(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?XK(n):SM(n,n.length)}xt.prototype.listeners=function(r){return kM(this,r,!0)};xt.prototype.rawListeners=function(r){return kM(this,r,!1)};xt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):CM.call(e,r)};xt.prototype.listenerCount=CM;function CM(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}xt.prototype.eventNames=function(){return this._eventsCount>0?L2(this._events):[]};function SM(e,r){for(var t=new Array(r),a=0;a{"use strict";var Yg=E2().EventEmitter,JK={init:function(e){if(e._ev instanceof Yg)return e;var r=new Yg,t=new Yg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var qM=ze(),$K=Rl().dfltConfig;function KK(e,r){for(var t=[],a,n=0;n$K.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ml.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ml.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ml.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";zM.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var A0=W(ia=>{"use strict";var Gn=Ar(),_f=ze(),z2=vi(),Gg=p0(),jK=Ug(),QK=df(),ej=Rl().configAttributes,RM=Yi(),gi=_f.extendDeepAll,M0=_f.isPlainObject,rj=_f.isArrayOrTypedArray,R2=_f.nestedProperty,tj=_f.valObjectMeta,Vg="_isSubplotObj",F2="_isLinkedToArray",aj="_arrayAttrRegexps",NM="_deprecated",Xg=[Vg,F2,aj,NM];ia.IS_SUBPLOT_OBJ=Vg;ia.IS_LINKED_TO_ARRAY=F2;ia.DEPRECATED=NM;ia.UNDERSCORE_ATTRS=Xg;ia.get=function(){var e={};return Gn.allTypes.forEach(function(r){e[r]=ij(r)}),{defs:{valObjects:tj,metaKeys:Xg.concat(["description","role","editType","impliedEdits"]),editType:{traces:RM.traces,layout:RM.layout},impliedEdits:{}},traces:e,layout:lj(),frames:oj(),animation:T0(QK),config:T0(ej)}};ia.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Xg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!ia.isValObject(l)&&M0(l)&&i!=="impliedEdits"&&ia.crawl(l,r,n+1,o)}})};ia.isValObject=function(e){return e&&e.valType!==void 0};ia.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],d=f+t[u];if(u===t.length-1)rj(v)&&r.push(i+d);else if(a[u]){if(Array.isArray(v))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!P2(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function P2(e){return e===Math.round(e)&&e>=0}function ij(e){var r,t;r=Gn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=gi({},z2),i=gi({},r.attributes);ia.crawl(i,function(s,u,f,v,d){R2(n,d).set(void 0),s===void 0&&R2(i,d).set(void 0)}),gi(a,n),Gn.traceIs(e,"noOpacity")&&delete a.opacity,Gn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Gn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,gi(a,i),t.attributes&&gi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:T0(a)};if(r.layoutAttributes){var o={};gi(o,r.layoutAttributes),l.layoutAttributes=T0(o)}return r.animatable||ia.crawl(l,function(s){ia.isValObject(s)&&"anim"in s&&delete s.anim}),l}function lj(){var e={},r,t;gi(e,Gg);for(r in Gn.subplotsRegistry)if(t=Gn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var k0=ze(),vj=vi(),Xl="templateitemname",Wg={name:{valType:"string",editType:"none"}};Wg[Xl]={valType:"string",editType:"calc"};Zo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Wg.name,r[Xl]=Wg[Xl],r};Zo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=k0.coerce(i,{},vj,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);k0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[HM(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[Xl]=u[Xl];if(!BM(v))return f._template=n,f;for(var d=0;d=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Xl]=i)}s();function u(h,m){o[h]=m}function f(h,m){i?k0.nestedProperty(o[l],h).set(m):o[l+"."+h]=m}function v(){var h=o;return s(),h}function d(h,m){h&&f(h,m);var y=v();for(var g in y)k0.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:d}}});var va=W((ppe,OM)=>{"use strict";var wf=(v0(),rn(c0)).counter;OM.exports={idRegex:{x:wf("x","( domain)?"),y:wf("y","( domain)?")},attrRegex:wf("[xy]axis"),xAxisMatch:wf("xaxis"),yAxisMatch:wf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var la=W(dn=>{"use strict";var dj=Ar(),Zg=va();dn.id2name=function(r){if(!(typeof r!="string"||!r.match(Zg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};dn.name2id=function(r){if(r.match(Zg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};dn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Zg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};dn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=dn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};dn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function YM(e,r){if(r&&r.length){for(var t=0;t{"use strict";function hj(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function pj(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}UM.exports={clearOutlineControllers:hj,clearOutline:pj}});var N2=W((ype,GM)=>{"use strict";GM.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jg=W(B2=>{"use strict";var I2=Ar(),bpe=va().SUBPLOT_PATTERN;B2.getSubplotCalcData=function(e,r,t){var a=I2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var mj=Ar(),C0=ze();Jo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Jo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){VM(e,l,n.cache),n.check=function(){if(i){var f=VM(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;C0.isPlainObject(i)?$g(i,r,l,a+1):r(l,n,i)}})}});var $t=W((Mpe,nT)=>{"use strict";var wpe=Hr(),yj=Ks().timeFormatLocale,bj=Dp().formatLocale,Mf=Vr(),xj=Lp(),_j=Yu().version,Wr=Ar(),wj=A0(),Mj=pt(),vr=ze(),Tj=Fr(),JM=aa().BADNUM,hn=la(),Aj=Wl().clearOutline,kj=N2(),Kg=df(),Cj=Ug(),Sj=Jg().getModuleCalcData,$M=vr.relinkPrivateKeys,$o=vr._,Qe=nT.exports={};vr.extendFlat(Qe,Wr);Qe.attributes=vi();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=Ca();Qe.layoutAttributes=p0();var O2=ZM();Qe.executeAPICommand=O2.executeAPICommand;Qe.computeAPICommandBindings=O2.computeAPICommandBindings;Qe.manageCommandObserver=O2.manageCommandObserver;Qe.hasSimpleAPICommandBindings=O2.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Qe.graphJson(e,!1,"object");a.version=_j;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var Dj=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Lj=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:$o(e,"Click to enter Plot title"),subtitle:$o(e,"Click to enter Plot subtitle"),x:$o(e,"Click to enter X axis title"),y:$o(e,"Click to enter Y axis title"),colorbar:$o(e,"Click to enter Colorscale title"),annotation:$o(e,"new text")},n._traceWord=$o(e,"trace");var d=KM(e,Dj);if(a._initialAutoSizeIsDone){var h=a.width,m=a.height;Qe.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=m),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,d);var y=!i.width||!i.height,g=n.autosize,x=f.autosizable,w=y&&(g||x);w?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Pj(d,n.separators),n._extraFormat=KM(e,Lj),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=Ej(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=qj(l,s),Qe.supplyDataDefaults(s,o,i,n);var S=Object.keys(b.x),A=Object.keys(b.y);if(S.length>1&&A.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),B=!!(n._has&&n._has("cartesian")),I=N,H=B;I&&!H?a._bgLayer.remove():H&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Aj({_fullLayout:a}),zj(o,n),$M(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,G={},O;for(O in Y)G[O]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=Qe.layoutAttributes.width.min,d=Qe.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||h)&&(h&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(o=0;o1&&(t.l/=g,t.r/=g)}if(d){var x=(t.t+t.b)/d;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:w,size:t.l+y},r:{val:T,size:t.r+y},b:{val:M,size:t.b+y},t:{val:b,size:t.t+y}},m[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function Fj(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=hn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),eT(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,d=r._pushmargin,h=r._pushmarginIds,m=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var g in d)h[g]||delete d[g];var x=e._fullLayout._reservedMargin;for(var w in x)for(var T in x[w]){var b=x[w][T];l[T]=Math.max(l[T],b)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var M in l){var S=0;for(var A in d)A!=="base"&&Mf(d[A][M].size)&&(S=d[A][M].size>S?d[A][M].size:S);var L=Math.max(0,i[M]-S);l[M]=Math.max(0,l[M]-L)}for(var q in d){var P=d[q].l||{},R=d[q].b||{},N=P.val,B=P.size,I=R.val,H=R.size,Y=t-l.r-l.l,G=a-l.t-l.b;for(var O in d){if(Mf(B)&&d[O].r){var X=d[O].r.val,J=d[O].r.size;if(X>N){var Z=(B*X+(J-Y)*N)/(X-N),ee=(J*(1-N)+(B-Y)*(1-X))/(X-N);Z+ee>s+u&&(s=Z,u=ee)}}if(Mf(H)&&d[O].t){var ne=d[O].t.val,fe=d[O].t.size;if(ne>I){var we=(H*ne+(fe-G)*I)/(ne-I),j=(fe*(1-I)+(H-G)*(1-ne))/(ne-I);we+j>v+f&&(v=we,f=j)}}}}}var _e=vr.constrain(t-i.l-i.r,rT,m),ue=vr.constrain(a-i.t-i.b,tT,y),Me=Math.max(0,t-_e),ye=Math.max(0,a-ue);if(Me){var ce=(s+u)/Me;ce>1&&(s/=ce,u/=ce)}if(ye){var Te=(v+f)/ye;Te>1&&(v/=Te,f/=Te)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||Fj(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Re=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var h={};return Object.keys(v).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof v[x]=="function"){d&&(h[x]="_function");return}h[x]=s(v[x],d)}}),h}var m=Array.isArray(v),y=vr.isTypedArray(v);if((m||y)&&v.dtype&&v.shape){var g=v.bdata;return s({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(g)?xj.encode(g):g},d)}return m?v.map(function(x){return s(x,d)}):y?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var u={data:(i||[]).map(function(v){var d=s(v);return r&&delete d.fit,d})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function m(){return d++,function(){h++,!a&&h===d&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=hn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o{"use strict";Ko.xmlns="http://www.w3.org/2000/xmlns/";Ko.svg="http://www.w3.org/2000/svg";Ko.xlink="http://www.w3.org/1999/xlink";Ko.svgAttrs={xmlns:Ko.svg,"xmlns:xlink":Ko.xlink}});var Ra=W((Ape,iT)=>{"use strict";iT.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ba=W(An=>{"use strict";var oa=Hr(),Vn=ze(),Oj=Vn.strTranslate,jg=jo(),Yj=Ra().LINE_SPACING,Uj=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,cT=e=>e?e.match(Uj):null;An.matchTex=cT;An.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&cT(a);n&&!Wj()&&(n=null);var i=oa.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=aQ(e.node(),a);s&&e.style("pointer-events","all"),An.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},v=e.attr("text-anchor");Zj(n[2],f,function(d,h,m){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var y=d&&d.select("svg");if(!y||!y.node()){o(),s();return}e.style("display","none");var g=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});g.node().appendChild(y.node()),h&&h.node()&&y.node().insertBefore(h.node().cloneNode(!0),y.node().firstChild);var x=m.width,w=m.height;y.attr({class:l,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var T=e.node().style.fill||"black",b=y.select("g");b.attr({fill:T,stroke:T});var M=b.node().getBoundingClientRect(),S=M.width,A=M.height;(S>x||A>w)&&(y.style("overflow","hidden"),M=y.node().getBoundingClientRect(),S=M.width,A=M.height);var L=+e.attr("x"),q=+e.attr("y"),P=u||e.node().getBoundingClientRect().height,R=-P/4;l[0]==="y"?g.attr({transform:"rotate("+[-90,L,q]+")"+Oj(-S/2,R-A/2)}):l[0]==="l"?q=R-A/2:l[0]==="a"&&l.indexOf("atitle")!==0?(L=0,q=R):(L=L-S*(v==="middle"?.5:v==="end"?1:0),q=q+R-A/2),y.attr({x:L,y:q}),t&&t.call(e,g),s(g)})})):o(),e};var Gj=/(<|<|<)/g,Vj=/(>|>|>)/g;function Xj(e){return e.replace(Gj,"\\lt ").replace(Vj,"\\gt ")}var Qg=null,vT=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,lT=!1,oT=!1;function Wj(){let e=vT();return e===3||e===4?!0:(e===null?lT||(lT=!0,Vn.warn("MathJax is not loaded. Math equations will not be rendered.")):oT||(oT=!0,Vn.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Zj(e,r,t){let a=vT();var n;let i=function(){if(!Qg){let u=MathJax._.output.svg_ts.SVG,f=Vn.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Vn.extendFlat({},f.linebreaks,{inline:!1})),Qg=MathJax._.mathjax.mathjax.document(document,Vn.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+Vn.randstr({},64);n=oa.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=Xj(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return Qg.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)Vn.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{Vn.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var dT={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Jj={sub:"0.3em",sup:"-0.6em"},$j={sub:"-0.21em",sup:"0.42em"},sT="\u200B",uT=["http:","https:","mailto:","",void 0,":"],hT=An.NEWLINES=/(\r\n?|\n)/g,ry=/(<[^<>]*>)/,ty=/<(\/?)([^ >]*)(\s+(.*))?>/i,Kj=//i;An.BR_TAG_ALL=//gi;var pT=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,mT=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,gT=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,jj=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Qo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Y2(a)}var Qj=/(^|;)\s*color:/;An.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(ry),o=[],s="",u=0,f=0;fi?o.push(v.slice(0,Math.max(0,y-i))+n):o.push(v.slice(0,y));break}s=""}}return o.join("")};var eQ={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},rQ=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Y2(e){return e.replace(rQ,function(r,t){var a;return t.charAt(0)==="#"?a=tQ(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=eQ[t],a||r})}An.convertEntities=Y2;function tQ(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function aQ(e,r){r=r.replace(hT," ");var t=!1,a=[],n,i=-1;function l(){i++;var S=document.createElementNS(jg.svg,"tspan");oa.select(S).attr({class:"line",dy:i*Yj+"em"}),e.appendChild(S),n=S;var A=a;if(a=[{node:S}],A.length>1)for(var L=1;L.",r);return}var A=a.pop();S!==A.type&&Vn.log("Start tag <"+A.type+"> doesnt match end tag <"+S+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Kj.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(ry),d=0;d{"use strict";var nQ=Hr(),Af=Vr(),U2=ze(),es=Fr(),iQ=Yo().isValid;function lQ(e,r,t){var a=r?U2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(U2.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function MT(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var AT=yg(),sQ=AT.FORMAT_LINK,uQ=AT.DATE_FORMAT_LINK;function fQ(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ay:kT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ay(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+sQ+"."].join(" ")}function kT(e,r){return ay(e,r)+[" And for dates see: "+uQ+".","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(" ")}CT.exports={axisHoverFormat:fQ,descriptionOnlyNumbers:ay,descriptionWithDates:kT}});var yi=W((Lpe,GT)=>{"use strict";var ST=Ca(),S0=Oi(),UT=Ui().dash,iy=na().extendFlat,DT=pt().templatedArray,Dpe=Uo().templateFormatStringDescription,LT=G2().descriptionWithDates,cQ=aa().ONEDAY,Vi=va(),vQ=Vi.HOUR_PATTERN,dQ=Vi.WEEKDAY_PATTERN,ny={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},hQ=iy({},ny,{values:ny.values.slice().concat(["sync"])});function qT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var ET={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},PT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zT={valType:"data_array",editType:"ticks"},RT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function FT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function NT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var IT={valType:"color",dflt:S0.defaultLine,editType:"ticks"},BT={valType:"color",dflt:S0.lightLine,editType:"ticks"};function HT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var OT=iy({},UT,{editType:"ticks"}),YT={valType:"boolean",editType:"ticks"};GT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:S0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:ST({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Vi.idRegex.x.toString(),Vi.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:[Vi.idRegex.x.toString(),Vi.idRegex.y.toString()],editType:"calc"},rangebreaks:DT("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:[dQ,vQ,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:cQ},editType:"calc"}),tickmode:hQ,nticks:qT(),tick0:ET,dtick:PT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:zT,ticktext:{valType:"data_array",editType:"ticks"},ticks:RT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:FT(),tickwidth:NT(),tickcolor:IT,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:iy({},UT,{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:ST({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:LT("tick label")},tickformatstops:DT("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:LT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:S0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:YT,gridcolor:BT,gridwidth:HT(),griddash:OT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:S0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:S0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Vi.idRegex.x.toString(),Vi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Vi.idRegex.x.toString(),Vi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:ny,nticks:qT("minor"),tick0:ET,dtick:PT,tickvals:zT,ticks:RT,ticklen:FT("minor"),tickwidth:NT("minor"),tickcolor:IT,gridcolor:BT,gridwidth:HT("minor"),griddash:OT,showgrid:YT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var V2=W((qpe,WT)=>{"use strict";var _t=yi(),VT=Ca(),XT=na().extendFlat,pQ=Yi().overrideAll;WT.exports=pQ({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:_t.linecolor,outlinewidth:_t.linewidth,bordercolor:_t.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:_t.minor.tickmode,nticks:_t.nticks,tick0:_t.tick0,dtick:_t.dtick,tickvals:_t.tickvals,ticktext:_t.ticktext,ticks:XT({},_t.ticks,{dflt:""}),ticklabeloverflow:XT({},_t.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:_t.ticklen,tickwidth:_t.tickwidth,tickcolor:_t.tickcolor,ticklabelstep:_t.ticklabelstep,showticklabels:_t.showticklabels,labelalias:_t.labelalias,tickfont:VT({description:"Sets the color bar's tick label font"}),tickangle:_t.tickangle,tickformat:_t.tickformat,tickformatstops:_t.tickformatstops,tickprefix:_t.tickprefix,showtickprefix:_t.showtickprefix,ticksuffix:_t.ticksuffix,showticksuffix:_t.showticksuffix,separatethousands:_t.separatethousands,exponentformat:_t.exponentformat,minexponent:_t.minexponent,showexponent:_t.showexponent,title:{text:{valType:"string"},font:VT({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var kf=W((Ppe,JT)=>{"use strict";var mQ=V2(),gQ=(v0(),rn(c0)).counter,yQ=(Cg(),rn(kg)).default,ZT=Yo().scales,Epe=yQ(ZT);function X2(e){return"`"+e+"`"}JT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?ZT[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+X2(u+f));var d=n?" Has an effect only if "+v+" is set to a numerical array.":"",h=a+"auto",m=a+"min",y=a+"max",g=a+"mid",x=X2(u+h),w=X2(u+m),T=X2(u+y),b=w+" and "+T,M={};M[m]=M[y]=void 0;var S={};S[h]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},A[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=mQ),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:gQ("coloraxis"),dflt:null,editType:"calc"}),A}});var oy=W((zpe,$T)=>{"use strict";var bQ=na().extendFlat,xQ=kf(),ly=Yo().scales;$T.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ly.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ly.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ly.RdBu,editType:"calc"}},coloraxis:bQ({_isSubplotObj:!0,editType:"calc"},xQ("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var sy=W((Rpe,KT)=>{"use strict";var _Q=ze();KT.exports=function(r){return _Q.isPlainObject(r.colorbar)}});var cy=W(fy=>{"use strict";var uy=Vr(),jT=ze(),QT=aa(),wQ=QT.ONEDAY,MQ=QT.ONEWEEK;fy.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?wQ:1;if(!e)return i;if(uy(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=uy(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};fy.tick0=function(e,r,t,a){if(r==="date")return jT.cleanDate(e,jT.dateTick0(t,a%MQ===0?1:0));if(!(a==="D1"||a==="D2"))return uy(e)?Number(e):0}});var vy=W((Npe,rA)=>{"use strict";var eA=cy(),TQ=ze().isArrayOrTypedArray,AQ=un().isTypedArraySpec,kQ=un().decodeTypedArraySpec;rA.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(b){var M=o[b];return AQ(M)&&(M=kQ(M)),M!==void 0?M:(s._template||{})[b]}var v=f("tick0"),d=f("dtick"),h=f("tickvals"),m=f("overlaying"),y=n==="category"||n==="multicategory",g;TQ(h)?g="array":d?g="linear":m&&!y?g="sync":g="auto";var x=a(u+"tickmode",g);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="linear"){var w=s.dtick=eA.dtick(d,n);s.tick0=eA.tick0(v,n,t.calendar,w)}else if(n!=="multicategory"){var T=a(u+"tickvals");T===void 0?s.tickmode="auto":l||a("ticktext")}}});var hy=W((Ipe,aA)=>{"use strict";var dy=ze(),tA=yi();aA.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?tA.minor:tA,u=i?"minor.":"",f=dy.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=dy.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),d=dy.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||v||d?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var py=W((Bpe,nA)=>{"use strict";nA.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var bi=W((Hpe,iA)=>{"use strict";var W2=ze(),CQ=pt();iA.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=W2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=CQ.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var my=ze(),SQ=Fr().contrast,lA=yi(),DQ=py(),LQ=bi();oA.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");my.isPlainObject(l)||delete t.labelalias;var o=DQ(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",d=v.indexOf("inside")!==-1?SQ(i.bgColor):f&&f!==lA.color.dflt?f:u.color;if(my.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");LQ(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:qQ}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function qQ(e,r){function t(n,i){return my.coerce(e,r,lA.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var yy=W((Ype,sA)=>{"use strict";var EQ=py();sA.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=EQ(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var by=W((Upe,uA)=>{"use strict";var Zl=ze(),PQ=pt(),zQ=vy(),RQ=hy(),FQ=gy(),NQ=yy(),IQ=V2();uA.exports=function(r,t,a){var n=PQ.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Zl.coerce(i,n,IQ,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(v?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:v?u:s);var m=l("yref"),y=l("xref"),g=m==="paper",x=y==="paper",w,T,b,M="left";v?(b="middle",M=x?"left":"right",w=x?1.02:1,T=.5):(b=g?"bottom":"top",M="center",w=.5,T=g?1.02:1),Zl.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Zl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:T}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),Zl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var S=Zl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",S.indexOf("inside")!==-1?"hide past domain":"hide past div"),zQ(i,n,l,"linear");var A=a.font,L={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};S.indexOf("inside")!==-1&&(L.bgColor="black"),NQ(i,n,l,"linear",L),FQ(i,n,l,"linear",L),RQ(i,n,l,"linear",L),l("title.text",a._dfltTitle.colorbar);var q=n.showticklabels?n.tickfont:A,P=Zl.extendFlat({},A,{family:q.family,size:Zl.bigFont(q.size)});Zl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var D0=W((Gpe,vA)=>{"use strict";var fA=Vr(),_y=ze(),BQ=sy(),HQ=by(),cA=Yo().isValid,OQ=Ar().traceIs;function xy(e,r){var t=r.slice(0,r.length-1);return r?_y.nestedProperty(e,t).get()||{}:e}vA.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=xy(r,l),f=xy(t,l),v=xy(t._template||{},l)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},m=n(l+"coloraxis");if(m){var y=OQ(t,"contour")&&_y.nestedProperty(t,"contours.coloring").get()||"heatmap",g=h[m];g?(g[2].push(d),g[0]!==y&&(g[0]=!1,_y.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[m]=[y,t,[d]];return}}var x=u[o+"min"],w=u[o+"max"],T=fA(x)&&fA(w)&&x{"use strict";var dA=ze(),YQ=pt(),hA=oy(),UQ=D0();pA.exports=function(r,t){function a(v,d){return dA.coerce(r,t,hA,v,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,d){return dA.coerce(i,l,hA.coloraxis,v,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=YQ.newContainer(t,s,"coloraxis"),l._name=s,UQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var GQ=ze(),VQ=Xn().hasColorscale,XQ=Xn().extractOpts;gA.exports=function(r,t){function a(f,v){var d=f["_"+v];d!==void 0&&(f[v]=d)}function n(f,v){var d=v.container?GQ.nestedProperty(f,v.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=XQ(d),m=h.auto;(m||h.min===void 0)&&a(d,v.min),(m||h.max===void 0)&&a(d,v.max),h.autocolorscale&&a(d,"colorscale")}}for(var i=0;i{"use strict";var bA=Vr(),wy=ze(),WQ=Xn().extractOpts;xA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?wy.nestedProperty(t,l).get():t,s=WQ(o),u=s.auto!==!1,f=s.min,v=s.max,d=s.mid,h=function(){return wy.aggNums(Math.min,null,i)},m=function(){return wy.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&bA(f)?f=Math.min(f,h()):f=h()),v===void 0?v=m():u&&(o._colorAx&&bA(v)?v=Math.max(v,m()):v=m()),u&&d!==void 0&&(v-d>d-f?f=d-(v-d):v-d=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var My=W((Zpe,_A)=>{"use strict";var J2=Yo(),L0=Xn();_A.exports={moduleType:"component",name:"colorscale",attributes:kf(),layoutAttributes:oy(),supplyLayoutDefaults:mA(),handleDefaults:D0(),crossTraceDefaults:yA(),calc:Z2(),scales:J2.scales,defaultScale:J2.defaultScale,getScale:J2.get,isValidScale:J2.isValid,hasColorscale:L0.hasColorscale,extractOpts:L0.extractOpts,extractScale:L0.extractScale,flipScale:L0.flipScale,makeColorScaleFunc:L0.makeColorScaleFunc,makeColorScaleFuncFromTrace:L0.makeColorScaleFuncFromTrace}});var kn=W((Jpe,MA)=>{"use strict";var wA=ze(),ZQ=un().isTypedArraySpec;MA.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return wA.isPlainObject(r)&&(wA.isArrayOrTypedArray(r.size)||ZQ(r.size))}}});var AA=W(($pe,TA)=>{"use strict";var JQ=Vr();TA.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return JQ(s)&&s>0?Math.max(s,i):0}}});var xi=W(Da=>{"use strict";var Cf=ze();Da.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Da.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var Ty={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},QQ=/([astvzqmhlc])([^astvzqmhlc]*)/gi,eee=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function ree(e){let r=[];return e.replace(QQ,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=tee(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===Ty[i])return r.push([l,...o]),"";if(o.length{"use strict";var aee=Ay(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Lr="M0,0Z",DA=Math.sqrt(2),Jl=Math.sqrt(3),ky=Math.PI,Cy=Math.cos,Sy=Math.sin;zA.exports={circle:{n:0,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Er(r,t,n):n}},square:{n:1,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.3,2);return Er(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Er(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.8/DA,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Er(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Er(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Er(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Er(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Er(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Er(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Er(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Er(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Er(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Er(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Er(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Er(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.924,2),n=Je(e*.383,2);return Er(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(qr(r))return Lr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),v=Je(a*.809,2),d=Je(a*.382,2);return Er(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+d+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Er(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Er(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Er(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Er(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Er(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Er(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Er(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e/DA,2);return Er(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.3,2);return Er(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Er(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.4,2);return Er(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Er(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e/2,2),n=Je(e,2);return Er(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Er(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Er(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Er(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Er(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.4,2);return Er(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*1.4,2);return Er(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2);return Er(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e*2,2);return Er(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e*2,2);return Er(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2,2),n=Je(e,2);return Er(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2,2),n=Je(e,2);return Er(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e*2,2);return Er(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e,2),n=Je(e*2,2);return Er(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2,2),n=Je(e,2);return Er(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(qr(r))return Lr;var a=Je(e*2,2),n=Je(e,2);return Er(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(qr(r))return Lr;var a=ky/2.5,n=2*e*Cy(a),i=2*e*Sy(a);return Er(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(qr(r))return Lr;var a=ky/4,n=2*e*Cy(a),i=2*e*Sy(a);return Er(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function qr(e){return e===null}var LA,qA,EA,PA;function Er(e,r,t){if((!e||e%360===0)&&!r)return t;if(EA===e&&PA===r&&LA===t)return qA;EA=e,PA=r,LA=t;function a(g,x){var w=Cy(g),T=Sy(g),b=x[0],M=x[1]+(r||0);return[b*w-M*T,b*T+M*w]}for(var n=e/180*ky,i=0,l=0,o=aee(t),s="",u=0;u{"use strict";var da=Hr(),nt=ze(),nee=nt.numberFormat,$l=Vr(),K2=Ar(),sa=Fr(),iee=My(),Df=nt.strTranslate,j2=ba(),lee=jo(),oee=Ra(),see=oee.LINE_SPACING,VA=u2().DESELECTDIM,uee=kn(),fee=AA(),cee=xi().appendArrayPointValue,er=rk.exports={};er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(sa.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Dy(dee(f))),s&&e.style("text-shadow",s==="auto"?j2.makeTextShadow(sa.contrast(i)):Dy(s)),u&&e.style("text-decoration-line",Dy(hee(u)))};function Dy(e){return e==="none"?void 0:e}var vee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function dee(e){return vee[e]}function hee(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if($l(n)&&$l(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Df(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=da.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=K2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,da.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!$l(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";sa.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";da.select(this).call(sa.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function XA(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),d=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,v,d,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var g,x;m==="horizontal"?(g={x:i.start,y:0},x={x:i.stop,y:0}):m==="vertical"&&(g={x:0,y:i.start},x={x:0,y:i.stop}),g.x=r._xA.c2p(g.x===void 0?r._extremes.x.min[0].val:g.x,!0),g.y=r._yA.c2p(g.y===void 0?r._extremes.y.min[0].val:g.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(JA,t,y,"linear",i.colorscale,"fill",g,x,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(er.gradient,t,y,m,i.colorscale,"fill")}else r.fillcolor&&e.call(sa.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=da.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};XA(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=da.select(this);a[0].trace&&XA(n,a[0].trace,r,t)})};var FA=RA();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(FA).forEach(function(e){var r=FA[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var pee=er.symbolNames.length,mee="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if($l(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=pee||e>=400?0:Math.floor(Math.max(e,0))};function WA(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?mee:"")}var NA=nee("~f"),ZA={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}};er.gradient=function(e,r,t,a,n,i){var l=ZA[a];return JA(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function JA(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var d=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Fy(e,t),v=Ry(e,t);r.attr("d",WA(u,s,f,v))}var d=!1,h,m,y;if(e.so)y=o.outlierwidth,m=o.outliercolor,h=l.outliercolor;else{var g=(o||{}).width;y=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):nt.isArrayOrTypedArray(o.color)?m=sa.defaultLine:m=o.color,nt.isArrayOrTypedArray(l.color)&&(h=sa.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let x=e.mld||(o||{}).dash;if(x&&er.dashLine(r,x,y),e.om)r.call(sa.stroke,h).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var w=l.gradient,T=e.mgt;T?d=!0:T=w&&w.type,nt.isArrayOrTypedArray(T)&&(T=T[0],ZA[T]||(T=0));var b=l.pattern,M=er.getPatternAttr,S=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(T&&T!=="none"){var A=e.mgc;A?d=!0:A=w.color;var L=t.uid;d&&(L+="-"+e.i),er.gradient(r,n,L,T,[[0,A],[1,h]],"fill")}else if(S){var q=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,q=!0);var R=M(P,e.i,i&&i.color||null),N=M(b.bgcolor,e.i,null),B=b.fgopacity,I=M(b.size,e.i,8),H=M(b.solidity,e.i,.3);q=q||e.mcc||nt.isArrayOrTypedArray(b.shape)||nt.isArrayOrTypedArray(b.path)||nt.isArrayOrTypedArray(b.bgcolor)||nt.isArrayOrTypedArray(b.fgcolor)||nt.isArrayOrTypedArray(b.size)||nt.isArrayOrTypedArray(b.solidity);var Y=t.uid;q&&(Y+="-"+e.i),er.pattern(r,"point",n,Y,S,I,H,e.mcc,b.fillmode,N,R,B)}else nt.isArrayOrTypedArray(h)?sa.fill(r,h[e.i]):sa.fill(r,h);y&&sa.stroke(r,m)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),K2.traceIs(e,"symbols")&&(r.ms2mrc=uee.isBubble(e)?fee(e):function(){return(t.size||6)/2}),e.selectedpoints&&nt.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(nt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:v?u:VA*M});var d=n.color,h=i.color,m=l.color;(h||m)&&(r.selectedColorFn=function(b){var M=b.mcc||d;return b.selected?h||M:m||M});var y=n.size,g=i.size,x=l.size,w=g!==void 0,T=x!==void 0;return K2.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?w?g/2:M:T?x/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:sa.addOpacity(v,VA))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){sa.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",WA(er.symbolNumber(o),s,Fy(l,r),Ry(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=da.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=da.select(this),u=i?nt.extractOption(o,r,"txt","texttemplate"):nt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},d={};cee(d,r,o.i),u=nt.texttemplateString({data:[d,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,m=KA(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:y}).text(u).call(j2.convertToTspans,t).call($A,h,m,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=da.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=KA(a,r);sa.fill(n,i);var s=K2.traceIs(r,"bar-like");$A(n,l,o,a.mrc2||a.mrc,s)})}};var IA=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=v&&M>=u||M>=v&&M<=u)&&(e=[b,M])}return e}er.applyBackoff=ek;er.makeTester=function(){var e=nt.ensureSingleById(da.select("body"),"svg","js-plotly-tester",function(t){t.attr(lee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=nt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var qy=0,bee=1e4;er.bBox=function(e,r,t){t||(t=BA(e));var a;if(t){if(a=er.savedBBoxes[t],a)return nt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=BA(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return nt.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),da.select(u).attr("transform",null).call(j2.positionText,0,0);var v=u.getBoundingClientRect(),d=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:v.height,width:v.width,left:v.left-d.left,top:v.top-d.top,right:v.right-d.left,bottom:v.bottom-d.top};return qy>=bee&&(er.savedBBoxes={},qy=0),t&&(er.savedBBoxes[t]=h),qy++,nt.extendFlat({},h)};function BA(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",zy(r,t))};function zy(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Df(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var xee=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(xee,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var _ee=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=da.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(_ee);r===1&&t===1?a=[]:a=[Df(l,o),"scale("+r+","+t+")",Df(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Ry(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=Ry;var Sf=Math.atan2,rs=Math.cos,E0=Math.sin;function HA(e,r){var t=r[0],a=r[1];return[t*rs(e)-a*E0(e),t*E0(e)+a*rs(e)]}var OA,YA,UA,GA,Ey,Py;function Fy(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!$l(t)||nt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),d=r._geo.project([u+1e-5,f]),h=Sf(d[1]-n,d[0]-a),m=Sf(v[1]-n,v[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var g=u/180*Math.PI,x=f/180*Math.PI,w=OA/180*Math.PI,T=YA/180*Math.PI,b=w-g,M=rs(T)*E0(b),S=E0(T)*rs(x)-rs(T)*E0(x)*rs(b);y=-Sf(M,S)-Math.PI,OA=u,YA=f}var A=HA(h,[rs(y),0]),L=HA(m,[E0(y),0]);t=Sf(A[1]+L[1],A[0]+L[0])/Math.PI*180,i==="previous"&&!(Py===r.uid&&e.i===Ey+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Py===r.uid&&e.i===Ey+1&&$l(a)&&$l(n)){var q=a-UA,P=n-GA,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(P=0),N==="v"&&(q=0),t+=Sf(P,q)/Math.PI*180+90}else t=null}return UA=a,GA=n,Ey=e.i,Py=r.uid,t}er.getMarkerAngle=Fy});var Lf=W((rme,ik)=>{"use strict";var P0=Hr(),wee=Vr(),Mee=$t(),Ny=Ar(),ns=ze(),tk=ns.strTranslate,Q2=it(),e1=Fr(),z0=ba(),ak=u2(),Tee=Ra().OPPOSITE_SIDE,nk=/ [XY][0-9]* /,Iy=1.6,By=1.6;function Aee(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,d=1,h=n.title,m=(h&&h.text?h.text:"").trim(),y=!1,g=h&&h.font?h.font:{},x=g.family,w=g.size,T=g.color,b=g.weight,M=g.style,S=g.variant,A=g.textcase,L=g.lineposition,q=g.shadow,P=t.subtitlePropName,R=!!P,N=t.subtitlePlaceholder,B=(n.title||{}).subtitle||{text:"",font:{}},I=(B.text||"").trim(),H=!1,Y=1,G=B.font,O=G.family,X=G.size,J=G.color,Z=G.weight,ee=G.style,ne=G.variant,fe=G.textcase,we=G.lineposition,j=G.shadow,_e;i==="title.text"?_e="titleText":i.indexOf("axis")!==-1?_e="axisTitleText":i.indexOf("colorbar")!==-1&&(_e="colorbarTitleText");var ue=e._context.edits[_e];function Me(Ke,We){return Ke===void 0||We===void 0?!1:Ke.replace(nk," % ")===We.replace(nk," % ")}m===""?d=0:Me(m,l)&&(ue||(m=""),d=.2,y=!0),R&&(I===""?Y=0:Me(I,N)&&(ue||(I=""),Y=.2,H=!0)),t._meta?m=ns.templateString(m,t._meta):a._meta&&(m=ns.templateString(m,a._meta));var ye=m||I||ue,ce;v||(v=ns.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var Te=v.selectAll("text."+r).data(ye?[0]:[]);Te.enter().append("text"),Te.text(m).attr("class",r),Te.exit().remove();var Re=null,be=r+"-subtitle",qe=I||ue;if(R&&(Re=v.selectAll("text."+be).data(qe?[0]:[]),Re.enter().append("text"),Re.text(I).attr("class",be),Re.exit().remove()),!ye)return v;function Ce(Ke,We){ns.syncOrAsync([De,Ee],{title:Ke,subtitle:We})}function De(Ke){var We=Ke.title,Ae=Ke.subtitle,Pe;!f&&ce&&(f={}),f?(Pe="",f.rotate&&(Pe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(Pe+=tk(0,(f.offset||0)-(ce||0)))):Pe=null,We.attr("transform",Pe);function je(de){if(de){var xe=P0.select(de.node().parentNode).select("."+be);if(!xe.empty()){var He=de.node().getBBox();if(He.height){var Ze=He.y+He.height+Iy*X;xe.attr("y",Ze)}}}}if(We.style("opacity",d*e1.opacity(T)).call(Q2.font,{color:e1.rgb(T),size:P0.round(w,2),family:x,weight:b,style:M,variant:S,textcase:A,shadow:q,lineposition:L}).attr(u).call(z0.convertToTspans,e,je),Ae&&!Ae.empty()){var re=v.select("."+r+"-math-group"),he=We.node().getBBox(),Ve=re.node()?re.node().getBBox():void 0,dr=Ve?Ve.y+Ve.height+Iy*X:he.y+he.height+By*X,Le=ns.extendFlat({},u,{y:dr});Ae.attr("transform",Pe),Ae.style("opacity",Y*e1.opacity(J)).call(Q2.font,{color:e1.rgb(J),size:P0.round(X,2),family:O,weight:Z,style:ee,variant:ne,textcase:fe,shadow:j,lineposition:we}).attr(Le).call(z0.convertToTspans,e)}return Mee.previousPromises(e)}function Ee(Ke){var We=Ke.title,Ae=P0.select(We.node().parentNode);if(s&&s.selection&&s.side&&m){Ae.attr("transform",null);var Pe=Tee[s.side],je=s.side==="left"||s.side==="top"?-1:1,re=wee(s.pad)?s.pad:2,he=Q2.bBox(Ae.node()),Ve={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Le in dr)for(var de in dr[Le]){var xe=dr[Le][de];Ve[de]=Math.max(Ve[de],xe)}var He={left:Ve.l,top:Ve.t,right:a.width-Ve.r,bottom:a.height-Ve.b},Ze=s.maxShift||je*(He[s.side]-he[s.side]),Ie=0;if(Ze<0)Ie=Ze;else{var Ge=s.offsetLeft||0,ar=s.offsetTop||0;he.left-=Ge,he.right-=Ge,he.top-=ar,he.bottom-=ar,s.selection.each(function(){var ur=Q2.bBox(this);ns.bBoxIntersect(he,ur,re)&&(Ie=Math.max(Ie,je*(ur[s.side]-he[Pe])+re))}),Ie=Math.min(Ze,Ie),n._titleScoot=Math.abs(Ie)}if(Ie>0||Ze<0){var ir={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[s.side];Ae.attr("transform",tk(ir[0],ir[1]))}}}Te.call(Ce,Re);function Ue(Ke,We){Ke.text(We).on("mouseover.opacity",function(){P0.select(this).transition().duration(ak.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){P0.select(this).transition().duration(ak.HIDE_PLACEHOLDER).style("opacity",0)})}if(ue&&(m?Te.on(".opacity",null):(Ue(Te,l),y=!0),Te.call(z0.makeEditable,{gd:e}).on("edit",function(Ke){o!==void 0?Ny.call("_guiRestyle",e,i,Ke,o):Ny.call("_guiRelayout",e,i,Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ce)}).on("input",function(Ke){this.text(Ke||" ").call(z0.positionText,u.x,u.y)}),R)){if(R&&!m){var ke=Te.node().getBBox(),Xe=ke.y+ke.height+By*X;Re.attr("y",Xe)}I?Re.on(".opacity",null):(Ue(Re,N),H=!0),Re.call(z0.makeEditable,{gd:e}).on("edit",function(Ke){Ny.call("_guiRelayout",e,"title.subtitle.text",Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ce)}).on("input",function(Ke){this.text(Ke||" ").call(z0.positionText,Re.attr("x"),Re.attr("y"))})}return Te.classed("js-placeholder",y),Re&&!Re.empty()&&Re.classed("js-placeholder",H),v}ik.exports={draw:Aee,SUBTITLE_PADDING_EM:By,SUBTITLE_PADDING_MATHJAX_EM:Iy}});var s1=W((tme,fk)=>{"use strict";var kee=Hr(),Cee=Ks().utcFormat,ft=ze(),See=ft.numberFormat,Xi=Vr(),Kl=ft.cleanNumber,Dee=ft.ms2DateTime,lk=ft.dateTime2ms,Wi=ft.ensureNumber,ok=ft.isArrayOrTypedArray,jl=aa(),r1=jl.FP_SAFE,_i=jl.BADNUM,Lee=jl.LOG_CLIP,qee=jl.ONEWEEK,t1=jl.ONEDAY,a1=jl.ONEHOUR,sk=jl.ONEMIN,uk=jl.ONESEC,n1=la(),o1=va(),i1=o1.HOUR_PATTERN,l1=o1.WEEKDAY_PATTERN;function qf(e){return Math.pow(10,e)}function Hy(e){return e!=null}fk.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var S=r.range[0],A=r.range[1];return .5*(S+A-2*Lee*Math.abs(S-A))}else return _i}function l(b,M,S,A){if((A||{}).msUTC&&Xi(b))return+b;var L=lk(b,S||r.calendar);if(L===_i)if(Xi(b)){b=+b;var q=Math.floor(ft.mod(b+.05,1)*10),P=Math.round(b-q/10);L=lk(new Date(P))+q/10}else return _i;return L}function o(b,M,S){return Dee(b,M,S||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Hy(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return _i}function f(b,M){for(var S=new Array(M),A=0;Ar.range[1]&&(S=!S);for(var A=S?-1:1,L=A*b,q=0,P=0;PN)q=P+1;else{q=L<(R+N)/2?P:P+1;break}}var B=r._B[q]||0;return isFinite(B)?m(b,r._m2,B):0},x=function(b){var M=r._rangebreaks.length;if(!M)return y(b,r._m,r._b);for(var S=0,A=0;Ar._rangebreaks[A].pmax&&(S=A+1);return y(b,r._m2,r._B[S])}}r.c2l=r.type==="log"?i:Wi,r.l2c=r.type==="log"?qf:Wi,r.l2p=g,r.p2l=x,r.c2p=r.type==="log"?function(b,M){return g(i(b,M))}:g,r.p2c=r.type==="log"?function(b){return qf(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Kl,r.c2d=r.c2r=r.l2d=r.l2r=Wi,r.d2p=r.r2p=function(b){return r.l2p(Kl(b))},r.p2d=r.p2r=x,r.cleanPos=Wi):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Kl(b),M)},r.r2d=r.r2c=function(b){return qf(Kl(b))},r.d2c=r.r2l=Kl,r.c2d=r.l2r=Wi,r.c2r=i,r.l2d=qf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return qf(x(b))},r.r2p=function(b){return r.l2p(Kl(b))},r.p2r=x,r.cleanPos=Wi):r.type==="date"?(r.d2r=r.r2d=ft.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,S){return r.l2p(l(b,0,S))},r.p2d=r.p2r=function(b,M,S){return o(x(b),M,S)},r.cleanPos=function(b){return ft.cleanDate(b,_i,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Wi,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Wi(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Wi,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Wi(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,S,A,L=r._matchGroup;if(L&&r._categories.length===0){for(var q in L)if(q!==a){var P=t[n1.id2name(q)];M=M.concat(P._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(S=0;SP[1]&&(A[q?0:1]=S,L[1]=P[1]),L[0]>=L[1])if(M!==void 0){var R=P[0]+1;S!==void 0&&(R=Math.min(R,P[1])),A[q?0:1]=r.l2r(R)}else S!==void 0&&(A[q?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var S=ft.nestedProperty(r,b).get(),A,L;if(r.type==="date"?L=ft.dfltRange(r.calendar):n==="y"?L=o1.DFLTRANGEY:r._name==="realaxis"?L=[0,1]:L=M.dfltRange||o1.DFLTRANGEX,L=L.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(L[0]=0),!S||S.length!==2){ft.nestedProperty(r,b).set(L);return}var q=S[0]===null,P=S[1]===null;for(r.type==="date"&&!r.autorange&&(S[0]=ft.cleanDate(S[0],_i,r.calendar),S[1]=ft.cleanDate(S[1],_i,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!ft.isDateTime(S[A],r.calendar)){r[b]=L;break}if(r.r2l(S[0])===r.r2l(S[1])){var R=ft.constrain(r.r2l(S[0]),ft.MIN_MS+1e3,ft.MAX_MS-1e3);S[0]=r.l2r(R-1e3),S[1]=r.l2r(R+1e3);break}}else{if(!Xi(S[A]))if(!(q||P)&&Xi(S[1-A]))S[A]=S[1-A]*(A?10:.1);else{r[b]=L;break}if(S[A]<-r1?S[A]=-r1:S[A]>r1&&(S[A]=r1),S[0]===S[1]){var N=Math.max(1,Math.abs(S[0]*1e-6));S[0]-=N,S[1]+=N}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var S=n1.getFromId({_fullLayout:t},r.overlaying);r.domain=S.domain}var A=b&&r._r?"_r":"range",L=r.calendar;r.cleanRange(A);var q=r.r2l(r[A][0],L),P=r.r2l(r[A][1],L),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(q-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-q),r._b=-r._m*q),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,B;if(r._rangebreaks=r.locateBreaks(Math.min(q,P),Math.max(q,P)),r._rangebreaks.length){for(N=0;NP&&(I=!I),I&&r._rangebreaks.reverse();var H=I?-1:1;for(r._m2=H*r._length/(Math.abs(P-q)-r._lBreaks),r._B.push(-r._m2*(R?P:q)),N=0;NL&&(L+=7,qL&&(L+=24,q=A&&q=A&&b=j.min&&(eej.max&&(j.max=ne),fe=!1)}fe&&P.push({min:ee,max:ne})}};for(S=0;S{"use strict";var ck=Vr(),Oy=ze(),Eee=aa().BADNUM,u1=Oy.isArrayOrTypedArray,Pee=Oy.isDateTime,zee=Oy.cleanNumber,vk=Math.round;hk.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(u1(n)&&!n.length)return"-";if(!i&&Bee(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function dk(e){return Math.max(1,(e-1)/1e3)}function Iee(e,r){for(var t=e.length,a=dk(t),n=0,i=0,l={},o=0;on*2}function Bee(e){return u1(e[0])&&u1(e[1])}});var Ef=W((nme,wk)=>{"use strict";var Hee=Hr(),yk=Vr(),Ql=ze(),f1=aa().FP_SAFE,Oee=Ar(),Yee=it(),bk=la(),Uee=bk.getFromId,Gee=bk.isLinked;wk.exports={applyAutorangeOptions:_k,getAutoRange:Uy,makePadFn:Gy,doAutoRange:Xee,findExtremes:Wee,concatExtremes:Wy};function Uy(e,r){var t,a,n=[],i=e._fullLayout,l=Gy(i,r,0),o=Gy(i,r,1),s=Wy(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ql.simpleMap(r.range,r.r2l);var v=u[0].val,d=f[0].val;for(t=1;t0&&(P=T-l(S)-o(A),P>b?R/P>M&&(L=S,q=A,M=R/P):R/T>M&&(L={val:S.val,nopad:1},q={val:A.val,nopad:1},M=R/T));function N(G,O){return Math.max(G,o(O))}if(v===d){var B=v-1,I=v+1;if(x)if(v===0)n=[0,1];else{var H=(v>0?f:u).reduce(N,0),Y=v/(1-Math.min(.5,H/T));n=v>0?[0,Y]:[Y,0]}else w?n=[Math.max(0,B),Math.max(1,I)]:n=[B,I]}else x?(L.val>=0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:0,nopad:1})):w&&(L.val-M*l(L)<0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:1,nopad:1})),M=(q.val-L.val-pk(r,S.val,A.val))/(T-l(L)-o(q)),n=[L.val-M*l(L),q.val+M*o(q)];return n=_k(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),Ql.simpleMap(n,r.l2r||Number)}function pk(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),S=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=b(t.vpadplus||t.vpad),L=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,T=-1/0,s)for(v=0;v0&&(w=d),d>T&&d-f1&&(w=d),d>T&&d=R;v--)P(v);return{min:a,max:n,opts:t}}function Vy(e,r,t,a){xk(e,r,t,a,Zee)}function Xy(e,r,t,a){xk(e,r,t,a,Jee)}function xk(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function gk(e){return yk(e)&&Math.abs(e)=r}function $ee(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&c1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&c1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Kee(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&c1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&c1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function c1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=$ee(t,r),a=Kee(a,r),[t,a]}});var wt=W((lme,Vk)=>{"use strict";var Wn=Hr(),Gt=Vr(),R0=$t(),zf=Ar(),Tr=ze(),F0=Tr.strTranslate,is=ba(),jee=Lf(),Rf=Fr(),Cn=it(),Qee=yi(),Mk=cy(),ime=va(),La=aa(),ere=La.ONEMAXYEAR,h1=La.ONEAVGYEAR,p1=La.ONEMINYEAR,rre=La.ONEMAXQUARTER,Ky=La.ONEAVGQUARTER,m1=La.ONEMINQUARTER,tre=La.ONEMAXMONTH,N0=La.ONEAVGMONTH,g1=La.ONEMINMONTH,Sn=La.ONEWEEK,Xa=La.ONEDAY,eo=Xa/2,Ji=La.ONEHOUR,Ff=La.ONEMIN,y1=La.ONESEC,are=La.ONEMILLI,nre=La.ONEMICROSEC,ls=La.MINUS_SIGN,x1=La.BADNUM,jy={K:"zeroline"},Qy={K:"gridline",L:"path"},e3={K:"minor-gridline",L:"path"},zk={K:"tick",L:"path"},Tk={K:"tick",L:"text"},Ak={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},_1=Ra(),Pf=_1.MID_SHIFT,os=_1.CAP_SHIFT,Nf=_1.LINE_SPACING,ire=_1.OPPOSITE_SIDE,b1=3,Be=Vk.exports={};Be.setConvert=s1();var lre=Yy(),$i=la(),ore=$i.idSort,sre=$i.isLinked;Be.id2name=$i.id2name;Be.name2id=$i.name2id;Be.cleanId=$i.cleanId;Be.list=$i.list;Be.listIds=$i.listIds;Be.getFromId=$i.getFromId;Be.getFromTrace=$i.getFromTrace;var Rk=Ef();Be.getAutoRange=Rk.getAutoRange;Be.findExtremes=Rk.findExtremes;var ure=1e-4;function n3(e){var r=(e[1]-e[0])*ure;return[e[0]-r,e[1]+r]}function fre(e,r,t){if(![t,e,r].every(Gt)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)d+" domain")),s=s.concat(i||[]),f.length>l?(Tr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Be.saveRangeInitial=function(e,r){for(var t=Be.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var d=t.dtick/2;e+=e+dl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Be.tickIncrement(e,"M6","reverse")+Xa*1.5:i.exactMonths>l?e=Be.tickIncrement(e,"M1","reverse")+Xa*15.5:e-=eo;var s=Be.tickIncrement(e,t);if(s<=a)return s}return e}Be.prepMinorTicks=function(e,r,t){var v,d;if(!((v=r.minor)!=null&&v.dtick)){delete e.dtick;var a=r.dtick&&Gt(r._tmin),n;if(a){var i=Be.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Tr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Tr.simpleMap(n,r.l2r),e._isMinor=!0,Be.prepTicks(e,t),a){var o=Gt(r.dtick),s=Gt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Zy(u,f)?u===2*Sn&&f===2*Xa&&(e.dtick=Sn):u===2*Sn&&f===3*Xa?e.dtick=Sn:u===Sn&&!(r._input.minor||{}).nticks?e.dtick=Xa:Sk(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Zy(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Zy(u,f)||(e.dtick=Sk(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0)};function Zy(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Sk(e,r){return Math.abs(e/r-1)<.001}Be.prepTicks=function(e,r){var t=Tr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Tr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Tr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Be.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=p1?u>=p1&&u<=ere?v=u:v=h1:t===Ky&&f>=m1?u>=m1&&u<=rre?v=u:v=Ky:f>=g1?u>=g1&&u<=tre?v=u:v=N0:t===Sn&&f>=Sn?v=Sn:f>=Xa?v=Xa:t===eo&&f>=eo?v=eo:t===Ji&&f>=Ji&&(v=Ji);var d;v>=u&&(v=u,d=!0);var h=n+v;if(r.rangebreaks&&v>0){for(var m=84,y=0,g=0;gSn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Be.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Tr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Tr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);M--){var S=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:Tr.extendFlat({},r,b?r.minor:{minor:{}});if(S?Be.prepMinorTicks(A,r,t):Be.prepTicks(A,t),A.tickmode==="array"){M?(g=[],m=Dk(r,!S)):(x=[],y=Dk(r,!S));continue}if(A.tickmode==="sync"){g=[],m=mre(r);continue}var L=n3(u),q=L[0],P=L[1],R=Gt(A.dtick),N=a==="log"&&!(R||A.dtick.charAt(0)==="L"),B=Be.tickFirst(A,t);if(M){if(r._tmin=B,B=P:H<=P;H=Be.tickIncrement(H,O,f,n)){if(M&&Y++,A.rangebreaks&&!f){if(H=d)break}if(g.length>h||H===I)break;I=H;var J={value:fre(H,X,O)};M?(H===B&&(J.first=!0),N&&H!==(H|0)&&(J.simpleLabel=!0),i>1&&Y%i&&(J.skipLabel=!0),g.push(J)):(J.minor=!0,x.push(J))}}if(!x||x.length<3)s=!1;else{var Z=(x[2].value-x[1].value)*(o?-1:1);Ore(Z,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)w=g;else{var ee=g.concat(x);l&&g.length&&(ee=ee.slice(1)),ee=ee.sort(function(We,Ae){return We.value-Ae.value}).filter(function(We,Ae,Pe){return Ae===0||We.value!==Pe[Ae-1].value});var ne=ee.map(function(We,Ae){return We.minor===void 0&&!We.skipLabel?Ae:null}).filter(function(We){return We!==null});ne.forEach(function(We){s.map(function(Ae){var Pe=We+Ae;Pe>=0&&Pe-1;Te--){if(g[Te].drop){g.splice(Te,1);continue}g[Te].value=$y(g[Te].value,r);var Ce=r.c2p(g[Te].value);(Re?qe>Ce-be:qed||jed&&(Pe.periodX=d),jen&&mn&&gh1)r/=h1,a=n(10),e.dtick="M"+12*Zi(r,a,v1);else if(i>N0)r/=N0,e.dtick="M"+Zi(r,1,Lk);else if(i>Xa){if(e.dtick=Zi(r,Xa,e._hasDayOfWeekBreaks?[1,2,7,14]:gre),!t){var l=Be.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Tr.dateTick0(e.calendar,2):e.tick0=Tr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Ji?e.dtick=Zi(r,Ji,Lk):i>Ff?e.dtick=Zi(r,Ff,qk):i>y1?e.dtick=Zi(r,y1,qk):(a=n(10),e.dtick=Zi(r,a,v1))}else if(e.type==="log"){e.tick0=0;var s=Tr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Zi(r,a,v1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):s3(e)?(e.tick0=0,a=1,e.dtick=Zi(r,a,yre)):(e.tick0=0,a=n(10),e.dtick=Zi(r,a,v1));if(e.dtick===0&&(e.dtick=1),!Gt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Bk(e){var r=e.dtick;if(e._tickexponent=0,!Gt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Xa&&n<=10||r>=Xa*15)e._tickround="d";else if(r>=Ff&&n<=16||r>=Ji)e._tickround="M";else if(r>=y1&&n<=19||r>=Ff)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Gt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Gt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(I0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!i3(s)||I0(e.exponentformat)&&e.exponentformat==="SI extended"&&!l3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Be.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Gt(r))return Tr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Tr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?Ik:Nk,s=e+n*.01,u=Tr.roundUp(Tr.mod(s,1),o,t);return Math.floor(s)+Math.log(Wn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Be.tickFirst=function(e,r){var t=e.r2l||Number,a=Tr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?T:null};if(s&&Tr.isArrayOrTypedArray(e.ticktext)){var m=Tr.simpleMap(e.range,e.r2l),y=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(d=0;d"+o;else{var u=Bf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function xre(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=If(Math.pow(10,l),e,n,a);else if(Gt(i)||s==="D"&&(e.minorloglabels==="complete"||Tr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Tr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),d=+v[1],h=Math.abs(d),m=e.exponentformat;m==="power"||I0(m)&&m!=="SI extended"&&i3(d)||I0(m)&&m==="SI extended"&&l3(d)?(r.text=v[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":ls)+h+""),r.fontSize*=1.25):(m==="e"||m==="E")&&h>2?r.text=v[0]+m+(d>0?"+":ls)+h:(r.text=If(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Tr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function _re(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function wre(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Mre(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=If(r.x,e,n,a)}function Tre(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Are(i);if(l[1]>=100)r.text=If(Tr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ls+r.text)}}}else r.text=If(r.x,e,n,a)}function Are(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Ok=["f","p","n","\u03BC","m","","k","M","G","T"],kre=["q","r","y","z","a",...Ok,"P","E","Z","Y","R","Q"],I0=e=>["SI","SI extended","B"].includes(e);function i3(e){return e>14||e<-15}function l3(e){return e>32||e<-30}function Cre(e,r){return I0(r)?!!(r==="SI extended"&&l3(e)||r!=="SI extended"&&i3(e)):!1}function If(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Be.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Gt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Bk(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ls);l==="none"&&(o=0),e=Math.abs(e);let v=Math.pow(10,-i)/2;if(e"+d+"":l==="B"&&o===9?e+="B":I0(l)&&(e+=l==="SI extended"?kre[o/3+10]:Ok[o/3+5])}return n?ls+e:e}Be.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*N0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),d=f.indexOf(u.charAt(0));return v===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-d}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},d=u[0],h=u[1];return(!d&&typeof d!="number"||v(d)<=v(s))&&(!h&&typeof h!="number"||v(h)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(v||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return Tr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Be.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Be.drawOne(e,u,t);return u._shiftPusher&&a3(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Tr.simpleMap(u._r,u.r2l),f}}}))};Be.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Be.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),a3(r,m,a,!0),a3(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Hre(r,a));var y=d[f+"axislayer"],g=r._mainLinePosition,x=g+=r._shift,w=r._mainMirrorPosition,T=r._vals=Be.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i0?Ae.bottom-Ke:0,We))));var he=0,Ve=0;if(r._shiftPusher&&(he=Math.max(We,Ae.height>0?ke==="l"?Ke-Ae.left:Ae.right-Ke:0),r.title.text!==s._dfltTitle[f]&&(Ve=(r._titleStandoff||0)+(r._titleScoot||0),ke==="l"&&(Ve+=Pk(r))),r._fullDepth=Math.max(he,Ve)),r.automargin){Pe={x:0,y:0,r:0,l:0,t:0,b:0};var dr=[0,1],Le=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ke==="b"?Pe[ke]=r._depth:(Pe[ke]=r._depth=Math.max(Ae.width>0?Ke-Ae.top:0,We),dr.reverse()),Ae.width>0){var de=Ae.right-(r._offset+r._length);de>0&&(Pe.xr=1,Pe.r=de);var xe=r._offset-Ae.left;xe>0&&(Pe.xl=0,Pe.l=xe)}}else if(ke==="l"?(r._depth=Math.max(Ae.height>0?Ke-Ae.left:0,We),Pe[ke]=r._depth-Le):(r._depth=Math.max(Ae.height>0?Ae.right-Ke:0,We),Pe[ke]=r._depth+Le,dr.reverse()),Ae.height>0){var He=Ae.bottom-(r._offset+r._length);He>0&&(Pe.yb=0,Pe.b=He);var Ze=r._offset-Ae.top;Ze>0&&(Pe.yt=1,Pe.t=Ze)}Pe[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(Pe[ke]+=Pk(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(je={x:0,y:0,r:0,l:0,t:0,b:0},je[Xe]=r.linewidth,r.mirror&&r.mirror!==!0&&(je[Xe]+=We),r.mirror===!0||r.mirror==="ticks"?je[v]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(je[v]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}Ue&&(re=zf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Ek(Pe,r.automargin),Ek(je,r.automargin)),R0.autoMargin(e,o3(r),Pe),R0.autoMargin(e,Uk(r),je),R0.autoMargin(e,Gk(r),re)}),Tr.syncOrAsync(De)}};function Ek(e,r){if(e){var t=Object.keys(Ak).reduce(function(a,n){return r.indexOf(n)!==-1&&Ak[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Sre(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Tr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(d){return F0(n+e._offset+e.l2p(r3(d))+t,i+a)}:function(d){return F0(i+a,n+e._offset+e.l2p(r3(d))+t)}};function r3(e){return e.periodX!==void 0?e.periodX:e.x}function Ere(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,d=b1,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=h*os,d+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,d+=b1),s&&f==="top"&&(d-=h*(1-os)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(d=-d),[u?v:0,s?d:0]}Be.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Be.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(B){return a.indexOf(B)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),d=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",h=0,m=0,y=d?e.ticklen:0;if(v?y*=-1:f&&(y=0),d&&(h+=y,t)){var g=Tr.deg2rad(t);h=y*Math.cos(g)+1,m=y*Math.sin(g)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(v?-1:1);var x={labelStandoff:h,labelShift:m},w,T,b,M,S=0,A=e.side,L=e._id.charAt(0),q=e.tickangle,P;if(L==="x")P=!v&&A==="bottom"||v&&A==="top",M=P?1:-1,v&&(M*=-1),w=m*M,T=r+h*M,b=P?1:-.2,Math.abs(q)===90&&(v?b+=Pf:q===-90&&A==="bottom"?b=os:q===90&&A==="top"?b=Pf:b=.5,S=Pf/2*(q/90)),x.xFn=function(B){return B.dx+w+S*B.fontSize},x.yFn=function(B){return B.dy+T+B.fontSize*b},x.anchorFn=function(B,I){if(f){if(o)return"end";if(s)return"start"}return!Gt(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},x.heightFn=function(B,I,H){return I<-60||I>60?-.5*H:e.side==="top"!==v?-H:0};else if(L==="y"){if(P=!v&&A==="left"||v&&A==="right",M=P?1:-1,v&&(M*=-1),w=h,T=m*M,b=0,!v&&Math.abs(q)===90&&(q===-90&&A==="left"||q===90&&A==="right"?b=os:b=.5),v){var R=Gt(q)?+q:0;if(R!==0){var N=Tr.deg2rad(R);S=Math.abs(Math.sin(N))*os*M,b=0}}x.xFn=function(B){return B.dx+r-(w+B.fontSize*b)*M+S*B.fontSize},x.yFn=function(B){return B.dy+T+B.fontSize*Pf},x.anchorFn=function(B,I){return Gt(I)&&Math.abs(I)===90?"middle":P?"end":"start"},x.heightFn=function(B,I,H){return e.side==="right"&&(I*=-1),I<-30?-H:I<30?-.5*H:0}}return x};function w1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Be.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,w1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Rf.stroke(Wn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Cn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),M1(r,[zk]),i.attr("transform",t.transFn)};Be.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],l=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],o=t.counterAxis;if(o&&Be.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var y=m?d:h;if(y){var g=y.selectAll("path."+a).data(m?l:i,w1);g.exit().remove(),g.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),g.attr("transform",t.transFn).attr("d",t.path).each(function(x){return Rf.stroke(Wn.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Cn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&g.attr("d",t.path)}}M1(r,[Qy,e3])}};Be.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Be.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return ore(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Rf.stroke,r.zerolinecolor||Rf.defaultLine).style("stroke-width",Cn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),M1(r,[jy])};Be.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(X){return X.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],w1),d=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(X){var J=Wn.select(this),Z=e._promises.length;J.call(is.positionText,s.xFn(X),s.yFn(X)).call(Cn.font,{family:X.font,size:X.fontSize,color:X.fontColor,weight:X.fontWeight,style:X.fontStyle,variant:X.fontVariant,textcase:X.fontTextcase,lineposition:X.fontLineposition,shadow:X.fontShadow}).text(X.text).call(is.convertToTspans,e),e._promises[Z]?d.push(e._promises.pop().then(function(){h(J,u)})):h(J,u)}),M1(r,[Tk]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(X){Wn.select(this).select("text").call(is.positionText,s.xFn(X),s.yFn(X))});function h(X,J){X.each(function(Z){var ee=Wn.select(this),ne=ee.select(".text-math-group"),fe=s.anchorFn(Z,J),we=t.transFn.call(ee.node(),Z)+(Gt(J)&&+J!=0?" rotate("+J+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),j=is.lineCount(ee),_e=Nf*Z.fontSize,ue=s.heightFn(Z,Gt(J)?+J:0,(j-1)*_e);if(ue&&(we+=F0(0,ue)),ne.empty()){var Me=ee.select("text");Me.attr({transform:we,"text-anchor":fe}),Me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ye=Cn.bBox(ne.node()).width,ce=ye*{end:-.5,start:.5}[fe];ne.attr("transform",we+F0(ce,0))}})}r._adjustTickLabelsOverflow=function(){var X=r.ticklabeloverflow;if(!(!X||X==="allow")){var J=X.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",ee=0,ne=Z?e._fullLayout.width:e._fullLayout.height;if(X.indexOf("domain")!==-1){var fe=Tr.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,ne=r.l2p(fe[1])+r._offset}var we=Math.min(ee,ne),j=Math.max(ee,ne),_e=r.side,ue=1/0,Me=-1/0;v.each(function(Re){var be=Wn.select(this),qe=be.select(".text-math-group");if(qe.empty()){var Ce=Cn.bBox(be.node()),De=0;Z?(Ce.right>j||Ce.leftj||Ce.top+(r.tickangle?0:Re.fontSize/4)r["_visibleLabelMin_"+fe._id]?be.style("display","none"):j.K==="tick"&&!we&&be.node().style.display!=="none"&&be.style("display",null)})})})})},h(v,f+1?f:u);function m(){return d.length&&Promise.all(d)}var y=null;function g(){if(h(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var X=0,J=[],Z,ee=1;v.each(function(Pe){X=Math.max(X,Pe.fontSize);var je=r.l2p(Pe.x),re=t3(this),he=Cn.bBox(re.node());ee=Math.max(ee,is.lineCount(re)),J.push({top:0,bottom:10,height:10,left:je-he.width/2,right:je+he.width/2+2,width:he.width+2})});var ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,we=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),j=ne?we/2:we,_e=ne?r.ticklen:X*1.25*ee,ue=Math.sqrt(Math.pow(j,2)+Math.pow(_e,2)),Me=j/ue,ye=r.autotickangles.map(function(Pe){return Pe*Math.PI/180}),ce=ye.find(function(Pe){return Math.abs(Math.cos(Pe))<=Me});ce===void 0&&(ce=ye.reduce(function(Pe,je){return Math.abs(Math.cos(Pe))Y*H&&(N=H,q[L]=P[L]=B[L])}var G=Math.abs(N-R);G-M>0?(G-=M,M*=1+M/G):M=0,r._id.charAt(0)!=="y"&&(M=-M),q[A]=T.p2r(T.r2p(P[A])+S*M),T.autorange==="min"||T.autorange==="max reversed"?(q[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(q[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=q}var O=Tr.syncOrAsync(x);return O&&O.then&&e._promises.push(O),O};function Pre(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,w1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Rf.stroke,r.dividercolor).style("stroke-width",Cn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Be.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Pk(e){var r=e.title.font.size,t=(e.title.text.match(is.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(os+t*Nf):t?r*(t+1)*Nf:r}function zre(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(is.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*os:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Pf+o*Nf));else{var s=Bf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Be.getPxPosition(e,r),v,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,d=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(m={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var g=Cn.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,jee.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:d,y:h,"text-anchor":"middle"}})}Be.shouldShowZeroLine=function(e,r,t){var a=Tr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===x1)&&(Yk(r,0)||!Rre(e,r,t,a)||Fre(e,r))};Be.clipEnds=function(e,r){return r.filter(function(t){return Yk(e,t.x)})};function Yk(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=nre:/%L/.test(r)?e>=are:/%[SX]/.test(r)?e>=y1:/%M/.test(r)?e>=Ff:/%[HI]/.test(r)?e>=Ji:/%p/.test(r)?e>=eo:/%[Aadejuwx]/.test(r)?e>=Xa:/%[UVW]/.test(r)?e>=Sn:/%[Bbm]/.test(r)?e>=g1:/%[q]/.test(r)?e>=m1:/%[Yy]/.test(r)?e>=p1:!0}});var Wk=W((ome,Xk)=>{"use strict";Xk.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var u3=W((sme,Zk)=>{"use strict";var Yre=Wk();Zk.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Yre(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var $k=W((ume,Jk)=>{var Ure={left:0,top:0};Jk.exports=Gre;function Gre(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Vre(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Vre(e){return e===window||e===document||e===document.body?Ure:e.getBoundingClientRect()}});var f3=W((fme,Kk)=>{"use strict";var Xre=Ig();function Wre(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}Kk.exports=Xre&&Wre()});var Qk=W((cme,jk)=>{"use strict";jk.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var tC=W((vme,rC)=>{"use strict";var eC=ze(),Zre=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];rC.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=eC.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=eC.constrain(Math.floor(t*3),0,2),Zre[t][r]}});var nC=W((dme,aC)=>{"use strict";var Jre=xf(),$re=T2(),Kre=vf().getGraphDiv,jre=Wu(),c3=aC.exports={};c3.wrapped=function(e,r,t){var i;e=Kre(e),e._fullLayout&&$re.clear(e._fullLayout._uid+jre.HOVERID);let a=e._hoverdata;c3.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};c3.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Jre.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var wi=W((hme,sC)=>{"use strict";var Qre=$k(),v3=Hg(),ete=f3(),rte=ze().removeElement,tte=va(),ss=sC.exports={};ss.align=Qk();ss.getCursor=tC();var lC=nC();ss.unhover=lC.wrapped;ss.unhoverRaw=lC.raw;ss.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,ete?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(T,b,M){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===d?b=v:(b={target:d,srcElement:d,toElement:d},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(M=>{var S=v[M];!b[M]&&typeof S!="function"&&(b[M]=S)})),r.clickFn&&r.clickFn(a,b),h||d.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function oC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ss.coverSlip=oC;function iC(e){return Qre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var ro=W((pme,uC)=>{"use strict";uC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var vC=W((mme,cC)=>{"use strict";var d3=ro(),Hf="data-savedcursor",fC="!!";cC.exports=function(r,t){var a=r.attr(Hf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var h3=Ca(),ate=Oi();dC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ate.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:h3({editType:"legend"}),grouptitlefont:h3({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"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:h3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Yf=W(Of=>{"use strict";Of.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Of.isVertical=function(r){return r.orientation!=="h"};Of.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Of.getId=function(r){return r._id||"legend"}});var g3=W((bme,hC)=>{"use strict";var T1=Ar(),Dn=ze(),nte=pt(),ite=vi(),lte=p3(),ote=p0(),m3=Yf();function ste(e,r,t,a,n){var i=r[e]||{},l=nte.newContainer(t,e);function o(J,Z){return Dn.coerce(i,l,lte,J,Z)}var s=Dn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,v=function(J,Z){var ee=f._input,ne=f;return Dn.coerce(ee,ne,ite,J,Z)},d=t.font||{},h=Dn.coerceFont(o,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),m=0,y=!1,g="normal",x=(t.shapes||[]).filter(function(J){return J.showlegend});function w(J){return T1.traceIs(J,"pie-like")&&J._length!=null&&(Array.isArray(J.legend)||Array.isArray(J.showlegend))}a.filter(w).forEach(function(J){J.visible&&m++;for(var Z=0;ZJ.legend.length)for(var ne=J.legend.length;ne(e==="legend"?1:0));if(S===!1&&(t[e]=void 0),S===!1&&!i.uirevision||(o("uirevision",t.uirevision),S===!1))return;o("borderwidth");var A=o("orientation"),L=o("yref"),q=o("xref"),P=A==="h",R=L==="paper",N=q==="paper",B,I,H,Y="left";P?(B=0,T1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(I=1.1,H="bottom"):(I=1,H="top"):R?(I=-.1,H="top"):(I=0,H="bottom")):(I=1,H="auto",N?B=1.02:(B=1,Y="right")),Dn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:B}},"x"),Dn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"y"),o("traceorder",g),m3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick");let G=o("groupclick");o("groupdoubleclick",G),o("xanchor",Y),o("yanchor",H),o("maxheight"),o("valign"),Dn.noneOrAll(i,l,["x","y"]);var O=o("title.text");if(O){o("title.side",P?"left":"top");var X=Dn.extendFlat({},s,{size:Dn.bigFont(s.size)});Dn.coerceFont(o,"title.font",X);let J=n>1;o("titleclick",J?"toggle":!1),o("titledoubleclick",J?"toggleothers":!1)}}hC.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var to=Ar(),y3=ze(),ute=y3.pushUnique,fte=Yf(),pC=!0;b3.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&pC&&t.data&&t._context.showTips&&(y3.notifier(y3._(t,"Double-click on legend to isolate one trace"),"long",t),pC=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],v=t._fullData;let d=(l.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=v.concat(d),m=o.trace;m._isShape&&(m=l.shapes[m.index]);var y=m.legendgroup,g,x,w,T,b,M,S={},A=[],L=[],q=[];function P(Ee,Ue){var ke=A.indexOf(Ee),Xe=S.visible;return Xe||(Xe=S.visible=[]),A.indexOf(Ee)===-1&&(A.push(Ee),ke=A.length-1),Xe[ke]=Ue,ke}var R=(l.shapes||[]).map(function(Ee){return Ee._input}),N=!1;function B(Ee,Ue){R[Ee].visible=Ue,N=!0}function I(Ee,Ue){if(!(o.groupTitle&&!u)){var ke=Ee._isShape,Xe=Ee.index;Xe===void 0&&(Xe=Ee._index);var Ke=Ee.visible===!1?!1:Ue;ke?B(Xe,Ke):P(Xe,Ke)}}var H=m.legend;if(!m._isShape&&to.traceIs(m,"pie-like")){var Y=o.label,G=f.indexOf(Y);if(n==="toggle")G===-1?f.push(Y):f.splice(G,1);else if(n==="toggleothers"){var O=G!==-1,X=[];for(g=0;gx.showlegend||x.legendgroup),s=i.concat(o);function u(x){return(x.legend||"legend")===l}var f,v;if(a==="toggle")f=!s.some(function(w){return u(w)&&w.visible===!0}),v=!1;else{let x=s.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});f=!0,v=!x}let d={visible:[]},h=[],m=(n.shapes||[]).map(function(x){return x._input});for(var y=!1,g=0;g{"use strict";mC.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var bC=W((wme,yC)=>{"use strict";var{isArrayOrTypedArray:w3}=un(),gC=Ar(),M3=Yf();yC.exports=function(r,t,a){var n=t._inHover,i=M3.isGrouped(t),l=M3.isReversed(t),o={},s=[],u=!1,f={},v=0,d=0,h,m;function y(J,Z,ee){if(t.visible!==!1&&!(a&&J!==t._id))if(Z===""||!M3.isGrouped(t)){var ne="~~i"+v;s.push(ne),o[ne]=[ee],v++}else s.indexOf(Z)===-1?(s.push(Z),u=!0,o[Z]=[ee]):o[Z].push(ee)}for(h=0;hB&&(R=B)}q[h][0]._groupMinRank=R,q[h][0]._preGroupSort=h}var I=function(J,Z){return J[0]._groupMinRank-Z[0]._groupMinRank||J[0]._preGroupSort-Z[0]._preGroupSort},H=function(J,Z){var ee=w3(J.trace.legendrank)?J.trace.legendrank[J.i]:J.trace.legendrank,ne=w3(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank;return ee-ne||J._preSort-Z._preSort};for(q.forEach(function(J,Z){J[0]._preGroupSort=Z}),q.sort(I),h=0;h{"use strict";var A1=ze();function xC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}us.formatPiePercent=function(r,t){var a=xC((r*100).toPrecision(3));return A1.numSeparate(a,t)+"%"};us.formatPieValue=function(r,t){var a=xC(r.toPrecision(10));return A1.numSeparate(a,t)};us.getFirstFilled=function(r,t){if(A1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var cte=it(),vte=Fr();_C.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?cte.pointStyle(r,a,n,t):vte.fill(r,t.color)}});var C1=W((Ame,AC)=>{"use strict";var MC=Fr(),TC=k1().castOption,dte=wC();AC.exports=function(r,t,a,n){var i=a.marker.line,l=TC(i.color,t.pts)||MC.defaultLine,o=TC(i.width,t.pts)||0;r.call(dte,t,a,n).style("stroke-width",o).call(MC.stroke,l)}});var C3=W((kme,qC)=>{"use strict";var Wa=Hr(),T3=Ar(),Fa=ze(),kC=Fa.strTranslate,Ln=it(),Zn=Fr(),A3=Xn().extractOpts,S1=kn(),hte=C1(),pte=k1().castOption,mte=_3(),CC=12,SC=5,fs=2,gte=10,B0=5;qC.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+mte.itemGap*2)/2,s=kC(o,0),u=function(A,L,q,P){var R;if(A+1)R=A;else if(L&&L.width>0)R=L.width;else return 0;return i?P:Math.min(R,q)};r.each(function(A){var L=Wa.select(this),q=Fa.ensureSingle(L,"g","layers");q.style("opacity",A[0].trace.opacity);var P=a.indentation,R=a.valign,N=A[0].lineHeight,B=A[0].height;if(R==="middle"&&P===0||!N||!B)q.attr("transform",null);else{var I={top:1,bottom:-1}[R],H=I*(.5*(N-B+3))||0,Y=a.indentation;q.attr("transform",kC(Y,H))}var G=q.selectAll("g.legendfill").data([A]);G.enter().append("g").classed("legendfill",!0);var O=q.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var X=q.selectAll("g.legendsymbols").data([A]);X.enter().append("g").classed("legendsymbols",!0),X.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(S).each(d).each(m).each(h).each(g).each(b).each(T).each(f).each(v).each(x).each(w);function f(A){var L=DC(A),q=L.showFill,P=L.showLine,R=L.showGradientLine,N=L.showGradientFill,B=L.anyFill,I=L.anyLine,H=A[0],Y=H.trace,G,O,X=A3(Y),J=X.colorscale,Z=X.reversescale,ee=function(Me){if(Me.size())if(q)Ln.fillGroupStyle(Me,t,!0);else{var ye="legendfill-"+Y.uid;Ln.gradient(Me,t,ye,k3(Z),J,"fill")}},ne=function(Me){if(Me.size()){var ye="legendline-"+Y.uid;Ln.lineGroupStyle(Me),Ln.gradient(Me,t,ye,k3(Z),J,"stroke")}},fe=S1.hasMarkers(Y)||!B?"M5,0":I?"M5,-2":"M5,-3",we=Wa.select(this),j=we.select(".legendfill").selectAll("path").data(q||N?[A]:[]);if(j.enter().append("path").classed("js-fill",!0),j.exit().remove(),j.attr("d",fe+"h"+l+"v6h-"+l+"z").call(ee),P||R){var _e=u(void 0,Y.line,gte,SC);O=Fa.minExtend(Y,{line:{width:_e}}),G=[Fa.minExtend(H,{trace:O})]}var ue=we.select(".legendlines").selectAll("path").data(P||R?[G]:[]);ue.enter().append("path").classed("js-line",!0),ue.exit().remove(),ue.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(P?Ln.lineGroupStyle:ne)}function v(A){var L=DC(A),q=L.anyFill,P=L.anyLine,R=L.showLine,N=L.showMarker,B=A[0],I=B.trace,H=!N&&!P&&!q&&S1.hasText(I),Y,G;function O(_e,ue,Me,ye){var ce=Fa.nestedProperty(I,_e).get(),Te=Fa.isArrayOrTypedArray(ce)&&ue?ue(ce):ce;if(i&&Te&&ye!==void 0&&(Te=ye),Me){if(TeMe[1])return Me[1]}return Te}function X(_e){return B._distinct&&B.index&&_e[B.index]?_e[B.index]:_e[0]}if(N||H||R){var J={},Z={};if(N){J.mc=O("marker.color",X);var ee=I.type==="scattermap";J.mx=ee?"circle":O("marker.symbol",X),J.mo=O("marker.opacity",Fa.mean,[.2,1]),J.mlc=O("marker.line.color",X),J.mlw=O("marker.line.width",Fa.mean,[0,5],fs),J.mld=O("marker.line.dash",X),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=O("marker.size",Fa.mean,[2,16],CC);J.ms=ne,Z.marker.size=ne}R&&(Z.line={width:O("line.width",X,[0,10],SC)}),H&&(J.tx="Aa",J.tp=O("textposition",X),J.ts=10,J.tc=O("textfont.color",X),J.tf=O("textfont.family",X),J.tw=O("textfont.weight",X),J.ty=O("textfont.style",X),J.tv=O("textfont.variant",X),J.tC=O("textfont.textcase",X),J.tE=O("textfont.lineposition",X),J.tS=O("textfont.shadow",X)),Y=[Fa.minExtend(B,J)],G=Fa.minExtend(I,Z),G.selectedpoints=null,G.texttemplate=null}var fe=Wa.select(this).select("g.legendpoints"),we=fe.selectAll("path.scatterpts").data(N?Y:[]);we.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),we.exit().remove(),we.call(Ln.pointStyle,G,t),N&&(Y[0].mrc=3);var j=fe.selectAll("g.pointtext").data(H?Y:[]);j.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),j.exit().remove(),j.selectAll("text").call(Ln.textPointStyle,G,t)}function d(A){var L=A[0].trace,q=L.type==="waterfall";if(A[0]._distinct&&q){var P=A[0].trace[A[0].dir].marker;return A[0].mc=P.color,A[0].mlw=P.line.width,A[0].mlc=P.line.color,y(A,this,"waterfall")}var R=[];L.visible&&q&&(R=A[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 N=Wa.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(B){var I=Wa.select(this),H=L[B[0]].marker,Y=u(void 0,H.line,B0,fs);I.attr("d",B[1]).style("stroke-width",Y+"px").call(Zn.fill,H.color),Y&&I.call(Zn.stroke,H.line.color)})}function h(A){y(A,this)}function m(A){y(A,this,"funnel")}function y(A,L,q){var P=A[0].trace,R=P.marker||{},N=R.line||{},B=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=q?P.visible&&P.type===q:T3.traceIs(P,"bar"),H=Wa.select(L).select("g.legendpoints").selectAll("path.legend"+q).data(I?[A]:[]);H.enter().append("path").classed("legend"+q,!0).attr("d",B).attr("transform",s),H.exit().remove(),H.each(function(Y){var G=Wa.select(this),O=Y[0],X=u(O.mlw,R.line,B0,fs);G.style("stroke-width",X+"px");var J=O.mcc;if(!a._inHover&&"mc"in O){var Z=A3(R),ee=Z.mid;ee===void 0&&(ee=(Z.max+Z.min)/2),J=Ln.tryColorscale(R,"")(ee)}var ne=J||O.mc||R.color,fe=R.pattern,we=Ln.getPatternAttr,j=fe&&(we(fe.shape,0,"")||we(fe.path,0,""));if(j){var _e=we(fe.bgcolor,0,null),ue=we(fe.fgcolor,0,null),Me=fe.fgopacity,ye=LC(fe.size,8,10),ce=LC(fe.solidity,.5,1),Te="legend-"+P.uid;G.call(Ln.pattern,"legend",t,Te,j,ye,ce,J,fe.fillmode,_e,ue,Me)}else G.call(Zn.fill,ne);X&&Zn.stroke(G,O.mlc||N.color)})}function g(A){var L=A[0].trace,q=Wa.select(this).select("g.legendpoints").selectAll("path.legendbox").data(L.visible&&T3.traceIs(L,"box-violin")?[A]:[]);q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),q.exit().remove(),q.each(function(){var P=Wa.select(this);if((L.boxpoints==="all"||L.points==="all")&&Zn.opacity(L.fillcolor)===0&&Zn.opacity((L.line||{}).color)===0){var R=Fa.minExtend(L,{marker:{size:i?CC:Fa.constrain(L.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});q.call(Ln.pointStyle,R,t)}else{var N=u(void 0,L.line,B0,fs);P.style("stroke-width",N+"px").call(Zn.fill,L.fillcolor),N&&Zn.stroke(P,L.line.color)}})}function x(A){var L=A[0].trace,q=Wa.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(L.visible&&L.type==="candlestick"?[A,A]:[]);q.enter().append("path").classed("legendcandle",!0).attr("d",function(P,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(P,R){var N=Wa.select(this),B=L[R?"increasing":"decreasing"],I=u(void 0,B.line,B0,fs);N.style("stroke-width",I+"px").call(Zn.fill,B.fillcolor),I&&Zn.stroke(N,B.line.color)})}function w(A){var L=A[0].trace,q=Wa.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(L.visible&&L.type==="ohlc"?[A,A]:[]);q.enter().append("path").classed("legendohlc",!0).attr("d",function(P,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(P,R){var N=Wa.select(this),B=L[R?"increasing":"decreasing"],I=u(void 0,B.line,B0,fs);N.style("fill","none").call(Ln.dashLine,B.line.dash,I),I&&Zn.stroke(N,B.line.color)})}function T(A){M(A,this,"pie")}function b(A){M(A,this,"funnelarea")}function M(A,L,q){var P=A[0],R=P.trace,N=q?R.visible&&R.type===q:T3.traceIs(R,q),B=Wa.select(L).select("g.legendpoints").selectAll("path.legend"+q).data(N?[A]:[]);if(B.enter().append("path").classed("legend"+q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var I=R.marker||{},H=u(pte(I.line.width,P.pts),I.line,B0,fs),Y="pieLike",G=Fa.minExtend(R,{marker:{line:{width:H}}},Y),O=Fa.minExtend(P,{trace:G},Y);hte(B,O,G,t)}}function S(A){var L=A[0].trace,q,P=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],q=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],q=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],q="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],q=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],q=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],q=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],q=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],q=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],q=!1;break}var R=Wa.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,B){var I=Wa.select(this),H=A3(L),Y=H.colorscale,G=H.reversescale,O=function(ee){if(ee.size()){var ne="legendfill-"+L.uid;Ln.gradient(ee,t,ne,k3(G,q==="radial"),Y,"fill")}},X;if(Y){if(!q){var Z=Y.length;X=B===0?Y[G?Z-1:0][1]:B===1?Y[G?0:Z-1][1]:Y[Math.floor((Z-1)/2)][1]}}else{var J=L.vertexcolor||L.facecolor||L.color;X=Fa.isArrayOrTypedArray(J)?J[B]||J[0]:J}I.attr("d",N[0]),X?I.call(Zn.fill,X):I.call(O)})}};function k3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function DC(e){var r=e[0].trace,t=r.contours,a=S1.hasLines(r)||r.visible&&r.type==="quiver",n=S1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function LC(e,r,t){return e&&Fa.isArrayOrTypedArray(e)?r:e>t?t:e}});var q3=W((Cme,HC)=>{"use strict";var tn=Hr(),Vt=ze(),D3=$t(),cs=Ar(),q1=xf(),S3=wi(),Xt=it(),Uf=Fr(),vs=ba(),EC=x3().handleItemClick,PC=x3().handleTitleClick,Kt=_3(),L3=Ra(),IC=L3.LINE_SPACING,O0=L3.FROM_TL,zC=L3.FROM_BR,RC=bC(),yte=C3(),Y0=Yf(),H0=1,bte=/^legend[0-9]*$/;HC.exports=function(r,t){if(t)FC(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=tn.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(bte)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),D3.autoMargin(e,n);var y=Vt.ensureSingle(l,"g",n,function(L){o||L.attr("pointer-events","all")}),g=Vt.ensureSingleById(a._topdefs,"clipPath",i,function(L){L.append("rect")}),x=Vt.ensureSingle(y,"rect","bg",function(L){L.attr("shape-rendering","crispEdges")});x.call(Uf.stroke,t.bordercolor).call(Uf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Vt.ensureSingle(y,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Vt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Xt.font,T.font).text(T.text),L1(b,w,e,t,H0),!o&&(t.titleclick||t.titledoubleclick)&&Mte(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Vt.ensureSingle(y,"rect","scrollbar",function(L){L.attr(Kt.scrollBarEnterAttrs).call(Uf.fill,Kt.scrollBarColor)}),S=w.selectAll("g.groups").data(s);S.enter().append("g").attr("class","groups"),S.exit().remove();var A=S.selectAll("g.traces").data(Vt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(L){let q=L[0],P=q.trace;if(q.groupTitle){let R=P.legendgroup,N=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(N).some(function(I){return I.legendgroup===R&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return cs.traceIs(P,"pie-like")?m.indexOf(L[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){tn.select(this).call(_te,e,t)}).call(yte,e,t).each(function(L){o||L[0].groupTitle&&t.groupclick==="toggleitem"||tn.select(this).call(wte,e,n)}),Vt.syncOrAsync([D3.previousPromises,function(){return kte(e,S,A,t,w)},function(){var L=a._size,q=t.borderwidth,P=t.xref==="paper",R=t.yref==="paper";if(T.text){let qe=(a.shapes||[]).filter(function(De){return De.showlegend}),Ce=e._fullData.concat(qe).some(function(De){let Ee=De.legend||"legend";var Ue=Array.isArray(Ee)?Ee.includes(n):Ee===n;return Ue&&De.visible===!0});b.style("opacity",Ce?1:.5)}if(!o){var N,B;P?N=L.l+L.w*t.x-O0[E1(t)]*t._width:N=a.width*t.x-O0[E1(t)]*t._width,R?B=L.t+L.h*(1-t.y)-O0[P1(t)]*t._effHeight:B=a.height*(1-t.y)-O0[P1(t)]*t._effHeight;var I=Cte(e,n,N,B);if(I)return;if(a.margin.autoexpand){var H=N,Y=B;N=P?Vt.constrain(N,0,a.width-t._width):H,B=R?Vt.constrain(B,0,a.height-t._effHeight):Y,N!==H&&Vt.log("Constrain "+n+".x to make legend fit inside graph"),B!==Y&&Vt.log("Constrain "+n+".y to make legend fit inside graph")}Xt.setTranslate(y,N,B)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),x.attr({width:t._width-q,height:G-q,x:q/2,y:q/2}),Xt.setTranslate(w,0,0),g.select("rect").attr({width:t._width-2*q,height:G-2*q,x:q,y:q}),Xt.setClipUrl(w,i,e),Xt.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max(Kt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),X=t._effHeight-O-2*Kt.scrollBarMargin,J=t._height-t._effHeight,Z=X/J,ee=Math.min(t._scrollY||0,J);x.attr({width:t._width-2*q+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-q,x:q/2,y:q/2}),g.select("rect").attr({width:t._width-2*q+Kt.scrollBarWidth+Kt.scrollBarMargin,height:t._effHeight-2*q,x:q,y:q+ee}),Xt.setClipUrl(w,i,e),ye(ee,O,Z),y.on("wheel",function(){ee=Vt.constrain(t._scrollY+tn.event.deltaY/J*X,0,J),ye(ee,O,Z),ee!==0&&ee!==J&&tn.event.preventDefault()});var ne,fe,we,j=function(qe,Ce,De){var Ee=(De-Ce)/Z+qe;return Vt.constrain(Ee,0,J)},_e=function(qe,Ce,De){var Ee=(Ce-De)/Z+qe;return Vt.constrain(Ee,0,J)},ue=tn.behavior.drag().on("dragstart",function(){var qe=tn.event.sourceEvent;qe.type==="touchstart"?ne=qe.changedTouches[0].clientY:ne=qe.clientY,we=ee}).on("drag",function(){var qe=tn.event.sourceEvent;qe.buttons===2||qe.ctrlKey||(qe.type==="touchmove"?fe=qe.changedTouches[0].clientY:fe=qe.clientY,ee=j(we,ne,fe),ye(ee,O,Z))});M.call(ue);var Me=tn.behavior.drag().on("dragstart",function(){var qe=tn.event.sourceEvent;qe.type==="touchstart"&&(ne=qe.changedTouches[0].clientY,we=ee)}).on("drag",function(){var qe=tn.event.sourceEvent;qe.type==="touchmove"&&(fe=qe.changedTouches[0].clientY,ee=_e(we,ne,fe),ye(ee,O,Z))});w.call(Me)}function ye(qe,Ce,De){t._scrollY=e._fullLayout[n]._scrollY=qe,Xt.setTranslate(w,0,-qe),Xt.setRect(M,t._width,Kt.scrollBarMargin+qe*De,Kt.scrollBarWidth,Ce),g.select("rect").attr("y",q+qe)}if(e._context.edits.legendPosition){var ce,Te,Re,be;y.classed("cursor-move",!0),S3.init({element:y.node(),gd:e,prepFn:function(qe){if(qe.target!==M.node()){var Ce=Xt.getTranslate(y);Re=Ce.x,be=Ce.y}},moveFn:function(qe,Ce){if(Re!==void 0&&be!==void 0){var De=Re+qe,Ee=be+Ce;Xt.setTranslate(y,De,Ee),ce=S3.align(De,t._width,L.l,L.l+L.w,t.xanchor),Te=S3.align(Ee+t._height,-t._height,L.t+L.h,L.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&Te!==void 0){var qe={};qe[n+".x"]=ce,qe[n+".y"]=Te,cs.call("_guiRelayout",e,qe)}},clickFn:function(qe,Ce){var De=l.selectAll("g.traces").filter(function(){var Ee=this.getBoundingClientRect();return Ce.clientX>=Ee.left&&Ce.clientX<=Ee.right&&Ce.clientY>=Ee.top&&Ce.clientY<=Ee.bottom});De.size()>0&&BC(e,t,De,qe,Ce)}})}}],e)}}function D1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function BC(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),cs.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=q1.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&EC(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=q1.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&EC(t,e,r,s,a)}}function _te(e,r,t){var a=Y0.getId(t),n=e.data()[0][0],i=n.trace,l=cs.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Vt.templateString(u,i._meta))));var v=Vt.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Xt.font,f).text(o?NC(u,s):u);var d=t.indentation+t.itemwidth+Kt.itemGap*2;vs.positionText(v,d,0),o?v.call(vs.makeEditable,{gd:r,text:u}).call(L1,e,r,t).on("edit",function(h){this.text(NC(h,s)).call(L1,e,r,t);var m={};return m.name=h,n.trace._isShape?cs.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):cs.call("_guiRestyle",r,m,i.index)}):L1(v,e,r,t)}function NC(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function wte(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Vt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Uf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),BC(r,o,e,i,tn.event)}}))}function Mte(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&cs.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Vt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Uf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:tn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(q1.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&PC(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,q1.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&PC(r,t,t.titledoubleclick))}))}function L1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),vs.convertToTspans(e,t,function(){Tte(r,t,a,n)})}function Tte(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=Y0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===H0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*IC,d,h;if(o){var m=Xt.bBox(o);d=m.height,h=m.width,a===H0?Xt.setTranslate(l,u,u+d*.75):Xt.setTranslate(l,0,d*.25)}else{var y="."+s+(a===H0?"title":"")+"text",g=e.select(y),x=vs.lineCount(g),w=g.node();if(d=v*x,h=w?Xt.bBox(w).width:0,a===H0)t.title.side==="left"&&(h+=Kt.itemGap*2),vs.positionText(g,u+Kt.titlePad,u+v);else{var T=Kt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=Kt.itemGap,h-=t.indentation+t.itemwidth),vs.positionText(g,T,-v*((x-1)/2-.3))}}a===H0?(t._titleWidth=h,t._titleHeight=d):(n.lineHeight=v,n.height=Math.max(d,16)+3,n.width=h)}function Ate(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function kte(e,r,t,a,n){var i=e._fullLayout,l=Y0.getId(a);a||(a=i[l]);var o=i._size,s=Y0.isVertical(a),u=Y0.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,d=2*v,h=Kt.itemGap,m=a.indentation+a.itemwidth+h*2,y=2*(v+h),g=P1(a),x=a.y<0||a.y===0&&g==="top",w=a.y>1||a.y===1&&g==="bottom",T=a.tracegroupgap,b={};let{orientation:M,yref:S}=a,{maxheight:A}=a,L=x||w||M!=="v"||S!=="paper";A||(A=L?.5:1);let q=L?i.height:o.h;a._maxHeight=Math.max(A>1?A:A*q,30);var P=0;a._width=0,a._height=0;var R=Ate(a);if(s)t.each(function(qe){var Ce=qe[0].height;Xt.setTranslate(this,v+R[0],v+R[1]+a._height+Ce/2+h),a._height+=Ce,a._width=Math.max(a._width,qe[0].width)}),P=m+a._width,a._width+=h+m+d,a._height+=y,u&&(r.each(function(qe,Ce){Xt.setTranslate(this,0,Ce*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=E1(a),B=a.x<0||a.x===0&&N==="right",I=a.x>1||a.x===1&&N==="left",H=w||x,Y=i.width/2;a._maxWidth=Math.max(B?H&&N==="left"?o.l+o.w:Y:I?H&&N==="right"?o.r+o.w:Y:o.w,2*m);var G=0,O=0;t.each(function(qe){var Ce=D1(qe,a,m);G=Math.max(G,Ce),O+=Ce}),P=null;var X=0;if(u){var J=0,Z=0,ee=0;r.each(function(){var qe=0,Ce=0;tn.select(this).selectAll("g.traces").each(function(Ee){var Ue=D1(Ee,a,m),ke=Ee[0].height;Xt.setTranslate(this,R[0],R[1]+v+h+ke/2+Ce),Ce+=ke,qe=Math.max(qe,Ue),b[Ee[0].trace.legendgroup]=qe});var De=qe+h;Z>0&&De+v+Z>a._maxWidth?(X=Math.max(X,Z),Z=0,ee+=J+T,J=Ce):J=Math.max(J,Ce),Xt.setTranslate(this,Z,ee),Z+=De}),a._width=Math.max(X,Z)+v,a._height=ee+J+y}else{var ne=t.size(),fe=O+d+(ne-1)*h=a._maxWidth&&(X=Math.max(X,ue),j=0,_e+=we,a._height+=we,we=0),Xt.setTranslate(this,R[0]+v+j,R[1]+v+_e+Ce/2+h),ue=j+De+h,j+=Ee,we=Math.max(we,Ce)}),fe?(a._width=j+d,a._height=we+y):(a._width=Math.max(X,ue)+d,a._height+=we+y)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(v+Kt.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(v+Kt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Me=e._context.edits,ye=Me.legendText||Me.legendPosition;t.each(function(qe){var Ce=tn.select(this).select("."+l+"toggle"),De=qe[0].height,Ee=qe[0].trace.legendgroup,Ue=D1(qe,a,m);u&&Ee!==""&&(Ue=b[Ee]);var ke=ye?m:P||Ue;!s&&!f&&(ke+=h/2),Xt.setRect(Ce,0,-De/2,ke,De)});var ce=n.select("."+l+"titletext");ce.node()&&xte(ce,a,v);var Te=n.select("."+l+"titletoggle");if(Te.size()&&ce.node()){var Re=ce.attr("x")||0,be=Kt.titlePad;Xt.setRect(Te,Re-be,v,a._titleWidth+2*be,a._titleHeight+2*be)}}function Cte(e,r,t,a){var n=e._fullLayout,i=n[r],l=E1(i),o=P1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return D3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*O0[l],r:i._width*zC[l],b:i._effHeight*zC[o],t:i._effHeight*O0[o]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=d[v]:e._fullLayout._reservedMargin[r][f]=d[f]}function E1(e){return Vt.isRightAnchor(e)?"right":Vt.isCenterAnchor(e)?"center":"left"}function P1(e){return Vt.isBottomAnchor(e)?"bottom":Vt.isMiddleAnchor(e)?"middle":"top"}});var R3=W(z3=>{"use strict";var ds=Hr(),gl=Vr(),Pt=ze(),Ste=Pt.pushUnique,E3=Pt.strTranslate,Dte=Pt.strRotate,Lte=xf(),Jn=ba(),qte=vC(),Ki=it(),jt=Fr(),z1=wi(),ji=wt(),Ete=va().zindexSeparator,G0=Ar(),qn=xi(),hs=Wu(),Pte=g3(),zte=q3(),ZC=hs.YANGLE,P3=Math.PI*ZC/180,Rte=1/Math.sin(P3),Fte=Math.cos(P3),Nte=Math.sin(P3),Mt=hs.HOVERARROWSIZE,Ur=hs.HOVERTEXTPAD,OC={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ite={scatter:!0,scattergl:!0,splom:!0};function YC(e,r){return e.distance-r.distance}z3.hover=function(r,t,a,n){r=Pt.getGraphDiv(r);var i=t.target;Pt.throttle(r._fullLayout._uid+hs.HOVERID,hs.HOVERMINTIME,function(){Bte(r,t,a,n,i)})};z3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=QC(n),l=eS(n),o=r.map(function(g){var x=g._x0||g.x0||g.x||0,w=g._x1||g.x1||g.x||0,T=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var S=Math.min(x,w),A=Math.max(x,w),L=Math.min(T,b),q=Math.max(T,b),P=g.trace;if(G0.traceIs(P,"gl3d")){var R=n._fullLayout[P.scene]._scene.container,N=R.offsetLeft,B=R.offsetTop;S+=N,A+=N,L+=B,q+=B}M.bbox={x0:S+l,x1:A+l,y0:L+i,y1:q+i},M.xPixel=(x+w)/2,M.yPixel=(T+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||jt.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:M}}),s=!1,u=$C(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||jt.background,container:ds.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,d=0,h=0;f.sort(function(g,x){return g.y0-x.y0}).each(function(g,x){var w=g.y0-g.by/2;w-vA[0]._length||be<0||be>L[0]._length)return z1.unhoverRaw(e,r)}if(r.pointerX=Re+A[0]._offset,r.pointerY=be+L[0]._offset,"xval"in r?Y=qn.flat(i,r.xval):Y=qn.p2c(A,Re),"yval"in r?G=qn.flat(i,r.yval):G=qn.p2c(L,be),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!gl(Y[0])||!gl(G[0]))return Pt.warn("Fx.hover failed",r,e),z1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=Y,e._hoverYVals=G,e._hoverXAxes=A,e._hoverYAxes=L);var De=1/0;function Ee(mr,vt){for(X=0;Xue&&(I.splice(0,ue),De=I[0].distance),v&&B!==0&&I.length===0){_e.distance=B,_e.index=!1;var st=Z._module.hoverPoints(_e,we,j,"closest",{hoverLayer:o._hoverlayer});if(st&&(st=st.filter(function(Jt){return Jt.spikeDistance<=B})),st&&st.length){var ea,In=st.filter(function(Jt){return Jt.xa.showspikes&&Jt.xa.spikesnap!=="hovered data"});if(In.length){var Bt=In[0];gl(Bt.x0)&&gl(Bt.y0)&&(ea=ke(Bt),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>ea.spikeDistance)&&(Me.vLinePoint=ea))}var gt=st.filter(function(Jt){return Jt.ya.showspikes&&Jt.ya.spikesnap!=="hovered data"});if(gt.length){var Zt=gt[0];gl(Zt.x0)&&gl(Zt.y0)&&(ea=ke(Zt),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>ea.spikeDistance)&&(Me.hLinePoint=ea))}}}}}Ee();function Ue(mr,vt,jr){for(var mt=null,Lt=1/0,At,st=0;stmr.trace.index===xe.trace.index):I=[xe];var He=I.length,Ze=WC("x",xe,o),Ie=WC("y",xe,o);Ee(Ze,Ie);var Ge=[],ar={},ir=0,ur=function(mr){var vt=OC[mr.trace.type]?JC(mr):mr.trace.index;if(!ar[vt])ir++,ar[vt]=ir,Ge.push(mr);else{var jr=ar[vt]-1,mt=Ge[jr];jr>0&&Math.abs(mr.distance)He-1;Se--)ur(I[Se]);I=Ge,Ae()}var $e=e._hoverdata,Ne=[],hr=QC(e),br=eS(e);for(let mr of I){var sr=qn.makeEventData(mr,mr.trace,mr.cd);if(mr.hovertemplate!==!1){var pr=!1;mr.cd[mr.index]&&mr.cd[mr.index].ht&&(pr=mr.cd[mr.index].ht),mr.hovertemplate=pr||mr.trace.hovertemplate||!1}if(mr.xa&&mr.ya){var te=mr.x0+mr.xa._offset,ve=mr.x1+mr.xa._offset,Fe=mr.y0+mr.ya._offset,Ye=mr.y1+mr.ya._offset,Kr=Math.min(te,ve),ot=Math.max(te,ve),ct=Math.min(Fe,Ye),Ft=Math.max(Fe,Ye);sr.bbox={x0:Kr+br,x1:ot+br,y0:ct+hr,y1:Ft+hr},sr.xPixel=(te+ve)/2,sr.yPixel=(Fe+Ye)/2}mr.eventData=[sr],Ne.push(sr)}e._hoverdata=Ne;var Dt=d==="y"&&(H.length>1||I.length>1)||d==="closest"&&ye&&I.length>1,ga=jt.combine(o.plot_bgcolor||jt.background,o.paper_bgcolor),ln=$C(I,{gd:e,hovermode:d,rotateLabels:Dt,bgColor:ga,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),Qt=ln.hoverLabels;if(qn.isUnifiedHover(d)||(Ote(Qt,Dt,o,ln.commonLabelBoundingBox),jC(Qt,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var Qa=G0.getComponentMethod("annotations","hasClickToShow")(e,Ne);qte(ds.select(n),Qa?"pointer":"")}var xn=Gte(e,r,$e);if(!n||a||!xn&&!o.hoveranywhere)return;$e&&xn&&e.emit("plotly_unhover",{event:r,points:$e}),_n(e._hoverdata);function _n(mr){e.emit("plotly_hover",{event:r,points:mr,xaxes:A,yaxes:L,xvals:qn.c2dApply(A,Y),yvals:qn.c2dApply(L,G),xPixel:r.pointerX,yPixel:r.pointerY})}}function JC(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Hte=/([\s\S]*)<\/extra>/;function $C(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hs.HOVERFONT,v=r.fontSize||hs.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,h=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,g=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,M=n.charAt(0),S=M+"Label",A=w[S];if(A===void 0&&T.type==="multicategory")for(var L=0;La.width-Ne&&(hr=a.width-Ne),de.attr("d","M"+(ur-hr)+",0L"+(ur-hr+Mt)+","+$e+Mt+"H"+Ne+"v"+$e+(Ur*2+ir.height)+"H"+-Ne+"V"+$e+Mt+"H"+(ur-hr-Mt)+"Z"),ur=hr,X.minX=ur-Ne,X.maxX=ur+Ne,T.side==="top"?(X.minY=Se-(Ur*2+ir.height),X.maxY=Se-Ur):(X.minY=Se+Ur,X.maxY=Se+(Ur*2+ir.height))}else{var br,sr,pr;b.side==="right"?(br="start",sr=1,pr="",ur=T._offset+T._length):(br="end",sr=-1,pr="-",ur=T._offset),Se=b._offset+(w.y0+w.y1)/2,xe.attr("text-anchor",br),de.attr("d","M0,0L"+pr+Mt+","+Mt+"V"+(Ur+ir.height/2)+"h"+pr+(Ur*2+ir.width)+"V-"+(Ur+ir.height/2)+"H"+pr+Mt+"V-"+Mt+"Z"),X.minY=Se-(Ur+ir.height/2),X.maxY=Se+(Ur+ir.height/2),b.side==="right"?(X.minX=ur+Mt,X.maxX=ur+Mt+(Ur*2+ir.width)):(X.minX=ur-Mt-(Ur*2+ir.width),X.maxX=ur-Mt);var te=ir.height/2,ve=P-ir.top-te,Fe="clip"+a._uid+"commonlabel"+b._id,Ye;if(urde.hoverinfo!=="none");if(Le.length===0)return[];var J=a.hoverlabel,Z=J.font,ee=Le[0],ne=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,fe=ne?Pt.hovertemplateString({data:n==="x unified"?[{xa:ee.xa,x:ee.xVal}]:[{ya:ee.ya,y:ee.yVal}],fallback:ee.trace.hovertemplatefallback,locale:a._d3locale,template:ne}):A,we={showlegend:!0,legend:{title:{text:fe,font:Z},font:Z,bgcolor:J.bgcolor,bordercolor:J.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},j={font:Z};Pte(we,j,t._fullData);var _e=j.legend;_e.entries=[];for(var ue=0;ue=0?he=Ae:Pe+Ce=0?he=Pe:je+Ce=0?Ve=Ke:We+De=0?Ve=We:re+De=0,(Le.idealAlign==="top"||!ct)&&Ft?(pr-=ve/2,Le.anchor="end"):ct?(pr+=ve/2,Le.anchor="start"):Le.anchor="middle",Le.crossPos=pr;else{if(Le.pos=pr,ct=sr+te/2+ot<=R,Ft=sr-te/2-ot>=0,(Le.idealAlign==="left"||!ct)&&Ft)sr-=te/2,Le.anchor="end";else if(ct)sr+=te/2,Le.anchor="start";else{Le.anchor="middle";var Dt=ot/2,ga=sr+Dt-R,ln=sr-Dt;ga>0&&(sr-=ga),ln<0&&(sr+=-ln)}Le.crossPos=sr}Se.attr("text-anchor",Le.anchor),Ne&&$e.attr("text-anchor",Le.anchor),de.attr("transform",E3(sr,pr)+(i?Dte(ZC):""))}),{hoverLabels:dr,commonLabelBoundingBox:X}}function UC(e,r,t,a,n,i){var v,d;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Pt.templateString(e.name,e.trace._meta)),l=XC(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(d=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=Pt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(Hte,(m,y)=>(l=XC(y,e.nameLength),""))}return[o,l]}function Ote(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,d=a.maxX,h=a.minY,m=a.maxY,y=function(Y){return Y*t._invScaleX},g=function(Y){return Y*t._invScaleY};e.each(function(Y){var G=Y[n],O=Y[i],X=G._id.charAt(0)==="x",J=G.range;f===0&&J&&J[0]>J[1]!==X&&(o=-1);var Z=0,ee=X?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ne=KC(Y,r),fe=Y.anchor,we=fe==="end"?-1:1,j,_e;if(fe==="middle")j=Y.crossPos+(X?g(ne.y-Y.by/2):y(Y.bx/2+Y.tx2width/2)),_e=j+(X?g(Y.by):y(Y.bx));else if(X)j=Y.crossPos+g(Mt+ne.y)-g(Y.by/2-Mt),_e=j+g(Y.by);else{var ue=y(we*Mt+ne.x),Me=ue+y(we*Y.bx);j=Y.crossPos+Math.min(ue,Me),_e=Y.crossPos+Math.max(ue,Me)}X?h!==void 0&&m!==void 0&&Math.min(_e,m)-Math.max(j,h)>1&&(O.side==="left"?(Z=O._mainLinePosition,ee=t.width):ee=O._mainLinePosition):v!==void 0&&d!==void 0&&Math.min(_e,d)-Math.max(j,v)>1&&(O.side==="top"?(Z=O._mainLinePosition,ee=t.height):ee=O._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(X?Rte:1)/2,pmin:Z,pmax:ee}]}),u.sort(function(Y,G){return Y[0].posref-G[0].posref||o*(G[0].traceIndex-Y[0].traceIndex)});var x,w,T,b,M,S,A;function L(Y){var G=Y[0],O=Y[Y.length-1];if(w=G.pmin-G.pos-G.dp+G.size,T=O.pos+O.dp+O.size-G.pmax,w>.01){for(M=Y.length-1;M>=0;M--)Y[M].dp+=w;x=!1}if(!(T<.01)){if(w<-.01){for(M=Y.length-1;M>=0;M--)Y[M].dp-=T;x=!1}if(x){var X=0;for(b=0;bG.pmax&&X++;for(b=Y.length-1;b>=0&&!(X<=0);b--)S=Y[b],S.pos>G.pmax-1&&(S.del=!0,X--);for(b=0;b=0;M--)Y[M].dp-=T;for(b=Y.length-1;b>=0&&!(X<=0);b--)S=Y[b],S.pos+S.dp+S.size>G.pmax&&(S.del=!0,X--)}}}for(;!x&&l<=s;){for(l++,x=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=w;for(q.push.apply(q,P),u.splice(b+1,1),A=0,M=q.length-1;M>=0;M--)A+=q[M].dp;for(T=A/q.length,M=q.length-1;M>=0;M--)q[M].dp-=T;x=!1}else b++}u.forEach(L)}for(b=u.length-1;b>=0;b--){var B=u[b];for(M=B.length-1;M>=0;M--){var I=B[M],H=I.datum;H.offset=I.dp,H.del=I.del}}}function KC(e,r){var t=0,a=e.offset;return r&&(a*=-Nte,t=e.offset*Fte),{x:t,y:a}}function Yte(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Mt+Ur),a=t+r*(e.txwidth+Ur),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Ur),{alignShift:r,textShiftX:t,text2ShiftX:a}}function jC(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=ds.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=Yte(l),d=KC(l,r),h=d.x,m=d.y,y=u==="middle",g="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,x;y?x="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":g?x="M0,0L"+n(f*Mt+h)+","+i(Mt+m)+"v"+i(l.by/2-Mt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Mt+h)+"V"+i(m-Mt)+"Z":x="M"+n(f*Mt+h)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",x);var w=h+v.textShiftX,T=m+l.ty0-l.by/2+Ur,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=y?-l.bx/2-l.tx2width/2+Ur:-l.bx-Ur):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=y?l.bx/2-l.tx2width/2-Ur:l.bx+Ur)),s.call(Jn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(Jn.positionText,n(v.text2ShiftX+v.alignShift*Ur+h),i(m+l.ty0-l.by/2+Ur)),o.select("rect").call(Ki.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+h),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Ute(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(d){return d||gl(d)&&d===0}var o=Array.isArray(t)?function(d,h){var m=Pt.castOption(n,t,d);return l(m)?m:Pt.extractOption({},a,"",h)}:function(d,h){return Pt.extractOption(i,a,d,h)};function s(d,h,m){var y=o(h,m);l(y)&&(e[d]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Pt.constrain(e.x0,0,e.xa._length),e.x1=Pt.constrain(e.x1,0,e.xa._length),e.y0=Pt.constrain(e.y0,0,e.ya._length),e.y1=Pt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ji.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ji.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ji.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ji.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ji.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ji.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function GC(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=jt.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var d=r.hLinePoint,h,m;u=d&&d.xa,f=d&&d.ya;var y=f.spikesnap;y==="cursor"?(h=l.pointerX,m=l.pointerY):(h=u._offset+d.x,m=f._offset+d.y);var g=jt.wcagContrast(d.color,v)<1.5?jt.contrast(v):d.color,x=f.spikemode,w=f.spikethickness,T=f.spikecolor||g,b=ji.getPxPosition(e,f),M,S;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(M=b,S=h),x.indexOf("across")!==-1){var A=f._counterDomainMin,L=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),L=Math.max(L,f.position)),M=i.l+A*i.w,S=i.l+L*i.w}a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Ki.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var q=r.vLinePoint,P,R;u=q&&q.xa,f=q&&q.ya;var N=u.spikesnap;N==="cursor"?(P=l.pointerX,R=l.pointerY):(P=u._offset+q.x,R=f._offset+q.y);var B=jt.wcagContrast(q.color,v)<1.5?jt.contrast(v):q.color,I=u.spikemode,H=u.spikethickness,Y=u.spikecolor||B,G=ji.getPxPosition(e,u),O,X;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(O=G,X=R),I.indexOf("across")!==-1){var J=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),Z=Math.max(Z,u.position)),O=i.t+(1-Z)*i.h,X=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:O,y2:X,"stroke-width":H,stroke:Y,"stroke-dasharray":Ki.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:O,y2:X,"stroke-width":H+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:G-(u.side!=="top"?H:-H),r:H,fill:Y}).classed("spikeline",!0)}}}function Gte(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function VC(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function XC(e,r){return Jn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Vte(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,eS=e=>e.offsetLeft+e.clientLeft;function U0(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Pt.apply3DTransform(t._invTransform)(n,i),u=Pt.apply3DTransform(t._invTransform)(l,o),f=s[0],v=s[1],d=u[0],h=u[1];return{x:f,y:v,width:d-f,height:h-v,top:Math.min(v,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(v,h)}}});var R1=W((Dme,rS)=>{"use strict";var Xte=ze(),Wte=Fr(),Zte=xi().isUnifiedHover;rS.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Zte(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Wte.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Xte.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var aS=W((Lme,tS)=>{"use strict";var Jte=ze(),$te=R1(),Kte=r0();tS.exports=function(r,t){function a(n,i){return Jte.coerce(r,t,Kte,n,i)}$te(r,t,a)}});var lS=W((qme,iS)=>{"use strict";var nS=ze(),jte=Rv(),Qte=R1();iS.exports=function(r,t,a,n){function i(o,s){return nS.coerce(r,t,jte,o,s)}var l=nS.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Qte(r,t,i,l)}});var F3=W((Eme,oS)=>{"use strict";var eae=ze(),rae=r0();oS.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:eae.coerce(r,t,rae,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var fS=W((Pme,uS)=>{"use strict";var sS=ze(),tae=r0(),aae=F3(),nae=R1();uS.exports=function(r,t){function a(u,f){return sS.coerce(r,t,tae,u,f)}var n=aae(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),nae(r,t,a),sS.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var dS=W((zme,vS)=>{"use strict";var N3=ze(),cS=Ar();vS.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return N3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var lae=Ar(),hS=xi(),oae=R3().hover;pS.exports=function(r,t,a){var n=lae.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&oae(r,t,a,!0);function l(){var s,u,f,v,d,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&hS.c2dApply(r._hoverXAxes,r._hoverXVals)),(v=o.yvals)!=null||(o.yvals=r._hoverYVals&&hS.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Mi=W((Fme,bS)=>{"use strict";var sae=Hr(),F1=ze(),uae=wi(),Gf=xi(),gS=r0(),yS=R3();bS.exports={moduleType:"component",name:"fx",constants:Wu(),schema:{layout:gS},attributes:Rv(),layoutAttributes:gS,supplyLayoutGlobalDefaults:aS(),supplyDefaults:lS(),supplyLayoutDefaults:fS(),calc:dS(),getDistanceFunction:Gf.getDistanceFunction,getClosest:Gf.getClosest,inbox:Gf.inbox,quadrature:Gf.quadrature,appendArrayPointValue:Gf.appendArrayPointValue,castHoverOption:cae,castHoverinfo:vae,hover:yS.hover,unhover:uae.unhover,loneHover:yS.loneHover,loneUnhover:fae,click:mS()};function fae(e){var r=F1.isD3Selection(e)?e:sae.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function cae(e,r,t){return F1.castOption(e,r,"hoverlabel."+t)}function vae(e,r,t){function a(n){return F1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return F1.castOption(e,t,"hoverinfo",a)}});var V0=W(yl=>{"use strict";yl.selectMode=function(e){return e==="lasso"||e==="select"};yl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};yl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};yl.selectingOrDrawing=function(e){return yl.freeMode(e)||yl.rectMode(e)}});var N1=W((Ime,xS)=>{"use strict";xS.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var I1=W((Bme,_S)=>{"use strict";_S.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)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},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)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var H1=W((Hme,wS)=>{"use strict";var B1=32;wS.exports={CIRCLE_SIDES:B1,i000:0,i090:B1/4,i180:B1/2,i270:B1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var O1=W((Ome,TS)=>{"use strict";var dae=ze().strTranslate;function MS(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function hae(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function pae(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return MS(e,t[r])}}function mae(e){return dae(e.xaxis._offset,e.yaxis._offset)}TS.exports={p2r:MS,r2p:hae,axValue:pae,getTransform:mae}});var ao=W(bl=>{"use strict";var gae=Ay(),CS=H1(),X0=CS.CIRCLE_SIDES,I3=CS.SQRT2,SS=O1(),AS=SS.p2r,kS=SS.r2p,yae=[0,3,4,5,6,1,2],bae=[0,3,4,1,2];bl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var DS=la(),zS=V0(),xae=zS.drawMode,_ae=zS.openMode,W0=H1(),LS=W0.i000,qS=W0.i090,ES=W0.i180,PS=W0.i270,wae=W0.cos45,Mae=W0.sin45,RS=O1(),U1=RS.p2r,no=RS.r2p,Tae=Wl(),Aae=Tae.clearOutline,G1=ao(),kae=G1.readPaths,Cae=G1.writePaths,Sae=G1.ellipseOver,Dae=G1.fixDatesForPaths;function Lae(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!xae(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var qae=V0(),Eae=qae.selectMode,Pae=Wl(),zae=Pae.clearOutline,B3=ao(),Rae=B3.readPaths,Fae=B3.writePaths,Nae=B3.fixDatesForPaths;IS.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,d=(i.layout||{}).selections||[];if(!Eae(v)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h{"use strict";BS.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var lo=W(xa=>{"use strict";var el=Xf(),HS=ze(),io=wt();xa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};xa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};xa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};xa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};xa.extractPathCoords=function(e,r,t){var a=[],n=e.match(el.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(el.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};xa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=xa.shapePositionToRange(r);l=function(s){var u=Qi(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=xa.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};xa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=xa.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};xa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};xa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};xa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};xa.getPathString=function(e,r){let t=r.type,a=io.getRefType(r.xref),n=io.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,d,h,m,y,g,x;function w(P,R,N,B){var I;if(P)if(R==="domain")B?I=function(H){return P._offset+P._length*(1-H)}:I=function(H){return P._offset+P._length*H};else{let H=xa.shapePositionToRange(P);I=function(Y){return P._offset+P.r2p(H(Y,!0))},N==="path"&&P.type==="date"&&(I=xa.decodeDate(I))}else B?I=function(H){return i.t+i.h*(1-H)}:I=function(H){return i.l+i.w*H};return I}if(a==="array"?(d=[],l=r.xref.map(function(P){return io.getFromId(e,P)}),d=r.xref.map(function(P,R){return w(l[R],io.getRefType(P),t,!1)})):(l=io.getFromId(e,r.xref),d=w(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(P){return io.getFromId(e,P)}),h=r.yref.map(function(P,R){return w(o[R],io.getRefType(P),t,!0)})):(o=io.getFromId(e,r.yref),h=w(o,n,t,!0)),t==="path")return Iae(r,d,h);if(a==="array")s=Qi(l[0],r.x0shift),u=Qi(l[1],r.x1shift),m=d[0](r.x0)+s,y=d[1](r.x1)+u;else if(s=Qi(l,r.x0shift),u=Qi(l,r.x1shift),r.xsizemode==="pixel"){let P=d(r.xanchor);m=P+r.x0+s,y=P+r.x1+u}else m=d(r.x0)+s,y=d(r.x1)+u;if(n==="array")f=Qi(o[0],r.y0shift),v=Qi(o[1],r.y1shift),g=h[0](r.y0)+f,x=h[1](r.y1)+v;else if(f=Qi(o,r.y0shift),v=Qi(o,r.y1shift),r.ysizemode==="pixel"){let P=h(r.yanchor);g=P-r.y0+f,x=P-r.y1+v}else g=h(r.y0)+f,x=h(r.y1)+v;if(t==="line")return"M"+m+","+g+"L"+y+","+x;if(t==="rect")return"M"+m+","+g+"H"+y+"V"+x+"H"+m+"Z";var T=(m+y)/2,b=(g+x)/2,M=Math.abs(T-m),S=Math.abs(b-g),A="A"+M+","+S,L=T+M+","+b,q=T+","+(b-S);return"M"+L+A+" 0 1,1 "+q+A+" 0 0,1 "+L+"Z"};function Iae(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return a.replace(el.segmentRE,function(d){var h=0,m=d.charAt(0),y=el.paramIsX[m],g=el.paramIsY[m],x=el.numParams[m];let w=y.drawn!==void 0,T=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var S=d.slice(1).replace(el.paramRE,function(A){return y[h]?n==="pixel"?A=b(l)+Number(A):A=b(A):g[h]&&(i==="pixel"?A=M(o)-Number(A):A=M(A)),h++,h>x&&(A="X"),A});return h>x&&(S=S.replace(/[\s,]*X.*/,""),HS.log("Ignoring extra params in segment "+d)),w&&f++,T&&v++,m+S})}xa.getPixelShift=Qi;function Qi(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var O3=W((Wme,US)=>{"use strict";var Bae=ze(),rl=wt(),OS=ba(),YS=it(),Hae=ao().readPaths,ps=lo(),Oae=ps.getPathString,Wf=p2(),Yae=Ra().FROM_TL;US.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=rl.getFromId(r,a.xref),s=rl.getFromId(r,a.yref);let Z=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in Wf){var f=typeof Wf[u]=="function",v=!Z||Wf.simpleXVariables.includes(u),d=!ee||Wf.simpleYVariables.includes(u);if(f&&v&&d){var h=Wf[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=Bae.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},y=a.label.font,g={"data-notex":1},x=n.append("g").attr(m).classed("shape-label",!0),w=x.append("text").attr(g).classed("shape-label-text",!0).text(i),T,b,M,S;if(a.path){var A=Oae(r,a),L=Hae(A,r);T=1/0,M=1/0,b=-1/0,S=-1/0;for(var q=0;qps.getDataToPixel(r,qe,be,!1,Ce)(Re),Te=(Re,be,qe,Ce)=>ps.getDataToPixel(r,qe,be,!0,Ce)(Re);if(a.xsizemode==="pixel"){let Re=ce(a.xanchor,void 0,ne,_e),be=ps.getPixelShift(ne,a.x0shift),qe=ps.getPixelShift(ne,a.x1shift);T=Re+a.x0+be,b=Re+a.x1+qe}else T=ce(a.x0,a.x0shift,ne,_e),b=ce(a.x1,a.x1shift,fe,ue);if(a.ysizemode==="pixel"){let Re=Te(a.yanchor,void 0,we,Me),be=ps.getPixelShift(we,a.y0shift),qe=ps.getPixelShift(we,a.y1shift);M=Re-a.y0+be,S=Re-a.y1+qe}else M=Te(a.y0,a.y0shift,we,Me),S=Te(a.y1,a.y1shift,j,ye)}var H=a.label.textangle;H==="auto"&&(a.type==="line"?H=Uae(T,M,b,S):H=0),w.call(function(Z){return Z.call(YS.font,y).attr({}),OS.convertToTspans(Z,r),Z});var Y=YS.bBox(w.node()),G=Gae(T,M,b,S,a,H,Y),O=G.textx,X=G.texty,J=G.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[J],y:X,x:O,transform:"rotate("+H+","+O+","+X+")"}).call(OS.positionText,O,X)}};function Uae(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Gae(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,d=Math.sin(v),h=Math.cos(v),m=n.label.xanchor,y=n.label.yanchor,g,x,w,T;if(f==="line"){o==="start"?(g=e,x=r):o==="end"?(g=t,x=a):(g=(e+t)/2,x=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var Vae=ze(),Xae=Vae.strTranslate,GS=wi(),WS=V0(),Wae=WS.drawMode,ZS=WS.selectMode,JS=Ar(),VS=Fr(),W1=H1(),Zae=W1.i000,Jae=W1.i090,$ae=W1.i180,Kae=W1.i270,jae=Wl(),$S=jae.clearOutlineControllers,U3=ao(),X1=U3.pointsOnRectangle,Y3=U3.pointsOnEllipse,Qae=U3.writePaths,ene=V1().newShapes,rne=V1().createShapeObj,tne=H3(),ane=O3();KS.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Y3(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=ene(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=tne(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&JS.call((G||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=Wae(f),d=ZS(f);(v||d)&&(i._fullLayout._outlining=!0),$S(i),t.attr("d",Qae(r));var h,m,y,g,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=nne([],r);var w=u.append("g").attr("class","outline-controllers");P(w),Y()}if(v&&a.hasText){var T=u.select(".label-temp"),b=rne(t,a,a.dragmode);ane(i,"label-temp",b,T)}function M(G){y=+G.srcElement.getAttribute("data-i"),g=+G.srcElement.getAttribute("data-j"),h[y][g].moveFn=S}function S(G,O){if(r.length){var X=x[y][g][1],J=x[y][g][2],Z=r[y],ee=Z.length;if(X1(Z)){var ne=G,fe=O;if(a.isActiveSelection){var we=XS(Z,g);we[1]===Z[g][1]?fe=0:ne=0}for(var j=0;j1&&!(G.length===2&&G[1][0]==="Z")&&(g===0&&(G[0][0]="M"),r[y]=G,l(),o())}}function q(G,O){if(G===2){y=+O.srcElement.getAttribute("data-i"),g=+O.srcElement.getAttribute("data-j");var X=r[y];!X1(X)&&!Y3(X)&&L()}}function P(G){h=[];for(var O=0;O{"use strict";var lne=Hr(),aD=Ar(),V3=ze(),ms=wt(),one=ao().readPaths,sne=Z1(),$1=O3(),nD=Wl().clearOutlineControllers,G3=Fr(),K1=it(),une=pt().arrayEditor,jS=wi(),QS=Mi(),eD=ro(),gs=Xf(),pn=lo(),X3=pn.getPathString;oD.exports={draw:W3,drawOne:iD,eraseActiveShape:hne,drawLabel:$1};function W3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&QS.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&QS.click(e,l,t.id)}})}function lD(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=cne(r,a,n);V3.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),K1.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");K1.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function cne(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(d=>ms.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),v=u.map(function(d){return d._offset+d._length});return[Math.min(...f),Math.max(...v)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function vne(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",d=i.modifyItem,h,m,y,g,x,w,T,b,M,S,A,L,q,P,R,N=lne.select(r.node().parentNode),B=ms.getFromId(e,t.xref),I=ms.getRefType(t.xref),H=ms.getFromId(e,t.yref),Y=ms.getRefType(t.yref),G=t.x0shift,O=t.x1shift,X=t.y0shift,J=t.y1shift,Z=function(Ue,ke){var Xe=pn.getDataToPixel(e,B,ke,!1,I);return Xe(Ue)},ee=function(Ue,ke){var Xe=pn.getDataToPixel(e,H,ke,!0,Y);return Xe(Ue)},ne=pn.getPixelToData(e,B,!1,I),fe=pn.getPixelToData(e,H,!0,Y),we=ue(),j={element:we.node(),gd:e,prepFn:ce,doneFn:Te,clickFn:Re},_e;jS.init(j),we.node().onmousemove=ye;function ue(){return f?Me():r}function Me(){var Ue=10,ke=Math.max(t.line.width,Ue),Xe=n.append("g").attr("data-index",a).attr("drag-helper",!0);Xe.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ke,"stroke-opacity":"0"});var Ke={"fill-opacity":"0"},We=Math.max(ke/2,Ue);return Xe.append("circle").attr({"data-line-point":"start-point",cx:s?Z(t.xanchor)+t.x0:Z(t.x0,G),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,X),r:We}).style(Ke).classed("cursor-grab",!0),Xe.append("circle").attr({"data-line-point":"end-point",cx:s?Z(t.xanchor)+t.x1:Z(t.x1,O),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,J),r:We}).style(Ke).classed("cursor-grab",!0),Xe}function ye(Ue){if(J1(e)){_e=null;return}if(f)Ue.target.tagName==="path"?_e="move":_e=Ue.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ke=j.element.getBoundingClientRect(),Xe=ke.right-ke.left,Ke=ke.bottom-ke.top,We=Ue.clientX-ke.left,Ae=Ue.clientY-ke.top,Pe=!v&&Xe>l&&Ke>o&&!Ue.shiftKey?jS.getCursor(We/Xe,1-Ae/Ke):"move";eD(r,Pe),_e=Pe.split("-")[0]}}function ce(Ue){J1(e)||(s&&(x=Z(t.xanchor)),u&&(w=ee(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:Z(t.x0),m=u?t.y0:ee(t.y0),y=s?t.x1:Z(t.x1),g=u?t.y1:ee(t.y1)),hg?(T=m,A="y0",b=g,L="y1"):(T=g,A="y1",b=m,L="y0"),ye(Ue),Ce(n,t),Ee(r,t,e),j.moveFn=_e==="move"?be:qe,j.altKey=Ue.altKey)}function Te(){J1(e)||(eD(r),De(n),lD(r,e,t),aD.call("_guiRelayout",e,i.getUpdateObj()))}function Re(){J1(e)||De(n)}function be(Ue,ke){if(t.type==="path"){var Xe=function(Ae){return Ae},Ke=Xe,We=Xe;s?d("xanchor",t.xanchor=ne(x+Ue)):(Ke=function(Pe){return ne(Z(Pe)+Ue)},B&&B.type==="date"&&(Ke=pn.encodeDate(Ke))),u?d("yanchor",t.yanchor=fe(w+ke)):(We=function(Pe){return fe(ee(Pe)+ke)},H&&H.type==="date"&&(We=pn.encodeDate(We))),d("path",t.path=rD(R,Ke,We))}else s?d("xanchor",t.xanchor=ne(x+Ue)):(d("x0",t.x0=ne(h+Ue)),d("x1",t.x1=ne(y+Ue))),u?d("yanchor",t.yanchor=fe(w+ke)):(d("y0",t.y0=fe(m+ke)),d("y1",t.y1=fe(g+ke)));r.attr("d",X3(e,t)),Ce(n,t),$1(e,a,t,N)}function qe(Ue,ke){if(v){var Xe=function(Ge){return Ge},Ke=Xe,We=Xe;s?d("xanchor",t.xanchor=ne(x+Ue)):(Ke=function(ar){return ne(Z(ar)+Ue)},B&&B.type==="date"&&(Ke=pn.encodeDate(Ke))),u?d("yanchor",t.yanchor=fe(w+ke)):(We=function(ar){return fe(ee(ar)+ke)},H&&H.type==="date"&&(We=pn.encodeDate(We))),d("path",t.path=rD(R,Ke,We))}else if(f){if(_e==="resize-over-start-point"){var Ae=h+Ue,Pe=u?m-ke:m+ke;d("x0",t.x0=s?Ae:ne(Ae)),d("y0",t.y0=u?Pe:fe(Pe))}else if(_e==="resize-over-end-point"){var je=y+Ue,re=u?g-ke:g+ke;d("x1",t.x1=s?je:ne(je)),d("y1",t.y1=u?re:fe(re))}}else{var he=function(Ge){return _e.indexOf(Ge)!==-1},Ve=he("n"),dr=he("s"),Le=he("w"),de=he("e"),xe=Ve?T+ke:T,He=dr?b+ke:b,Ze=Le?M+Ue:M,Ie=de?S+Ue:S;u&&(Ve&&(xe=T-ke),dr&&(He=b-ke)),(!u&&He-xe>o||u&&xe-He>o)&&(d(A,t[A]=u?xe:fe(xe)),d(L,t[L]=u?He:fe(He))),Ie-Ze>l&&(d(q,t[q]=s?Ze:ne(Ze)),d(P,t[P]=s?Ie:ne(Ie)))}r.attr("d",X3(e,t)),Ce(n,t),$1(e,a,t,N)}function Ce(Ue,ke){(s||u)&&Xe();function Xe(){var Ke=ke.type!=="path",We=Ue.selectAll(".visual-cue").data([0]),Ae=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ae}).classed("visual-cue",!0);var Pe=Z(s?ke.xanchor:V3.midRange(Ke?[ke.x0,ke.x1]:pn.extractPathCoords(ke.path,gs.paramIsX))),je=ee(u?ke.yanchor:V3.midRange(Ke?[ke.y0,ke.y1]:pn.extractPathCoords(ke.path,gs.paramIsY)));if(Pe=pn.roundPositionForSharpStrokeRendering(Pe,Ae),je=pn.roundPositionForSharpStrokeRendering(je,Ae),s&&u){var re="M"+(Pe-1-Ae)+","+(je-1-Ae)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",re)}else if(s){var he="M"+(Pe-1-Ae)+","+(je-9-Ae)+"v18 h2 v-18 Z";We.attr("d",he)}else{var Ve="M"+(Pe-9-Ae)+","+(je-1-Ae)+"h18 v2 h-18 Z";We.attr("d",Ve)}}}function De(Ue){Ue.selectAll(".visual-cue").remove()}function Ee(Ue,ke,Xe){var Ke=ke.xref,We=ke.yref,Ae=ms.getFromId(Xe,Ke),Pe=ms.getFromId(Xe,We),je="";Ke!=="paper"&&!Ae.autorange&&(je+=Ke),We!=="paper"&&!Pe.autorange&&(je+=We),K1.setClipUrl(Ue,je?"clip"+Xe._fullLayout._uid+je:null,Xe)}}function rD(e,r,t){return e.replace(gs.segmentRE,function(a){var n=0,i=a.charAt(0),l=gs.paramIsX[i],o=gs.paramIsY[i],s=gs.numParams[i],u=a.slice(1).replace(gs.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function dne(e,r){if(j1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){tD(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=tD,W3(e)}}}function tD(e){if(j1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(nD(e),delete e._fullLayout._activeShapeIndex,W3(e))}}function hne(e){if(j1(e)){nD(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Z0=ze()._,pne=function(e){return{DIALOG_TITLE:Z0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:Z0(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:Z0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:Z0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:Z0(e,"Cancel"),DIALOG_CONFIRM:Z0(e,"Share")}};sD.exports=pne});var vD=W((Kme,cD)=>{"use strict";var fD=Hr(),{dfltConfig:mne}=Rl(),gne=uD(),yne=(e,r,t,a,n)=>{let i=gne(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===mne.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),v=f[0],d=f[2],h=f[4];s.append("span").text(v),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(d),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,v=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),d=v[0],h=v[4],m=l.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(d),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),m.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},bne=(e,r,t)=>{let a=fD.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{fD.event.target===n.node()&&i()}),yne(e,n,r,()=>{i(),t()},i)};cD.exports=bne});var $3=W((jme,bD)=>{"use strict";var En=Ar(),xne=$t(),hD=la(),Zr=I1(),_ne=Q1().eraseActiveShape,wne=vD(),J0=ze(),Gr=J0._,Jr=bD.exports={};Jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Gr(e,"Download plot as a PNG"):Gr(e,"Download plot")},icon:Zr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};J0.notifier(Gr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),En.call("downloadImage",e,t).then(function(a){J0.notifier(Gr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){J0.notifier(Gr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Jr.downloadJson={name:"downloadJson",title:function(e){return Gr(e,"Download plot as JSON")},icon:Zr.curlybraces,click:function(e){En.call("downloadImage",e,{format:"full-json"}).then(function(r){J0.notifier(Gr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){J0.notifier(Gr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Jr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Gr(e,"Share chart...")},icon:Zr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}wne(e,r,function(){xne.sendDataToCloud(e,r)})}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Gr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Zr.zoombox,click:Za};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Gr(e,"Pan")},attr:"dragmode",val:"pan",icon:Zr.pan,click:Za};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Gr(e,"Box Select")},attr:"dragmode",val:"select",icon:Zr.selectbox,click:Za};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Gr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Zr.lasso,click:Za};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Gr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Zr.drawclosedpath,click:Za};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Gr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Zr.drawopenpath,click:Za};Jr.drawline={name:"drawline",title:function(e){return Gr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Zr.drawline,click:Za};Jr.drawrect={name:"drawrect",title:function(e){return Gr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Zr.drawrect,click:Za};Jr.drawcircle={name:"drawcircle",title:function(e){return Gr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Zr.drawcircle,click:Za};Jr.eraseshape={name:"eraseshape",title:function(e){return Gr(e,"Erase active shape")},icon:Zr.eraseshape,click:_ne};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Gr(e,"Zoom in")},attr:"zoom",val:"in",icon:Zr.zoom_plus,click:Za};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Gr(e,"Zoom out")},attr:"zoom",val:"out",icon:Zr.zoom_minus,click:Za};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Gr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Zr.autoscale,click:Za};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Gr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Zr.home,click:Za};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Gr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Zr.tooltip_basic,gravity:"ne",click:Za};Jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Gr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Zr.tooltip_compare,gravity:"ne",click:Za};function Za(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=hD.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,d=(1+v)/2,h=(1-v)/2,m,y;for(f=0;f-S),[y,g]=v.invert(f.midPt),{minscale:x}=u.projection,w=(o=u.projection.maxscale)!=null?o:1/0,T=Math.min(x,w),b=Math.max(x,w),M=n==="in"?dD*d:1/dD*d;M>b?M=b:M{"use strict";var xD=$3(),kne=Object.keys(xD),_D=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],wD=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(_D,["downloadJson"]),$0=[],Cne=function(e){if(wD.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();$0.indexOf(r)===-1&&$0.push(r),$0.indexOf(t)===-1&&$0.push(t)}};kne.forEach(function(e){Cne(xD[e])});$0.sort();MD.exports={DRAW_MODES:_D,backButtons:wD,foreButtons:$0}});var Q3={};Ou(Q3,{default:()=>Dne});var j3,Sne,Dne,e5=Hu(()=>{"use strict";j3=Cp(K3()),Sne={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${j3.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${j3.default.foreButtons.join("*, *")}*.`].join(" ")}},Dne=Sne});var AD=W((ege,TD)=>{"use strict";var Lne=ze(),Zf=Fr(),qne=pt(),Ene=(e5(),rn(Q3)).default;TD.exports=function(r,t){var a=r.modebar||{},n=qne.newContainer(t,"modebar");function i(o,s){return Lne.coerce(a,n,Ene,o,s)}i("orientation"),i("bgcolor",Zf.addOpacity(t.paper_bgcolor,.5));var l=Zf.contrast(Zf.rgb(t.modebar.bgcolor));i("color",Zf.addOpacity(l,.3)),i("activecolor",Zf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var DD=W((rge,SD)=>{"use strict";var r5=Hr(),Pne=Vr(),td=ze(),kD=I1(),zne=Yu().version,Rne=new DOMParser;function CD(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var tl=CD.prototype;tl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),td.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};tl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};tl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};tl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r5.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||kD.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};tl.createIcon=function(e){var r=Pne(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Rne.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};tl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=r5.select(a),s=function(v,d){var h=r.modebar,m=v.querySelector(".icon path");m&&(d||v.matches(":hover")?m.style.fill=h.activecolor:m.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:td.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};tl.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Ine=la(),LD=kn(),t5=Ar(),Bne=xi().isUnifiedHover,Hne=DD(),ad=$3(),One=K3().DRAW_MODES,Yne=ze().extendDeep;qD.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Zne(i):!a.displayModeBar&&a.watermark?l=[]:l=Une(r),n?n.update(r,l):t._modeBar=Hne(r,l)};function Une(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,X){if(typeof X=="string"){if(X.toLowerCase()===O.toLowerCase())return!0}else{var J=X.name,Z=X._cat||X.name;if(J===O||Z===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var X=0;X1?(q=["toggleHover"],P=["resetViews"]):v?(L=["zoomInGeo","zoomOutGeo"],q=["hoverClosestGeo"],P=["resetGeo"]):f?(q=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(L=["zoomInMap","zoomOutMap"],q=["toggleHover"],P=["resetViewMap"]):d?q=["hoverClosestPie"]:w?(q=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):q=["toggleHover"],u&&q.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Xne(t)||b)&&(q=[]),u&&!T&&(L=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||m?R=["zoom2d","pan2d"]:y||v?R=["pan2d"]:g&&(R=["zoom2d"]),Vne(t)&&R.push("select2d","lasso2d");var N=[],B=function(O){N.indexOf(O)===-1&&q.indexOf(O)!==-1&&N.push(O)};if(Array.isArray(o)){for(var I=[],H=0;H{"use strict";PD.exports={moduleType:"component",name:"modebar",layoutAttributes:(e5(),rn(Q3)).default,supplyLayoutDefaults:AD(),manage:ED()}});var n5=W((nge,zD)=>{"use strict";var Jne=Ra().FROM_BL;zD.exports=function(r,t,a){a===void 0&&(a=Jne[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var $f=W(Jf=>{"use strict";var ys=ze(),i5=Ef(),Ti=la().id2name,$ne=yi(),RD=n5(),Kne=s1(),jne=aa().ALMOST_EQUAL,Qne=Ra().FROM_BL;Jf.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,d,h,m;for(o=0;oi?t.slice(i):a.slice(n))+l}function rie(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;ljne*m&&!w)){for(i=0;iN&&JP&&(P=J);var ee=(P-q)/(2*R);v/=ee,q=s.l2r(q),P=s.l2r(P),s.range=s._input.range=S{"use strict";var id=Hr(),Ja=Ar(),Pn=$t(),$n=ze(),s5=ba(),u5=N1(),Kf=Fr(),K0=it(),BD=Lf(),GD=a5(),jf=wt(),xl=Ra(),VD=$f(),tie=VD.enforce,aie=VD.clean,HD=Ef().doAutoRange,XD="start",nie="middle",WD="end",iie=va().zindexSeparator;ha.layoutStyles=function(e){return $n.syncOrAsync([Pn.doAutoMargin,oie],e)};function lie(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function oie(e){var r=e._fullLayout,t=r._size,a=t.p,n=jf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(K0.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ha.drawMainTitle(e),GD.manage(e),!r._has("cartesian"))return Pn.previousPromises(e);function v(ce,Te,Re){var be=ce._lw/2;if(ce._id.charAt(0)==="x"){if(Te){if(Re==="top")return Te._offset-a-be}else return t.t+t.h*(1-(ce.position||0))+be%1;return Te._offset+Te._length+a+be}if(Te){if(Re==="right")return Te._offset+Te._length+a+be}else return t.l+t.w*(ce.position||0)+be%1;return Te._offset-a-be}for(i=0;i0){cie(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:UD(r.yanchor)}).call(s5.positionText,l,i);var f=(r.text.match(s5.BR_TAG_ALL)||[]).length;if(f){var v=xl.LINE_SPACING*f+xl.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",g)})}var d=id.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=o.node().getBBox(),m=h.y+h.height,y=m+BD.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y,"text-anchor":a,dy:UD(r.yanchor)}).call(s5.positionText,l,y)}}}};function sie(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$n.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return $n.isTopAnchor(r)&&t==="t"||$n.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=uie(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function cie(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&sie(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),Pn.allowAutoMargin(e,n),Pn.autoMargin(e,n,o)}function vie(e,r){var t=e.title,a=e._size,n=0;return r===XD?n=t.pad.l:r===WD&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function die(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===xl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function UD(e){return e==="top"?xl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":xl.MID_SHIFT+"em"}function hie(e){var r=e.title,t=nie;return $n.isRightAnchor(r)?t=WD:$n.isLeftAnchor(r)&&(t=XD),t}function pie(e){var r=e.title,t="0em";return $n.isTopAnchor(r)?t=xl.CAP_SHIFT+"em":$n.isMiddleAnchor(r)&&(t=xl.MID_SHIFT+"em"),t}ha.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var mie=ao().readPaths,gie=Z1(),ZD=Wl().clearOutlineControllers,f5=Fr(),JD=it(),yie=pt().arrayEditor,$D=lo(),bie=$D.getPathString;jD.exports={draw:od,drawOne:KD,activateLastSelection:wie};function od(e){var r=e._fullLayout;ZD(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;g--){var x=l.append("path").attr(s).style("opacity",g?.1:u).call(f5.stroke,v).call(f5.fill,f).call(JD.dashLine,g?"solid":h,g?4+d:d);if(xie(x,e,a),m){var w=yie(e.layout,"selections",a);x.style({cursor:"move"});var T={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=mie(o,e);gie(b,x,T)}else x.style("pointer-events",g?"all":"none");y[g]=x}var M=y[0],S=y[1];S.node().addEventListener("click",function(){return _ie(e,M)})}}function xie(e,r,t){var a=t.xref+t.yref;JD.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function _ie(e,r){if(sd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){c5(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=c5,od(e)}}}function wie(e){if(sd(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=c5,od(e)}}function c5(e){if(sd(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(ZD(e),delete e._fullLayout._activeSelectionIndex,od(e))}}});var eL=W((sge,QD)=>{function Mie(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}QD.exports=Mie});var tL=W((uge,rL)=>{function Tie(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}rL.exports=Tie});var nL=W((fge,aL)=>{var Aie={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};aL.exports=Aie});var lL=W((cge,iL)=>{var Qf=nL();function kie(e,r,t){function a(m,y){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:null,below:null},otherFill:null}}function n(m,y,g){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Qf.create();function l(m,y,g,x,w,T){var b=r.pointsCompare(y,w);return b!==0?b:r.pointsSame(g,T)?0:m!==x?m?1:-1:r.pointAboveOrOnLine(g,x?w:T,x?T:w)?1:-1}function o(m,y){i.insertBefore(m,function(g){var x=l(m.isStart,m.pt,y,g.isStart,g.pt,g.other.pt);return x<0})}function s(m,y){var g=Qf.node({isStart:!0,pt:m.start,seg:m,primary:y,other:null,status:null});return o(g,m.end),g}function u(m,y,g){var x=Qf.node({isStart:!1,pt:y.end,seg:y,primary:g,other:m,status:null});m.other=x,o(x,m.pt)}function f(m,y){var g=s(m,y);return u(g,m,y),g}function v(m,y){t&&t.segmentChop(m.seg,y),m.other.remove(),m.seg.end=y,m.other.pt=y,o(m.other,m.pt)}function d(m,y){var g=n(y,m.seg.end,m.seg);return v(m,y),f(g,m.primary)}function h(m,y){var g=Qf.create();function x(H,Y){var G=H.seg.start,O=H.seg.end,X=Y.seg.start,J=Y.seg.end;return r.pointsCollinear(G,X,J)?r.pointsCollinear(O,X,J)||r.pointAboveOrOnLine(O,X,J)?1:-1:r.pointAboveOrOnLine(G,X,J)?1:-1}function w(H){return g.findTransition(function(Y){var G=x(H,Y.ev);return G>0})}function T(H,Y){var G=H.seg,O=Y.seg,X=G.start,J=G.end,Z=O.start,ee=O.end;t&&t.checkIntersection(G,O);var ne=r.linesIntersect(X,J,Z,ee);if(ne===!1){if(!r.pointsCollinear(X,J,Z)||r.pointsSame(X,ee)||r.pointsSame(J,Z))return!1;var fe=r.pointsSame(X,Z),we=r.pointsSame(J,ee);if(fe&&we)return Y;var j=!fe&&r.pointBetween(X,Z,ee),_e=!we&&r.pointBetween(J,Z,ee);if(fe)return _e?d(Y,J):d(H,ee),Y;j&&(we||(_e?d(Y,J):d(H,ee)),d(Y,X))}else ne.alongA===0&&(ne.alongB===-1?d(H,Z):ne.alongB===0?d(H,ne.pt):ne.alongB===1&&d(H,ee)),ne.alongB===0&&(ne.alongA===-1?d(Y,X):ne.alongA===0?d(Y,ne.pt):ne.alongA===1&&d(Y,J));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let H=function(){if(A){var Y=T(M,A);if(Y)return Y}return L?T(M,L):!1};var I=H;t&&t.segmentNew(M.seg,M.primary);var S=w(M),A=S.before?S.before.ev:null,L=S.after?S.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,L?L.seg:!1);var q=H();if(q){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(q.seg.myFill.above=!q.seg.myFill.above)}else q.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(q.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,L?M.seg.myFill.below=L.seg.myFill.above:M.seg.myFill.below=m,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;L?M.primary===L.primary?R=L.seg.otherFill.above:R=L.seg.myFill.above:R=M.primary?y:m,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,L?L.seg:!1),M.other.status=S.insert(Qf.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(N.prev)&&g.exists(N.next)&&T(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var B=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=B}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var y,g=m[m.length-1],x=0;x{function Cie(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(I,H,Y){return f.index=I,f.matches_head=H,f.matches_pt1=Y,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function ec(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Sie={union:function(e,r){return ec(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ec(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ec(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ec(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ec(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};uL.exports=Sie});var vL=W((hge,cL)=>{var Die={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var Lie=eL(),qie=tL(),dL=lL(),Eie=sL(),rc=fL(),hL=vL(),Kn=!1,tc=qie(),mn;mn={buildLog:function(e){return e===!0?Kn=Lie():e===!1&&(Kn=!1),Kn===!1?!1:Kn.list},epsilon:function(e){return tc.epsilon(e)},segments:function(e){var r=dL(!0,tc,Kn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=dL(!1,tc,Kn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:rc.union(e.combined,Kn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:rc.intersect(e.combined,Kn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:rc.difference(e.combined,Kn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:rc.differenceRev(e.combined,Kn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:rc.xor(e.combined,Kn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Eie(e.segments,tc,Kn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return hL.toPolygon(mn,e)},polygonToGeoJSON:function(e){return hL.fromPolygon(mn,tc,e)},union:function(e,r){return ac(e,r,mn.selectUnion)},intersect:function(e,r){return ac(e,r,mn.selectIntersect)},difference:function(e,r){return ac(e,r,mn.selectDifference)},differenceRev:function(e,r){return ac(e,r,mn.selectDifferenceRev)},xor:function(e,r){return ac(e,r,mn.selectXor)}};function ac(e,r,t){var a=mn.segments(e),n=mn.segments(r),i=mn.combine(a,n),l=t(i);return mn.polygon(l)}typeof window=="object"&&(window.PolyBool=mn);pL.exports=mn});var yL=W((mge,gL)=>{gL.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(h-v)*(l-d)/(m-d)+v;y&&(o=!o)}return o}});var h5=W((gge,bL)=>{"use strict";var d5=v2().dot,ud=aa().BADNUM,fd=bL.exports={};fd.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||x===ud||xl||y&&u(m))}function v(m,y){var g=m[0],x=m[1];if(g===ud||gn||x===ud||xl)return!1;var w=t.length,T=t[0][0],b=t[0][1],M=0,S,A,L,q,P;for(S=1;SMath.max(A,T)||x>Math.max(L,b)))if(xo||Math.abs(d5(v,u))>n)return!0;return!1};fd.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var _L=W((yge,xL)=>{"use strict";xL.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var UL=W((bge,YL)=>{"use strict";var wL=mL(),Pie=yL(),lc=Ar(),zie=it().dashStyle,nc=Fr(),Rie=Mi(),Fie=xi().makeEventData,cc=V0(),Nie=cc.freeMode,Iie=cc.rectMode,oc=cc.drawMode,y5=cc.openMode,b5=cc.selectMode,ML=lo(),TL=Xf(),DL=Z1(),LL=Wl().clearOutline,qL=ao(),p5=qL.handleEllipse,Bie=qL.readPaths,Hie=V1().newShapes,Oie=H3(),Yie=v5().activateLastSelection,vd=ze(),Uie=vd.sorterAsc,EL=h5(),ic=T2(),jn=la().getFromId,Gie=N1(),Vie=ld().redrawReglTraces,dd=_L(),al=dd.MINSELECT,Xie=EL.filter,x5=EL.tester,_5=O1(),AL=_5.p2r,Wie=_5.axValue,Zie=_5.getTransform;function w5(e){return e.subplot!==void 0}function Jie(e,r,t,a,n){var i=!w5(a),l=Nie(n),o=Iie(n),s=y5(n),u=oc(n),f=b5(n),v=n==="drawline",d=n==="drawcircle",h=v||d,m=a.gd,y=m._fullLayout,g=f&&y.newselection.mode==="immediate"&&i,x=y._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=Zie(T),M=r-w.left,S=t-w.top;y._calcInverseTransform(m);var A=vd.apply3DTransform(y._invTransform)(M,S);M=A[0],S=A[1];var L=y._invScaleX,q=y._invScaleY,P=M,R=S,N="M"+M+","+S,B=a.xaxes[0],I=a.yaxes[0],H=B._length,Y=I._length,G=e.altKey&&!(oc(n)&&s),O,X,J,Z,ee,ne,fe;zL(e,m,a),l&&(O=Xie([[M,S]],dd.BENDPX));var we=x.selectAll("path.select-outline-"+T.id).data([1]),j=u?y.newshape:y.newselection;u&&(a.hasText=j.label.text||j.label.texttemplate);var _e=u&&!s?j.fillcolor:"rgba(0,0,0,0)",ue=j.line.color||(i?nc.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");we.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?j.opacity/2:1,"stroke-dasharray":zie(j.line.dash,j.line.width),"stroke-width":j.line.width+"px","shape-rendering":"crispEdges"}).call(nc.stroke,ue).call(nc.fill,_e).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",N+"Z");var Me=x.append("path").attr("class","zoombox-corners").style({fill:nc.background,stroke:nc.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ye=x.select(".label-temp");ye.empty()&&(ye=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=y._uid+dd.SELECTID,Te=[],Re=hd(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var qe=B._id,Ce=I._id;BL(m,qe,Ce,Re);for(var De=(m.layout||{}).selections||[],Ee=[],Ue=!1,ke=0;ke=0){m._fullLayout._deactivateShape(m);return}if(!u){var De=y.clickmode;ic.done(ce).then(function(){if(ic.clear(ce),qe===2){for(we.remove(),ee=0;ee-1&&PL(Ce,m,a.xaxes,a.yaxes,a.subplot,a,we),De==="event"&&fc(m,void 0);Rie.click(m,Ce,T.id)}).catch(vd.error)}},a.doneFn=function(){Me.remove(),ic.done(ce).then(function(){ic.clear(ce),!g&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(g||u)&&sc(a,g),a.doneFnCompleted&&a.doneFnCompleted(Te),f&&fc(m,fe)}).catch(vd.error)}}function PL(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],d,h,m,y,g,x,w,T,b,M;if(ele(o)){zL(e,r,i),d=hd(r,t,a,n);var S=rle(o,d),A=S.pointNumbers.length>0;if(A?tle(d,S):ale(d)&&(w=CL(S))){for(l&&l.remove(),M=0;M=0}function Qie(e){return e._fullLayout._activeSelectionIndex>=0}function sc(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;jie(n)&&n._fullLayout._deactivateShape(n),Qie(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=oc(t),s=b5(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Hie(u,e)),f&&lc.call("_guiRelayout",n,{shapes:f});var v;s&&!w5(e)&&(v=Oie(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,lc.call("_guiRelayout",n,{selections:v}).then(function(){r&&Yie(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function kL(e){return e._id}function hd(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(kL),l=t.map(kL),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function tle(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function uc(e,r,t){var a,n;for(a=0;a-1&&r;if(!l&&r){var qe=SL(e,!0);if(qe.length){var Ce=qe[0].xref,De=qe[0].yref;if(Ce&&De){var Ee=HL(qe),Ue=OL([jn(e,Ce,"x"),jn(e,De,"y")]);Ue(Te,Ee)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&fc(e,Te),d._reselect=!1}if(!l&&d._deselect){var ke=d._deselect;o=ke.xref,s=ke.yref,lle(o,s,f)||BL(e,o,s,a),be&&(Te.points.length?fc(e,Te):A5(e)),d._deselect=!1}return{eventData:Te,selectionTesters:t}}function ile(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";GL.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var vc=W((_ge,VL)=>{"use strict";VL.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e,"axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var j0=W((Mge,ZL)=>{"use strict";var XL=k5(),WL=Ca(),pd=va(),cle=pt().templatedArray,wge=vc();ZL.exports=cle("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:WL({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:XL.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:XL.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",pd.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",pd.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",pd.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",pd.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:WL({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var md=W((Tge,JL)=>{"use strict";JL.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var KL=W((Age,$L)=>{"use strict";$L.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bs=W((kge,iq)=>{"use strict";var jL=G2().axisHoverFormat,{hovertemplateAttrs:vle,texttemplateAttrs:dle,templatefallbackAttrs:QL}=Uo(),eq=kf(),hle=Ca(),rq=Ui().dash,ple=Ui().pattern,mle=it(),gle=md(),dc=na().extendFlat,yle=KL();function tq(e){return{valType:"any",dflt:0,editType:"calc"}}function aq(e){return{valType:"any",editType:"calc"}}function nq(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}iq.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:tq("x"),yperiod:tq("y"),xperiod0:aq("x0"),yperiod0:aq("y0"),xperiodalignment:nq("x"),yperiodalignment:nq("y"),xhoverformat:jL("x"),yhoverformat:jL("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:dle(),texttemplatefallback:QL({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:vle({},{keys:gle.eventDataKeys}),hovertemplatefallback:QL(),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:dc({},rq,{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:yle(!0),fillgradient:dc({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:ple,marker:dc({symbol:{valType:"enumerated",values:mle.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:dc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:dc({},rq,{arrayOk:!0}),editType:"calc"},eq("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"},eq("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:hle({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var C5=W((Sge,sq)=>{"use strict";var lq=j0(),oq=bs().line,ble=Ui().dash,gd=na().extendFlat,xle=Yi().overrideAll,_le=pt().templatedArray,Cge=vc();sq.exports=xle(_le("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:gd({},lq.xref,{}),yref:gd({},lq.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:oq.color,width:gd({},oq.width,{min:1,dflt:1}),dash:gd({},ble,{dflt:"dot"})}}),"arraydraw","from-root")});var vq=W((Dge,cq)=>{"use strict";var uq=ze(),yd=wt(),wle=bi(),Mle=C5(),fq=lo();cq.exports=function(r,t){wle(r,t,{name:"selections",handleItemDefaults:Tle});for(var a=t.selections,n=0;n{"use strict";dq.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var hc=W((qge,gq)=>{"use strict";var Ale=Ar(),pq=ze(),mq=la();gq.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Ale.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,d=n._has("cartesian"),h=0;h{"use strict";var yq=v5(),pc=UL();bq.exports={moduleType:"component",name:"selections",layoutAttributes:C5(),supplyLayoutDefaults:vq(),supplyDrawNewSelectionDefaults:hq(),includeBasePlot:hc()("selections"),draw:yq.draw,drawOne:yq.drawOne,reselect:pc.reselect,prepSelect:pc.prepSelect,clearOutline:pc.clearOutline,clearSelectionsCache:pc.clearSelectionsCache,selectOnClick:pc.selectOnClick}});var Bq=W((Pge,Iq)=>{"use strict";var P5=Hr(),Qn=ze(),xq=Qn.numberFormat,kle=f3(),bd=Ar(),Sq=Qn.strTranslate,Cle=ba(),D5=Fr(),so=it(),Sle=Mi(),_q=wt(),Dle=ro(),Lle=wi(),Dq=V0(),xd=Dq.selectingOrDrawing,qle=Dq.freeMode,Ele=Ra().FROM_TL,Ple=N1(),zle=ld().redrawReglTraces,Rle=$t(),L5=la().getFromId,Fle=Q0().prepSelect,Nle=Q0().clearOutline,Ile=Q0().selectOnClick,S5=n5(),z5=va(),wq=z5.MINDRAG,an=z5.MINZOOM,Mq=!0;function Ble(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,d,h,m,y,g,x,w,T,b,M,S,A,L,q,P,R,N,B,I,H,Y,G;t+=r.yaxis._shift;function O(){if(v=r.xaxis,d=r.yaxis,T=v._length,b=d._length,x=v._offset,w=d._offset,h={},h[v._id]=v,m={},m[d._id]=d,l&&o)for(var de=r.overlays,xe=0;xe=0){He._fullLayout._deactivateShape(He);return}var Ze=He._fullLayout.clickmode;if(E5(He),de===2&&!f&&je(),u)Ze.indexOf("select")>-1&&Ile(xe,He,y,g,r.id,Z),Ze.indexOf("event")>-1&&Sle.click(He,xe,r.id);else if(de===1&&f){var Ie=l?d:v,Ge=l==="s"||o==="w"?0:1,ar=Ie._name+".range["+Ge+"]",ir=Hle(Ie,Ge),ur="left",Se="middle";if(Ie.fixedrange)return;l?(Se=l==="n"?"top":"bottom",Ie.side==="right"&&(ur="right")):o==="e"&&(ur="right"),He._context.showAxisRangeEntryBoxes&&P5.select(J).call(Cle.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(ir),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:ur,verticalAlign:Se}).on("edit",function($e){var Ne=Ie.d2r($e);Ne!==void 0&&bd.call("_guiRelayout",He,ar,Ne)})}}Lle.init(Z);var fe,we,j,_e,ue,Me,ye,ce,Te,Re;function be(de,xe,He){var Ze=J.getBoundingClientRect();fe=xe-Ze.left,we=He-Ze.top,e._fullLayout._calcInverseTransform(e);var Ie=Qn.apply3DTransform(e._fullLayout._invTransform)(fe,we);fe=Ie[0],we=Ie[1],j={l:fe,r:fe,w:0,t:we,b:we,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:D5.luminosity(e._fullLayout.plot_bgcolor),ue="M0,0H"+T+"V"+b+"H0V0",Me=!1,ye="xy",Re=!1,ce=Eq(s,_e,x,w,ue),Te=Pq(s,x,w)}function qe(de,xe){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(T,Y*de+fe)),Ze=Math.max(0,Math.min(b,G*xe+we)),Ie=Math.abs(He-fe),Ge=Math.abs(Ze-we);j.l=Math.min(fe,He),j.r=Math.max(fe,He),j.t=Math.min(we,Ze),j.b=Math.max(we,Ze);function ar(){ye="",j.r=j.l,j.t=j.b,Te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>an||Ge>an?(ye="xy",Ie/T>Ge/b?(Ge=Ie*b/T,we>Ze?j.t=we-Ge:j.b=we+Ge):(Ie=Ge*T/b,fe>He?j.l=fe-Ie:j.r=fe+Ie),Te.attr("d",_d(j))):ar();else if(S.isSubplotConstrained)if(Ie>an||Ge>an){ye="xy";var ir=Math.min(j.l/T,(b-j.b)/b),ur=Math.max(j.r/T,(b-j.t)/b);j.l=ir*T,j.r=ur*T,j.b=(1-ir)*b,j.t=(1-ur)*b,Te.attr("d",_d(j))}else ar();else!L||Ge0){var $e;if(S.isSubplotConstrained||!A&&L.length===1){for($e=0;$e1&&(ar.maxallowed!==void 0&&P===(ar.range[0]1&&(ir.maxallowed!==void 0&&R===(ir.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Yle(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Eq(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Sq(t,a)).attr("d",n+"Z")}function Pq(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:D5.background,stroke:D5.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Sq(r,t)).attr("d","M0,0Z")}function zq(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),Rq(e,r,n,i)}function Rq(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function E5(e){P5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Fq(e){Mq&&e.data&&e._context.showTips&&(Qn.notifier(Qn._(e,"Double-click to zoom back out"),"long",e),Mq=!1)}function Ule(e,r){return"M"+(e.l-.5)+","+(r-an-.5)+"h-3v"+(2*an+1)+"h3ZM"+(e.r+.5)+","+(r-an-.5)+"h3v"+(2*an+1)+"h-3Z"}function Gle(e,r){return"M"+(r-an-.5)+","+(e.t-.5)+"v-3h"+(2*an+1)+"v3ZM"+(r-an-.5)+","+(e.b+.5)+"v3h"+(2*an+1)+"v-3Z"}function _d(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,an)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function kq(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,d=(n||{}).xaHash,h=(n||{}).yaHash,m=0;m{"use strict";var Vle=Hr(),wd=Mi(),Xle=wi(),Wle=ro(),Ai=Bq().makeDragBox,pa=va().DRAGGERSIZE;Md.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Vle.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Ai(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&wd.hover(r,d,i)},wd.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,Xle.unhover(r,d))},r._context.showAxisDragHandles&&(Ai(r,l,o._offset-pa,s._offset-pa,pa,pa,"n","w"),Ai(r,l,o._offset+o._length,s._offset-pa,pa,pa,"n","e"),Ai(r,l,o._offset-pa,s._offset+s._length,pa,pa,"s","w"),Ai(r,l,o._offset+o._length,s._offset+s._length,pa,pa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=pa),Ai(r,l,o._offset+o._length*.1,f,o._length*.8,pa,"","ew"),Ai(r,l,o._offset,f,o._length*.1,pa,"","w"),Ai(r,l,o._offset+o._length*.9,f,o._length*.1,pa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=pa),Ai(r,l,v,s._offset+s._length*.1,pa,s._length*.8,"ns",""),Ai(r,l,v,s._offset+s._length*.9,pa,s._length*.1,"s",""),Ai(r,l,v,s._offset,pa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,wd.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,wd.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Md.updateFx(r)}};Md.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Wle(r._draggers,t)}});var Yq=W((Rge,Oq)=>{"use strict";var Hq=Ar();Oq.exports=function(r){for(var t=Hq.layoutArrayContainers,a=Hq.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Zle=Eo(),F5=c2(),mc=Fl(),Jle=Ag().sorterAsc,N5=Ar();gc.containerArrayMatch=Yq();var $le=gc.isAddVal=function(r){return r==="add"||Zle(r)},Uq=gc.isRemoveVal=function(r){return r===null||r==="remove"};gc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=N5.getComponentMethod(l,"supplyLayoutDefaults"),s=N5.getComponentMethod(l,"draw"),u=N5.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===F5||s===F5,v=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&mc.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(Uq(h))t.set(null);else if(Array.isArray(h))t.set(h);else return mc.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(v,d),s(r),!0)}var m=Object.keys(a).map(Number).sort(Jle),y=t.get(),g=y||[],x=i(d,l).get(),w=[],T=-1,b=g.length,M,S,A,L,q,P,R,N;for(M=0;Mg.length-(R?0:1)){mc.warn("index out of range",l,A);continue}if(P!==void 0)q.length>1&&mc.warn("Insertion & removal are incompatible with edits to the same index.",l,A),Uq(P)?w.push(A):R?(P==="add"&&(P={}),g.splice(A,0,P),x&&x.splice(A,0,{})):mc.warn("Unrecognized full object edit value",l,A,P),T===-1&&(T=A);else for(S=0;S=0;M--)g.splice(w[M],1),x&&x.splice(w[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,d),u!==F5){var B;if(T===-1)B=m;else{for(b=Math.max(g.length,b),B=[],M=0;M=T));M++)B.push(A);for(M=T;M{"use strict";var Zq=Vr(),Jq=Ar(),$a=ze(),yc=$t(),$q=la(),bc=$q.cleanId,Kle=$q.getFromTrace,I5=Jq.traceIs,jle=["x","y","z"];ei.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&$a.log("Clearing previous rejected promises from queue."),e._promises=[]};ei.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(yc.subplotsRegistry.cartesian||{}).attrRegex,n=(yc.subplotsRegistry.polar||{}).attrRegex,i=(yc.subplotsRegistry.ternary||{}).attrRegex,l=(yc.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ei.cleanLayout(e.template.layout),e};function eu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=bc(a,n,!0))}ei.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ei.hasParent=function(e,r){for(var t=Wq(r);t;){if(t in e)return!0;t=Wq(t)}return!1};ei.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>$a.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a$a.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?B5(n,i):!1))return!1}return!0}return!1};ei.collectionsAreEqual=B5});var V5=W(Xr=>{"use strict";var Cd=Hr(),roe=Vr(),toe=Hg(),tr=ze(),dt=tr.nestedProperty,Y5=xf(),nn=PM(),ri=Ar(),zd=A0(),Cr=$t(),Ka=wt(),aoe=u3(),noe=yi(),H5=it(),ioe=Fr(),loe=R5().initInteractions,ooe=jo(),soe=Q0().clearOutline,tE=Rl().dfltConfig,Ad=Gq(),Wt=Kq(),tt=ld(),uo=Yi(),uoe=va().AX_NAME_PATTERN,O5=0,jq=5;function foe(e,r,t,a){var n;if(e=tr.getGraphDiv(e),Y5.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Y5.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Xr.addFrames(e,n)}nE(e,a),t||(t={}),Cd.select(e).classed("js-plotly-plot",!0),H5.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Wt.cleanLayout(t)),Cr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Poe(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),H5.initGradients(e),H5.initPatterns(e),s&&Ka.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&Cr.doCalcdata(e);for(var d=0;d=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function iE(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Dd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Dd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function poe(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof L.parts[R]!="string";)R--;var N=L.parts[R],B=L.parts[R-1]+"."+N,I=L.parts.slice(0,R).join("."),H=dt(e.layout,I).get(),Y=dt(a,I).get(),G=L.get();if(q!==void 0){x[A]=q,w[A]=N==="reverse"?q:_l(G);var O=zd.getLayoutValObject(a,L.parts);if(O&&O.impliedEdits&&q!==null)for(var X in O.impliedEdits)T(tr.relativeAttr(A,X),O.impliedEdits[X]);if(["width","height"].indexOf(A)!==-1)if(q){T("autosize",null);var J=A==="height"?"width":"height";T(J,a[J])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")T("width",q?null:a.width),T("height",q?null:a.height);else if(B.match(hE))S(B),dt(a,I+"._inputRange").set(null);else if(B.match(pE)){S(B),dt(a,I+"._inputRange").set(null);var Z=dt(a,I).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else B.match(boe)&&dt(a,I+"._inputDomain").set(null);if(N==="type"){M=H;var ee=Y.type==="linear"&&q==="log",ne=Y.type==="log"&&q==="linear";if(ee||ne){if(!M||!M.range)T(I+".autorange",!0);else if(Y.autorange)ee&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var fe=M.range[0],we=M.range[1];ee?(fe<=0&&we<=0&&T(I+".autorange",!0),fe<=0?fe=we/1e6:we<=0&&(we=fe/1e6),T(I+".range[0]",Math.log(fe)/Math.LN10),T(I+".range[1]",Math.log(we)/Math.LN10)):(T(I+".range[0]",Math.pow(10,fe)),T(I+".range[1]",Math.pow(10,we)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[L.parts[0]]&&L.parts[1]==="radialaxis"&&delete a[L.parts[0]]._subplot.viewInitial["radialaxis.range"],ri.getComponentMethod("annotations","convertCoords")(e,Y,q,T),ri.getComponentMethod("images","convertCoords")(e,Y,q,T)}else T(I+".autorange",!0),T(I+".range",null);dt(a,I+"._inputRange").set(null)}else if(N.match(uoe)){var j=dt(a,A).get(),_e=(q||{}).type;(!_e||_e==="-")&&(_e="linear"),ri.getComponentMethod("annotations","convertCoords")(e,j,_e,T),ri.getComponentMethod("images","convertCoords")(e,j,_e,T)}var ue=Ad.containerArrayMatch(A);if(ue){f=ue.array,v=ue.index;var Me=ue.property,ye=O||{editType:"calc"};v!==""&&Me===""&&(Ad.isAddVal(q)?w[A]=null:Ad.isRemoveVal(q)?w[A]=(dt(t,f).get()||[])[v]:tr.warn("unrecognized full object value",r)),uo.update(g,ye),u[f]||(u[f]={});var ce=u[f][v];ce||(ce=u[f][v]={}),ce[Me]=q,delete r[A]}else N==="reverse"?(H.range?H.range.reverse():(T(I+".autorange",!0),H.range=[1,0]),Y.autorange?g.calc=!0:g.plot=!0):(A==="dragmode"&&(q===!1&&G!==!1||q!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(q==="lasso"||q==="select")&&!(G==="lasso"||G==="select")?g.plot=!0:O?uo.update(g,O):g.calc=!0,L.set(q))}}for(f in u){var Te=Ad.applyContainerArrayChanges(e,i(t,f),u[f],g,i);Te||(g.plot=!0)}for(var Re in b){M=Ka.getFromId(e,Re);var be=M&&M._constraintGroup;if(be){g.calc=!0;for(var qe in be)b[qe]||(Ka.getFromId(e,qe)._constraintShrinkable=!0)}}(gE(e)||r.height||r.width)&&(g.plot=!0);var Ce=a.shapes;for(v=0;v1;)if(a.pop(),t=dt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function woe(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Xr.newPlot(e,r,t,a).then(()=>{for(let[I,H]of B)H.forEach(Y=>e.on(I,Y));return Xr.react(e,r,t,a)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),Toe(e.data,e.layout,o,s),Cr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,m=d.transition,y=Coe(e,s,d,h,m),g=y.newDataRevision,x=koe(e,o,v,h,m,g);if(gE(e)&&(y.layoutReplot=!0),x.calc||y.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(d),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function koe(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=uo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var m=zd.getTraceValObject(u,h);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(N){if(N.length!==0){for(var B=0;Ba._timeToNext&&m()};N()}var g=0;function x(N){return Array.isArray(n)?g>=n.length?N.transitionOpts=n[g]:N.transitionOpts=n[0]:N.transitionOpts=n,g++,N}var w,T,b=[],M=r==null,S=Array.isArray(r),A=!M&&!S&&tr.isPlainObject(r);if(A)b.push({type:"object",data:x(tr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&R.push(T);b=R}}b.length>0?d(b):(e.emit("plotly_animated"),u())})}function Doe(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||v[d]||{}).name,m=r[a].name,y=s[h]||v[h];h&&m&&typeof m=="number"&&y&&O5L.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=Cr.modifyFrames,s=Cr.modifyFrames,u=[e,l],f=[e,i];return nn&&nn.add(e,o,u,s,f),Cr.modifyFrames(e,i)}function qoe(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Cr.cleanPlot([],{},t,r),Cr.purge(e),Y5.purge(e),r._container&&r._container.remove(),delete e._context,e}function Eoe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Poe(e){var r=Cd.select(e),t=e._fullLayout;if(t._calcInverseTransform=Eoe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Cd.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(ooe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Xr.animate=Soe;Xr.addFrames=Doe;Xr.deleteFrames=Loe;Xr.addTraces=fE;Xr.deleteTraces=cE;Xr.extendTraces=sE;Xr.moveTraces=U5;Xr.prependTraces=uE;Xr.newPlot=hoe;Xr._doPlot=foe;Xr.purge=qoe;Xr.react=Aoe;Xr.redraw=doe;Xr.relayout=xc;Xr.restyle=Ld;Xr.setPlotConfig=coe;Xr.update=Ed;Xr._guiRelayout=G5(xc);Xr._guiRestyle=G5(Ld);Xr._guiUpdate=G5(Ed);Xr._storeDirectGUIEdit=yoe});var xs=W(ti=>{"use strict";var zoe=Ar();ti.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ti.getRedrawFunc=function(e){return function(){zoe.getComponentMethod("colorbar","draw")(e)}};ti.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ti.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var yE=window.URL||window.webkitURL;ti.createObjectURL=function(e){return yE.createObjectURL(e)};ti.revokeObjectURL=function(e){return yE.revokeObjectURL(e)};ti.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Roe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ti.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ti.getPlotTitle=function(e){var a,n,i,l;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};ti.getPlotSubtitle=function(e){var a,n,i,l,o,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function Roe(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var W5=Hr(),Hge=ze(),Foe=it(),Noe=Fr(),Oge=jo(),X5=/"/g,_s="TOBESTRIPPED",Ioe=new RegExp(`("${_s})|(${_s}")|("${_s})|(${_s}")`,"g"),Boe=["&","&","&",""",""",""","'","'","'"],Hoe=["<","<","<"],Ooe=[">",">",">"];function Yoe(e){let r=W5.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Boe.includes(n)?a:Hoe.includes(n)?"<":Ooe.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Uoe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}bE.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Foe.setRect,0,0,o,s).call(Noe.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Goe=ze(),Voe=E2().EventEmitter,wc=xs();function Xoe(e){var r=e.emitter||new Voe,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,d=u*f,h=u*v,m=s.getContext("2d",{willReadFrequently:!0}),y=new i,g,x;o==="svg"||Goe.isSafari()?x=wc.encodeSVG(l):(g=wc.createBlob(l,"svg"),x=wc.createObjectURL(g)),s.width=d,s.height=h,y.onload=function(){var w;switch(g=null,wc.revokeObjectURL(x),o!=="svg"&&m.drawImage(y,0,0,d,h),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},y.onerror=function(w){if(g=null,wc.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},y.src=x});return e.promise?t:r}xE.exports=Xoe});var J5=W((Gge,ME)=>{"use strict";var _E=Vr(),wE=V5(),Woe=$t(),nl=ze(),Mc=xs(),Zoe=Fd(),Joe=Nd(),$oe=Yu().version,Z5={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Koe(e,r){r=r||{};var t,a,n,i;nl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=nl.getGraphDiv(e),t=nl.extendDeep([],e.data),a=nl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(S){return!(S in r)||nl.validate(r[S],Z5[S])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+nl.join2(Z5.format.values,", "," or ")+".");var o={};function s(S,A){return nl.coerce(r,o,Z5,S,A)}var u=s("format"),f=s("width"),v=s("height"),d=s("scale"),h=s("setBackground"),m=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var g=nl.extendFlat({},a);f?g.width=f:r.width===null&&_E(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&_E(i.height)&&(g.height=i.height);var x=nl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),w=Mc.getRedrawFunc(y);function T(){return new Promise(function(S){setTimeout(S,Mc.getDelay(y._fullLayout))})}function b(){return new Promise(function(S,A){var L=Zoe(y,u,d),q=y._fullLayout.width,P=y._fullLayout.height;function R(){wE.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=Woe.graphJson(y,!1,"object",!0,!0);return N.version=$oe,N=JSON.stringify(N),R(),S(m?N:Mc.encodeJSON(N))}if(R(),u==="svg")return S(m?L:Mc.encodeSVG(L));var B=document.createElement("canvas");B.id=nl.randstr(),Joe({format:u,width:q,height:P,scale:d,canvas:B,svg:L,promise:!0}).then(S).catch(A)})}function M(S){return m?S.replace(Mc.IMAGE_URL_PREFIX,""):S}return new Promise(function(S,A){wE.newPlot(y,t,g,x).then(w).then(T).then(b).then(function(L){S(M(L))}).catch(function(L){A(L)})})}ME.exports=Koe});var kE=W((Vge,AE)=>{"use strict";var ai=ze(),joe=$t(),Qoe=A0(),ese=Rl().dfltConfig,ki=ai.isPlainObject,Ms=Array.isArray,$5=ai.isArrayOrTypedArray;AE.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Qoe.get(),n=[],i={_context:ai.extendFlat({},ese)},l,o;Ms(r)?(i.data=ai.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ma("array","data"))),ki(t)?(i.layout=ai.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ma("object","layout"))),joe.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(ma("unused",n,u.concat(v.length)));var x=v.length,w=Array.isArray(g);w&&(x=Math.min(x,g.length));var T,b,M,S,A;if(d.dimensions===2)for(b=0;bv[b].length&&a.push(ma("unused",n,u.concat(b,v[b].length)));var L=v[b].length;for(T=0;T<(w?Math.min(L,g[b].length):L);T++)M=w?g[b][T]:g,S=f[b][T],A=v[b][T],ai.validate(S,M)?A!==S&&A!==+S&&a.push(ma("dynamic",n,u.concat(b,T),S,A)):a.push(ma("value",n,u.concat(b,T),S))}else a.push(ma("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var ose=ze(),Bd=xs();function sse(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=Bd.createBlob(e,t),u=Bd.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Bd.revokeObjectURL(u),s=null,l(r);if(ose.isSafari()){var f=t==="svg"?",":";base64,";return Bd.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}CE.exports=sse});var K5=W((Wge,EE)=>{"use strict";var Hd=ze(),DE=ba(),use=J5(),fse=SE(),LE=xs(),qE=40;function cse(e,r){var t;return Hd.isPlainObject(e)||(t=Hd.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=use(e,r),l=r.filename||e.fn;if(!l){let s=LE.getPlotTitle(e);if(s&&!DE.matchTex(s))l=Hd.slugify(s,qE);else{let u=LE.getPlotSubtitle(e);u&&!DE.matchTex(u)&&(l=Hd.slugify(u,qE))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),fse(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}EE.exports=cse});var NE=W(j5=>{"use strict";var gn=ze(),yn=gn.isPlainObject,PE=A0(),zE=$t(),vse=vi(),RE=pt(),FE=Rl().dfltConfig;j5.makeTemplate=function(e){e=gn.isPlainObject(e)?e:gn.getGraphDiv(e),e=gn.extendDeep({_context:FE},{data:e.data,layout:e.layout}),zE.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var m={};Tc(h,m,hse.bind(null,h));var y=gn.coerce(h,{},vse,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),Tc(t,a.layout,dse.bind(null,t)),delete a.layout.template;var n=t.template;if(yn(n)){var i=n.layout,l,o,s,u,f,v;yn(i)&&Od(i,a.layout);var d=n.data;if(yn(d)){for(o in a.data)if(s=d[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;lx?l.push({code:"unused",traceType:h,templateCount:g,dataCount:x}):x>g&&l.push({code:"reused",traceType:h,templateCount:g,dataCount:x})}}function w(T,b){for(var M in T)if(M.charAt(0)!=="_"){var S=T[M],A=ni(T,M,b);yn(S)?(Array.isArray(T)&&S._template===!1&&S.templateitemname&&l.push({code:"missing",path:A,templateitemname:S.templateitemname}),w(S,A)):Array.isArray(S)&&pse(S)&&w(S,A)}}if(w({data:s,layout:o},""),l.length)return l.map(mse)};function pse(e){for(var r=0;r{"use strict";var ua=V5();Tt._doPlot=ua._doPlot;Tt.newPlot=ua.newPlot;Tt.restyle=ua.restyle;Tt.relayout=ua.relayout;Tt.redraw=ua.redraw;Tt.update=ua.update;Tt._guiRestyle=ua._guiRestyle;Tt._guiRelayout=ua._guiRelayout;Tt._guiUpdate=ua._guiUpdate;Tt._storeDirectGUIEdit=ua._storeDirectGUIEdit;Tt.react=ua.react;Tt.extendTraces=ua.extendTraces;Tt.prependTraces=ua.prependTraces;Tt.addTraces=ua.addTraces;Tt.deleteTraces=ua.deleteTraces;Tt.moveTraces=ua.moveTraces;Tt.purge=ua.purge;Tt.addFrames=ua.addFrames;Tt.deleteFrames=ua.deleteFrames;Tt.animate=ua.animate;Tt.setPlotConfig=ua.setPlotConfig;var gse=vf().getGraphDiv,yse=Q1().eraseActiveShape;Tt.deleteActiveShape=function(e){return yse(gse(e))};Tt.toImage=J5();Tt.validate=kE();Tt.downloadImage=K5();var IE=NE();Tt.makeTemplate=IE.makeTemplate;Tt.validateTemplate=IE.validateTemplate});var eb=W(($ge,HE)=>{"use strict";var Q5=ze(),bse=Ar();HE.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=bse.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Q5.minRowLength(i);l?o=Math.min(u,Q5.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Q5.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var rb=W((Kge,UE)=>{"use strict";var OE=ze().dateTick0,xse=aa(),_se=xse.ONEWEEK;function YE(e,r){return e%_se===0?OE(r,1):OE(r,0)}UE.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",YE(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",YE(o,t.ycalendar)),n("yperiodalignment"))}}});var XE=W((jge,VE)=>{"use strict";var GE=["orientation","groupnorm","stackgaps"];VE.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},d=0;d{"use strict";var WE=Fr(),ZE=Xn().hasColorscale,JE=D0(),wse=kn();$E.exports=function(r,t,a,n,i,l={}){var o=wse.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),ZE(r,"marker")&&JE(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=WE.background:u=WE.defaultLine,i("marker.line.color",u),ZE(r,"marker.line")&&JE(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var QE=W((eye,jE)=>{"use strict";var Mse=ze().isArrayOrTypedArray,Tse=Xn().hasColorscale,Ase=D0();jE.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),Tse(r,"line"))Ase(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Mse(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var rP=W((rye,eP)=>{"use strict";eP.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var aP=W((tye,tP)=>{"use strict";var kse=ze();tP.exports=function(e,r,t,a,n){n=n||{},a("textposition"),kse.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var lP=W((aye,iP)=>{"use strict";var Ud=Fr(),nP=ze().isArrayOrTypedArray;function Cse(e){for(var r=Ud.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var oP=ze(),Sse=Ar(),Dse=bs(),Lse=md(),ru=kn(),qse=eb(),Ese=rb(),Pse=XE(),zse=KE(),Rse=QE(),sP=rP(),Fse=aP(),Nse=lP(),Ise=ze().coercePattern;uP.exports=function(r,t,a,n){function i(h,m){return oP.coerce(r,t,Dse,h,m)}var l=qse(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Ese(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Pse(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Bse=$f().getAxisGroup;cP.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Bse(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var d=v[f];d?d.traces.push(t):d=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var h=n("offsetgroup")||"",m=d.offsetGroups,y=m[h];t._offsetIndex=0,(i!=="group"||h)&&(y||(y=m[h]={offsetIndex:Object.keys(m).length}),t._offsetIndex=y.offsetIndex)}});var dP=W((lye,vP)=>{"use strict";var Hse=ze(),Ose=tb(),Yse=bs();vP.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return Hse.coerce(n._input,n,Yse,d)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var pP=W((oye,hP)=>{"use strict";var Use=ze(),Gse=N2();hP.exports=function(e,r){function t(n,i){return Use.coerce(e,r,Gse,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var ab=W((sye,gP)=>{"use strict";var Vse=Vr(),mP=ze(),Xse=mP.dateTime2ms,Gd=mP.incrementMonth,Wse=aa(),Zse=Wse.ONEAVGMONTH;gP.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Vse(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",d=r[a+"period0"],h=Xse(d,u)||0,m=[],y=[],g=[],x=n.length,w=0;wT;)S=Gd(S,-o,u);for(;S<=T;)S=Gd(S,o,u);M=Gd(S,-o,u)}else{for(b=Math.round((T-h)/l),S=h+b*l;S>T;)S-=l;for(;S<=T;)S+=l;M=S-l}m[w]=f?M:v?S:(M+S)/2,y[w]=M,g[w]=S}return{vals:m,starts:y,ends:g}}});var xP=W((uye,bP)=>{"use strict";var nb=Xn().hasColorscale,ib=Z2(),yP=kn();bP.exports=function(r,t){yP.hasLines(t)&&nb(t,"line")&&ib(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),yP.hasMarkers(t)&&(nb(t,"marker")&&ib(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),nb(t,"marker.line")&&ib(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var lb=W((fye,_P)=>{"use strict";var zt=ze();_P.exports=function(r,t){for(var a=0;a{"use strict";var wP=ze();MP.exports=function(r,t){wP.isArrayOrTypedArray(t.selectedpoints)&&wP.tagSelected(r,t)}});var vb=W((vye,LP)=>{"use strict";var TP=Vr(),ub=ze(),Ac=wt(),AP=ab(),sb=aa().BADNUM,fb=kn(),Jse=xP(),$se=lb(),Kse=ob();function jse(e,r){var t=e._fullLayout,a=r._xA=Ac.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ac.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=AP(r,a,"x",i),s=AP(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,d=new Array(v),h=r.ids,m=cb(r,t,a,n),y=!1,g,x,w,T,b,M;SP(t,r);var S="x",A="y",L;if(m)ub.pushUnique(m.traceIndices,r.index),g=m.orientation==="v",g?(A="s",L="x"):(S="s",L="y"),b=m.stackgaps==="interpolate";else{var q=CP(r,v);kP(e,r,a,n,u,f,q)}var P=!!r.xperiodalignment,R=!!r.yperiodalignment;for(x=0;xx&&d[T].gap;)T--;for(M=d[T].s,w=d.length-1;w>T;w--)d[w].s=M;for(;x{"use strict";qP.exports=Vd;var Qse=ze().distinctVals;function Vd(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";PP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var yb=W((pye,NP)=>{"use strict";var ii=Vr(),{isArrayOrTypedArray:wl}=ze(),{BADNUM:tu}=aa(),e0e=Ar(),Cc=wt(),{getAxisGroup:r0e}=$f(),Xd=EP(),{TEXTPAD:t0e}=kc(),{LINE_SPACING:a0e}=Ra(),{BR_TAG_ALL:n0e}=ba();function i0e(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!ii(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*a0e*t+t0e;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function p0e(e,r,t,a){for(var n=au(a),i=0;i{"use strict";var IP=vb(),BP=yb().setGroupPositions;function g0e(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uq[f]&&f{"use strict";var b0e=it(),VP=aa(),Sc=VP.BADNUM,XP=VP.LOG_CLIP,YP=XP+.5,UP=XP-.5,Wd=ze(),x0e=Wd.segmentsIntersect,GP=Wd.constrain,xb=md();WP.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,d=t.connectGaps,h=t.baseTolerance,m=t.shape,y=m==="linear",g=a.fill&&a.fill!=="none",x=[],w=xb.minTolerance,T=r.length,b=new Array(T),M=0,S,A,L,q,P,R,N,B,I,H,Y,G,O,X,J,Z;function ee(Se){var $e=r[Se];if(!$e)return!1;var Ne=t.linearized?n.l2p($e.x):n.c2p($e.x),hr=t.linearized?i.l2p($e.y):i.c2p($e.y);if(Ne===Sc){if(l&&(Ne=n.c2p($e.x,!0)),Ne===Sc)return!1;o&&hr===Sc&&(Ne*=Math.abs(n._m*u*(n._m>0?YP:UP)/(i._m*s*(i._m>0?YP:UP)))),Ne*=1e3}if(hr===Sc){if(o&&(hr=i.c2p($e.y,!0)),hr===Sc)return!1;hr*=1e3}return[Ne,hr]}function ne(Se,$e,Ne,hr){var br=Ne-Se,sr=hr-$e,pr=.5-Se,te=.5-$e,ve=br*br+sr*sr,Fe=br*pr+sr*te;if(Fe>0&&Fe1||Math.abs(pr.y-Ne[0][1])>1)&&(pr=[pr.x,pr.y],hr&&_e(pr,Se)<_e(Ne[0],Se)?Ne.unshift(pr):Ne.push(pr),hr++)}return Ne}function Xe(Se){if(Se[0]ye||Se[1]Te)return[GP(Se[0],Me,ye),GP(Se[1],ce,Te)]}function Ke(Se,$e){if(Se[0]===$e[0]&&(Se[0]===Me||Se[0]===ye)||Se[1]===$e[1]&&(Se[1]===ce||Se[1]===Te))return!0}function We(Se,$e){var Ne=[],hr=Xe(Se),br=Xe($e);return hr&&br&&Ke(hr,br)||(hr&&Ne.push(hr),br&&Ne.push(br)),Ne}function Ae(Se,$e,Ne){return function(hr,br){var sr=Xe(hr),pr=Xe(br),te=[];if(sr&&pr&&Ke(sr,pr))return te;sr&&te.push(sr),pr&&te.push(pr);var ve=2*Wd.constrain((hr[Se]+br[Se])/2,$e,Ne)-((sr||hr)[Se]+(pr||br)[Se]);if(ve){var Fe;sr&&pr?Fe=ve>0==sr[Se]>pr[Se]?sr:pr:Fe=sr||pr,Fe[Se]+=ve}return te}}var Pe;m==="linear"||m==="spline"?Pe=ke:m==="hv"||m==="vh"?Pe=We:m==="hvh"?Pe=Ae(0,Me,ye):m==="vhv"&&(Pe=Ae(1,ce,Te));function je(Se,$e){var Ne=$e[0]-Se[0],hr=($e[1]-Se[1])/Ne,br=(Se[1]*$e[0]-$e[1]*Se[0])/Ne;return br>0?[hr>0?Me:ye,Te]:[hr>0?ye:Me,ce]}function re(Se){var $e=Se[0],Ne=Se[1],hr=$e===b[M-1][0],br=Ne===b[M-1][1];if(!(hr&&br))if(M>1){var sr=$e===b[M-2][0],pr=Ne===b[M-2][1];hr&&($e===Me||$e===ye)&&sr?pr?M--:b[M-1]=Se:br&&(Ne===ce||Ne===Te)&&pr?sr?M--:b[M-1]=Se:b[M++]=Se}else b[M++]=Se}function he(Se){b[M-1][0]!==Se[0]&&b[M-1][1]!==Se[1]&&re([Ce,De]),re(Se),Ee=null,Ce=De=0}var Ve=Wd.isArrayOrTypedArray(v);function dr(Se){if(Se&&f&&(Se.i=S,Se.d=r,Se.trace=a,Se.marker=Ve?v[Se.i]:v,Se.backoff=f),fe=Se[0]/s,we=Se[1]/u,be=Se[0]ye?ye:0,qe=Se[1]Te?Te:0,be||qe){if(!M)b[M++]=[be||Se[0],qe||Se[1]];else if(Ee){var $e=Pe(Ee,Se);$e.length>1&&(he($e[0]),b[M++]=$e[1])}else Ue=Pe(b[M-1],Se)[0],b[M++]=Ue;var Ne=b[M-1];be&&qe&&(Ne[0]!==be||Ne[1]!==qe)?(Ee&&(Ce!==be&&De!==qe?re(Ce&&De?je(Ee,Se):[Ce||be,De||qe]):Ce&&De&&re([Ce,De])),re([be,qe])):Ce-be&&De-qe&&re([be||Ce,qe||De]),Ee=Se,Ce=be,De=qe}else Ee&&he(Pe(Ee,Se)[0]),b[M++]=Se}for(S=0;Sj(R,Le))break;L=R,O=I[0]*B[0]+I[1]*B[1],O>Y?(Y=O,q=R,N=!1):O=r.length||!R)break;dr(R),A=R}}Ee&&re([Ce||Ee[0],De||Ee[1]]),x.push(b.slice(0,M))}var de=m.slice(m.length-1);if(f&&de!=="h"&&de!=="v"){for(var xe=!1,He=-1,Ze=[],Ie=0;Ie{"use strict";var JP={tonextx:1,tonexty:1,tonext:1};$P.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,d=0,h=-1;for(i=0;i=0?s=h:(s=h=d,d++),s{"use strict";var Ci=Hr(),_0e=Ar(),Dc=ze(),nu=Dc.ensureSingle,QP=Dc.identity,Nt=it(),iu=kn(),w0e=ZP(),M0e=KP(),Zd=h5().tester;ez.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=M0e(r,t,a);if(o=n.selectAll("g.trace").data(v,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),T0e(r,o,t),f){l&&(s=l());var d=Ci.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,m){jP(r,m,t,h,v,this,i)})})}else o.each(function(h,m){jP(r,m,t,h,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function T0e(e,r,t){r.each(function(a){var n=nu(Ci.select(this),"g","fills");Nt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,QP);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=nu(Ci.select(this),"path","js-fill")})})}function jP(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;A0e(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Ae){return u?Ae.transition():Ae}var v=t.xaxis,d=t.yaxis,h=a[0].trace,m=h.line,y=Ci.select(i),g=nu(y,"g","errorbars"),x=nu(y,"g","lines"),w=nu(y,"g","points"),T=nu(y,"g","text");if(_0e.getComponentMethod("errorbars","plot")(e,g,t,l),h.visible!==!0)return;f(y).style("opacity",h.opacity);var b,M,S=h.fill.charAt(h.fill.length-1);S!=="x"&&S!=="y"&&(S="");var A,L;S==="y"?(A=1,L=d.c2p(0,!0)):S==="x"&&(A=0,L=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var q="",P=[],R=h._prevtrace,N=null,B=null;R&&(q=R._prevRevpath||"",M=R._nextFill,P=R._ownPolygons,N=R._fillsegments,B=R._fillElement);var I,H,Y="",G="",O,X,J,Z,ee,ne,fe=[];h._polygons=[];var we=[],j=[],_e=Dc.noop;if(b=h._ownFill,iu.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(O=Nt.steps(m.shape),X=Nt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?O=X=function(Ae){var Pe=Ae[Ae.length-1];return Ae.length>1&&Ae[0][0]===Pe[0]&&Ae[0][1]===Pe[1]?Nt.smoothclosed(Ae.slice(1),m.smoothing):Nt.smoothopen(Ae,m.smoothing)}:O=X=function(Ae){return"M"+Ae.join("L")},J=function(Ae){return X(Ae.reverse())},j=w0e(a,{xaxis:v,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:h.fill}),we=new Array(j.length);var ue=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),d=Math.ceil(v.length/f),h=0;n.forEach(function(y,g){var x=y[0].trace;iu.hasMarkers(x)&&x.marker.maxdisplayed>0&&g{"use strict";tz.exports={container:"marker",min:"cmin",max:"cmax"}});var nz=W((_ye,az)=>{"use strict";var Jd=wt();az.exports=function(r,t,a){var n={},i={_fullLayout:a},l=Jd.getFromTrace(i,t,"x"),o=Jd.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=Jd.tickText(l,l.c2l(s),!0).text,n.yLabel=Jd.tickText(o,o.c2l(u),!0).text,n}});var Ab=W((wye,iz)=>{"use strict";var wb=Hr(),lu=it(),k0e=Ar();function C0e(e){var r=wb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=wb.select(this),n=t.trace||t[0].trace;Mb(a,n,e)}),r.selectAll("g.text").each(function(t){var a=wb.select(this),n=t.trace||t[0].trace;Tb(a,n,e)}),r.selectAll("g.trace path.js-line").call(lu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(lu.fillGroupStyle,e,!1),k0e.getComponentMethod("errorbars","style")(r)}function Mb(e,r,t){lu.pointStyle(e.selectAll("path.point"),r,t)}function Tb(e,r,t){lu.textPointStyle(e.selectAll("text"),r,t)}function S0e(e,r,t){var a=r[0].trace;a.selectedpoints?(lu.selectedPointStyle(t.selectAll("path.point"),a),lu.selectedTextStyle(t.selectAll("text"),a)):(Mb(t,a,e),Tb(t,a,e))}iz.exports={style:C0e,stylePoints:Mb,styleText:Tb,styleOnSelect:S0e}});var oz=W((Mye,lz)=>{"use strict";var ou=Fr(),D0e=kn();lz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&ou.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&ou.opacity(i)?i:l&&ou.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?ou.opacity(n)<.3?ou.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&ou.opacity(a)&&D0e.hasLines(r)&&r.line.width?a:r.fillcolor)}});var fz=W((Tye,uz)=>{"use strict";var $d=ze(),sz=Mi(),L0e=Ar(),q0e=oz(),kb=Fr(),E0e=$d.fillText;uz.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],d=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,y=!!l.yperiodalignment;if(d.indexOf("points")!==-1){var g=function(G){if(m){var O=o.c2p(G.xStart),X=o.c2p(G.xEnd);return u>=Math.min(O,X)&&u<=Math.max(O,X)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,ee=Math.abs(o.c2p(G.x)-u);return ee=Math.min(O,X)&&f<=Math.max(O,X)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,ee=Math.abs(s.c2p(G.y)-f);return eefe!=Te>=fe&&(Me=_e[j-1][0],ye=_e[j][0],Te-ce&&(ue=Me+(ye-Me)*(fe-ce)/(Te-ce),J=Math.min(J,ue),Z=Math.max(Z,ue)));return J=Math.max(J,0),Z=Math.min(Z,o._length),{x0:J,x1:Z,y0:fe,y1:fe}}if(d.indexOf("fills")!==-1&&l._fillElement){var I=N(l._fillElement)&&!N(l._fillExclusionElement);if(I){var H=B(l._polygons);H===null&&(H={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var Y=kb.defaultLine;return kb.opacity(l.fillcolor)?Y=l.fillcolor:kb.opacity((l.line||{}).color)&&(Y=l.line.color),$d.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:Y,hovertemplate:!1}),delete r.index,l.text&&!$d.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var dz=W((Aye,vz)=>{"use strict";var cz=kn();vz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,d=o.mode&&!cz.hasMarkers(o)&&!cz.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";hz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var bz=W((Cye,yz)=>{"use strict";var Kd=Ar().traceIs,Cb=Yy();yz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(P0e(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function P0e(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=z0e(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Kd(i,"cartesian")||Kd(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,gz(i,a)){var u=mz(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(gz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function mz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function gz(e,r){var t=mz(e),a=Kd(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _z=W((Sye,xz)=>{"use strict";var R0e=un().isTypedArraySpec;function F0e(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||R0e(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=F0e(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var Tz=W((Dye,Mz)=>{"use strict";var wz=Fr(),N0e=Oi(),I0e=ze();Mz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(L,q){return I0e.coerce2(r,t,n.attributes,L,q)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=wz.mix(i,n.bgColor,n.blend||N0e.lightFraction),v=l("gridcolor",f),d=l("gridwidth"),h=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!d||!!h);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=wz.mix(t.gridcolor,n.bgColor,67),g=l("minor.gridcolor",y),x=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!g||!!x||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),S=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!S);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Db=W((Lye,Lz)=>{"use strict";var Az=Vr(),B0e=Ar(),Lc=ze(),H0e=pt(),O0e=bi(),Sb=yi(),kz=vy(),Cz=hy(),Y0e=gy(),U0e=yy(),G0e=_z(),V0e=Tz(),X0e=u3(),Sz=s1(),jd=va().WEEKDAY_PATTERN,W0e=va().HOUR_PATTERN;Lz.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",d;if(v==="date"){var h=B0e.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=Lc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),Sz(t,i),X0e(r,t,a,n),G0e(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==Sb.color.dflt?y:o.color,x=s.label||i._dfltTitle[l];if(U0e(r,t,a,v,n),!u)return t;a("title.text",x),Lc.coerceFont(a,"title.font",o,{overrideDflt:{size:Lc.bigFont(o.size),color:g}}),kz(r,t,a,v);var w=n.hasMinor;if(w&&(H0e.newContainer(t,"minor"),kz(r,t,a,v,{isMinor:!0})),Y0e(r,t,a,v,n),Cz(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,Cz(r,t,a,n),n.isMinor=T}V0e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:Sb}),w&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(O0e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Z0e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var S=0;S=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=Dz(i[o]),s){l=jd;break}}var u=a("pattern",l);if(u===jd)for(o=0;o<2;o++)s=Dz(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case jd:if(!Az(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case W0e:if(!Az(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var $0e=Vr(),Qd=ze();qz.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,d,h,m,y;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(d=s[o+"side"].split(" ")[0],h=s.domain[o][d==="right"||d==="top"?1:0])),v=v||[0,1],f=f||($0e(r.position)?"free":i[0]||"free"),d=d||(o==="x"?"bottom":"left"),h=h||0,m=0,y=!1;var g=Qd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=Qd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(g==="free"){if(o==="y"){var w=a("autoshift");w&&(h=x==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,m=x==="left"?-3:3),a("shift",m)}a("position",h)}a("automargin",y);var T=!1;if(l.length&&(T=Qd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),Qd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Hz=W((Eye,Bz)=>{"use strict";var Ts=ze(),Ez=Fr(),K0e=xi().isUnifiedHover,j0e=F3(),Pz=pt(),Q0e=p0(),zz=yi(),eue=bz(),Rz=Db(),rue=$f(),Fz=Lb(),Eb=la(),il=Eb.id2name,Nz=Eb.name2id,tue=va().AX_ID_PATTERN,Iz=Ar(),eh=Iz.traceIs,qb=Iz.getComponentMethod;function rh(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Bz.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},d={},h={},m={},y,g;for(y=0;y{"use strict";var aue=Hr(),Oz=Ar(),th=ze(),zn=it(),ah=wt();Yz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){ah.redrawComponents(r);return}function l(g){var x=g.xaxis,w=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(zn.setTranslate,0,0).call(zn.setScale,1,1),g.plot.call(zn.setTranslate,x._offset,w._offset).call(zn.setScale,1,1);var T=g.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(zn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(zn.setTextPointsScale,1,1),T.call(zn.hideOutsideRangePoints,g)}function o(g,x){var w=g.plotinfo,T=w.xaxis,b=w.yaxis,M=T._length,S=b._length,A=!!g.xr1,L=!!g.yr1,q=[];if(A){var P=th.simpleMap(g.xr0,T.r2l),R=th.simpleMap(g.xr1,T.r2l),N=P[1]-P[0],B=R[1]-R[0];q[0]=(P[0]*(1-x)+x*R[0]-P[0])/(P[1]-P[0])*M,q[2]=M*(1-x+x*B/N),T.range[0]=T.l2r(P[0]*(1-x)+x*R[0]),T.range[1]=T.l2r(P[1]*(1-x)+x*R[1])}else q[0]=0,q[2]=M;if(L){var I=th.simpleMap(g.yr0,b.r2l),H=th.simpleMap(g.yr1,b.r2l),Y=I[1]-I[0],G=H[1]-H[0];q[1]=(I[1]*(1-x)+x*H[1]-I[1])/(I[0]-I[1])*S,q[3]=S*(1-x+x*G/Y),b.range[0]=T.l2r(I[0]*(1-x)+x*H[0]),b.range[1]=b.l2r(I[1]*(1-x)+x*H[1])}else q[1]=0,q[3]=S;ah.drawOne(r,T,{skipTitle:!0}),ah.drawOne(r,b,{skipTitle:!0}),ah.redrawComponents(r,[T._id,b._id]);var O=A?M/q[2]:1,X=L?S/q[3]:1,J=A?q[0]:0,Z=L?q[1]:0,ee=A?q[0]/q[2]*M:0,ne=L?q[1]/q[3]*S:0,fe=T._offset-ee,we=b._offset-ne;w.clipRect.call(zn.setTranslate,J,Z).call(zn.setScale,1/O,1/X),w.plot.call(zn.setTranslate,fe,we).call(zn.setScale,O,X),zn.setPointGroupScale(w.zoomScalePts,1/O,1/X),zn.setTextPointsScale(w.zoomScaleTxt,1/O,1/X)}var s;n&&(s=n());function u(){for(var g={},x=0;xa.duration?(u(),h=window.cancelAnimationFrame(y)):h=window.requestAnimationFrame(y)}return v=Date.now(),h=window.requestAnimationFrame(y),Promise.resolve()}});var lh=W(Na=>{"use strict";var ih=Hr(),Gz=Ar(),As=ze(),nue=$t(),iue=it(),Vz=Jg().getModuleCalcData,fo=la(),Si=va(),lue=jo(),$r=As.ensureSingle;function nh(e,r,t){return As.ensureSingle(e,r,t,function(a){a.datum(t)})}var ks=Si.zindexSeparator;Na.name="cartesian";Na.attr=["xaxis","yaxis"];Na.idRoot=["x","y"];Na.idRegex=Si.idRegex;Na.attrRegex=Si.attrRegex;Na.attributes=pz();Na.layoutAttributes=yi();Na.supplyLayoutDefaults=Hz();Na.transitionAxes=Uz();Na.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var h=d.id;if(h.indexOf(ks)!==-1)continue;h+=ks+(u+1),d=As.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var m=[],y,g=0;g1&&(M+=ks+b),T.push(o+M),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var d=$r(a,"g","layer-subplot");r.shapelayer=$r(d,"g","shapelayer"),r.imagelayer=$r(d,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var h=$r(a,"g","layer-between");r.shapelayerBetween=$r(h,"g","shapelayer"),r.imagelayerBetween=$r(h,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,y=n+"-x",g=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,$r(v.overlinesBelow,"path",y),$r(v.overlinesBelow,"path",g),$r(v.overaxesBelow,"g",y),$r(v.overaxesBelow,"g",g),r.plot=$r(v.overplot,"g",n),$r(v.overlinesAbove,"path",y),$r(v.overlinesAbove,"path",g),$r(v.overaxesAbove,"g",y),$r(v.overaxesAbove,"g",g),r.xlines=m.select(".overlines-"+o).select("."+y),r.ylines=m.select(".overlines-"+s).select("."+g),r.xaxislayer=m.select(".overaxes-"+o).select("."+y),r.yaxislayer=m.select(".overaxes-"+s).select("."+g)}l||(u||(nh(r.minorGridlayer,"g",r.xaxis._id),nh(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(fo.idSort),nh(r.gridlayer,"g",r.xaxis._id),nh(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(fo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Zz(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=ih.select(this);f.remove(),Jz(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var oh=kn();$z.exports={hasLines:oh.hasLines,hasMarkers:oh.hasMarkers,hasText:oh.hasText,isBubble:oh.isBubble,attributes:bs(),layoutAttributes:N2(),supplyDefaults:fP(),crossTraceDefaults:dP(),supplyLayoutDefaults:pP(),calc:vb().calc,crossTraceCalc:OP(),arraysToCalcdata:lb(),plot:rz(),colorbar:_b(),formatLabels:nz(),style:Ab().style,styleOnSelect:Ab().styleOnSelect,hoverPoints:fz(),selectPoints:dz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:lh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var eR=W((Fye,Qz)=>{"use strict";var sue=Hr(),uue=Fr(),jz=k5(),Pb=ze(),fue=Pb.strScale,cue=Pb.strRotate,vue=Pb.strTranslate;Qz.exports=function(r,t,a){var n=r.node(),i=jz[a.arrowhead||0],l=jz[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,d=l.backoff*s+a.startstandoff,h,m,y,g;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var x=h.x-m.x,w=h.y-m.y;if(y=Math.atan2(w,x),g=y+Math.PI,v&&d&&v+d>Math.sqrt(x*x+w*w)){I();return}if(v){if(v*v>x*x+w*w){I();return}var T=v*Math.cos(y),b=v*Math.sin(y);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(d){if(d*d>x*x+w*w){I();return}var M=d*Math.cos(y),S=d*Math.sin(y);h.x-=M,h.y-=S,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),L="";if(A{"use strict";var rR=Hr(),zb=Ar(),due=$t(),vo=ze(),Rb=vo.strTranslate,Ec=wt(),Cs=Fr(),Ml=it(),tR=Mi(),Fb=ba(),Nb=ro(),qc=wi(),hue=pt().arrayEditor,pue=eR();iR.exports={draw:mue,drawOne:aR,drawRaw:nR};function mue(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?br="right":br="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[br]}for(var ce=!1,Te=["x","y"],Re=0;Re1)&&(Ce===qe?(Le=De.r2fraction(r["a"+be]),(Le<0||Le>1)&&(ce=!0)):ce=!0),Pe=De._offset+De.r2p(r[be]),he=.5}else{var de=dr==="domain";be==="x"?(re=r[be],Pe=de?De._offset+De._length*re:Pe=o.l+o.w*re):(re=1-r[be],Pe=de?De._offset+De._length*re:Pe=o.t+o.h*re),he=r.showarrow?.5:re}if(r.showarrow){Ae.head=Pe;var xe=r["a"+be];if(Ve=Ue*ye(.5,r.xanchor)-ke*ye(.5,r.yanchor),Ce===qe){var He=Ec.getRefType(Ce);He==="domain"?(be==="y"&&(xe=1-xe),Ae.tail=De._offset+De._length*xe):He==="paper"?be==="y"?(xe=1-xe,Ae.tail=o.t+o.h*xe):Ae.tail=o.l+o.w*xe:Ae.tail=De._offset+De.r2p(xe),je=Ve}else Ae.tail=Pe+xe,je=Ve+xe;Ae.text=Ae.tail+Ve;var Ze=l[be==="x"?"width":"height"];if(qe==="paper"&&(Ae.head=vo.constrain(Ae.head,1,Ze-1)),Ce==="pixel"){var Ie=-Math.max(Ae.tail-3,Ae.text),Ge=Math.min(Ae.tail+3,Ae.text)-Ze;Ie>0?(Ae.tail+=Ie,Ae.text+=Ie):Ge>0&&(Ae.tail-=Ge,Ae.text-=Ge)}Ae.tail+=We,Ae.head+=We}else Ve=Xe*ye(he,Ke),je=Ve,Ae.text=Pe+Ve;Ae.text+=We,Ve+=We,je+=We,r["_"+be+"padplus"]=Xe/2+je,r["_"+be+"padminus"]=Xe/2-je,r["_"+be+"size"]=Xe,r["_"+be+"shift"]=Ve}if(ce){A.remove();return}var ar=0,ir=0;if(r.align!=="left"&&(ar=(j-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ir=(_e-we)*(r.valign==="middle"?.5:1)),ee)Z.select("svg").attr({x:P+ar-1,y:P+ir}).call(Ml.setClipUrl,N?y:null,e);else{var ur=P+ir-ne.top,Se=P+ar-ne.left;Y.call(Fb.positionText,Se,ur).call(Ml.setClipUrl,N?y:null,e)}B.select("rect").call(Ml.setRect,P,P,j,_e),R.call(Ml.setRect,L/2,L/2,ue-L,Me-L),A.call(Ml.setTranslate,Math.round(g.x.text-ue/2),Math.round(g.y.text-Me/2)),T.attr({transform:"rotate("+x+","+g.x.text+","+g.y.text+")"});var $e=function(hr,br){w.selectAll(".annotation-arrow-g").remove();var sr=g.x.head,pr=g.y.head,te=g.x.tail+hr,ve=g.y.tail+br,Fe=g.x.text+hr,Ye=g.y.text+br,Kr=vo.rotationXYMatrix(x,Fe,Ye),ot=vo.apply2DTransform(Kr),ct=vo.apply2DTransform2(Kr),Ft=+R.attr("width"),Dt=+R.attr("height"),ga=Fe-.5*Ft,ln=ga+Ft,Qt=Ye-.5*Dt,Qa=Qt+Dt,xn=[[ga,Qt,ga,Qa],[ga,Qa,ln,Qa],[ln,Qa,ln,Qt],[ln,Qt,ga,Qt]].map(ct);if(!xn.reduce(function(gt,Zt){return gt^!!vo.segmentsIntersect(sr,pr,sr+1e6,pr+1e6,Zt[0],Zt[1],Zt[2],Zt[3])},!1)){xn.forEach(function(gt){var Zt=vo.segmentsIntersect(te,ve,sr,pr,gt[0],gt[1],gt[2],gt[3]);Zt&&(te=Zt.x,ve=Zt.y)});var _n=r.arrowwidth,mr=r.arrowcolor,vt=r.arrowside,jr=w.append("g").style({opacity:Cs.opacity(mr)}).classed("annotation-arrow-g",!0),mt=jr.append("path").attr("d","M"+te+","+ve+"L"+sr+","+pr).style("stroke-width",_n+"px").call(Cs.stroke,Cs.rgb(mr));if(pue(mt,vt,r),s.annotationPosition&&mt.node().parentNode&&!a){var Lt=sr,At=pr;if(r.standoff){var st=Math.sqrt(Math.pow(sr-te,2)+Math.pow(pr-ve,2));Lt+=r.standoff*(te-sr)/st,At+=r.standoff*(ve-pr)/st}var ea=jr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(te-Lt)+","+(ve-At),transform:Rb(Lt,At)}).style("stroke-width",_n+6+"px").call(Cs.stroke,"rgba(0,0,0,0)").call(Cs.fill,"rgba(0,0,0,0)"),In,Bt;qc.init({element:ea.node(),gd:e,prepFn:function(){var gt=Ml.getTranslate(A);In=gt.x,Bt=gt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(gt,Zt){var Jt=ot(In,Bt),Ao=Jt[0]+gt,Dl=Jt[1]+Zt;A.call(Ml.setTranslate,Ao,Dl),h("x",co(n,gt,"x",o,r)),h("y",co(i,Zt,"y",o,r)),r.axref===r.xref&&h("ax",co(n,gt,"ax",o,r)),r.ayref===r.yref&&h("ay",co(i,Zt,"ay",o,r)),jr.attr("transform",Rb(gt,Zt)),T.attr({transform:"rotate("+x+","+Ao+","+Dl+")"})},doneFn:function(){zb.call("_guiRelayout",e,m());var gt=document.querySelector(".js-notes-box-panel");gt&>.redraw(gt.selectedObj)}})}}};if(r.showarrow&&$e(0,0),b){var Ne;qc.init({element:A.node(),gd:e,prepFn:function(){Ne=T.attr("transform")},moveFn:function(hr,br){var sr="pointer";if(r.showarrow)r.axref===r.xref?h("ax",co(n,hr,"ax",o,r)):h("ax",r.ax+hr),r.ayref===r.yref?h("ay",co(i,br,"ay",o.w,r)):h("ay",r.ay+br),$e(hr,br);else{if(a)return;var pr,te;if(n)pr=co(n,hr,"x",o,r);else{var ve=r._xsize/o.w,Fe=r.x+(r._xshift-r.xshift)/o.w-ve/2;pr=qc.align(Fe+hr/o.w,ve,0,1,r.xanchor)}if(i)te=co(i,br,"y",o,r);else{var Ye=r._ysize/o.h,Kr=r.y-(r._yshift+r.yshift)/o.h-Ye/2;te=qc.align(Kr-br/o.h,Ye,0,1,r.yanchor)}h("x",pr),h("y",te),(!n||!i)&&(sr=qc.getCursor(n?.5:pr,i?.5:te,r.xanchor,r.yanchor))}T.attr({transform:Rb(hr,br)+Ne}),Nb(A,sr)},clickFn:function(hr,br){r.captureevents&&e.emit("plotly_clickannotation",S(br))},doneFn:function(){Nb(A),zb.call("_guiRelayout",e,m());var hr=document.querySelector(".js-notes-box-panel");hr&&hr.redraw(hr.selectedObj)}})}}s.annotationText?Y.call(Fb.makeEditable,{delegate:A,gd:e}).call(G).on("edit",function(X){r.text=X,this.call(G),h("text",X),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),zb.call("_guiRelayout",e,m())}):Y.call(G)}});var cR=W((Iye,fR)=>{"use strict";var lR=ze(),gue=Ar(),oR=pt().arrayEditor;fR.exports={hasClickToShow:yue,onClick:bue};function yue(e,r){var t=uR(e,r);return t.on.length>0||t.explicitOff.length>0}function bue(e,r){var t=uR(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var Ib=ze(),su=Fr();vR.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=su.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Ib.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),d,h;v.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:su.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),y=a.hoverlabel||{};if(m){var g=n("hoverlabel.bgcolor",y.bgcolor||(su.opacity(i)?su.rgb(i):su.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||su.contrast(g)),w=Ib.extendFlat({},y.font);w.color||(w.color=x),Ib.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var hR=W((Hye,dR)=>{"use strict";var Hb=ze(),Ss=wt(),xue=bi(),_ue=Bb(),wue=j0();dR.exports=function(r,t){xue(r,t,{name:"annotations",handleItemDefaults:Mue})};function Mue(e,r,t){function a(T,b){return Hb.coerce(e,r,wue,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){_ue(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],d=Ss.coerceRef(e,r,u,v,"","paper");if(d!=="paper"){var h=Ss.getFromId(u,d);h._annIndices.push(r._index)}if(Ss.coercePosition(r,u,a,d,v,.5),l){var m="a"+v,y=Ss.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==d&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Ss.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(Hb.noneOrAll(e,r,["x","y"]),l&&Hb.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Ss.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Ss.cleanPosition(w,u,r.yref)}}}});var gR=W((Oye,mR)=>{"use strict";var Ob=ze(),Ds=wt(),Tue=sh().draw;mR.exports=function(r){var t=r._fullLayout,a=Ob.filterVisible(t.annotations);if(a.length&&r._fullData.length)return Ob.syncOrAsync([Tue,Aue],r)};function Aue(e){var r=e._fullLayout;Ob.filterVisible(r.annotations).forEach(function(t){var a=Ds.getFromId(e,t.xref),n=Ds.getFromId(e,t.yref),i=Ds.getRefType(t.xref),l=Ds.getRefType(t.yref);t._extremes={},i==="range"&&pR(t,a),l==="range"&&pR(t,n)})}function pR(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,d=v+f,h=v-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,g=m-f,x;if(o===l){var w=Ds.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),T=Ds.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});x={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else y=i?y+i:y,g=i?g-i:g,x=Ds.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,y),ppadminus:Math.max(u,h,g)});e._extremes[t]=x}});var bR=W((Yye,yR)=>{"use strict";var kue=Vr(),Cue=zv();yR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(h){var m=u[h],y=null;i?y=Cue(m,t.range):y=Math.pow(10,m),kue(y)||(y=null),n(f+h,y)}for(var d=0;d{"use strict";var Yb=sh(),xR=cR();_R.exports={moduleType:"component",name:"annotations",layoutAttributes:j0(),supplyLayoutDefaults:hR(),includeBasePlot:hc()("annotations"),calcAutorange:gR(),draw:Yb.draw,drawOne:Yb.drawOne,drawRaw:Yb.drawRaw,hasClickToShow:xR.hasClickToShow,onClick:xR.onClick,convertCoords:bR()}});var uh=W((Gye,MR)=>{"use strict";var ht=j0(),Sue=Yi().overrideAll,Due=pt().templatedArray;MR.exports=Sue(Due("annotation",{visible:ht.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ht.xanchor,xshift:ht.xshift,yanchor:ht.yanchor,yshift:ht.yshift,text:ht.text,textangle:ht.textangle,font:ht.font,width:ht.width,height:ht.height,opacity:ht.opacity,align:ht.align,valign:ht.valign,bgcolor:ht.bgcolor,bordercolor:ht.bordercolor,borderpad:ht.borderpad,borderwidth:ht.borderwidth,showarrow:ht.showarrow,arrowcolor:ht.arrowcolor,arrowhead:ht.arrowhead,startarrowhead:ht.startarrowhead,arrowside:ht.arrowside,arrowsize:ht.arrowsize,startarrowsize:ht.startarrowsize,arrowwidth:ht.arrowwidth,standoff:ht.standoff,startstandoff:ht.startstandoff,hovertext:ht.hovertext,hoverlabel:ht.hoverlabel,captureevents:ht.captureevents}),"calc","from-root")});var AR=W((Vye,TR)=>{"use strict";var Ub=ze(),Lue=wt(),que=bi(),Eue=Bb(),Pue=uh();TR.exports=function(r,t,a){que(r,t,{name:"annotations",handleItemDefaults:zue,fullLayout:a.fullLayout})};function zue(e,r,t,a){function n(o,s){return Ub.coerce(e,r,Pue,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Lue.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Eue(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),Ub.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),Ub.noneOrAll(e,r,["ax","ay"])))}});var DR=W((Xye,SR)=>{"use strict";var kR=ze(),CR=wt();SR.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function Gb(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Fue(e,r){var t=Gb(e.projection,Gb(e.view,Gb(e.model,[r[0],r[1],r[2],1])));return t}LR.exports=Fue});var PR=W((Zye,ER)=>{"use strict";var Nue=sh().drawRaw,Iue=qR(),Bue=["x","y","z"];ER.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Iue(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Nue(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var FR=W((Jye,RR)=>{"use strict";var Hue=Ar(),zR=ze();RR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:uh()}}},layoutAttributes:uh(),handleDefaults:AR(),includeBasePlot:Oue,convert:DR(),draw:PR()};function Oue(e,r){var t=Hue.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var $ye=va(),NR=Ca(),IR=bs().line,Yue=Ui().dash,Di=na().extendFlat,Uue=pt().templatedArray,Kye=vc(),uu=vi(),BR=j0(),{shapeTexttemplateAttrs:Gue,templatefallbackAttrs:Vue}=Uo(),Xue=p2();HR.exports=Uue("shape",{visible:Di({},uu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Di({},uu.legend,{editType:"calc+arraydraw"}),legendgroup:Di({},uu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Di({},uu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:NR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Di({},uu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Di({},uu.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:Di({},BR.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Di({},BR.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Di({},IR.color,{editType:"arraydraw"}),width:Di({},IR.width,{editType:"calc+arraydraw"}),dash:Di({},Yue,{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:Gue({},{keys:Object.keys(Xue)}),texttemplatefallback:Vue({editType:"arraydraw"}),font:NR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var YR=W((Qye,OR)=>{"use strict";var fu=ze(),Rn=wt(),Wue=bi(),Zue=Vb(),Pc=lo();OR.exports=function(r,t){Wue(r,t,{name:"shapes",handleItemDefaults:$ue})};function Jue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function $ue(e,r,t){function a(T,b){return fu.coerce(e,r,Zue,T,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),fu.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var v=a("xsizemode"),d=a("ysizemode");let h=[.25,.75],m=[0,10];["x","y"].forEach(T=>{var b=T+"anchor",M=T==="x"?v:d,S={_fullLayout:t},A,L,q,P;let R=T+"ref",N=e[R];if(Array.isArray(N)&&N.length>0){let B=Pc.countDefiningCoords(s,l,T);P=Rn.coerceRefArray(e,r,S,T,void 0,"paper",B),r["_"+T+"refArray"]=!0}else P=Rn.coerceRef(e,r,S,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(B){Rn.getRefType(B)==="range"&&(A=Rn.getFromId(S,B),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(B){let I=P[B];Rn.getRefType(I)==="range"?(A=Rn.getFromId(S,I),L=Pc.shapePositionToRange(A),q=Pc.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(T+B+"shift")):L=q=fu.identity;let Y=T+B,G=e[Y];if(e[Y]=L(e[Y],!0),M==="pixel"?a(Y,m[B]):Rn.coercePosition(r,S,a,I,Y,h[B]),r[Y]=q(r[Y]),e[Y]=G,B===0&&M==="pixel"){let O=e[b];e[b]=L(e[b],!0),Rn.coercePosition(r,S,a,I,b,.25),r[b]=q(r[b]),e[b]=O}});else{if(Rn.getRefType(P)==="range"?(A=Rn.getFromId(S,P),A._shapeIndices.push(r._index),q=Pc.rangeToShapePosition(A),L=Pc.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):L=q=fu.identity,u){let I=T+"0",H=T+"1",Y=e[I],G=e[H];e[I]=L(e[I],!0),e[H]=L(e[H],!0),M==="pixel"?(a(I,m[0]),a(H,m[1])):(Rn.coercePosition(r,S,a,P,I,h[0]),Rn.coercePosition(r,S,a,P,H,h[1])),r[I]=q(r[I]),r[H]=q(r[H]),e[I]=Y,e[H]=G}if(M==="pixel"){let I=e[b];e[b]=L(e[b],!0),Rn.coercePosition(r,S,a,P,b,.25),r[b]=q(r[b]),e[b]=I}}}),u&&fu.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",g,x;if(u&&(g=a("label.texttemplate"),a("label.texttemplatefallback")),g||(x=a("label.text")),x||g){a("label.textangle");var w=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Jue(y,w)),a("label.padding"),fu.coerceFont(a,"label.font",t.font)}}});var VR=W((e3e,GR)=>{"use strict";var Kue=Fr(),UR=ze();function jue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}GR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),UR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Kue.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",jue(l,u)),a("newshape.label.padding"),UR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var jR=W((r3e,KR)=>{"use strict";var Xb=ze(),li=wt(),ll=Xf(),Wb=lo();KR.exports=function(r){var t=r._fullLayout,a=Xb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=li.getFromId(r,v),i._extremes[l._id]=li.findExtremes(l,d,WR(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=li.getFromId(r,i.xref),o=JR(l,i,ll.paramIsX),o&&(i._extremes[l._id]=li.findExtremes(l,o,WR(i))));if(u==="array"){let f=XR(r,i,"y");Object.entries(f).forEach(([v,d])=>{l=li.getFromId(r,v),i._extremes[l._id]=li.findExtremes(l,d,ZR(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=li.getFromId(r,i.yref),o=JR(l,i,ll.paramIsY),o&&(i._extremes[l._id]=li.findExtremes(l,o,ZR(i))))}};function XR(e,r,t){let a=r[t+"ref"],n=t==="x"?ll.paramIsX:ll.paramIsY;function i(v,d){v==="paper"||li.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(d))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(ll.segmentRE)||[];for(var o=0,s=0;sm&&(i(a[o],y[m]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let v in l){let d=li.getFromId(e,v);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=Wb.decodeDate(f)),u[d._id]=l[v].map(f)}}return u}function WR(e){return $R(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function ZR(e){return $R(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function $R(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?Wb.extractPathCoords(n,i?ll.paramIsY:ll.paramIsX):[t,a],u=Xb.aggNums(Math.max,null,s),f=Xb.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+l:l,d=u>0?u+l:l;return{ppad:l,ppadplus:o?v:d,ppadminus:o?d:v}}else return{ppad:l}}function JR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,d=-1/0,h=r.path.match(ll.segmentRE),m,y,g,x,w;for(e.type==="date"&&(u=Wb.decodeDate(u)),m=0;md&&(d=w)));if(d>=v)return[v,d]}}});var rF=W((t3e,eF)=>{"use strict";var QR=Q1();eF.exports={moduleType:"component",name:"shapes",layoutAttributes:Vb(),supplyLayoutDefaults:YR(),supplyDrawNewShapeDefaults:VR(),includeBasePlot:hc()("shapes"),calcAutorange:jR(),draw:QR.draw,drawOne:QR.drawOne}});var Zb=W((n3e,aF)=>{"use strict";var tF=va(),Que=pt().templatedArray,a3e=vc();aF.exports=Que("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",tF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iF=W((i3e,nF)=>{"use strict";var efe=ze(),Jb=wt(),rfe=bi(),tfe=Zb(),afe="images";nF.exports=function(r,t){var a={name:afe,handleItemDefaults:nfe};rfe(r,t,a)};function nfe(e,r,t){function a(d,h){return efe.coerce(e,r,tfe,d,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=Jb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=Jb.getFromId(l,f);v._imgIndices.push(r._index)}Jb.coercePosition(r,l,a,f,u,0)}return r}});var uF=W((l3e,sF)=>{"use strict";var lF=Hr(),ife=it(),cu=wt(),oF=la(),lfe=jo();sF.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var fF=Vr(),ofe=zv();cF.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";dF.exports={moduleType:"component",name:"images",layoutAttributes:Zb(),supplyLayoutDefaults:iF(),includeBasePlot:hc()("images"),draw:uF(),convertCoords:vF()}});var fh=W((u3e,pF)=>{"use strict";pF.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var $b=W((f3e,gF)=>{"use strict";var sfe=Ca(),ufe=Oi(),ffe=na().extendFlat,cfe=Yi().overrideAll,vfe=m2(),mF=pt().templatedArray,dfe=mF("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}});gF.exports=cfe(mF("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:dfe,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:ffe(vfe({editType:"arraydraw"}),{}),font:sfe({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:ufe.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var _F=W((c3e,xF)=>{"use strict";var ch=ze(),yF=bi(),bF=$b(),hfe=fh(),pfe=hfe.name,mfe=bF.buttons;xF.exports=function(r,t){var a={name:pfe,handleItemDefaults:gfe};yF(r,t,a)};function gfe(e,r,t){function a(l,o){return ch.coerce(e,r,bF,l,o)}var n=yF(e,r,{name:"buttons",handleItemDefaults:yfe}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),ch.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),ch.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function yfe(e,r){function t(n,i){return ch.coerce(e,r,mfe,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var TF=W((v3e,MF)=>{"use strict";MF.exports=St;var Li=Hr(),wF=Fr(),vu=it(),vh=ze();function St(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}St.barWidth=2;St.barLength=20;St.barRadius=2;St.barPad=1;St.barColor="#808BA4";St.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,d=v==="down",h=v==="left",m=v==="right",y=v==="up",g=s,x=f,w,T,b,M;!d&&!h&&!m&&!y&&(this.position.direction="down",d=!0);var S=d||y;S?(w=o,T=w+g,d?(b=u,M=Math.min(b+x,l),x=M-b):(M=u+x,b=Math.max(M-x,0),x=M-b)):(b=u,M=b+x,h?(T=o+g,w=Math.max(T-g,0),g=T-w):(w=o,T=Math.min(w+g,i),g=T-w)),this._box={l:w,t:b,w:g,h:x};var A=s>g,L=St.barLength+2*St.barPad,q=St.barWidth+2*St.barPad,P=o,R=u+f;R+q>l&&(R=l-q);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(wF.fill,St.barColor),A?(this.hbar=N.attr({rx:St.barRadius,ry:St.barRadius,x:P,y:R,width:L,height:q}),this._hbarXMin=P+L/2,this._hbarTranslateMax=g-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>x,I=St.barWidth+2*St.barPad,H=St.barLength+2*St.barPad,Y=o+s,G=u;Y+I>i&&(Y=i-I);var O=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(wF.fill,St.barColor),B?(this.vbar=O.attr({rx:St.barRadius,ry:St.barRadius,x:Y,y:G,width:I,height:H}),this._vbarYMin=G+H/2,this._vbarTranslateMax=x-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var X=this.id,J=w-.5,Z=B?T+I+.5:T+.5,ee=b-.5,ne=A?M+q+.5:M+.5,fe=n._topdefs.selectAll("#"+X).data(A||B?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",X).append("rect"),A||B?(this._clipRect=fe.select("rect").attr({x:Math.floor(J),y:Math.floor(ee),width:Math.ceil(Z)-Math.floor(J),height:Math.ceil(ne)-Math.floor(ee)}),this.container.call(vu.setClipUrl,X,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vu.setClipUrl,null),delete this._clipRect),A||B){var we=Li.behavior.drag().on("dragstart",function(){Li.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(we);var j=Li.behavior.drag().on("dragstart",function(){Li.event.sourceEvent.preventDefault(),Li.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(j),B&&this.vbar.on(".drag",null).call(j)}this.setTranslate(t,a)};St.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vu.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)};St.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Li.event.dx),this.vbar&&(t-=Li.event.dy),this.setTranslate(r,t)};St.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Li.event.deltaY),this.vbar&&(t+=Li.event.deltaY),this.setTranslate(r,t)};St.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=vh.constrain(Li.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=vh.constrain(Li.event.y,s,u),v=(f-s)/(u-s),d=this.position.h-this._box.h;t=v*d}this.setTranslate(r,t)};St.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=vh.constrain(r||0,0,a),t=vh.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(vu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(vu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(vu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var zF=W((d3e,PF)=>{"use strict";var du=Hr(),zc=$t(),Rc=Fr(),hu=it(),Fn=ze(),dh=ba(),bfe=pt().arrayEditor,kF=Ra().LINE_SPACING,kr=fh(),xfe=TF();PF.exports=function(r){var t=r._fullLayout,a=Fn.filterVisible(t[kr.name]);function n(d){zc.autoMargin(r,qF(d))}var i=t._menulayer.selectAll("g."+kr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(kr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){du.select(this).selectAll("g."+kr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+kr.headerGroupClassName).data(a,_fe);l.enter().append("g").classed(kr.headerGroupClassName,!0);for(var o=Fn.ensureSingle(i,"g",kr.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var Sfe=fh();RF.exports={moduleType:"component",name:Sfe.name,layoutAttributes:$b(),supplyLayoutDefaults:_F(),draw:zF()}});var Nc=W((p3e,NF)=>{"use strict";NF.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var e4=W((m3e,HF)=>{"use strict";var IF=Ca(),Dfe=m2(),Lfe=na().extendDeepAll,qfe=Yi().overrideAll,Efe=df(),BF=pt().templatedArray,Ls=Nc(),Pfe=BF("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}});HF.exports=qfe(BF("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Pfe,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:Lfe(Dfe({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:Efe.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:IF({})},font:IF({}),activebgcolor:{valType:"color",dflt:Ls.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ls.railBgColor},bordercolor:{valType:"color",dflt:Ls.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ls.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ls.tickLength},tickcolor:{valType:"color",dflt:Ls.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ls.minorTickLength}}),"arraydraw","from-root")});var GF=W((g3e,UF)=>{"use strict";var pu=ze(),OF=bi(),YF=e4(),zfe=Nc(),Rfe=zfe.name,Ffe=YF.steps;UF.exports=function(r,t){OF(r,t,{name:Rfe,handleItemDefaults:Nfe})};function Nfe(e,r,t){function a(v,d){return pu.coerce(e,r,YF,v,d)}for(var n=OF(e,r,{name:"steps",handleItemDefaults:Ife}),i=0,l=0;l{"use strict";var qi=Hr(),hh=$t(),ho=Fr(),Ei=it(),Nn=ze(),Bfe=Nn.strTranslate,Ic=ba(),Hfe=pt().arrayEditor,Nr=Nc(),a4=Ra(),WF=a4.LINE_SPACING,r4=a4.FROM_TL,t4=a4.FROM_BR;QF.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Ofe(a,r),i=a._infolayer.selectAll("g."+Nr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Nr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),hh.autoMargin(r,ZF(f))}if(i.exit().each(function(){qi.select(this).selectAll("g."+Nr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Nr.groupClassName).data(n,Yfe);o.enter().append("g").classed(Nr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Bfe(l-Nr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function n4(e,r){var t=e._dims;return t.inputAreaStart+Nr.stepInset+(t.inputAreaLength-2*Nr.stepInset)*Math.min(1,Math.max(0,r))}function XF(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Nr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Nr.stepInset-2*t.inputAreaStart)))}function Jfe(e,r,t){var a=t._dims,n=Nn.ensureSingle(e,"rect",Nr.railTouchRectClass,function(i){i.call(KF,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Nr.tickOffset+t.ticklen+a.labelHeight)}).call(ho.fill,t.bgcolor).attr("opacity",0),Ei.setTranslate(n,0,a.currentValueTotalHeight)}function $fe(e,r){var t=r._dims,a=t.inputAreaLength-Nr.railInset*2,n=Nn.ensureSingle(e,"rect",Nr.railRectClass);n.attr({width:a,height:Nr.railWidth,rx:Nr.railRadius,ry:Nr.railRadius,"shape-rendering":"crispEdges"}).call(ho.stroke,r.bordercolor).call(ho.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ei.setTranslate(n,Nr.railInset,(t.inputAreaWidth-Nr.railWidth)*.5+t.currentValueTotalHeight)}});var tN=W((b3e,rN)=>{"use strict";var Kfe=Nc();rN.exports={moduleType:"component",name:Kfe.name,layoutAttributes:e4(),supplyLayoutDefaults:GF(),draw:eN()}});var mh=W((x3e,nN)=>{"use strict";var aN=Oi();nN.exports={bgcolor:{valType:"color",dflt:aN.background,editType:"plot"},bordercolor:{valType:"color",dflt:aN.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var i4=W((_3e,iN)=>{"use strict";iN.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var gh=W((w3e,lN)=>{"use strict";lN.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var uN=W(bh=>{"use strict";var jfe=la(),Qfe=ba(),oN=gh(),ece=Ra().LINE_SPACING,yh=oN.name;function sN(e){var r=e&&e[yh];return r&&r.visible}bh.isVisible=sN;bh.makeData=function(e){for(var r=jfe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var xh=ze(),fN=pt(),cN=la(),rce=mh(),tce=i4();vN.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;xh.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=fN.newContainer(i,"rangeslider");function s(M,S){return xh.coerce(l,o,rce,M,S)}var u,f;function v(M,S){return xh.coerce(u,f,tce,M,S)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var m=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===cN.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=xh.simpleMap(m,cN.id2name),g=0;g{"use strict";var ace=la().list,nce=Ef().getAutoRange,ice=gh();hN.exports=function(r){for(var t=ace(r,"x",!0),a=0;a{"use strict";var _h=Hr(),lce=Ar(),oce=$t(),It=ze(),wh=It.strTranslate,gN=it(),po=Fr(),sce=Lf(),uce=lh(),l4=la(),fce=wi(),cce=ro(),Yr=gh();yN.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)Y=R[G+1];else if(H=O.pmax)Y=R[G+1];else if(H0?e.touches[0].clientX:0}function vce(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Yr.slideBoxClassName).node(),i=e.select("rect."+Yr.grabAreaMinClassName).node(),l=e.select("rect."+Yr.grabAreaMaxClassName).node();function o(){var s=_h.event,u=s.target,f=mN(s),v=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),m=fce.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(x){var w=mN(x),T=+w-f,b,M,S;switch(u){case n:if(S="ew-resize",d+T>t._length||h+T<0)return;b=d+T,M=h+T;break;case i:if(S="col-resize",d+T>t._length)return;b=d+T,M=h;break;case l:if(S="col-resize",h+T<0)return;b=d,M=h+T;break;default:S="ew-resize",b=v,M=v+T;break}if(M{"use strict";var wce=ze(),Mce=mh(),Tce=i4(),o4=uN();xN.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:wce.extendFlat({},Mce,{yaxis:Tce})}}},layoutAttributes:mh(),handleDefaults:dN(),calcAutorange:pN(),draw:bN(),isVisible:o4.isVisible,makeData:o4.makeData,autoMarginOpts:o4.autoMarginOpts}});var Mh=W((S3e,MN)=>{"use strict";var Ace=Ca(),wN=Oi(),kce=pt().templatedArray,Cce=kce("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"});MN.exports={visible:{valType:"boolean",editType:"plot"},buttons:Cce,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:Ace({editType:"plot"}),bgcolor:{valType:"color",dflt:wN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:wN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var s4=W((D3e,TN)=>{"use strict";TN.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var CN=W((L3e,kN)=>{"use strict";var Th=ze(),Sce=Fr(),Dce=pt(),Lce=bi(),AN=Mh(),u4=s4();kN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Dce.newContainer(t,"rangeselector");function s(h,m){return Th.coerce(l,o,AN,h,m)}var u=Lce(l,o,{name:"buttons",handleItemDefaults:qce,calendar:i}),f=s("visible",u.length>0);if(f){var v=Ece(t,a,n);s("x",v[0]),s("y",v[1]),Th.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Th.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",Sce.contrast(d,u4.lightAmount,u4.darkAmount)),s("bordercolor"),s("borderwidth")}};function qce(e,r,t,a){var n=a.calendar;function i(s,u){return Th.coerce(e,r,AN.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Ece(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Pce=Sp(),zce=ze().titleCase;SN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Rce(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Rce(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Pce["utc"+zce(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var NN=W((E3e,FN)=>{"use strict";var kh=Hr(),Fce=Ar(),Nce=$t(),LN=Fr(),RN=it(),Tl=ze(),qN=Tl.strTranslate,Ah=ba(),Ice=la(),v4=Ra(),EN=v4.LINE_SPACING,PN=v4.FROM_TL,zN=v4.FROM_BR,c4=s4(),Bce=DN();FN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Hce(r),Oce);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=kh.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Tl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=kh.select(this),v=Bce(l,u);u._isActive=Yce(l,u,v),f.call(f4,o,u),f.call(Gce,o,u,r),f.on("click",function(){r._dragged||Fce.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(f4,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(f4,o,u)})}),Xce(r,s,o,l._name,i)})};function Hce(e){for(var r=Ice.list(e,"x",!0),t=[],a=0;a{"use strict";IN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Mh()}}},layoutAttributes:Mh(),handleDefaults:CN(),draw:NN()}});var Ch=W(d4=>{"use strict";var HN=na().extendFlat;d4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",l={x:HN({},t,{}),y:HN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};d4.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Wce=ze(),Zce=(v0(),rn(c0)).counter,Jce=Ch().attributes,ON=va().idRegex,$ce=pt(),h4={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:[Zce("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ON.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ON.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:Jce({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 Sh(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Kce(e,r){var t=e.grid||{},a=Sh(r,t,"x"),n=Sh(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=$ce.newContainer(r,"grid");function d(S,A){return Wce.coerce(t,v,h4,S,A)}var h=d("rows",u),m=d("columns",f);if(!(h*m>1)){delete r.grid;return}if(!i&&!l&&!o){var y=d("pattern")==="independent";y&&(i=!0)}v._hasSubplotGrid=i;var g=d("roworder"),x=g==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:YN("x",d,w,b,m),y:YN("y",d,T,M,h,x)}}function YN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),d=0;d{"use strict";XN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var JN=W((N3e,ZN)=>{"use strict";var WN=Vr(),Qce=Ar(),eve=ze(),rve=pt(),tve=p4();ZN.exports=function(e,r,t,a){var n="error_"+a.axis,i=rve.newContainer(r,n),l=e[n]||{};function o(m,y){return eve.coerce(l,i,tve,m,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(d,!(l.color||WN(l.thickness)||WN(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",Qce.traceIs(r,"gl3d")?0:4))}}});var m4=W((I3e,KN)=>{"use strict";KN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],d=+i[f];return!isNaN(v)||!isNaN(d)?[d||0,v||0]:[NaN,NaN]}}else{var l=$N(t,r.value),o=$N(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function $N(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var eI=W((B3e,QN)=>{"use strict";var g4=Vr(),ave=Ar(),y4=wt(),nve=ze(),ive=m4();QN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var rI=Hr(),mo=Vr(),lve=it(),ove=kn();tI.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,d=v.error_x||{},h=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var y=ove.hasMarkers(v)&&v.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var g=rI.select(this).selectAll("g.errorbar").data(f,m);if(g.exit().remove(),!!f.length){d.visible||g.selectAll("path.xerror").remove(),h.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var x=g.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),lve.setClipUrl(g,a.layerClipId,r),g.each(function(w){var T=rI.select(this),b=sve(w,l,o);if(!(y&&!w.vis)){var M,S=T.select("path.yerror");if(h.visible&&mo(b.x)&&mo(b.yh)&&mo(b.ys)){var A=h.width;M="M"+(b.x-A)+","+b.yh+"h"+2*A+"m-"+A+",0V"+b.ys,b.noYS||(M+="m-"+A+",0h"+2*A),i=!S.size(),i?S=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove();var L=T.select("path.xerror");if(d.visible&&mo(b.y)&&mo(b.xh)&&mo(b.xs)){var q=(d.copy_ystyle?h:d).width;M="M"+b.xh+","+(b.y-q)+"v"+2*q+"m0,-"+q+"H"+b.xs,b.noXS||(M+="m0,-"+q+"v"+2*q),i=!L.size(),i?L=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",M)}else L.remove()}})}})};function sve(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),mo(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),mo(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var lI=W((O3e,iI)=>{"use strict";var uve=Hr(),nI=Fr();iI.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=uve.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(nI.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(nI.stroke,i.color)})}});var uI=W((Y3e,sI)=>{"use strict";var Bc=ze(),oI=Yi().overrideAll,Hc=p4(),qs={error_x:Bc.extendFlat({},Hc),error_y:Bc.extendFlat({},Hc)};delete qs.error_x.copy_zstyle;delete qs.error_y.copy_zstyle;delete qs.error_y.copy_ystyle;var Oc={error_x:Bc.extendFlat({},Hc),error_y:Bc.extendFlat({},Hc),error_z:Bc.extendFlat({},Hc)};delete Oc.error_x.copy_ystyle;delete Oc.error_y.copy_ystyle;delete Oc.error_z.copy_ystyle;delete Oc.error_z.copy_zstyle;sI.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:qs,bar:qs,histogram:qs,scatter3d:oI(Oc,"calc","nested"),scattergl:oI(qs,"calc","nested")}},supplyDefaults:JN(),calc:eI(),makeComputeError:m4(),plot:aI(),style:lI(),hoverInfo:fve};function fve(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var cI=W((U3e,fI)=>{"use strict";fI.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var bI=W((G3e,yI)=>{"use strict";var go=Hr(),Lh=$t(),vI=Ar(),Al=wt(),Dh=wi(),oi=ze(),zi=oi.strTranslate,gI=na().extendFlat,b4=ro(),Pi=it(),mu=Fr(),cve=Lf(),vve=ba(),dve=Xn().flipScale,hve=Db(),pve=Lb(),mve=yi(),_4=Ra(),dI=_4.LINE_SPACING,hI=_4.FROM_TL,pI=_4.FROM_BR,Ct=cI().cn;function gve(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ct.colorbar).data(yve(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ct.colorbar,!0),t.each(function(a){var n=go.select(this);oi.ensureSingle(n,"rect",Ct.cbbg),oi.ensureSingle(n,"g",Ct.cbfills),oi.ensureSingle(n,"g",Ct.cblines),oi.ensureSingle(n,"g",Ct.cbaxis,function(l){l.classed(Ct.crisp,!0)}),oi.ensureSingle(n,"g",Ct.cbtitleunshift,function(l){l.append("g").classed(Ct.cbtitle,!0)}),oi.ensureSingle(n,"rect",Ct.cboutline);var i=bve(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&xve(n,a,e)}),t.exit().each(function(a){Lh.autoMargin(e,a._id)}).remove(),t.order()}function yve(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return gI(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?dve(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],mI=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function bve(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,v=r.xanchor,d=r.yanchor,h=r.xpad,m=r.ypad,y=r.x,g=a?r.y:1-r.y,x=r.yref==="paper",w=r.xref==="paper",T=t._fullLayout,b=T._size,M=r._fillcolor,S=r._line,A=r.title,L=A.side,q=r._zrange||go.extent((typeof M=="function"?M:S.color).domain()),P=typeof S.color=="function"?S.color:function(){return S.color},R=typeof M=="function"?M:function(){return M},N=r._levels,B=_ve(t,r,q),I=B.fill,H=B.line,Y=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),G=Y/(a?b.w:b.h),O=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),X=O/(a?b.h:b.w),J=w?b.w:t._fullLayout.width,Z=x?b.h:t._fullLayout.height,ee=Math.round(a?y*J+h:g*Z+m),ne={center:.5,right:1}[v]||0,fe={top:1,middle:.5}[d]||0,we=a?y-ne*G:g-fe*G,j=a?g-fe*X:y-ne*X,_e=Math.round(a?Z*(1-j):J*j);r._lenFrac=X,r._thickFrac=G,r._uFrac=we,r._vFrac=j;var ue=r._axis=wve(t,r,q);ue.position=G+(a?y+h/b.w:g+m/b.h);var Me=["top","bottom"].indexOf(L)!==-1;if(a&&Me&&(ue.title.side=L,ue.titlex=y+h/b.w,ue.titley=j+(A.side==="top"?X-m/b.h:m/b.h)),!a&&!Me&&(ue.title.side=L,ue.titley=g+m/b.h,ue.titlex=j+h/b.w),S.color&&r.tickmode==="auto"){ue.tickmode="linear",ue.tick0=N.start;var ye=N.size,ce=oi.constrain(O/50,4,15)+1,Te=(q[1]-q[0])/((r.nticks||ce)*ye);if(Te>1){var Re=Math.pow(10,Math.floor(Math.log(Te)/Math.LN10));ye*=Re*oi.roundUp(Te/Re,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ue.tick0=0)}ue.dtick=ye}var be=a?m/b.h:h/b.w;ue.domain=mI(x4([j,j+X],be),be),ue.setScale(),e.attr("transform",zi(Math.round(b.l),Math.round(b.t)));var qe=e.select("."+Ct.cbtitleunshift).attr("transform",zi(-Math.round(b.l),-Math.round(b.t))),Ce=ue.ticklabelposition,De=ue.title.font.size,Ee=e.select("."+Ct.cbaxis),Ue,ke=0,Xe=0;function Ke(re,he){var Ve={propContainer:ue,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+Ct.cbtitle)},dr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+dr+",."+dr+"-math-group").remove(),cve.draw(t,re,gI(Ve,he||{}))}function We(){if(a&&Me||!a&&!Me){var re,he;L==="top"&&(re=h+b.l+J*y,he=m+b.t+Z*(1-j-X)+3+De*.75),L==="bottom"&&(re=h+b.l+J*y,he=m+b.t+Z*(1-j)-3-De*.25),L==="right"&&(he=m+b.t+Z*g+3+De*.75,re=h+b.l+J*j),Ke(ue._id+"title",{attributes:{x:re,y:he,"text-anchor":a?"start":"middle"}})}}function Ae(){if(a&&!Me||!a&&Me){var re=ue.position||0,he=ue._offset+ue._length/2,Ve,dr;if(L==="right")dr=he,Ve=b.l+J*re+10+De*(ue.showticklabels?1:.5);else if(Ve=he,L==="bottom"&&(dr=b.t+Z*re+10+(Ce.indexOf("inside")===-1?ue.tickfont.size:0)+(ue.ticks!=="inside"&&r.ticklen||0)),L==="top"){var Le=A.text.split("
").length;dr=b.t+Z*re+10-Y-dI*De*Le}Ke((a?"h":"v")+ue._id+"title",{avoid:{selection:go.select(t).selectAll("g."+ue._id+"tick"),side:L,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Ve,y:dr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!Me||a&&Me){var re=e.select("."+Ct.cbtitle),he=re.select("text"),Ve=[-s/2,s/2],dr=re.select(".h"+ue._id+"title-math-group").node(),Le=15.6;he.node()&&(Le=parseInt(he.node().style.fontSize,10)*dI);var de;if(dr?(de=Pi.bBox(dr),Xe=de.width,ke=de.height,ke>Le&&(Ve[1]-=(ke-Le)/2)):he.node()&&!he.classed(Ct.jsPlaceholder)&&(de=Pi.bBox(he.node()),Xe=de.width,ke=de.height),a){if(ke){if(ke+=5,L==="top")ue.domain=mI(ue.domain,ke/b.h),Ve[1]*=-1;else{ue.domain=x4(ue.domain,ke/b.h);var xe=vve.lineCount(he);Ve[1]+=(1-xe)*Le}re.attr("transform",zi(Ve[0],Ve[1])),ue.setScale()}}else Xe&&(L==="right"&&(ue.domain=x4(ue.domain,(Xe+De/2)/b.w)),re.attr("transform",zi(Ve[0],Ve[1])),ue.setScale())}e.selectAll("."+Ct.cbfills+",."+Ct.cblines).attr("transform",a?zi(0,Math.round(b.h*(1-ue.domain[1]))):zi(Math.round(b.w*ue.domain[0]),0)),Ee.attr("transform",a?zi(0,Math.round(-b.t)):zi(Math.round(-b.l),0));var He=e.select("."+Ct.cbfills).selectAll("rect."+Ct.cbfill).attr("style","").data(I);He.enter().append("rect").classed(Ct.cbfill,!0).attr("style",""),He.exit().remove();var Ze=q.map(ue.c2p).map(Math.round).sort(function(ur,Se){return ur-Se});He.each(function(ur,Se){var $e=[Se===0?q[0]:(I[Se]+I[Se-1])/2,Se===I.length-1?q[1]:(I[Se]+I[Se+1])/2].map(ue.c2p).map(Math.round);a&&($e[1]=oi.constrain($e[1]+($e[1]>$e[0])?1:-1,Ze[0],Ze[1]));var Ne=go.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",go.min($e)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(go.max($e)-go.min($e),2));if(r._fillgradient)Pi.gradient(Ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var hr=R(ur).replace("e-","");Ne.attr("fill",mu.hexString(hr))}});var Ie=e.select("."+Ct.cblines).selectAll("path."+Ct.cbline).data(S.color&&S.width?H:[]);Ie.enter().append("path").classed(Ct.cbline,!0),Ie.exit().remove(),Ie.each(function(ur){var Se=ee,$e=Math.round(ue.c2p(ur))+S.width/2%1;go.select(this).attr("d","M"+(a?Se+","+$e:$e+","+Se)+(a?"h":"v")+Y).call(Pi.lineGroupStyle,S.width,P(ur),S.dash)}),Ee.selectAll("g."+ue._id+"tick,path").remove();var Ge=ee+Y+(s||0)/2-(r.ticks==="outside"?1:0),ar=Al.calcTicks(ue),ir=Al.getTickSigns(ue)[2];return Al.drawTicks(t,ue,{vals:ue.ticks==="inside"?Al.clipEnds(ue,ar):ar,layer:Ee,path:Al.makeTickPath(ue,Ge,ir),transFn:Al.makeTransTickFn(ue)}),Al.drawLabels(t,ue,{vals:ar,layer:Ee,transFn:Al.makeTransTickLabelFn(ue),labelFns:Al.makeLabelFns(ue,Ge)})}function je(){var re,he=Y+s/2;Ce.indexOf("inside")===-1&&(re=Pi.bBox(Ee.node()),he+=a?re.width:re.height),Ue=qe.select("text");var Ve=0,dr=a&&L==="top",Le=!a&&L==="right",de=0;if(Ue.node()&&!Ue.classed(Ct.jsPlaceholder)){var xe,He=qe.select(".h"+ue._id+"title-math-group").node();He&&(a&&Me||!a&&!Me)?(re=Pi.bBox(He),Ve=re.width,xe=re.height):(re=Pi.bBox(qe.node()),Ve=re.right-b.l-(a?ee:_e),xe=re.bottom-b.t-(a?_e:ee),!a&&L==="top"&&(he+=re.height,de=re.height)),Le&&(Ue.attr("transform",zi(Ve/2+De/2,0)),Ve*=2),he=Math.max(he,a?Ve:xe)}var Ze=(a?h:m)*2+he+u+s/2,Ie=0;!a&&A.text&&d==="bottom"&&g<=0&&(Ie=Ze/2,Ze+=Ie,de+=Ie),T._hColorbarMoveTitle=Ie,T._hColorbarMoveCBTitle=de;var Ge=u+s,ar=(a?ee:_e)-Ge/2-(a?h:0),ir=(a?_e:ee)-(a?O:m+de-Ie);e.select("."+Ct.cbbg).attr("x",ar).attr("y",ir).attr(a?"width":"height",Math.max(Ze-Ie,2)).attr(a?"height":"width",Math.max(O+Ge,2)).call(mu.fill,f).call(mu.stroke,r.bordercolor).style("stroke-width",u);var ur=Le?Math.max(Ve-10,0):0;e.selectAll("."+Ct.cboutline).attr("x",(a?ee:_e+h)+ur).attr("y",(a?_e+m-O:ee)+(dr?ke:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(O-(a?2*m+ke:2*h+ur),2)).call(mu.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Se=a?ne*Ze:0,$e=a?0:(1-fe)*Ze-de;if(Se=w?b.l-Se:-Se,$e=x?b.t-$e:-$e,e.attr("transform",zi(Se,$e)),!a&&(u||mu.opacity(f)&&!mu.equals(T.paper_bgcolor,f))){var Ne=Ee.selectAll("text"),hr=Ne[0].length,br=e.select("."+Ct.cbbg).node(),sr=Pi.bBox(br),pr=Pi.getTranslate(e),te=2;Ne.each(function(ln,Qt){var Qa=0,xn=hr-1;if(Qt===Qa||Qt===xn){var _n=Pi.bBox(this),mr=Pi.getTranslate(this),vt;if(Qt===xn){var jr=_n.right+mr.x,mt=sr.right+pr.x+_e-u-te+y;vt=mt-jr,vt>0&&(vt=0)}else if(Qt===Qa){var Lt=_n.left+mr.x,At=sr.left+pr.x+_e+u+te;vt=At-Lt,vt<0&&(vt=0)}vt&&(hr<3?this.setAttribute("transform","translate("+vt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ve={},Fe=hI[v],Ye=pI[v],Kr=hI[d],ot=pI[d],ct=Ze-Y;a?(i==="pixels"?(ve.y=g,ve.t=O*Kr,ve.b=O*ot):(ve.t=ve.b=0,ve.yt=g+n*Kr,ve.yb=g-n*ot),o==="pixels"?(ve.x=y,ve.l=Ze*Fe,ve.r=Ze*Ye):(ve.l=ct*Fe,ve.r=ct*Ye,ve.xl=y-l*Fe,ve.xr=y+l*Ye)):(i==="pixels"?(ve.x=y,ve.l=O*Fe,ve.r=O*Ye):(ve.l=ve.r=0,ve.xl=y+n*Fe,ve.xr=y-n*Ye),o==="pixels"?(ve.y=1-g,ve.t=Ze*Kr,ve.b=Ze*ot):(ve.t=ct*Kr,ve.b=ct*ot,ve.yt=g-l*Kr,ve.yb=g+l*ot));var Ft=r.y<.5?"b":"t",Dt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var ga={r:T.width-ar-Se,l:ar+ve.r,b:T.height-ir-$e,t:ir+ve.b};w&&x?Lh.autoMargin(t,r._id,ve):w?t._fullLayout._reservedMargin[r._id][Ft]=ga[Ft]:x||a?t._fullLayout._reservedMargin[r._id][Dt]=ga[Dt]:t._fullLayout._reservedMargin[r._id][Ft]=ga[Ft]}return oi.syncOrAsync([Lh.previousPromises,We,Pe,Ae,Lh.previousPromises,je],t)}function xve(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Dh.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),b4(e)},moveFn:function(u,f){e.attr("transform",l+zi(u,f)),o=Dh.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Dh.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Dh.getCursor(o,s,r.xanchor,r.yanchor);b4(e,v)},doneFn:function(){if(b4(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?vI.call("_guiRestyle",t,u,r._traceIndex):vI.call("_guiRelayout",t,u)}}})}function _ve(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";xI.exports={moduleType:"component",name:"colorbar",attributes:V2(),supplyDefaults:by(),draw:bI().draw,hasColorbar:sy()}});var MI=W((X3e,wI)=>{"use strict";wI.exports={moduleType:"component",name:"legend",layoutAttributes:p3(),supplyLayoutDefaults:g3(),draw:q3(),style:C3()}});var AI=W((W3e,TI)=>{"use strict";TI.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var CI=W((Z3e,kI)=>{"use strict";kI.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var M4=W((J3e,qI)=>{"use strict";var Mve=Ar(),LI=ze(),w4=LI.extendFlat,SI=LI.extendDeep;function DI(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Tve(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}qI.exports=function(r,t){var a,n=r.data,i=r.layout,l=SI([],n),o=SI({},i,DI(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var Ave=E2().EventEmitter,kve=Ar(),Cve=ze(),EI=xs(),Sve=M4(),Dve=Fd(),Lve=Nd();function qve(e,r){var t=new Ave,a=Sve(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=EI.getDelay(n._fullLayout);setTimeout(function(){var s=Dve(n),u=document.createElement("canvas");u.id=Cve.randstr(),t=Lve({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=EI.getRedrawFunc(n);return kve.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}PI.exports=qve});var NI=W((K3e,FI)=>{"use strict";var RI=xs(),Eve={getDelay:RI.getDelay,getRedrawFunc:RI.getRedrawFunc,clone:M4(),toSVG:Fd(),svgToImg:Nd(),toImage:zI(),downloadImage:K5()};FI.exports=Eve});var BI=W(kl=>{"use strict";kl.version=Yu().version;Sx();gM();var Pve=Ar(),Yc=kl.register=Pve.register,A4=BE(),II=Object.keys(A4);for(qh=0;qh{"use strict";HI.exports=BI()});var Uc=W((e5e,XI)=>{"use strict";var Rt=bs(),YI=G2().axisHoverFormat,{hovertemplateAttrs:zve,texttemplateAttrs:Rve,templatefallbackAttrs:UI}=Uo(),VI=kf(),Fve=Ca(),GI=kc(),Nve=Ui().pattern,Es=na().extendFlat,k4=Fve({editType:"calc",arrayOk:!0,colorEditType:"style"}),Ive=Rt.marker,Bve=Ive.line,Hve=Es({},Bve.width,{dflt:0}),Ove=Es({width:Hve,editType:"calc"},VI("marker.line")),Yve=Es({line:Ove,editType:"calc"},VI("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Nve,cornerradius:{valType:"any",editType:"calc"}});XI.exports={x:Rt.x,x0:Rt.x0,dx:Rt.dx,y:Rt.y,y0:Rt.y0,dy:Rt.dy,xperiod:Rt.xperiod,yperiod:Rt.yperiod,xperiod0:Rt.xperiod0,yperiod0:Rt.yperiod0,xperiodalignment:Rt.xperiodalignment,yperiodalignment:Rt.yperiodalignment,xhoverformat:YI("x"),yhoverformat:YI("y"),text:Rt.text,texttemplate:Rve({editType:"plot"},{keys:GI.eventDataKeys}),texttemplatefallback:UI({editType:"plot"}),hovertext:Rt.hovertext,hovertemplate:zve({},{keys:GI.eventDataKeys}),hovertemplatefallback:UI(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Es({},k4,{}),insidetextfont:Es({},k4,{}),outsidetextfont:Es({},k4,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Es({},Rt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Yve,offsetgroup:Rt.offsetgroup,alignmentgroup:Rt.alignmentgroup,selected:{marker:{opacity:Rt.selected.marker.opacity,color:Rt.selected.marker.color,editType:"style"},textfont:Rt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Rt.unselected.marker.opacity,color:Rt.unselected.marker.color,editType:"style"},textfont:Rt.unselected.textfont,editType:"style"},zorder:Rt.zorder}});var C4=W((r5e,WI)=>{"use strict";WI.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var KI=W((t5e,$I)=>{"use strict";var Uve=Fr(),ZI=Xn().hasColorscale,JI=D0(),Gve=ze().coercePattern;$I.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=ZI(r,"marker");o&&JI(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Uve.defaultLine),ZI(r,"marker.line")&&JI(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Gve(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Gc=W((a5e,aB)=>{"use strict";var jI=Vr(),yu=ze(),QI=Fr(),Vve=Ar(),Xve=eb(),Wve=rb(),Zve=KI(),Jve=tb(),eB=Uc(),Ph=yu.coerceFont;function $ve(e,r,t,a){function n(u,f){return yu.coerce(e,r,eB,u,f)}var i=Xve(e,r,a,n);if(!i){r.visible=!1;return}Wve(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");tB(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Zve(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Vve.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||QI.defaultLine,{axis:"y"}),s(e,r,o||QI.defaultLine,{axis:"x",inherit:"y"}),yu.coerceSelectionMarkerOpacity(r,n)}function Kve(e,r){var t,a;function n(o,s){return yu.coerce(a._input,a,eB,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&jI(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function tB(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,d=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",m=h||n==="inside",y=h||n==="outside";if(m||y){var g=Ph(a,"textfont",t.font),x=yu.extendFlat({},g),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete x.color,Ph(a,"insidetextfont",x),d){var b=yu.extendFlat({},g);T&&delete b.color,Ph(a,"pathbar.textfont",b)}y&&Ph(a,"outsidetextfont",g),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}m&&v&&a("insidetextanchor")}aB.exports={supplyDefaults:$ve,crossTraceDefaults:Kve,handleText:tB,validateCornerradius:rB}});var iB=W((n5e,nB)=>{"use strict";var jve=Ar(),Qve=wt(),e2e=ze(),r2e=C4(),t2e=Gc().validateCornerradius;nB.exports=function(e,r,t){function a(y,g){return e2e.coerce(e,r,r2e,y,g)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[d]&&(l=!0),o[d]=!0),v.visible&&v.type==="histogram"){var h=Qve.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=t2e(m)}});var S4=W((i5e,lB)=>{"use strict";var bu=ze();lB.exports=function(r,t){for(var a=0;a{"use strict";var oB=wt(),sB=ab(),uB=Xn().hasColorscale,fB=Z2(),a2e=S4(),n2e=ob();cB.exports=function(r,t){var a=oB.getFromId(r,t.xaxis||"x"),n=oB.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=sB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=sB(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var d=Math.min(l.length,i.length),h=new Array(d),m=0;m{"use strict";var i2e=Hr(),l2e=ze();function o2e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=i2e.select(this).select("text");l2e.setTransormAndDisplay(u,s)}})}}function s2e(e,r,t){if(t.uniformtext.mode){var a=dB(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var f2e=Fr(),c2e=Vr(),pB=ze().isArrayOrTypedArray;Ps.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Ps.coerceNumber=function(e,r,t){if(c2e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Ps.coerceColor=function(e,r,t){return f2e.isValid(r)?r:t!==void 0?t:e.dflt};Ps.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ps.getValue=function(e,r){var t;return pB(e)?r{"use strict";var Xc=Hr(),v2e=Fr(),Wc=it(),mB=ze(),gB=Ar(),yB=Vc().resizeText,D4=Uc(),d2e=D4.textfont,h2e=D4.insidetextfont,p2e=D4.outsidetextfont,qa=zh();function m2e(e){var r=Xc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");yB(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Xc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Xc.select(this),l=n[0].trace;bB(i,l,e)}),gB.getComponentMethod("errorbars","style")(r)}function bB(e,r,t){Wc.pointStyle(e.selectAll("path"),r,t),xB(e,r,t)}function xB(e,r,t){e.selectAll("text").each(function(a){var n=Xc.select(this),i=mB.ensureUniformFontSize(t,_B(n,a,r,t));Wc.font(n,i)})}function g2e(e,r,t){var a=r[0].trace;a.selectedpoints?y2e(t,a,e):(bB(t,a,e),gB.getComponentMethod("errorbars","style")(t))}function y2e(e,r,t){Wc.selectedPointStyle(e.selectAll("path"),r),b2e(e.selectAll("text"),r,t)}function b2e(e,r,t){e.each(function(a){var n=Xc.select(this),i;if(a.selected){i=mB.ensureUniformFontSize(t,_B(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Wc.font(n,i)}else Wc.selectedTextStyle(n,r)})}function _B(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=AB(r,t);i=MB(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=TB(t,r.i,n));return i}function wB(e,r,t){return L4(d2e,e.textfont,r,t)}function MB(e,r,t,a){var n=wB(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:v2e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),L4(h2e,e.insidetextfont,r,n)}function TB(e,r,t){var a=wB(e,r,t);return L4(p2e,e.outsidetextfont,r,a)}function L4(e,r,t,a){r=r||{};var n=qa.getValue(r.family,t),i=qa.getValue(r.size,t),l=qa.getValue(r.color,t),o=qa.getValue(r.weight,t),s=qa.getValue(r.style,t),u=qa.getValue(r.variant,t),f=qa.getValue(r.textcase,t),v=qa.getValue(r.lineposition,t),d=qa.getValue(r.shadow,t);return{family:qa.coerceString(e.family,n,a.family),size:qa.coerceNumber(e.size,i,a.size),color:qa.coerceColor(e.color,l,a.color),weight:qa.coerceString(e.weight,o,a.weight),style:qa.coerceString(e.style,s,a.style),variant:qa.coerceString(e.variant,u,a.variant),textcase:qa.coerceString(e.variant,f,a.textcase),lineposition:qa.coerceString(e.variant,v,a.lineposition),shadow:qa.coerceString(e.variant,d,a.shadow)}}function AB(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}kB.exports={style:m2e,styleTextPoints:xB,styleOnSelect:g2e,getInsideTextFont:MB,getOutsideTextFont:TB,getBarColor:AB,resizeText:yB}});var RB=W((f5e,zB)=>{"use strict";var Fh=Hr(),Nh=Vr(),_a=ze(),x2e=ba(),_2e=Fr(),yo=it(),w2e=Ar(),Ih=wt().tickText,CB=Vc(),M2e=CB.recordMinTextSize,T2e=CB.clearMinTextSize,q4=Rh(),xu=zh(),A2e=kc(),SB=Uc(),k2e=SB.text,C2e=SB.textposition,S2e=xi().appendArrayPointValue,ja=A2e.TEXTPAD;function D2e(e){return e.id}function L2e(e){if(e.ids)return D2e}function E4(e){return(e>0)-(e<0)}function Ri(e,r){return e0}function E2e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},T2e("bar",s));var f=_a.makeTraceGroups(a,t,"trace bars").each(function(v){var d=Fh.select(this),h=v[0].trace,m=v[0].t,y=h.type==="waterfall",g=h.type==="funnel",x=h.type==="histogram",w=h.type==="bar",T=w||g,b=0;y&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var M=h.orientation==="h",S=LB(n),A=_a.ensureSingle(d,"g","points"),L=L2e(h),q=A.selectAll("g.point").data(_a.identity,L);q.enter().append("g").classed("point",!0),q.exit().remove(),q.each(function(R,N){var B=Fh.select(this),I=q2e(R,l,o,M),H=I[0][0],Y=I[0][1],G=I[1][0],O=I[1][1],X=(M?Y-H:O-G)===0;X&&T&&xu.getLineWidth(h,R)&&(X=!1),X||(X=!Nh(H)||!Nh(Y)||!Nh(G)||!Nh(O)),R.isBlank=X,X&&(M?Y=H:O=G),b&&!X&&(M?(H-=Ri(H,Y)*b,Y+=Ri(H,Y)*b):(G-=Ri(G,O)*b,O+=Ri(G,O)*b));var J,Z;if(h.type==="waterfall"){if(!X){var ee=h[R.dir].marker;J=ee.line.width,Z=ee.color}}else J=xu.getLineWidth(h,R),Z=R.mc||h.marker.color;function ne(re){var he=Fh.round(J/2%1,2);return n.gap===0&&n.groupgap===0?Fh.round(Math.round(re)-he,2):re}function fe(re,he,Ve){return Ve&&re===he?re:Math.abs(re-he)>=2?ne(re):re>he?Math.ceil(re):Math.floor(re)}var we=_2e.opacity(Z),j=we<1||J>.01?ne:fe;e._context.staticPlot||(H=j(H,Y,M),Y=j(Y,H,M),G=j(G,O,!M),O=j(O,G,!M));var _e=M?l.c2p:o.c2p,ue;R.s0>0?ue=R._sMax:R.s0<0?ue=R._sMin:ue=R.s1>0?R._sMax:R._sMin;function Me(re,he){if(!re)return 0;var Ve=Math.abs(M?O-G:Y-H),dr=Math.abs(M?Y-H:O-G),Le=j(Math.abs(_e(ue,!0)-_e(0,!0))),de=R.hasB?Math.min(Ve/2,dr/2):Math.min(Ve/2,Le),xe;if(he==="%"){var He=Math.min(50,re);xe=Ve*(He/100)}else xe=re;return j(Math.max(Math.min(xe,de),0))}var ye=w||x?Me(m.cornerradiusvalue,m.cornerradiusform):0,ce,Te,Re="M"+H+","+G+"V"+O+"H"+Y+"V"+G+"Z",be=0;if(ye&&R.s){var qe=E4(R.s0)===0||E4(R.s)===E4(R.s0)?R.s1:R.s0;if(be=j(R.hasB?0:Math.abs(_e(ue,!0)-_e(qe,!0))),be0?Math.sqrt(be*(2*ye-be)):0,Xe=Ce>0?Math.max:Math.min;ce="M"+H+","+G+"V"+(O-Ue*De)+"H"+Xe(Y-(ye-be)*Ce,H)+"A "+ye+","+ye+" 0 0 "+Ee+" "+Y+","+(O-ye*De-ke)+"V"+(G+ye*De+ke)+"A "+ye+","+ye+" 0 0 "+Ee+" "+Xe(Y-(ye-be)*Ce,H)+","+(G+Ue*De)+"Z"}else if(R.hasB)ce="M"+(H+ye*Ce)+","+G+"A "+ye+","+ye+" 0 0 "+Ee+" "+H+","+(G+ye*De)+"V"+(O-ye*De)+"A "+ye+","+ye+" 0 0 "+Ee+" "+(H+ye*Ce)+","+O+"H"+(Y-ye*Ce)+"A "+ye+","+ye+" 0 0 "+Ee+" "+Y+","+(O-ye*De)+"V"+(G+ye*De)+"A "+ye+","+ye+" 0 0 "+Ee+" "+(Y-ye*Ce)+","+G+"Z";else{Te=Math.abs(O-G)+be;var Ke=Te0?Math.sqrt(be*(2*ye-be)):0,Ae=De>0?Math.max:Math.min;ce="M"+(H+Ke*Ce)+","+G+"V"+Ae(O-(ye-be)*De,G)+"A "+ye+","+ye+" 0 0 "+Ee+" "+(H+ye*Ce-We)+","+O+"H"+(Y-ye*Ce+We)+"A "+ye+","+ye+" 0 0 "+Ee+" "+(Y-Ke*Ce)+","+Ae(O-(ye-be)*De,G)+"V"+G+"Z"}}else ce=Re}else ce=Re;var Pe=DB(_a.ensureSingle(B,"path"),s,n,i);if(Pe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-H)*(O-G))||X&&e._context.staticPlot?"M0,0Z":ce).call(yo.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&S){var je=yo.makePointStyleFns(h);yo.singlePointStyle(R,Pe,h,je,e)}P2e(e,r,B,v,N,H,Y,G,O,ye,be,n,i),r.layerClipId&&yo.hideOutsideRangePoint(R,B.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;yo.setClipUrl(d,P?null:r.layerClipId,e)});w2e.getComponentMethod("errorbars","plot")(e,f,r,n)}function P2e(e,r,t,a,n,i,l,o,s,u,f,v,d){var h=r.xaxis,m=r.yaxis,y=e._fullLayout,g;function x(Re,be,qe){var Ce=_a.ensureSingle(Re,"text").text(be).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(yo.font,qe).call(x2e.convertToTspans,e);return Ce}var w=a[0].trace,T=w.orientation==="h",b=I2e(a,T,h,m),M=F2e(y,a,n,h,m);g=N2e(w,n);var S=v.mode==="stack"||v.mode==="relative",A=a[n],L=!S||A._outmost,q=A.hasB,P=u&&u-f>ja;if(!M||g==="none"||(A.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var R=y.font,N=q4.getBarColor(a[n],w),B=q4.getInsideTextFont(w,n,R,N),I=q4.getOutsideTextFont(w,n,R),H=w.insidetextanchor||"end",Y=t.datum();T?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&fe>0,_e;P?q?_e=zs(X-2*u,J,ne,fe,T)||zs(X,J-2*u,ne,fe,T):T?_e=zs(X-(u-f),J,ne,fe,T)||zs(X,J-2*(u-f),ne,fe,T):_e=zs(X,J-(u-f),ne,fe,T)||zs(X-2*(u-f),J,ne,fe,T):_e=zs(X,J,ne,fe,T),j&&_e?g="inside":(g="outside",Z.remove(),Z=null)}else g="inside";if(!Z){we=_a.ensureUniformFontSize(e,g==="outside"?I:B),Z=x(t,M,we);var ue=Z.attr("transform");if(Z.attr("transform",""),ee=yo.bBox(Z.node()),ne=ee.width,fe=ee.height,Z.attr("transform",ue),ne<=0||fe<=0){Z.remove();return}}var Me=w.textangle,ye,ce;g==="outside"?(ce=w.constraintext==="both"||w.constraintext==="outside",ye=R2e(i,l,o,s,ee,{isHorizontal:T,constrained:ce,angle:Me,zeroBarDir:b})):(ce=w.constraintext==="both"||w.constraintext==="inside",ye=PB(i,l,o,s,ee,{isHorizontal:T,constrained:ce,angle:Me,anchor:H,hasB:q,r:u,overhead:f})),ye.fontSize=we.size,M2e(w.type==="histogram"?"bar":w.type,ye,y),A.transform=ye;var Te=DB(Z,y,v,d);_a.setTransormAndDisplay(Te,ye)}function zs(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function qB(e){return e==="auto"?0:e}function EB(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function PB(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",d=i.leftToRight||0,h=(d+1)/2,m=1-h,y=i.hasB,g=i.r,x=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),M=Math.abs(a-t),S=b>2*ja&&M>2*ja?ja:0;b-=2*S,M-=2*S;var A=qB(s);s==="auto"&&!(w<=b&&T<=M)&&(w>b||T>M)&&(!(w>M||T>b)||wja){var R=z2e(e,r,t,a,L,g,x,l,y);q=R.scale,P=R.pad}else q=1,o&&(q=Math.min(1,b/L.x,M/L.y)),P=0;var N=n.left*m+n.right*h,B=(n.top+n.bottom)/2,I=(e+ja)*m+(r-ja)*h,H=(t+a)/2,Y=0,G=0;if(v||f){var O=(l?L.x:L.y)/2;g&&(f||y)&&(S+=P);var X=l?Ri(e,r):Ri(t,a);l?v?(I=e+X*S,Y=-X*O):(I=r-X*S,Y=X*O):v?(H=t+X*S,G=-X*O):(H=a-X*S,G=X*O)}return{textX:N,textY:B,targetX:I,targetY:H,anchorX:Y,anchorY:G,scale:q,rotate:A}}function z2e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*ja),f=Math.max(0,Math.abs(a-t)-2*ja),v=i-ja,d=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,h=s?v*2:o?v-l:2*d,m=s?v*2:o?2*d:v-l,y,g,x,w,T;return n.y/n.x>=f/(u-h)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,g=-2*n.x*(u-v)-n.y*(f/2-v),x=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*x))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,g=-n.x*(u/2-v)-n.y*(f/2-v),x=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*x))/(2*y)):(y=n.x*n.x/4+n.y*n.y,g=-n.x*(u/2-v)-2*n.y*(f-v),x=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-g+Math.sqrt(g*g-4*y*x))/(2*y)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function R2e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),d=Math.abs(a-t),h;l?h=d>2*ja?ja:0:h=v>2*ja?ja:0;var m=1;o&&(m=l?Math.min(1,d/f):Math.min(1,v/u));var y=qB(s),g=EB(n,y),x=(l?g.x:g.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,S=0,A=0,L;return(l?e===r:t===a)&&i.zeroBarDir?L=i.zeroBarDir:L=l?Ri(r,e):Ri(t,a),l?(b=r-L*h,S=L*x):(M=a+L*h,A=-L*x),{textX:w,textY:T,targetX:b,targetY:M,anchorX:S,anchorY:A,scale:m,rotate:y}}function F2e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=B2e(e,r,t,a,n):i.textinfo?o=H2e(r,t,a,n):o=xu.getValue(i.text,t),xu.coerceString(k2e,o)}function N2e(e,r){var t=xu.getValue(e.textposition,r);return xu.coerceEnumerated(C2e,t)}function I2e(e,r,t,a){for(var n=!1,i=!1,l=0;l0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Ri(s.range[0],s.range[1]);return i?n?0:-u:u}function B2e(e,r,t,a,n){var i=r[0].trace,l=_a.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,d,h,m;f?(v="y",d=n,h="x",m=a):(v="x",d=a,h="y",m=n);function y(S){return Ih(d,d.c2l(S),!0).text}function g(S){return Ih(m,m.c2l(S),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[v+"Label"]=y(x.p);var T=_a.castOption(i,x.i,"text");(T===0||T)&&(w.text=T),w.value=x.s,w.valueLabel=w[h+"Label"]=g(x.s);var b={};S2e(b,i,x.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=g(w.delta),w.final=x.v,w.finalLabel=g(w.final),w.initial=w.final-w.delta,w.initialLabel=g(w.initial)),u&&(w.value=x.s,w.valueLabel=g(w.value),w.percentInitial=x.begR,w.percentInitialLabel=_a.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=_a.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=_a.formatPercent(x.sumR));var M=_a.castOption(i,x.i,"customdata");return M&&(w.customdata=M),_a.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function H2e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var S=i?a:t;return Ih(S,M,!0).text}function u(M){var S=i?t:a;return Ih(S,+M,!0).text}var f=n.textinfo,v=e[r],d=f.split("+"),h=[],m,y=function(M){return d.indexOf(M)!==-1};if(y("label")&&h.push(s(e[r].p)),y("text")&&(m=_a.castOption(n,v.i,"text"),(m===0||m)&&h.push(m)),l){var g=+v.rawS||v.s,x=v.v,w=x-g;y("initial")&&h.push(u(w)),y("delta")&&h.push(u(g)),y("final")&&h.push(u(x))}if(o){y("value")&&h.push(u(v.s));var T=0;y("percent initial")&&T++,y("percent previous")&&T++,y("percent total")&&T++;var b=T>1;y("percent initial")&&(m=_a.formatPercent(v.begR),b&&(m+=" of initial"),h.push(m)),y("percent previous")&&(m=_a.formatPercent(v.difR),b&&(m+=" of previous"),h.push(m)),y("percent total")&&(m=_a.formatPercent(v.sumR),b&&(m+=" of total"),h.push(m))}return h.join("
")}zB.exports={plot:E2e,toMoveInsideBar:PB}});var HB=W((c5e,BB)=>{"use strict";var Zc=Mi(),O2e=Ar(),FB=Fr(),Y2e=ze().fillText,U2e=zh().getLineWidth,P4=wt().hoverLabelText,G2e=aa().BADNUM;function V2e(e,r,t,a,n){var i=NB(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=IB(o,s),O2e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function NB(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,d,h,m,y,g,x,w;l.orientation==="h"?(d=t,h=r,m="y",y="x",g=H,x=N):(d=r,h=t,m="x",y="y",x=H,g=N);var T=l[m+"period"],b=s||T;function M(j){return A(j,-1)}function S(j){return A(j,1)}function A(j,_e){var ue=j.w;return j[m]+_e*ue/2}function L(j){return j[m+"End"]-j[m+"Start"]}var q=s?M:T?function(j){return j.p-L(j)/2}:function(j){return Math.min(M(j),j.p-o.bardelta/2)},P=s?S:T?function(j){return j.p+L(j)/2}:function(j){return Math.max(S(j),j.p+o.bardelta/2)};function R(j,_e,ue){return n.finiteRange&&(ue=0),Zc.inbox(j-d,_e-d,ue+Math.min(1,Math.abs(_e-j)/w)-1)}function N(j){return R(q(j),P(j),f)}function B(j){return R(M(j),S(j),v)}function I(j){var _e=j[y];if(u){var ue=Math.abs(j.rawS)||0;h>0?_e+=ue:h<0&&(_e-=ue)}return _e}function H(j){var _e=h,ue=j.b,Me=I(j);return Zc.inbox(ue-_e,Me-_e,f+(Me-_e)/(Me-ue)-1)}function Y(j){var _e=h,ue=j.b,Me=I(j);return Zc.inbox(ue-_e,Me-_e,v+(Me-_e)/(Me-ue)-1)}var G=e[m+"a"],O=e[y+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function X(j){return(g(j)+x(j))/2}var J=Zc.getDistanceFunction(a,g,x,X);if(Zc.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==G2e){b||(q=function(j){return Math.min(M(j),j.p-o.bargroupwidth/2)},P=function(j){return Math.max(S(j),j.p+o.bargroupwidth/2)});var Z=e.index,ee=i[Z],ne=l.base?ee.b+ee.s:ee.s;e[y+"0"]=e[y+"1"]=O.c2p(ee[y],!0),e[y+"LabelVal"]=ne;var fe=o.extents[o.extents.round(ee.p)];e[m+"0"]=G.c2p(s?q(ee):fe[0],!0),e[m+"1"]=G.c2p(s?P(ee):fe[1],!0);var we=ee.orig_p!==void 0;return e[m+"LabelVal"]=we?ee.orig_p:ee.p,e.labelLabel=P4(G,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=P4(O,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=P4(O,ee.b,l[y+"hoverformat"]),e.spikeDistance=(Y(ee)+B(ee))/2,e[m+"Spike"]=G.c2p(ee.p,!0),Y2e(ee,l,e),e.hovertemplate=l.hovertemplate,e}}function IB(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=U2e(e,r);if(FB.opacity(t))return t;if(FB.opacity(a)&&n)return a}BB.exports={hoverPoints:V2e,hoverOnBars:NB,getTraceColor:IB}});var YB=W((v5e,OB)=>{"use strict";OB.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var GB=W((d5e,UB)=>{"use strict";UB.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";VB.exports={attributes:Uc(),layoutAttributes:C4(),supplyDefaults:Gc().supplyDefaults,crossTraceDefaults:Gc().crossTraceDefaults,supplyLayoutDefaults:iB(),calc:vB(),crossTraceCalc:yb().crossTraceCalc,colorbar:_b(),arraysToCalcdata:S4(),plot:RB().plot,style:Rh().style,styleOnSelect:Rh().styleOnSelect,hoverPoints:HB().hoverPoints,eventData:YB(),selectPoints:GB(),moduleType:"trace",name:"bar",basePlotModule:lh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var ZB=W((p5e,WB)=>{"use strict";WB.exports=XB()});var z4=W((m5e,$B)=>{"use strict";var Bh=vi(),W2e=Ch().attributes,Z2e=Ca(),J2e=Oi(),{hovertemplateAttrs:$2e,texttemplateAttrs:K2e,templatefallbackAttrs:JB}=Uo(),bo=na().extendFlat,j2e=Ui().pattern,Hh=Z2e({editType:"plot",arrayOk:!0,colorEditType:"plot"});$B.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:J2e.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:j2e,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:bo({},Bh.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:$2e({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:JB(),texttemplate:K2e({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:JB({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:bo({},Hh,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:bo({},Hh,{}),outsidetextfont:bo({},Hh,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:bo({},Bh.showlegend,{arrayOk:!0}),legend:bo({},Bh.legend,{arrayOk:!0}),legendrank:bo({},Bh.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:bo({},Hh,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:W2e({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var eH=W((g5e,QB)=>{"use strict";var Q2e=Vr(),Jc=ze(),e1e=z4(),r1e=Ch().defaults,t1e=Gc().handleText,a1e=ze().coercePattern;function KB(e,r){var t=Jc.isArrayOrTypedArray(e),a=Jc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function jB(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");a1e(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function n1e(e,r,t,a){function n(w,T){return Jc.coerce(e,r,e1e,w,T)}var i=n("labels"),l=n("values"),o=KB(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,jB(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var v;if(f||(v=n("textinfo",Jc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||v&&v!=="none"){var d=n("textposition");t1e(e,r,a,n,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(d)||d==="auto",m=h||d==="outside";m&&n("automargin"),(d==="inside"||d==="auto"||Array.isArray(d))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");r1e(r,a,n);var y=n("hole"),g=n("title.text");if(g){var x=n("title.position",y?"middle center":"top center");!y&&x==="middle center"&&(r.title.position="top center"),Jc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}QB.exports={handleLabelsAndValues:KB,handleMarkerDefaults:jB,supplyDefaults:n1e}});var R4=W((y5e,rH)=>{"use strict";rH.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var aH=W((b5e,tH)=>{"use strict";var i1e=ze(),l1e=R4();tH.exports=function(r,t){function a(n,i){return i1e.coerce(r,t,l1e,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var F4=W((x5e,lH)=>{"use strict";var o1e=Vr(),_u=Fr(),s1e={};function u1e(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(M,S){return S.v-M.v}),t[0]&&(t[0].vTotal=m),t}function nH(e){return function(t,a){if(!t||!_u.isValid(t))return!1;let n=_u.rgbaString(t);return e[a]||(e[a]=n),n}}function f1e(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=iH(i,s1e));for(var o=0,s=0;s{"use strict";var c1e=xi().appendArrayMultiPointValues;oH.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),c1e(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var LH=W((w5e,DH)=>{"use strict";var bn=Hr(),v1e=$t(),Oh=Mi(),hH=Fr(),Cl=it(),Ea=ze(),d1e=Ea.strScale,uH=Ea.strTranslate,N4=ba(),pH=Vc(),h1e=pH.recordMinTextSize,p1e=pH.clearMinTextSize,mH=kc().TEXTPAD,Sr=k1(),Yh=sH(),fH=ze().isValidTextValue;function m1e(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;p1e("pie",a),bH(r,e),kH(r,n);var i=Ea.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=bn.select(this),s=l[0],u=s.trace;A1e(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=bn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],d=!1;f.each(function(b,M){if(b.hidden){bn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var S=s.cx,A=s.cy,L=bn.select(this),q=L.selectAll("path.surface").data([b]);if(q.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),L.call(gH,e,l),u.pull){var P=+Sr.castOption(u.pull,b.pts)||0;P>0&&(S+=P*b.pxmid[0],A+=P*b.pxmid[1])}b.cxFinal=S,b.cyFinal=A;function R(O,X,J,Z){var ee=Z*(X[0]-O[0]),ne=Z*(X[1]-O[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(J?" 1 ":" 0 ")+ee+","+ne}var N=u.hole;if(b.v===s.vTotal){var B="M"+(S+b.px0[0])+","+(A+b.px0[1])+R(b.px0,b.pxmid,!0,1)+R(b.pxmid,b.px0,!0,1)+"Z";N?q.attr("d","M"+(S+N*b.px0[0])+","+(A+N*b.px0[1])+R(b.px0,b.pxmid,!1,N)+R(b.pxmid,b.px0,!1,N)+"Z"+B):q.attr("d",B)}else{var I=R(b.px0,b.px1,!0,1);if(N){var H=1-N;q.attr("d","M"+(S+N*b.px1[0])+","+(A+N*b.px1[1])+R(b.px1,b.px0,!1,N)+"l"+H*b.px0[0]+","+H*b.px0[1]+I+"Z")}else q.attr("d","M"+S+","+A+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}CH(e,b,s);var Y=Sr.castOption(u.textposition,b.pts),G=L.selectAll("g.slicetext").data(b.text&&Y!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var O=Ea.ensureSingle(bn.select(this),"text","",function(j){j.attr("data-notex",1)}),X=Ea.ensureUniformFontSize(e,Y==="outside"?y1e(u,b,a.font):yH(u,b,a.font));O.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Cl.font,X).call(N4.convertToTspans,e);var J=Cl.bBox(O.node()),Z;if(Y==="outside")Z=dH(J,b);else if(Z=xH(J,b,s),Y==="auto"&&Z.scale<1){var ee=Ea.ensureUniformFontSize(e,u.outsidetextfont);O.call(Cl.font,ee),J=Cl.bBox(O.node()),Z=dH(J,b)}var ne=Z.textPosAngle,fe=ne===void 0?b.pxmid:Uh(s.r,ne);if(Z.targetX=S+fe[0]*Z.rCenter+(Z.x||0),Z.targetY=A+fe[1]*Z.rCenter+(Z.y||0),SH(Z,J),Z.outside){var we=Z.targetY;b.yLabelMin=we-J.height/2,b.yLabelMid=we,b.yLabelMax=we+J.height/2,b.labelExtraX=0,b.labelExtraY=0,d=!0}Z.fontSize=X.size,h1e(u.type,Z,a),l[M].transform=Z,Ea.setTransormAndDisplay(O,Z)})});var h=bn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var b=Ea.ensureSingle(bn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Ea.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Cl.font,u.title.font).call(N4.convertToTspans,e);var S;u.title.position==="middle center"?S=_1e(s):S=TH(s,n),b.attr("transform",uH(S.x,S.y)+d1e(Math.min(1,S.scale))+uH(S.tx,S.ty))}),d&&M1e(v,u),g1e(f,u),d&&u.automargin){var m=Cl.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),x=n.h*(y.y[1]-y.y[0]),w=(.5*g-s.r)/n.w,T=(.5*x-s.r)/n.h;v1e.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-w,xr:y.x[1]+w,yb:y.y[0]-T,yt:y.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=bn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function g1e(e,r){e.each(function(t){var a=bn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ea.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ea.ensureSingle(a,"path","textline").call(hH.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function gH(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=Oh.castHoverinfo({hoverinfo:[Sr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var d=s.rInscribed||0,h=n+s.pxmid[0]*(1-d),m=i+s.pxmid[1]*(1-d),y=u.separators,g=[];if(v&&v.indexOf("label")!==-1&&g.push(s.label),s.text=Sr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var x=s.text;Ea.isValidTextValue(x)&&g.push(x)}s.value=s.v,s.valueLabel=Sr.formatPieValue(s.v,y),v&&v.indexOf("value")!==-1&&g.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Sr.formatPiePercent(s.percent,y),v&&v.indexOf("percent")!==-1&&g.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];Oh.loneHover({trace:l,x0:h-d*a.r,x1:h+d*a.r,y:m,_x0:o?n+s.TL[0]:h-d*a.r,_x1:o?n+s.TR[0]:h+d*a.r,_y0:o?i+s.TL[1]:m-d*a.r,_y1:o?i+s.BL[1]:m+d*a.r,text:g.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Sr.castOption(w.bgcolor,s.pts)||s.color,borderColor:Sr.castOption(w.bordercolor,s.pts),fontFamily:Sr.castOption(T.family,s.pts),fontSize:Sr.castOption(T.size,s.pts),fontColor:Sr.castOption(T.color,s.pts),nameLength:Sr.castOption(w.namelength,s.pts),textAlign:Sr.castOption(w.align,s.pts),hovertemplate:Sr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[Yh(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[Yh(s,f)],event:bn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=bn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=bn.event,r.emit("plotly_unhover",{points:[Yh(v,f)],event:bn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(Oh.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[Yh(s,f)],Oh.click(r,bn.event))})}function y1e(e,r,t){var a=Sr.castOption(e.outsidetextfont.color,r.pts)||Sr.castOption(e.textfont.color,r.pts)||t.color,n=Sr.castOption(e.outsidetextfont.family,r.pts)||Sr.castOption(e.textfont.family,r.pts)||t.family,i=Sr.castOption(e.outsidetextfont.size,r.pts)||Sr.castOption(e.textfont.size,r.pts)||t.size,l=Sr.castOption(e.outsidetextfont.weight,r.pts)||Sr.castOption(e.textfont.weight,r.pts)||t.weight,o=Sr.castOption(e.outsidetextfont.style,r.pts)||Sr.castOption(e.textfont.style,r.pts)||t.style,s=Sr.castOption(e.outsidetextfont.variant,r.pts)||Sr.castOption(e.textfont.variant,r.pts)||t.variant,u=Sr.castOption(e.outsidetextfont.textcase,r.pts)||Sr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Sr.castOption(e.outsidetextfont.lineposition,r.pts)||Sr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=Sr.castOption(e.outsidetextfont.shadow,r.pts)||Sr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function yH(e,r,t){var a=Sr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Sr.castOption(e._input.textfont.color,r.pts));var n=Sr.castOption(e.insidetextfont.family,r.pts)||Sr.castOption(e.textfont.family,r.pts)||t.family,i=Sr.castOption(e.insidetextfont.size,r.pts)||Sr.castOption(e.textfont.size,r.pts)||t.size,l=Sr.castOption(e.insidetextfont.weight,r.pts)||Sr.castOption(e.textfont.weight,r.pts)||t.weight,o=Sr.castOption(e.insidetextfont.style,r.pts)||Sr.castOption(e.textfont.style,r.pts)||t.style,s=Sr.castOption(e.insidetextfont.variant,r.pts)||Sr.castOption(e.textfont.variant,r.pts)||t.variant,u=Sr.castOption(e.insidetextfont.textcase,r.pts)||Sr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Sr.castOption(e.insidetextfont.lineposition,r.pts)||Sr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=Sr.castOption(e.insidetextfont.shadow,r.pts)||Sr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||hH.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function bH(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(v||h){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/T,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||h)&&(g=cH(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||d)&&(g=vH(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g));for(var b=0,M=0,S=0;S=1)break}return y[b]}function b1e(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function _1e(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function TH(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=AH(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=w1e(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=I4(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function w1e(e,r){return e/(r===void 0?1:r)}function I4(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function AH(e){var r=e.pull;if(!r)return 0;var t;if(Ea.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function M1e(e,r){var t,a,n,i,l,o,s,u,f,v,d,h,m;function y(T,b){return T.pxmid[1]-b.pxmid[1]}function g(T,b){return b.pxmid[1]-T.pxmid[1]}function x(T,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),S=a?T.yLabelMin:T.yLabelMax,A=a?T.yLabelMax:T.yLabelMin,L=T.cyFinal+l(T.px0[1],T.px1[1]),q=M-S,P,R,N,B,I,H;if(q*s>0&&(T.labelExtraY=q),!!Ea.isArrayOrTypedArray(r.pull))for(R=0;R=(Sr.castOption(r.pull,N.pts)||0))&&((T.pxmid[1]-N.pxmid[1])*s>0?(B=N.cyFinal+l(N.px0[1],N.px1[1]),q=B-S-T.labelExtraY,q*s>0&&(T.labelExtraY+=q)):(A+T.labelExtraY-L)*s>0&&(P=3*o*Math.abs(R-v.indexOf(T)),I=N.cxFinal+i(N.px0[0],N.px1[0]),H=I+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,H*o>0&&(T.labelExtraX+=H)))}for(a=0;a<2;a++)for(n=a?y:g,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),h=[],d=0;d1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=x1e(u,r))}function Uh(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function CH(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),d=s("percent"),h=a.separators,m;if(m=u?[r.label]:[],f){var y=Sr.getFirstFilled(n.text,r.pts);fH(y)&&m.push(y)}v&&m.push(Sr.formatPieValue(r.v,h)),d&&m.push(Sr.formatPiePercent(r.v/t.vTotal,h)),r.text=m.join("
")}function g(b){return{label:b.label,value:b.v,valueLabel:Sr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Sr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Ea.castOption(n,b.i,"customdata")}}if(i){var x=Ea.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=g(r),T=Sr.getFirstFilled(n.text,r.pts);(fH(T)||T==="")&&(w.text=T),r.text=Ea.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:x})}}}function SH(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}DH.exports={plot:m1e,formatSliceLabel:CH,transformInsideText:xH,determineInsideTextFont:yH,positionTitleOutside:TH,prerenderTitles:bH,layoutAreas:kH,attachFxHandlers:gH,computeTransform:SH}});var PH=W((M5e,EH)=>{"use strict";var qH=Hr(),k1e=C1(),C1e=Vc().resizeText;EH.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");C1e(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=qH.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){qH.select(this).call(k1e,o,i,r)})})}});var RH=W(wu=>{"use strict";var zH=$t();wu.name="pie";wu.plot=function(e,r,t,a){zH.plotBasePlot(wu.name,e,r,t,a)};wu.clean=function(e,r,t,a){zH.cleanBasePlot(wu.name,e,r,t,a)}});var NH=W((A5e,FH)=>{"use strict";FH.exports={attributes:z4(),supplyDefaults:eH().supplyDefaults,supplyLayoutDefaults:aH(),layoutAttributes:R4(),calc:F4().calc,crossTraceCalc:F4().crossTraceCalc,plot:LH().plot,style:PH(),styleOne:C1(),moduleType:"trace",name:"pie",basePlotModule:RH(),categories:["pie-like","pie","showLegend"],meta:{}}});var BH=W((k5e,IH)=>{"use strict";IH.exports=NH()});var Ia=W((C5e,OH)=>{"use strict";var HH=Object.getOwnPropertySymbols,S1e=Object.prototype.hasOwnProperty,D1e=Object.prototype.propertyIsEnumerable;function L1e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function q1e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}OH.exports=q1e()?Object.assign:function(e,r){for(var t,a=L1e(e),n,i=1;i{var Vh=Ia();function YH(){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={}}Vh(YH.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function B4(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Br.local.invalidDate||Br.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Gh(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Vh(B4.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Br.local.invalidDate||Br.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Br.local.differentCalendars||Br.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Gh(Math.abs(this.year()),4)+"-"+Gh(this.month(),2)+"-"+Gh(this.day(),2)}});function H4(){this.shortYearCutoff="+10"}Vh(H4.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Br.local.invalidDate||Br.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new B4(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Br.local.invalidYear||Br.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Br.local.invalidYear||Br.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Gh(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Br.local.invalidYear||Br.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Br.local.invalidMonth||Br.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Br.local.invalidMonth||Br.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Br.local.invalidYear||Br.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Br.local.invalidDate||Br.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Br.local.invalidDate||Br.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Br.local.invalidDate||Br.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Br.local.invalidDate||Br.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Br.local.invalidDate||Br.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Br.local.invalidDate||Br.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Br=UH.exports=new YH;Br.cdate=B4;Br.baseCalendar=H4;Br.calendars.gregorian=O4});var GH=W(()=>{var Y4=Ia(),wa=Ba();Y4(wa.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"});wa.local=wa.regionalOptions[""];Y4(wa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});Y4(wa.baseCalendar.prototype,{UNIX_EPOCH:wa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:wa.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw wa.local.invalidFormat||wa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var S=1;T+S1},f=function(b,M,S,A){var L=""+M;if(u(b,A))for(;L.length1},w=function(N,B){var I=x(N,B),H=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],Y=new RegExp("^-?\\d{1,"+H+"}"),G=r.substring(L).match(Y);if(!G)throw(wa.local.missingNumberAt||wa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,L);return L+=G[0].length,parseInt(G[0],10)},T=this,b=function(){if(typeof o=="function"){x("m");var N=o.call(T,r.substring(L));return L+=N.length,N}return w("m")},M=function(N,B,I,H){for(var Y=x(N,H)?I:B,G=0;G-1){d=1,h=m;for(var R=this.daysInMonth(v,d);h>R;R=this.daysInMonth(v,d))d++,h-=R}return f>-1?this.fromJD(f):this.newDate(v,d,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var VH=W(()=>{var xo=Ba(),E1e=Ia(),U4=xo.instance();function Xh(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Xh.prototype=new xo.baseCalendar;E1e(Xh.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(z1e);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(R1e);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(F1e);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw xo.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw xo.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,xo.local.invalidyear),n=wo[a-wo[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=U4.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=_o[e-_o[0]],a=t>>13,n=a?12:11;if(r>n)throw xo.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,xo.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=I1e(e,i,t,n);return U4.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=U4.fromJD(e),t=N1e(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(P1e),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Xh.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var P1e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,z1e=/^\d?\d[iI]?/m,R1e=/^闰?十?[一二三四五六七八九]?月/m,F1e=/^闰?十?[一二三四五六七八九]?/m;xo.calendars.chinese=Xh;var _o=[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],wo=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function N1e(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=wo[n.year-wo[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=wo[i.year-wo[0]];var v=u>>9&4095,d=u>>5&15,h=u&31,m,y=new Date(v,d-1,h),g=new Date(n.year,n.month-1,n.day);m=Math.round((g-y)/(24*3600*1e3));var x=_o[i.year-_o[0]],w;for(w=0;w<13;w++){var T=x&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var d=_o[l.year-_o[0]],h=d>>13,m;h&&(l.month>h||l.isIntercalary)?m=l.month:m=l.month-1;for(var y=0;y>9&4095,T=x>>5&15,b=x&31,M=new Date(w,T-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var XH=W(()=>{var Rs=Ba(),B1e=Ia();function G4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G4.prototype=new Rs.baseCalendar;B1e(G4.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Rs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rs.local.invalidYear||Rs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Rs.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Rs.calendars.coptic=G4});var WH=W(()=>{var Sl=Ba(),H1e=Ia();function V4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V4.prototype=new Sl.baseCalendar;H1e(V4.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Sl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return{century:O1e[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var O1e={20:"Fruitbat",21:"Anchovy"};Sl.calendars.discworld=V4});var ZH=W(()=>{var Fs=Ba(),Y1e=Ia();function X4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X4.prototype=new Fs.baseCalendar;Y1e(X4.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Fs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear||Fs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Fs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Fs.calendars.ethiopian=X4});var JH=W(()=>{var Mo=Ba(),U1e=Ia();function W4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W4.prototype=new Mo.baseCalendar;U1e(W4.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Wh(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Mo.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Wh(this.daysInYear(e),10)===5?30:r===9&&Wh(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Wh(e,r){return e-r*Math.floor(e/r)}Mo.calendars.hebrew=W4});var $H=W(()=>{var $c=Ba(),G1e=Ia();function Z4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z4.prototype=new $c.baseCalendar;G1e(Z4.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,$c.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$c.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,$c.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});$c.calendars.islamic=Z4});var KH=W(()=>{var Kc=Ba(),V1e=Ia();function J4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J4.prototype=new Kc.baseCalendar;V1e(J4.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Kc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Kc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Kc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Kc.calendars.julian=J4});var QH=W(()=>{var si=Ba(),X1e=Ia();function K4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K4.prototype=new si.baseCalendar;X1e(K4.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,si.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,si.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,si.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=$4(e+8+340,365);return[Math.floor(r/20)+1,$4(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[jH(e+20,20),jH(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function $4(e,r){return e-r*Math.floor(e/r)}function jH(e,r){return $4(e-1,r)+1}si.calendars.mayan=K4});var rO=W(()=>{var Ns=Ba(),W1e=Ia();function j4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j4.prototype=new Ns.baseCalendar;var eO=Ns.instance("gregorian");W1e(j4.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ns.local.invalidYear||Ns.regionalOptions[""].invalidYear);return eO.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ns.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ns.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ns.calendars.nanakshahi=j4});var tO=W(()=>{var Is=Ba(),Z1e=Ia();function Q4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q4.prototype=new Is.baseCalendar;Z1e(Q4.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Is.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Is.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Is.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Is.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Is.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Mu=Ba(),J1e=Ia();function Jh(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Zh(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Jh.prototype=new Mu.baseCalendar;J1e(Jh.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mu.local.invalidYear);return Zh(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Mu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Zh(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Mu.calendars.persian=Jh;Mu.calendars.jalali=Jh});var nO=W(()=>{var Bs=Ba(),$1e=Ia(),$h=Bs.instance();function e6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e6.prototype=new Bs.baseCalendar;$1e(e6.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bs.local.invalidYear),t=this._t2gYear(r.year());return $h.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Bs.local.invalidYear),n=this._t2gYear(a.year());return $h.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Bs.local.invalidDate),n=this._t2gYear(a.year());return $h.toJD(n,a.month(),a.day())},fromJD:function(e){var r=$h.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Bs.calendars.taiwan=e6});var iO=W(()=>{var Hs=Ba(),K1e=Ia(),Kh=Hs.instance();function r6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r6.prototype=new Hs.baseCalendar;K1e(r6.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Hs.local.invalidYear),t=this._t2gYear(r.year());return Kh.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hs.local.invalidYear),n=this._t2gYear(a.year());return Kh.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Hs.local.invalidDate),n=this._t2gYear(a.year());return Kh.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Kh.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Hs.calendars.thai=r6});var lO=W(()=>{var Os=Ba(),j1e=Ia();function t6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t6.prototype=new Os.baseCalendar;j1e(t6.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Os.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Os.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return To[n]-To[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Os.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+To[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-To[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Os.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Os.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Os.calendars.ummalqura=t6;var To=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var sO=W((ibe,oO)=>{"use strict";oO.exports=Ba();GH();VH();XH();WH();ZH();JH();$H();KH();QH();rO();tO();aO();nO();iO();lO()});var pO=W((lbe,hO)=>{"use strict";var fO=sO(),jc=ze(),cO=aa(),Q1e=cO.EPOCHJD,ede=cO.ONEDAY,i6={valType:"enumerated",values:jc.sortObjectKeys(fO.calendars),editType:"calc",dflt:"gregorian"},vO=function(e,r,t,a){var n={};return n[t]=i6,jc.coerce(e,r,n,t,a)},rde=function(e,r,t,a){for(var n=0;n{"use strict";mO.exports=pO()});var ode=W((sbe,bO)=>{var yO=OI();yO.register([ZB(),BH(),gO()]);bO.exports=yO});return ode();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: (*! Native Promise Only v0.8.1 (c) Kyle Simpson MIT License: http://getify.mit-license.org *) polybooljs/index.js: (* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs *) object-assign/index.js: (* object-assign (c) Sindre Sorhus @license MIT *) */ window.Plotly = Plotly; return Plotly; }));