From 82c266a5d463eb212600c5a1c972bba04cc98678 Mon Sep 17 00:00:00 2001 From: David Buezas Date: Sun, 13 Nov 2022 20:49:22 +0100 Subject: [PATCH] 1.7.5 --- dist/plotly-graph-card.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/plotly-graph-card.js b/dist/plotly-graph-card.js index d2302c3..6d3bb30 100644 --- a/dist/plotly-graph-card.js +++ b/dist/plotly-graph-card.js @@ -4,7 +4,7 @@ `)};function D(H){return H.map(z).join(f)}function z(H){return y.test(H)?'"'+H.replace(/\"/g,'""')+'"':H}return M},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Kr,Jr,on,Do,a_=this[Y(this,"requestAnimationFrame")]||function(f){setTimeout(f,17)};e.timer=function(){Uc.apply(this,arguments)};function Uc(f,v,y){var T=arguments.length;T<2&&(v=0),T<3&&(y=Date.now());var M=y+v,C={c:f,t:M,n:null};return Jr?Jr.n=C:Kr=C,Jr=C,on||(Do=clearTimeout(Do),on=1,a_(Qp)),C}function Qp(){var f=n_(),v=i_()-f;v>24?(isFinite(v)&&(clearTimeout(Do),Do=setTimeout(Qp,v)),on=0):(on=1,a_(Qp))}e.timer.flush=function(){n_(),i_()};function n_(){for(var f=Date.now(),v=Kr;v;)f>=v.t&&v.c(f-v.t)&&(v.c=null),v=v.n;return f}function i_(){for(var f,v=Kr,y=1/0;v;)v.c?(v.t=0;--D)K.push(M[H[X[D]][2]]);for(D=+ce;D1&&Et(f[y[T-2]],f[y[T-1]],f[M])<=0;)--T;y[T++]=M}return y.slice(0,T)}function PO(f,v){return f[0]-v[0]||f[1]-v[1]}e.geom.polygon=function(f){return ee(f,Gc),f};var Gc=e.geom.polygon.prototype=[];Gc.area=function(){for(var f=-1,v=this.length,y,T=this[v-1],M=0;++fOe)D=D.L;else if(R=v-zO(D,y),R>Oe){if(!D.R){T=D;break}D=D.R}else{C>-Oe?(T=D.P,M=D):R>-Oe?(T=D,M=D.N):T=M=D;break}var z=f_(f);if(js.insert(T,z),!(!T&&!M)){if(T===M){Hs(T),M=f_(T.site),js.insert(z,M),z.edge=M.edge=wu(T.site,z.site),Os(T),Os(M);return}if(!M){z.edge=wu(T.site,z.site);return}Hs(T),Hs(M);var H=T.site,G=H.x,X=H.y,Q=f.x-G,ce=f.y-X,pe=M.site,K=pe.x-G,ie=pe.y-X,le=2*(Q*ie-ce*K),he=Q*Q+ce*ce,ve=K*K+ie*ie,ue={x:(ie*he-ce*ve)/le+G,y:(Q*ve-K*he)/le+X};Wc(M.edge,H,pe,ue),z.edge=wu(H,f,null,ue),M.edge=wu(f,pe,null,ue),Os(T),Os(M)}}function c_(f,v){var y=f.site,T=y.x,M=y.y,C=M-v;if(!C)return T;var R=f.P;if(!R)return-1/0;y=R.site;var D=y.x,z=y.y,H=z-v;if(!H)return D;var G=D-T,X=1/C-1/H,Q=G/H;return X?(-Q+Math.sqrt(Q*Q-2*X*(G*G/(-2*H)-z+H/2+M-C/2)))/X+T:(T+D)/2}function zO(f,v){var y=f.N;if(y)return c_(y,v);var T=f.site;return T.y===v?T.x:1/0}function d_(f){this.site=f,this.edges=[]}d_.prototype.prepare=function(){for(var f=this.edges,v=f.length,y;v--;)y=f[v].edge,(!y.b||!y.a)&&f.splice(v,1);return f.sort(h_),f.length};function NO(f){for(var v=f[0][0],y=f[1][0],T=f[0][1],M=f[1][1],C,R,D,z,H=Po,G=H.length,X,Q,ce,pe,K,ie;G--;)if(X=H[G],!(!X||!X.prepare()))for(ce=X.edges,pe=ce.length,Q=0;QOe||x(z-R)>Oe)&&(ce.splice(Q,0,new Vc(BO(X.site,ie,x(D-v)Oe?{x:v,y:x(C-v)Oe?{x:x(R-M)Oe?{x:y,y:x(C-y)Oe?{x:x(R-T)=-st)){var ce=z*z+H*H,pe=G*G+X*X,K=(X*ce-H*pe)/Q,ie=(z*pe-G*ce)/Q,X=ie+D,le=u_.pop()||new FO;le.arc=f,le.site=M,le.x=K+R,le.y=X+Math.sqrt(K*K+ie*ie),le.cy=X,f.circle=le;for(var he=null,ve=_u._;ve;)if(le.y0)){if(K/=ce,ce<0){if(K0){if(K>Q)return;K>X&&(X=K)}if(K=y-D,!(!ce&&K<0)){if(K/=ce,ce<0){if(K>Q)return;K>X&&(X=K)}else if(ce>0){if(K0)){if(K/=pe,pe<0){if(K0){if(K>Q)return;K>X&&(X=K)}if(K=T-z,!(!pe&&K<0)){if(K/=pe,pe<0){if(K>Q)return;K>X&&(X=K)}else if(pe>0){if(K0&&(M.a={x:D+X*ce,y:z+X*pe}),Q<1&&(M.b={x:D+Q*ce,y:z+Q*pe}),M}}}}}}function OO(f){for(var v=Fs,y=jO(f[0][0],f[0][1],f[1][0],f[1][1]),T=v.length,M;T--;)M=v[T],(!HO(M,f)||!y(M)||x(M.a.x-M.b.x)=C)return;if(G>Q){if(!T)T={x:pe,y:R};else if(T.y>=D)return;y={x:pe,y:D}}else{if(!T)T={x:pe,y:D};else if(T.y1)if(G>Q){if(!T)T={x:(R-le)/ie,y:R};else if(T.y>=D)return;y={x:(D-le)/ie,y:D}}else{if(!T)T={x:(D-le)/ie,y:D};else if(T.y=C)return;y={x:C,y:ie*C+le}}else{if(!T)T={x:C,y:ie*C+le};else if(T.x=G&&le.x<=Q&&le.y>=X&&le.y<=ce?[[G,ce],[Q,ce],[Q,X],[G,X]]:[];he.point=z[K]}),H}function D(z){return z.map(function(H,G){return{x:Math.round(T(H,G)/Oe)*Oe,y:Math.round(M(H,G)/Oe)*Oe,i:G}})}return R.links=function(z){return am(D(z)).edges.filter(function(H){return H.l&&H.r}).map(function(H){return{source:z[H.l.i],target:z[H.r.i]}})},R.triangles=function(z){var H=[];return am(D(z)).cells.forEach(function(G,X){for(var Q=G.site,ce=G.edges.sort(h_),pe=-1,K=ce.length,ie,le,he=ce[K-1].edge,ve=he.l===Q?he.r:he.l;++peve&&(ve=G.x),G.y>ue&&(ue=G.y),ce.push(G.x),pe.push(G.y);else for(K=0;Kve&&(ve=Ee),Xe>ue&&(ue=Xe),ce.push(Ee),pe.push(Xe)}var Ke=ve-le,Qe=ue-he;Ke>Qe?ue=he+Ke:ve=le+Qe;function lt(ht,At,Wt,wr,$t,Ze,Lt,Pt){if(!(isNaN(Wt)||isNaN(wr)))if(ht.leaf){var Vt=ht.x,gr=ht.y;if(Vt!=null)if(x(Vt-Wt)+x(gr-wr)<.01)ut(ht,At,Wt,wr,$t,Ze,Lt,Pt);else{var zr=ht.point;ht.x=ht.y=ht.point=null,ut(ht,zr,Vt,gr,$t,Ze,Lt,Pt),ut(ht,At,Wt,wr,$t,Ze,Lt,Pt)}else ht.x=Wt,ht.y=wr,ht.point=At}else ut(ht,At,Wt,wr,$t,Ze,Lt,Pt)}function ut(ht,At,Wt,wr,$t,Ze,Lt,Pt){var Vt=($t+Lt)*.5,gr=(Ze+Pt)*.5,zr=Wt>=Vt,ea=wr>=gr,pa=ea<<1|zr;ht.leaf=!1,ht=ht.nodes[pa]||(ht.nodes[pa]=m_()),zr?$t=Vt:Lt=Vt,ea?Ze=gr:Pt=gr,lt(ht,At,Wt,wr,$t,Ze,Lt,Pt)}var Ct=m_();if(Ct.add=function(ht){lt(Ct,ht,+X(ht,++K),+Q(ht,K),le,he,ve,ue)},Ct.visit=function(ht){ku(ht,Ct,le,he,ve,ue)},Ct.find=function(ht){return YO(Ct,ht[0],ht[1],le,he,ve,ue)},K=-1,v==null){for(;++KC||Q>R||ce=Ee,Qe=y>=Xe,lt=Qe<<1|Ke,ut=lt+4;lty&&(C=v.slice(y,C),D[R]?D[R]+=C:D[++R]=C),(T=T[0])===(M=M[0])?D[R]?D[R]+=M:D[++R]=M:(D[++R]=null,z.push({i:R,x:pi(T,M)})),y=om.lastIndex;return y=0&&!(T=e.interpolators[y](f,v)););return T}e.interpolators=[function(f,v){var y=typeof v;return(y==="string"?yt.has(v.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(v)?nm:y_:v instanceof $a?nm:Array.isArray(v)?Xc:y==="object"&&isNaN(v)?g_:pi)(f,v)}],e.interpolateArray=Xc;function Xc(f,v){var y=[],T=[],M=f.length,C=v.length,R=Math.min(f.length,v.length),D;for(D=0;D=0?f.slice(0,v):f,T=v>=0?f.slice(v+1):"in";return y=ZO.get(y)||b_,T=XO.get(T)||W,$O(T(y.apply(null,t.call(arguments,1))))};function $O(f){return function(v){return v<=0?0:v>=1?1:f(v)}}function x_(f){return function(v){return 1-f(1-v)}}function __(f){return function(v){return .5*(v<.5?f(2*v):2-f(2-2*v))}}function QO(f){return f*f}function KO(f){return f*f*f}function JO(f){if(f<=0)return 0;if(f>=1)return 1;var v=f*f,y=v*f;return 4*(f<.5?y:3*(f-v)+y-.75)}function eH(f){return function(v){return Math.pow(v,f)}}function tH(f){return 1-Math.cos(f*ae)}function rH(f){return Math.pow(2,10*(f-1))}function aH(f){return 1-Math.sqrt(1-f*f)}function nH(f,v){var y;return arguments.length<2&&(v=.45),arguments.length?y=v/vt*Math.asin(1/f):(f=1,y=v/4),function(T){return 1+f*Math.pow(2,-10*T)*Math.sin((T-y)*vt/v)}}function iH(f){return f||(f=1.70158),function(v){return v*v*((f+1)*v-f)}}function oH(f){return f<1/2.75?7.5625*f*f:f<2/2.75?7.5625*(f-=1.5/2.75)*f+.75:f<2.5/2.75?7.5625*(f-=2.25/2.75)*f+.9375:7.5625*(f-=2.625/2.75)*f+.984375}e.interpolateHcl=sH;function sH(f,v){f=e.hcl(f),v=e.hcl(v);var y=f.h,T=f.c,M=f.l,C=v.h-y,R=v.c-T,D=v.l-M;return isNaN(R)&&(R=0,T=isNaN(T)?v.c:T),isNaN(C)?(C=0,y=isNaN(y)?v.h:y):C>180?C-=360:C<-180&&(C+=360),function(z){return vi(y+C*z,T+R*z,M+D*z)+""}}e.interpolateHsl=lH;function lH(f,v){f=e.hsl(f),v=e.hsl(v);var y=f.h,T=f.s,M=f.l,C=v.h-y,R=v.s-T,D=v.l-M;return isNaN(R)&&(R=0,T=isNaN(T)?v.s:T),isNaN(C)?(C=0,y=isNaN(y)?v.h:y):C>180?C-=360:C<-180&&(C+=360),function(z){return Sa(y+C*z,T+R*z,M+D*z)+""}}e.interpolateLab=uH;function uH(f,v){f=e.lab(f),v=e.lab(v);var y=f.l,T=f.a,M=f.b,C=v.l-y,R=v.a-T,D=v.b-M;return function(z){return Nc(y+C*z,T+R*z,M+D*z)+""}}e.interpolateRound=w_;function w_(f,v){return v-=f,function(y){return Math.round(f+v*y)}}e.transform=function(f){var v=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(y){if(y!=null){v.setAttribute("transform",y);var T=v.transform.baseVal.consolidate()}return new T_(T?T.matrix:cH)})(f)};function T_(f){var v=[f.a,f.b],y=[f.c,f.d],T=k_(v),M=A_(v,y),C=k_(fH(y,v,-M))||0;v[0]*y[1]180?v+=360:v-f>180&&(f+=360),T.push({i:y.push(Bs(y)+"rotate(",null,")")-2,x:pi(f,v)})):v&&y.push(Bs(y)+"rotate("+v+")")}function vH(f,v,y,T){f!==v?T.push({i:y.push(Bs(y)+"skewX(",null,")")-2,x:pi(f,v)}):v&&y.push(Bs(y)+"skewX("+v+")")}function pH(f,v,y,T){if(f[0]!==v[0]||f[1]!==v[1]){var M=y.push(Bs(y)+"scale(",null,",",null,")");T.push({i:M-4,x:pi(f[0],v[0])},{i:M-2,x:pi(f[1],v[1])})}else(v[0]!==1||v[1]!==1)&&y.push(Bs(y)+"scale("+v+")")}function M_(f,v){var y=[],T=[];return f=e.transform(f),v=e.transform(v),dH(f.translate,v.translate,y,T),hH(f.rotate,v.rotate,y,T),vH(f.skew,v.skew,y,T),pH(f.scale,v.scale,y,T),f=v=null,function(M){for(var C=-1,R=T.length,D;++C0?C=ue:(y.c=null,y.t=NaN,y=null,v.end({type:"end",alpha:C=0})):ue>0&&(v.start({type:"start",alpha:C=ue}),y=Uc(f.tick)),f):C},f.start=function(){var ue,Ee=ce.length,Xe=pe.length,Ke=T[0],Qe=T[1],lt,ut;for(ue=0;ue=0;)C.push(G=H[z]),G.parent=D,G.depth=D.depth+1;y&&(D.value=0),D.children=H}else y&&(D.value=+y.call(T,D,D.depth)||0),delete D.children;return Kn(M,function(X){var Q,ce;f&&(Q=X.children)&&Q.sort(f),y&&(ce=X.parent)&&(ce.value+=X.value)}),R}return T.sort=function(M){return arguments.length?(f=M,T):f},T.children=function(M){return arguments.length?(v=M,T):v},T.value=function(M){return arguments.length?(y=M,T):y},T.revalue=function(M){return y&&(Su(M,function(C){C.children&&(C.value=0)}),Kn(M,function(C){var R;C.children||(C.value=+y.call(T,C,C.depth)||0),(R=C.parent)&&(R.value+=C.value)})),M},T};function Mu(f,v){return e.rebind(f,v,"sort","children","value"),f.nodes=f,f.links=qH,f}function Su(f,v){for(var y=[f];(f=y.pop())!=null;)if(v(f),(M=f.children)&&(T=M.length))for(var T,M;--T>=0;)y.push(M[T])}function Kn(f,v){for(var y=[f],T=[];(f=y.pop())!=null;)if(T.push(f),(R=f.children)&&(C=R.length))for(var M=-1,C,R;++MM&&(M=D),T.push(D)}for(R=0;RT&&(y=v,T=M);return y}function NH(f){return f.reduce(FH,0)}function FH(f,v){return f+v[1]}e.layout.histogram=function(){var f=!0,v=Number,y=OH,T=jH;function M(C,R){for(var D=[],z=C.map(v,this),H=y.call(this,z,R),G=T.call(this,H,z,R),X,R=-1,Q=z.length,ce=G.length-1,pe=f?1:1/Q,K;++R0)for(R=-1;++R=H[0]&&K<=H[1]&&(X=D[e.bisect(G,K,1,ce)-1],X.y+=pe,X.push(C[R]));return D}return M.value=function(C){return arguments.length?(v=C,M):v},M.range=function(C){return arguments.length?(y=gt(C),M):y},M.bins=function(C){return arguments.length?(T=typeof C=="number"?function(R){return q_(R,C)}:gt(C),M):T},M.frequency=function(C){return arguments.length?(f=!!C,M):f},M};function jH(f,v){return q_(f,Math.ceil(Math.log(v.length)/Math.LN2+1))}function q_(f,v){for(var y=-1,T=+f[0],M=(f[1]-T)/v,C=[];++y<=v;)C[y]=M*y+T;return C}function OH(f){return[e.min(f),e.max(f)]}e.layout.pack=function(){var f=e.layout.hierarchy().sort(HH),v=0,y=[1,1],T;function M(C,R){var D=f.call(this,C,R),z=D[0],H=y[0],G=y[1],X=T==null?Math.sqrt:typeof T=="function"?T:function(){return T};if(z.x=z.y=0,Kn(z,function(ce){ce.r=+X(ce.value)}),Kn(z,R_),v){var Q=v*(T?1:Math.max(2*z.r/H,2*z.r/G))/2;Kn(z,function(ce){ce.r+=Q}),Kn(z,R_),Kn(z,function(ce){ce.r-=Q})}return E_(z,H/2,G/2,T?1:1/Math.max(2*z.r/H,2*z.r/G)),D}return M.size=function(C){return arguments.length?(y=C,M):y},M.radius=function(C){return arguments.length?(T=C==null||typeof C=="function"?C:+C,M):T},M.padding=function(C){return arguments.length?(v=+C,M):v},Mu(M,f)};function HH(f,v){return f.value-v.value}function um(f,v){var y=f._pack_next;f._pack_next=v,v._pack_prev=f,v._pack_next=y,y._pack_prev=v}function D_(f,v){f._pack_next=v,v._pack_prev=f}function P_(f,v){var y=v.x-f.x,T=v.y-f.y,M=f.r+v.r;return .999*M*M>y*y+T*T}function R_(f){if(!(v=f.children)||!(Q=v.length))return;var v,y=1/0,T=-1/0,M=1/0,C=-1/0,R,D,z,H,G,X,Q;function ce(ue){y=Math.min(ue.x-ue.r,y),T=Math.max(ue.x+ue.r,T),M=Math.min(ue.y-ue.r,M),C=Math.max(ue.y+ue.r,C)}if(v.forEach(BH),R=v[0],R.x=-R.r,R.y=0,ce(R),Q>1&&(D=v[1],D.x=D.r,D.y=0,ce(D),Q>2))for(z=v[2],I_(R,D,z),ce(z),um(R,z),R._pack_prev=z,um(z,D),D=R._pack_next,H=3;Hie.x&&(ie=Ee),Ee.depth>le.depth&&(le=Ee)});var he=v(K,ie)/2-K.x,ve=y[0]/(ie.x+v(ie,K)/2+he),ue=y[1]/(le.depth||1);Su(ce,function(Ee){Ee.x=(Ee.x+he)*ve,Ee.y=Ee.depth*ue})}return Q}function C(G){for(var X={A:null,children:[G]},Q=[X],ce;(ce=Q.pop())!=null;)for(var pe=ce.children,K,ie=0,le=pe.length;ie0&&(GH(VH(K,G,Q),G,Ee),le+=Ee,he+=Ee),ve+=K.m,le+=ce.m,ue+=ie.m,he+=pe.m;K&&!cm(pe)&&(pe.t=K,pe.m+=ve-he),ce&&!fm(ie)&&(ie.t=ce,ie.m+=le-ue,Q=G)}return Q}function H(G){G.x*=y[0],G.y=G.depth*y[1]}return M.separation=function(G){return arguments.length?(v=G,M):v},M.size=function(G){return arguments.length?(T=(y=G)==null?H:null,M):T?null:y},M.nodeSize=function(G){return arguments.length?(T=(y=G)==null?null:H,M):T?y:null},Mu(M,f)};function z_(f,v){return f.parent==v.parent?1:2}function fm(f){var v=f.children;return v.length?v[0]:f.t}function cm(f){var v=f.children,y;return(y=v.length)?v[y-1]:f.t}function GH(f,v,y){var T=y/(v.i-f.i);v.c-=T,v.s+=y,f.c+=T,v.z+=y,v.m+=y}function WH(f){for(var v=0,y=0,T=f.children,M=T.length,C;--M>=0;)C=T[M],C.z+=v,C.m+=v,v+=C.s+(y+=C.c)}function VH(f,v,y){return f.a.parent===v.parent?f.a:y}e.layout.cluster=function(){var f=e.layout.hierarchy().sort(null).value(null),v=z_,y=[1,1],T=!1;function M(C,R){var D=f.call(this,C,R),z=D[0],H,G=0;Kn(z,function(K){var ie=K.children;ie&&ie.length?(K.x=ZH(ie),K.y=YH(ie)):(K.x=H?G+=v(K,H):0,K.y=0,H=K)});var X=N_(z),Q=F_(z),ce=X.x-v(X,Q)/2,pe=Q.x+v(Q,X)/2;return Kn(z,T?function(K){K.x=(K.x-z.x)*y[0],K.y=(z.y-K.y)*y[1]}:function(K){K.x=(K.x-ce)/(pe-ce)*y[0],K.y=(1-(z.y?K.y/z.y:1))*y[1]}),D}return M.separation=function(C){return arguments.length?(v=C,M):v},M.size=function(C){return arguments.length?(T=(y=C)==null,M):T?null:y},M.nodeSize=function(C){return arguments.length?(T=(y=C)!=null,M):T?y:null},Mu(M,f)};function YH(f){return 1+e.max(f,function(v){return v.y})}function ZH(f){return f.reduce(function(v,y){return v+y.x},0)/f.length}function N_(f){var v=f.children;return v&&v.length?N_(v[0]):f}function F_(f){var v=f.children,y;return v&&(y=v.length)?F_(v[y-1]):f}e.layout.treemap=function(){var f=e.layout.hierarchy(),v=Math.round,y=[1,1],T=null,M=dm,C=!1,R,D="squarify",z=.5*(1+Math.sqrt(5));function H(K,ie){for(var le=-1,he=K.length,ve,ue;++le0;)he.push(ue=ve[Qe-1]),he.area+=ue.area,D!=="squarify"||(Xe=Q(he,Ke))<=Ee?(ve.pop(),Ee=Xe):(he.area-=he.pop().area,ce(he,Ke,le,!1),Ke=Math.min(le.dx,le.dy),he.length=he.area=0,Ee=1/0);he.length&&(ce(he,Ke,le,!0),he.length=he.area=0),ie.forEach(G)}}function X(K){var ie=K.children;if(ie&&ie.length){var le=M(K),he=ie.slice(),ve,ue=[];for(H(he,le.dx*le.dy/K.value),ue.area=0;ve=he.pop();)ue.push(ve),ue.area+=ve.area,ve.z!=null&&(ce(ue,ve.z?le.dx:le.dy,le,!he.length),ue.length=ue.area=0);ie.forEach(X)}}function Q(K,ie){for(var le=K.area,he,ve=0,ue=1/0,Ee=-1,Xe=K.length;++Eeve&&(ve=he));return le*=le,ie*=ie,le?Math.max(ie*ve*z/le,le/(ie*ue*z)):1/0}function ce(K,ie,le,he){var ve=-1,ue=K.length,Ee=le.x,Xe=le.y,Ke=ie?v(K.area/ie):0,Qe;if(ie==le.dx){for((he||Ke>le.dy)&&(Ke=le.dy);++vele.dx)&&(Ke=le.dx);++ve1);return f+v*T*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var f=e.random.normal.apply(e,arguments);return function(){return Math.exp(f())}},bates:function(f){var v=e.random.irwinHall(f);return function(){return v()/f}},irwinHall:function(f){return function(){for(var v=0,y=0;y2?QH:XH,H=T?gH:mH;return M=z(f,v,H,y),C=z(v,f,H,Ro),D}function D(z){return M(z)}return D.invert=function(z){return C(z)},D.domain=function(z){return arguments.length?(f=z.map(Number),R()):f},D.range=function(z){return arguments.length?(v=z,R()):v},D.rangeRound=function(z){return D.range(z).interpolate(w_)},D.clamp=function(z){return arguments.length?(T=z,R()):T},D.interpolate=function(z){return arguments.length?(y=z,R()):y},D.ticks=function(z){return pm(f,z)},D.tickFormat=function(z,H){return d3_scale_linearTickFormat(f,z,H)},D.nice=function(z){return U_(f,z),R()},D.copy=function(){return H_(f,v,y,T)},R()}function B_(f,v){return e.rebind(f,v,"range","rangeRound","interpolate","clamp")}function U_(f,v){return hm(f,O_(vm(f,v)[2])),hm(f,O_(vm(f,v)[2])),f}function vm(f,v){v==null&&(v=10);var y=$c(f),T=y[1]-y[0],M=Math.pow(10,Math.floor(Math.log(T/v)/Math.LN10)),C=v/T*M;return C<=.15?M*=10:C<=.35?M*=5:C<=.75&&(M*=2),y[0]=Math.ceil(y[0]/M)*M,y[1]=Math.floor(y[1]/M)*M+M*.5,y[2]=M,y}function pm(f,v){return e.range.apply(e,vm(f,v))}var KH={s:1,g:1,p:1,r:1,e:1};function G_(f){return-Math.floor(Math.log(f)/Math.LN10+.01)}function Kme(f,v){var y=G_(v[2]);return f in KH?Math.abs(y-G_(Math.max(x(v[0]),x(v[1]))))+ +(f!=="e"):y-(f==="%")*2}e.scale.log=function(){return W_(e.scale.linear().domain([0,1]),10,!0,[1,10])};function W_(f,v,y,T){function M(D){return(y?Math.log(D<0?0:D):-Math.log(D>0?0:-D))/Math.log(v)}function C(D){return y?Math.pow(v,D):-Math.pow(v,-D)}function R(D){return f(M(D))}return R.invert=function(D){return C(f.invert(D))},R.domain=function(D){return arguments.length?(y=D[0]>=0,f.domain((T=D.map(Number)).map(M)),R):T},R.base=function(D){return arguments.length?(v=+D,f.domain(T.map(M)),R):v},R.nice=function(){var D=hm(T.map(M),y?Math:JH);return f.domain(D),T=D.map(C),R},R.ticks=function(){var D=$c(T),z=[],H=D[0],G=D[1],X=Math.floor(M(H)),Q=Math.ceil(M(G)),ce=v%1?2:v;if(isFinite(Q-X)){if(y){for(;X0;pe--)z.push(C(X)*pe);for(X=0;z[X]G;Q--);z=z.slice(X,Q)}return z},R.copy=function(){return W_(f.copy(),v,y,T)},B_(R,f)}var JH={floor:function(f){return-Math.ceil(-f)},ceil:function(f){return-Math.floor(-f)}};e.scale.pow=function(){return V_(e.scale.linear(),1,[0,1])};function V_(f,v,y){var T=Kc(v),M=Kc(1/v);function C(R){return f(T(R))}return C.invert=function(R){return M(f.invert(R))},C.domain=function(R){return arguments.length?(f.domain((y=R.map(Number)).map(T)),C):y},C.ticks=function(R){return pm(y,R)},C.tickFormat=function(R,D){return d3_scale_linearTickFormat(y,R,D)},C.nice=function(R){return C.domain(U_(y,R))},C.exponent=function(R){return arguments.length?(T=Kc(v=R),M=Kc(1/v),f.domain(y.map(T)),C):v},C.copy=function(){return V_(f.copy(),v,y)},B_(C,f)}function Kc(f){return function(v){return v<0?-Math.pow(-v,f):Math.pow(v,f)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Y_([],{t:"range",a:[[]]})};function Y_(f,v){var y,T,M;function C(D){return T[((y.get(D)||(v.t==="range"?y.set(D,f.push(D)):NaN))-1)%T.length]}function R(D,z){return e.range(f.length).map(function(H){return D+z*H})}return C.domain=function(D){if(!arguments.length)return f;f=[],y=new w;for(var z=-1,H=D.length,G;++z0?y[C-1]:f[0],CQ?0:1;if(G=pt)return z(G,pe)+(H?z(H,1-pe):"")+"Z";var K,ie,le,he,ve=0,ue=0,Ee,Xe,Ke,Qe,lt,ut,Ct,ht,At=[];if((he=(+R.apply(this,arguments)||0)/2)&&(le=T===Jc?Math.sqrt(H*H+G*G):+T.apply(this,arguments),pe||(ue*=-1),G&&(ue=Vr(le/G*Math.sin(he))),H&&(ve=Vr(le/H*Math.sin(he)))),G){Ee=G*Math.cos(X+ue),Xe=G*Math.sin(X+ue),Ke=G*Math.cos(Q-ue),Qe=G*Math.sin(Q-ue);var Wt=Math.abs(Q-X-2*ue)<=dt?0:1;if(ue&&ed(Ee,Xe,Ke,Qe)===pe^Wt){var wr=(X+Q)/2;Ee=G*Math.cos(wr),Xe=G*Math.sin(wr),Ke=Qe=null}}else Ee=Xe=0;if(H){lt=H*Math.cos(Q-ve),ut=H*Math.sin(Q-ve),Ct=H*Math.cos(X+ve),ht=H*Math.sin(X+ve);var $t=Math.abs(X-Q+2*ve)<=dt?0:1;if(ve&&ed(lt,ut,Ct,ht)===1-pe^$t){var Ze=(X+Q)/2;lt=H*Math.cos(Ze),ut=H*Math.sin(Ze),Ct=ht=null}}else lt=ut=0;if(ce>Oe&&(K=Math.min(Math.abs(G-H)/2,+y.apply(this,arguments)))>.001){ie=H0?0:1}function td(f,v,y,T,M){var C=f[0]-v[0],R=f[1]-v[1],D=(M?T:-T)/Math.sqrt(C*C+R*R),z=D*R,H=-D*C,G=f[0]+z,X=f[1]+H,Q=v[0]+z,ce=v[1]+H,pe=(G+Q)/2,K=(X+ce)/2,ie=Q-G,le=ce-X,he=ie*ie+le*le,ve=y-T,ue=G*ce-Q*X,Ee=(le<0?-1:1)*Math.sqrt(Math.max(0,ve*ve*he-ue*ue)),Xe=(ue*le-ie*Ee)/he,Ke=(-ue*ie-le*Ee)/he,Qe=(ue*le+ie*Ee)/he,lt=(-ue*ie+le*Ee)/he,ut=Xe-pe,Ct=Ke-K,ht=Qe-pe,At=lt-K;return ut*ut+Ct*Ct>ht*ht+At*At&&(Xe=Qe,Ke=lt),[[Xe-z,Ke-H],[Xe*y/ve,Ke*y/ve]]}function ew(){return!0}function tw(f){var v=Ns,y=xu,T=ew,M=Ln,C=M.key,R=.7;function D(z){var H=[],G=[],X=-1,Q=z.length,ce,pe=gt(v),K=gt(y);function ie(){H.push("M",M(f(G),R))}for(;++X1?f.join("L"):f+"Z"}function rw(f){return f.join("L")+"Z"}function lB(f){for(var v=0,y=f.length,T=f[0],M=[T[0],",",T[1]];++v1&&M.push("H",T[0]),M.join("")}function gm(f){for(var v=0,y=f.length,T=f[0],M=[T[0],",",T[1]];++v1){D=v[1],C=f[z],z++,T+="C"+(M[0]+R[0])+","+(M[1]+R[1])+","+(C[0]-D[0])+","+(C[1]-D[1])+","+C[0]+","+C[1];for(var H=2;H9&&(C=y*3/Math.sqrt(C),R[D]=C*T,R[D+1]=C*M));for(D=-1;++D<=z;)C=(f[Math.min(z,D+1)][0]-f[Math.max(0,D-1)][0])/(6*(1+R[D]*R[D])),v.push([C||0,R[D]*C||0]);return v}function gB(f){return f.length<3?Ln(f):f[0]+rd(f,mB(f))}e.svg.line.radial=function(){var f=tw(ow);return f.radius=f.x,delete f.x,f.angle=f.y,delete f.y,f};function ow(f){for(var v,y=-1,T=f.length,M,C;++ydt)+",1 "+X}function H(G,X,Q,ce){return"Q 0,0 "+ce}return C.radius=function(G){return arguments.length?(y=gt(G),C):y},C.source=function(G){return arguments.length?(f=gt(G),C):f},C.target=function(G){return arguments.length?(v=gt(G),C):v},C.startAngle=function(G){return arguments.length?(T=gt(G),C):T},C.endAngle=function(G){return arguments.length?(M=gt(G),C):M},C};function yB(f){return f.radius}e.svg.diagonal=function(){var f=lw,v=uw,y=fw;function T(M,C){var R=f.call(this,M,C),D=v.call(this,M,C),z=(R.y+D.y)/2,H=[R,{x:R.x,y:z},{x:D.x,y:z},D];return H=H.map(y),"M"+H[0]+"C"+H[1]+" "+H[2]+" "+H[3]}return T.source=function(M){return arguments.length?(f=gt(M),T):f},T.target=function(M){return arguments.length?(v=gt(M),T):v},T.projection=function(M){return arguments.length?(y=M,T):y},T};function fw(f){return[f.x,f.y]}e.svg.diagonal.radial=function(){var f=e.svg.diagonal(),v=fw,y=f.projection;return f.projection=function(T){return arguments.length?y(bB(v=T)):v},f};function bB(f){return function(){var v=f.apply(this,arguments),y=v[0],T=v[1]-ae;return[y*Math.cos(T),y*Math.sin(T)]}}e.svg.symbol=function(){var f=_B,v=xB;function y(T,M){return(dw.get(f.call(this,T,M))||cw)(v.call(this,T,M))}return y.type=function(T){return arguments.length?(f=gt(T),y):f},y.size=function(T){return arguments.length?(v=gt(T),y):v},y};function xB(){return 64}function _B(){return"circle"}function cw(f){var v=Math.sqrt(f/dt);return"M0,"+v+"A"+v+","+v+" 0 1,1 0,"+-v+"A"+v+","+v+" 0 1,1 0,"+v+"Z"}var dw=e.map({circle:cw,cross:function(f){var v=Math.sqrt(f/5)/2;return"M"+-3*v+","+-v+"H"+-v+"V"+-3*v+"H"+v+"V"+-v+"H"+3*v+"V"+v+"H"+v+"V"+3*v+"H"+-v+"V"+v+"H"+-3*v+"Z"},diamond:function(f){var v=Math.sqrt(f/(2*hw)),y=v*hw;return"M0,"+-v+"L"+y+",0 0,"+v+" "+-y+",0Z"},square:function(f){var v=Math.sqrt(f)/2;return"M"+-v+","+-v+"L"+v+","+-v+" "+v+","+v+" "+-v+","+v+"Z"},"triangle-down":function(f){var v=Math.sqrt(f/ad),y=v*ad/2;return"M0,"+y+"L"+v+","+-y+" "+-v+","+-y+"Z"},"triangle-up":function(f){var v=Math.sqrt(f/ad),y=v*ad/2;return"M0,"+-y+"L"+v+","+y+" "+-v+","+y+"Z"}});e.svg.symbolTypes=dw.keys();var ad=Math.sqrt(3),hw=Math.tan(30*_e);Se.transition=function(f){for(var v=Eo||++pw,y=Tm(f),T=[],M,C,R=id||{time:Date.now(),ease:JO,delay:0,duration:250},D=-1,z=this.length;++D0;)X[--he].call(f,le);if(ie>=1)return R.event&&R.event.end.call(f,f.__data__,v),--C.count?delete C[T]:delete f[y],1}R||(D=M.time,z=Uc(Q,0,D),R=C[T]={tween:new w,time:D,timer:z,delay:M.delay,duration:M.duration,ease:M.ease,index:v},M=null,++C.count)}e.svg.axis=function(){var f=e.scale.linear(),v=mw,y=6,T=6,M=3,C=[10],R=null,D;function z(H){H.each(function(){var G=e.select(this),X=this.__chart__||f,Q=this.__chart__=f.copy(),ce=R??(Q.ticks?Q.ticks.apply(Q,C):Q.domain()),pe=D??(Q.tickFormat?Q.tickFormat.apply(Q,C):W),K=G.selectAll(".tick").data(ce,Q),ie=K.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),le=e.transition(K.exit()).style("opacity",Oe).remove(),he=e.transition(K.order()).style("opacity",1),ve=Math.max(y,0)+M,ue,Ee=Qc(Q),Xe=G.selectAll(".domain").data([0]),Ke=(Xe.enter().append("path").attr("class","domain"),e.transition(Xe));ie.append("line"),ie.append("text");var Qe=ie.select("line"),lt=he.select("line"),ut=K.select("text").text(pe),Ct=ie.select("text"),ht=he.select("text"),At=v==="top"||v==="left"?-1:1,Wt,wr,$t,Ze;if(v==="bottom"||v==="top"?(ue=AB,Wt="x",$t="y",wr="x2",Ze="y2",ut.attr("dy",At<0?"0em":".71em").style("text-anchor","middle"),Ke.attr("d","M"+Ee[0]+","+At*T+"V0H"+Ee[1]+"V"+At*T)):(ue=kB,Wt="y",$t="x",wr="y2",Ze="x2",ut.attr("dy",".32em").style("text-anchor",At<0?"end":"start"),Ke.attr("d","M"+At*T+","+Ee[0]+"H0V"+Ee[1]+"H"+At*T)),Qe.attr(Ze,At*y),Ct.attr($t,At*ve),lt.attr(wr,0).attr(Ze,At*y),ht.attr(Wt,0).attr($t,At*ve),Q.rangeBand){var Lt=Q,Pt=Lt.rangeBand()/2;X=Q=function(Vt){return Lt(Vt)+Pt}}else X.rangeBand?X=Q:le.call(ue,Q,X);ie.call(ue,X,Q),he.call(ue,Q,Q)})}return z.scale=function(H){return arguments.length?(f=H,z):f},z.orient=function(H){return arguments.length?(v=H in TB?H+"":mw,z):v},z.ticks=function(){return arguments.length?(C=r(arguments),z):C},z.tickValues=function(H){return arguments.length?(R=H,z):R},z.tickFormat=function(H){return arguments.length?(D=H,z):D},z.tickSize=function(H){var G=arguments.length;return G?(y=+H,T=+arguments[G-1],z):y},z.innerTickSize=function(H){return arguments.length?(y=+H,z):y},z.outerTickSize=function(H){return arguments.length?(T=+H,z):T},z.tickPadding=function(H){return arguments.length?(M=+H,z):M},z.tickSubdivide=function(){return arguments.length&&z},z};var mw="bottom",TB={top:1,right:1,bottom:1,left:1};function AB(f,v,y){f.attr("transform",function(T){var M=v(T);return"translate("+(isFinite(M)?M:y(T))+",0)"})}function kB(f,v,y){f.attr("transform",function(T){var M=v(T);return"translate(0,"+(isFinite(M)?M:y(T))+")"})}e.svg.brush=function(){var f=re(G,"brushstart","brush","brushend"),v=null,y=null,T=[0,0],M=[0,0],C,R,D=!0,z=!0,H=Am[0];function G(K){K.each(function(){var ie=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",pe).on("touchstart.brush",pe),le=ie.selectAll(".background").data([0]);le.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ie.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var he=ie.selectAll(".resize").data(H,W);he.exit().remove(),he.enter().append("g").attr("class",function(Xe){return"resize "+Xe}).style("cursor",function(Xe){return MB[Xe]}).append("rect").attr("x",function(Xe){return/[ew]$/.test(Xe)?-3:null}).attr("y",function(Xe){return/^[ns]/.test(Xe)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),he.style("display",G.empty()?"none":null);var ve=e.transition(ie),ue=e.transition(le),Ee;v&&(Ee=Qc(v),ue.attr("x",Ee[0]).attr("width",Ee[1]-Ee[0]),Q(ve)),y&&(Ee=Qc(y),ue.attr("y",Ee[0]).attr("height",Ee[1]-Ee[0]),ce(ve)),X(ve)})}G.event=function(K){K.each(function(){var ie=f.of(this,arguments),le={x:T,y:M,i:C,j:R},he=this.__chart__||le;this.__chart__=le,Eo?e.select(this).transition().each("start.brush",function(){C=he.i,R=he.j,T=he.x,M=he.y,ie({type:"brushstart"})}).tween("brush:brush",function(){var ve=Xc(T,le.x),ue=Xc(M,le.y);return C=R=null,function(Ee){T=le.x=ve(Ee),M=le.y=ue(Ee),ie({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=le.i,R=le.j,ie({type:"brush",mode:"resize"}),ie({type:"brushend"})}):(ie({type:"brushstart"}),ie({type:"brush",mode:"resize"}),ie({type:"brushend"}))})};function X(K){K.selectAll(".resize").attr("transform",function(ie){return"translate("+T[+/e$/.test(ie)]+","+M[+/^s/.test(ie)]+")"})}function Q(K){K.select(".extent").attr("x",T[0]),K.selectAll(".extent,.n>rect,.s>rect").attr("width",T[1]-T[0])}function ce(K){K.select(".extent").attr("y",M[0]),K.selectAll(".extent,.e>rect,.w>rect").attr("height",M[1]-M[0])}function pe(){var K=this,ie=e.select(e.event.target),le=f.of(K,arguments),he=e.select(K),ve=ie.datum(),ue=!/^(n|s)$/.test(ve)&&v,Ee=!/^(e|w)$/.test(ve)&&y,Xe=ie.classed("extent"),Ke=Tt(K),Qe,lt=e.mouse(K),ut,Ct=e.select(i(K)).on("keydown.brush",Wt).on("keyup.brush",wr);if(e.event.changedTouches?Ct.on("touchmove.brush",$t).on("touchend.brush",Lt):Ct.on("mousemove.brush",$t).on("mouseup.brush",Lt),he.interrupt().selectAll("*").interrupt(),Xe)lt[0]=T[0]-lt[0],lt[1]=M[0]-lt[1];else if(ve){var ht=+/w$/.test(ve),At=+/^n/.test(ve);ut=[T[1-ht]-lt[0],M[1-At]-lt[1]],lt[0]=T[ht],lt[1]=M[At]}else e.event.altKey&&(Qe=lt.slice());he.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ie.style("cursor")),le({type:"brushstart"}),$t();function Wt(){e.event.keyCode==32&&(Xe||(Qe=null,lt[0]-=T[1],lt[1]-=M[1],Xe=2),de())}function wr(){e.event.keyCode==32&&Xe==2&&(lt[0]+=T[1],lt[1]+=M[1],Xe=0,de())}function $t(){var Pt=e.mouse(K),Vt=!1;ut&&(Pt[0]+=ut[0],Pt[1]+=ut[1]),Xe||(e.event.altKey?(Qe||(Qe=[(T[0]+T[1])/2,(M[0]+M[1])/2]),lt[0]=T[+(Pt[0]{(function(e,t){typeof Sd=="object"&&typeof tS!="undefined"?t(Sd):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.d3=e.d3||{}))})(Sd,function(e){"use strict";var t=new Date,r=new Date;function a(se,Ce,it,ct){function Je(we){return se(we=arguments.length===0?new Date:new Date(+we)),we}return Je.floor=function(we){return se(we=new Date(+we)),we},Je.ceil=function(we){return se(we=new Date(we-1)),Ce(we,1),se(we),we},Je.round=function(we){var Me=Je(we),Ye=Je.ceil(we);return we-Me0))return je;do je.push(ze=new Date(+we)),Ce(we,Ye),se(we);while(ze=Me)for(;se(Me),!we(Me);)Me.setTime(Me-1)},function(Me,Ye){if(Me>=Me)if(Ye<0)for(;++Ye<=0;)for(;Ce(Me,-1),!we(Me););else for(;--Ye>=0;)for(;Ce(Me,1),!we(Me););})},it&&(Je.count=function(we,Me){return t.setTime(+we),r.setTime(+Me),se(t),se(r),Math.floor(it(t,r))},Je.every=function(we){return we=Math.floor(we),!isFinite(we)||!(we>0)?null:we>1?Je.filter(ct?function(Me){return ct(Me)%we==0}:function(Me){return Je.count(0,Me)%we==0}):Je}),Je}var n=a(function(){},function(se,Ce){se.setTime(+se+Ce)},function(se,Ce){return Ce-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Ce){Ce.setTime(Math.floor(Ce/se)*se)},function(Ce,it){Ce.setTime(+Ce+it*se)},function(Ce,it){return(it-Ce)/se}):n};var i=n.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,d=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Ce){se.setTime(+se+Ce*o)},function(se,Ce){return(Ce-se)/o},function(se){return se.getUTCSeconds()}),h=d.range,p=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Ce){se.setTime(+se+Ce*s)},function(se,Ce){return(Ce-se)/s},function(se){return se.getMinutes()}),g=p.range,m=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*s)},function(se,Ce){se.setTime(+se+Ce*l)},function(se,Ce){return(Ce-se)/l},function(se){return se.getHours()}),b=m.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Ce){se.setDate(se.getDate()+Ce)},function(se,Ce){return(Ce-se-(Ce.getTimezoneOffset()-se.getTimezoneOffset())*s)/u},function(se){return se.getDate()-1}),_=x.range;function k(se){return a(function(Ce){Ce.setDate(Ce.getDate()-(Ce.getDay()+7-se)%7),Ce.setHours(0,0,0,0)},function(Ce,it){Ce.setDate(Ce.getDate()+it*7)},function(Ce,it){return(it-Ce-(it.getTimezoneOffset()-Ce.getTimezoneOffset())*s)/c})}var w=k(0),A=k(1),L=k(2),S=k(3),q=k(4),P=k(5),E=k(6),F=w.range,N=A.range,j=L.range,B=S.range,W=q.range,V=P.range,Y=E.range,Z=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Ce){se.setMonth(se.getMonth()+Ce)},function(se,Ce){return Ce.getMonth()-se.getMonth()+(Ce.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),$=Z.range,ne=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ce){se.setFullYear(se.getFullYear()+Ce)},function(se,Ce){return Ce.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});ne.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ce){Ce.setFullYear(Math.floor(Ce.getFullYear()/se)*se),Ce.setMonth(0,1),Ce.setHours(0,0,0,0)},function(Ce,it){Ce.setFullYear(Ce.getFullYear()+it*se)})};var te=ne.range,de=a(function(se){se.setUTCSeconds(0,0)},function(se,Ce){se.setTime(+se+Ce*s)},function(se,Ce){return(Ce-se)/s},function(se){return se.getUTCMinutes()}),be=de.range,re=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Ce){se.setTime(+se+Ce*l)},function(se,Ce){return(Ce-se)/l},function(se){return se.getUTCHours()}),ge=re.range,ee=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Ce){se.setUTCDate(se.getUTCDate()+Ce)},function(se,Ce){return(Ce-se)/u},function(se){return se.getUTCDate()-1}),Ae=ee.range;function ke(se){return a(function(Ce){Ce.setUTCDate(Ce.getUTCDate()-(Ce.getUTCDay()+7-se)%7),Ce.setUTCHours(0,0,0,0)},function(Ce,it){Ce.setUTCDate(Ce.getUTCDate()+it*7)},function(Ce,it){return(it-Ce)/c})}var De=ke(0),Le=ke(1),Se=ke(2),U=ke(3),J=ke(4),O=ke(5),oe=ke(6),me=De.range,xe=Le.range,qe=Se.range,Pe=U.range,ye=J.range,rt=O.range,Ue=oe.range,nt=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Ce){se.setUTCMonth(se.getUTCMonth()+Ce)},function(se,Ce){return Ce.getUTCMonth()-se.getUTCMonth()+(Ce.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),at=nt.range,ft=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ce){se.setUTCFullYear(se.getUTCFullYear()+Ce)},function(se,Ce){return Ce.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});ft.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ce){Ce.setUTCFullYear(Math.floor(Ce.getUTCFullYear()/se)*se),Ce.setUTCMonth(0,1),Ce.setUTCHours(0,0,0,0)},function(Ce,it){Ce.setUTCFullYear(Ce.getUTCFullYear()+it*se)})};var wt=ft.range;e.timeDay=x,e.timeDays=_,e.timeFriday=P,e.timeFridays=V,e.timeHour=m,e.timeHours=b,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=p,e.timeMinutes=g,e.timeMonday=A,e.timeMondays=N,e.timeMonth=Z,e.timeMonths=$,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=d,e.timeSeconds=h,e.timeSunday=w,e.timeSundays=F,e.timeThursday=q,e.timeThursdays=W,e.timeTuesday=L,e.timeTuesdays=j,e.timeWednesday=S,e.timeWednesdays=B,e.timeWeek=w,e.timeWeeks=F,e.timeYear=ne,e.timeYears=te,e.utcDay=ee,e.utcDays=Ae,e.utcFriday=O,e.utcFridays=rt,e.utcHour=re,e.utcHours=ge,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=de,e.utcMinutes=be,e.utcMonday=Le,e.utcMondays=xe,e.utcMonth=nt,e.utcMonths=at,e.utcSaturday=oe,e.utcSaturdays=Ue,e.utcSecond=d,e.utcSeconds=h,e.utcSunday=De,e.utcSundays=me,e.utcThursday=J,e.utcThursdays=ye,e.utcTuesday=Se,e.utcTuesdays=qe,e.utcWednesday=U,e.utcWednesdays=Pe,e.utcWeek=De,e.utcWeeks=me,e.utcYear=ft,e.utcYears=wt,Object.defineProperty(e,"__esModule",{value:!0})})});var Js=I((Cd,rS)=>{(function(e,t){typeof Cd=="object"&&typeof rS!="undefined"?t(Cd,tg()):typeof define=="function"&&define.amd?define(["exports","d3-time"],t):(e=e||self,t(e.d3=e.d3||{},e.d3))})(Cd,function(e,t){"use strict";function r(ae){if(0<=ae.y&&ae.y<100){var _e=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return _e.setFullYear(ae.y),_e}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var _e=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return _e.setUTCFullYear(ae.y),_e}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,_e,Te){return{y:ae,m:_e,d:Te,H:0,M:0,S:0,L:0}}function i(ae){var _e=ae.dateTime,Te=ae.date,Fe=ae.time,Et=ae.periods,pr=ae.days,Vr=ae.shortDays,Er=ae.months,hr=ae.shortMonths,ca=h(Et),Qn=p(Et),ia=h(pr),Xa=p(pr),Cn=h(Vr),Aa=p(Vr),hi=h(Er),Co=p(Er),$a=h(hr),ka=p(hr),Ma={a:mu,A:gu,b:ha,B:jc,c:null,d:Z,e:Z,f:be,g:O,G:me,H:$,I:ne,j:te,L:de,m:re,M:ge,p:Is,q:zs,Q:Tt,s:ot,S:ee,u:Ae,U:ke,V:Le,w:Se,W:U,x:null,X:null,y:J,Y:oe,Z:xe,"%":mt},Sa={a:Bi,A:Oc,b:Hc,B:Bc,c:null,d:qe,e:qe,f:nt,g:Ye,G:ze,H:Pe,I:ye,j:rt,L:Ue,m:at,M:ft,p:yu,q:bu,Q:Tt,s:ot,S:wt,u:se,U:Ce,V:ct,w:Je,W:we,x:null,X:null,y:Me,Y:je,Z:Ge,"%":mt},da={a:Qr,A:Lo,b:qo,B:Hi,c:Nc,d:q,e:q,f:B,g:w,G:k,H:E,I:E,j:P,L:j,m:S,M:F,p:mr,q:L,Q:V,s:Y,S:N,u:m,U:b,V:x,w:g,W:_,x:Fc,X:pu,y:w,Y:k,Z:A,"%":W};Ma.x=Fa(Te,Ma),Ma.X=Fa(Fe,Ma),Ma.c=Fa(_e,Ma),Sa.x=Fa(Te,Sa),Sa.X=Fa(Fe,Sa),Sa.c=Fa(_e,Sa);function Fa(yt,gt){return function(Yt){var $e=[],va=-1,or=0,Kr=yt.length,Jr,on,Do;for(Yt instanceof Date||(Yt=new Date(+Yt));++va53)return null;"w"in $e||($e.w=1),"Z"in $e?(or=a(n($e.y,0,1)),Kr=or.getUTCDay(),or=Kr>4||Kr===0?t.utcMonday.ceil(or):t.utcMonday(or),or=t.utcDay.offset(or,($e.V-1)*7),$e.y=or.getUTCFullYear(),$e.m=or.getUTCMonth(),$e.d=or.getUTCDate()+($e.w+6)%7):(or=r(n($e.y,0,1)),Kr=or.getDay(),or=Kr>4||Kr===0?t.timeMonday.ceil(or):t.timeMonday(or),or=t.timeDay.offset(or,($e.V-1)*7),$e.y=or.getFullYear(),$e.m=or.getMonth(),$e.d=or.getDate()+($e.w+6)%7)}else("W"in $e||"U"in $e)&&("w"in $e||($e.w="u"in $e?$e.u%7:"W"in $e?1:0),Kr="Z"in $e?a(n($e.y,0,1)).getUTCDay():r(n($e.y,0,1)).getDay(),$e.m=0,$e.d="W"in $e?($e.w+6)%7+$e.W*7-(Kr+5)%7:$e.w+$e.U*7-(Kr+6)%7);return"Z"in $e?($e.H+=$e.Z/100|0,$e.M+=$e.Z%100,a($e)):r($e)}}function Yr(yt,gt,Yt,$e){for(var va=0,or=gt.length,Kr=Yt.length,Jr,on;va=Kr)return-1;if(Jr=gt.charCodeAt(va++),Jr===37){if(Jr=gt.charAt(va++),on=da[Jr in o?gt.charAt(va++):Jr],!on||($e=on(yt,Yt,$e))<0)return-1}else if(Jr!=Yt.charCodeAt($e++))return-1}return $e}function mr(yt,gt,Yt){var $e=ca.exec(gt.slice(Yt));return $e?(yt.p=Qn[$e[0].toLowerCase()],Yt+$e[0].length):-1}function Qr(yt,gt,Yt){var $e=Cn.exec(gt.slice(Yt));return $e?(yt.w=Aa[$e[0].toLowerCase()],Yt+$e[0].length):-1}function Lo(yt,gt,Yt){var $e=ia.exec(gt.slice(Yt));return $e?(yt.w=Xa[$e[0].toLowerCase()],Yt+$e[0].length):-1}function qo(yt,gt,Yt){var $e=$a.exec(gt.slice(Yt));return $e?(yt.m=ka[$e[0].toLowerCase()],Yt+$e[0].length):-1}function Hi(yt,gt,Yt){var $e=hi.exec(gt.slice(Yt));return $e?(yt.m=Co[$e[0].toLowerCase()],Yt+$e[0].length):-1}function Nc(yt,gt,Yt){return Yr(yt,_e,gt,Yt)}function Fc(yt,gt,Yt){return Yr(yt,Te,gt,Yt)}function pu(yt,gt,Yt){return Yr(yt,Fe,gt,Yt)}function mu(yt){return Vr[yt.getDay()]}function gu(yt){return pr[yt.getDay()]}function ha(yt){return hr[yt.getMonth()]}function jc(yt){return Er[yt.getMonth()]}function Is(yt){return Et[+(yt.getHours()>=12)]}function zs(yt){return 1+~~(yt.getMonth()/3)}function Bi(yt){return Vr[yt.getUTCDay()]}function Oc(yt){return pr[yt.getUTCDay()]}function Hc(yt){return hr[yt.getUTCMonth()]}function Bc(yt){return Er[yt.getUTCMonth()]}function yu(yt){return Et[+(yt.getUTCHours()>=12)]}function bu(yt){return 1+~~(yt.getUTCMonth()/3)}return{format:function(yt){var gt=Fa(yt+="",Ma);return gt.toString=function(){return yt},gt},parse:function(yt){var gt=vi(yt+="",!1);return gt.toString=function(){return yt},gt},utcFormat:function(yt){var gt=Fa(yt+="",Sa);return gt.toString=function(){return yt},gt},utcParse:function(yt){var gt=vi(yt+="",!0);return gt.toString=function(){return yt},gt}}}var o={"-":"",_:" ","0":"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(ae,_e,Te){var Fe=ae<0?"-":"",Et=(Fe?-ae:ae)+"",pr=Et.length;return Fe+(pr68?1900:2e3),Te+Fe[0].length):-1}function A(ae,_e,Te){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_e.slice(Te,Te+6));return Fe?(ae.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Te+Fe[0].length):-1}function L(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+1));return Fe?(ae.q=Fe[0]*3-3,Te+Fe[0].length):-1}function S(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+2));return Fe?(ae.m=Fe[0]-1,Te+Fe[0].length):-1}function q(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+2));return Fe?(ae.d=+Fe[0],Te+Fe[0].length):-1}function P(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+3));return Fe?(ae.m=0,ae.d=+Fe[0],Te+Fe[0].length):-1}function E(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+2));return Fe?(ae.H=+Fe[0],Te+Fe[0].length):-1}function F(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+2));return Fe?(ae.M=+Fe[0],Te+Fe[0].length):-1}function N(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+2));return Fe?(ae.S=+Fe[0],Te+Fe[0].length):-1}function j(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+3));return Fe?(ae.L=+Fe[0],Te+Fe[0].length):-1}function B(ae,_e,Te){var Fe=s.exec(_e.slice(Te,Te+6));return Fe?(ae.L=Math.floor(Fe[0]/1e3),Te+Fe[0].length):-1}function W(ae,_e,Te){var Fe=l.exec(_e.slice(Te,Te+1));return Fe?Te+Fe[0].length:-1}function V(ae,_e,Te){var Fe=s.exec(_e.slice(Te));return Fe?(ae.Q=+Fe[0],Te+Fe[0].length):-1}function Y(ae,_e,Te){var Fe=s.exec(_e.slice(Te));return Fe?(ae.s=+Fe[0],Te+Fe[0].length):-1}function Z(ae,_e){return c(ae.getDate(),_e,2)}function $(ae,_e){return c(ae.getHours(),_e,2)}function ne(ae,_e){return c(ae.getHours()%12||12,_e,2)}function te(ae,_e){return c(1+t.timeDay.count(t.timeYear(ae),ae),_e,3)}function de(ae,_e){return c(ae.getMilliseconds(),_e,3)}function be(ae,_e){return de(ae,_e)+"000"}function re(ae,_e){return c(ae.getMonth()+1,_e,2)}function ge(ae,_e){return c(ae.getMinutes(),_e,2)}function ee(ae,_e){return c(ae.getSeconds(),_e,2)}function Ae(ae){var _e=ae.getDay();return _e===0?7:_e}function ke(ae,_e){return c(t.timeSunday.count(t.timeYear(ae)-1,ae),_e,2)}function De(ae){var _e=ae.getDay();return _e>=4||_e===0?t.timeThursday(ae):t.timeThursday.ceil(ae)}function Le(ae,_e){return ae=De(ae),c(t.timeThursday.count(t.timeYear(ae),ae)+(t.timeYear(ae).getDay()===4),_e,2)}function Se(ae){return ae.getDay()}function U(ae,_e){return c(t.timeMonday.count(t.timeYear(ae)-1,ae),_e,2)}function J(ae,_e){return c(ae.getFullYear()%100,_e,2)}function O(ae,_e){return ae=De(ae),c(ae.getFullYear()%100,_e,2)}function oe(ae,_e){return c(ae.getFullYear()%1e4,_e,4)}function me(ae,_e){var Te=ae.getDay();return ae=Te>=4||Te===0?t.timeThursday(ae):t.timeThursday.ceil(ae),c(ae.getFullYear()%1e4,_e,4)}function xe(ae){var _e=ae.getTimezoneOffset();return(_e>0?"-":(_e*=-1,"+"))+c(_e/60|0,"0",2)+c(_e%60,"0",2)}function qe(ae,_e){return c(ae.getUTCDate(),_e,2)}function Pe(ae,_e){return c(ae.getUTCHours(),_e,2)}function ye(ae,_e){return c(ae.getUTCHours()%12||12,_e,2)}function rt(ae,_e){return c(1+t.utcDay.count(t.utcYear(ae),ae),_e,3)}function Ue(ae,_e){return c(ae.getUTCMilliseconds(),_e,3)}function nt(ae,_e){return Ue(ae,_e)+"000"}function at(ae,_e){return c(ae.getUTCMonth()+1,_e,2)}function ft(ae,_e){return c(ae.getUTCMinutes(),_e,2)}function wt(ae,_e){return c(ae.getUTCSeconds(),_e,2)}function se(ae){var _e=ae.getUTCDay();return _e===0?7:_e}function Ce(ae,_e){return c(t.utcSunday.count(t.utcYear(ae)-1,ae),_e,2)}function it(ae){var _e=ae.getUTCDay();return _e>=4||_e===0?t.utcThursday(ae):t.utcThursday.ceil(ae)}function ct(ae,_e){return ae=it(ae),c(t.utcThursday.count(t.utcYear(ae),ae)+(t.utcYear(ae).getUTCDay()===4),_e,2)}function Je(ae){return ae.getUTCDay()}function we(ae,_e){return c(t.utcMonday.count(t.utcYear(ae)-1,ae),_e,2)}function Me(ae,_e){return c(ae.getUTCFullYear()%100,_e,2)}function Ye(ae,_e){return ae=it(ae),c(ae.getUTCFullYear()%100,_e,2)}function je(ae,_e){return c(ae.getUTCFullYear()%1e4,_e,4)}function ze(ae,_e){var Te=ae.getUTCDay();return ae=Te>=4||Te===0?t.utcThursday(ae):t.utcThursday.ceil(ae),c(ae.getUTCFullYear()%1e4,_e,4)}function Ge(){return"+0000"}function mt(){return"%"}function Tt(ae){return+ae}function ot(ae){return Math.floor(+ae/1e3)}var Ne;et({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 et(ae){return Ne=i(ae),e.timeFormat=Ne.format,e.timeParse=Ne.parse,e.utcFormat=Ne.utcFormat,e.utcParse=Ne.utcParse,Ne}var Oe="%Y-%m-%dT%H:%M:%S.%LZ";function st(ae){return ae.toISOString()}var dt=Date.prototype.toISOString?st:e.utcFormat(Oe);function vt(ae){var _e=new Date(ae);return isNaN(_e)?null:_e}var pt=+new Date("2000-01-01T00:00:00.000Z")?vt:e.utcParse(Oe);e.isoFormat=dt,e.isoParse=pt,e.timeFormatDefaultLocale=et,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var rg=I((Ld,aS)=>{(function(e,t){typeof Ld=="object"&&typeof aS!="undefined"?t(Ld):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(Ld,function(e){"use strict";function t(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)}function r(S,q){if((P=(S=q?S.toExponential(q-1):S.toExponential()).indexOf("e"))<0)return null;var P,E=S.slice(0,P);return[E.length>1?E[0]+E.slice(2):E,+S.slice(P+1)]}function a(S){return S=r(Math.abs(S)),S?S[1]:NaN}function n(S,q){return function(P,E){for(var F=P.length,N=[],j=0,B=S[0],W=0;F>0&&B>0&&(W+B+1>E&&(B=Math.max(1,E-W)),N.push(P.substring(F-=B,F+B)),!((W+=B+1)>E));)B=S[j=(j+1)%S.length];return N.reverse().join(q)}}function i(S){return function(q){return q.replace(/[0-9]/g,function(P){return S[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(S){if(!(q=o.exec(S)))throw new Error("invalid format: "+S);var q;return new l({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}s.prototype=l.prototype;function l(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}l.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(S){e:for(var q=S.length,P=1,E=-1,F;P0&&(E=0);break}return E>0?S.slice(0,E)+S.slice(F+1):S}var c;function d(S,q){var P=r(S,q);if(!P)return S+"";var E=P[0],F=P[1],N=F-(c=Math.max(-8,Math.min(8,Math.floor(F/3)))*3)+1,j=E.length;return N===j?E:N>j?E+new Array(N-j+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+r(S,Math.max(0,q+N-1))[0]}function h(S,q){var P=r(S,q);if(!P)return S+"";var E=P[0],F=P[1];return F<0?"0."+new Array(-F).join("0")+E:E.length>F+1?E.slice(0,F+1)+"."+E.slice(F+1):E+new Array(F-E.length+2).join("0")}var p={"%":function(S,q){return(S*100).toFixed(q)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:t,e:function(S,q){return S.toExponential(q)},f:function(S,q){return S.toFixed(q)},g:function(S,q){return S.toPrecision(q)},o:function(S){return Math.round(S).toString(8)},p:function(S,q){return h(S*100,q)},r:h,s:d,X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function g(S){return S}var m=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(S){var q=S.grouping===void 0||S.thousands===void 0?g:n(m.call(S.grouping,Number),S.thousands+""),P=S.currency===void 0?"":S.currency[0]+"",E=S.currency===void 0?"":S.currency[1]+"",F=S.decimal===void 0?".":S.decimal+"",N=S.numerals===void 0?g:i(m.call(S.numerals,String)),j=S.percent===void 0?"%":S.percent+"",B=S.minus===void 0?"-":S.minus+"",W=S.nan===void 0?"NaN":S.nan+"";function V(Z){Z=s(Z);var $=Z.fill,ne=Z.align,te=Z.sign,de=Z.symbol,be=Z.zero,re=Z.width,ge=Z.comma,ee=Z.precision,Ae=Z.trim,ke=Z.type;ke==="n"?(ge=!0,ke="g"):p[ke]||(ee===void 0&&(ee=12),Ae=!0,ke="g"),(be||$==="0"&&ne==="=")&&(be=!0,$="0",ne="=");var De=de==="$"?P:de==="#"&&/[boxX]/.test(ke)?"0"+ke.toLowerCase():"",Le=de==="$"?E:/[%p]/.test(ke)?j:"",Se=p[ke],U=/[defgprs%]/.test(ke);ee=ee===void 0?6:/[gprs]/.test(ke)?Math.max(1,Math.min(21,ee)):Math.max(0,Math.min(20,ee));function J(O){var oe=De,me=Le,xe,qe,Pe;if(ke==="c")me=Se(O)+me,O="";else{O=+O;var ye=O<0||1/O<0;if(O=isNaN(O)?W:Se(Math.abs(O),ee),Ae&&(O=u(O)),ye&&+O==0&&te!=="+"&&(ye=!1),oe=(ye?te==="("?te:B:te==="-"||te==="("?"":te)+oe,me=(ke==="s"?b[8+c/3]:"")+me+(ye&&te==="("?")":""),U){for(xe=-1,qe=O.length;++xePe||Pe>57){me=(Pe===46?F+O.slice(xe+1):O.slice(xe))+me,O=O.slice(0,xe);break}}}ge&&!be&&(O=q(O,1/0));var rt=oe.length+O.length+me.length,Ue=rt>1)+oe+O+me+Ue.slice(rt);break;default:O=Ue+oe+O+me;break}return N(O)}return J.toString=function(){return Z+""},J}function Y(Z,$){var ne=V((Z=s(Z),Z.type="f",Z)),te=Math.max(-8,Math.min(8,Math.floor(a($)/3)))*3,de=Math.pow(10,-te),be=b[8+te/3];return function(re){return ne(de*re)+be}}return{format:V,formatPrefix:Y}}var _;k({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function k(S){return _=x(S),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function w(S){return Math.max(0,-a(Math.abs(S)))}function A(S,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(S)))}function L(S,q){return S=Math.abs(S),q=Math.abs(q)-S,Math.max(0,a(q)-a(S))+1}e.FormatSpecifier=l,e.formatDefaultLocale=k,e.formatLocale=x,e.formatSpecifier=s,e.precisionFixed=w,e.precisionPrefix=A,e.precisionRound=L,Object.defineProperty(e,"__esModule",{value:!0})})});var iS=I((B0e,nS)=>{"use strict";nS.exports=function(e){for(var t=e.length,r,a=0;a13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var jt=I((U0e,oS)=>{"use strict";var WQ=iS();oS.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&WQ(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Tr=I((G0e,sS)=>{"use strict";sS.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,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var jo=I(Yi=>{"use strict";var ag=Array.isArray,VQ=ArrayBuffer,YQ=DataView;function lS(e){return VQ.isView(e)&&!(e instanceof YQ)}Yi.isTypedArray=lS;function qd(e){return ag(e)||lS(e)}Yi.isArrayOrTypedArray=qd;function ZQ(e){return!qd(e[0])}Yi.isArray1D=ZQ;Yi.ensureArray=function(e,t){return ag(e)||(e=[]),e.length=t,e};Yi.concat=function(){var e=[],t=!0,r=0,a,n,i,o,s,l,u,c;for(i=0;i{"use strict";var fS=jt(),ng=jo().isArrayOrTypedArray;vS.exports=function(t,r){if(fS(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";for(var a=0,n=r.split("."),i,o,s;a{"use strict";var el=Dd(),JQ=/^\w*$/,eK=0,pS=1,Pd=2,mS=3,Oo=4;gS.exports=function(t,r,a,n){a=a||"name",n=n||"value";var i,o,s,l={};r&&r.length?(s=el(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(i=0;i2)return l[p]=l[p]|Pd,d.set(h,null);if(c){for(i=p;i{"use strict";var tK=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,rK=/^[^\.\[\]]+$/;bS.exports=function(e,t){for(;t;){var r=e.match(tK);if(r)e=r[1];else if(e.match(rK))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var tl=I((X0e,_S)=>{"use strict";_S.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Rd=I(($0e,wS)=>{"use strict";var aK=jt();wS.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var a=Math.log(Math.min(r[0],r[1]))/Math.LN10;return aK(a)||(a=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),a}});var kS=I((Q0e,AS)=>{"use strict";var TS=jo().isArrayOrTypedArray,Bu=tl();AS.exports=function e(t,r){for(var a in r){var n=r[a],i=t[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in t)continue;t[a]=n}else if(TS(n)&&TS(i)&&Bu(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),s=0;s{"use strict";function nK(e,t){var r=e%t;return r<0?r+t:r}function iK(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}MS.exports={mod:nK,modHalf:iK}});var Pn=I((J0e,Ed)=>{(function(e){var t=/^\s+/,r=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,s=e.random;function l(U,J){if(U=U||"",J=J||{},U instanceof l)return U;if(!(this instanceof l))return new l(U,J);var O=u(U);this._originalInput=U,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=n(100*this._a)/100,this._format=J.format||O.format,this._gradientType=J.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=O.ok,this._tc_id=a++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),J,O,oe,me,xe,qe;return J=U.r/255,O=U.g/255,oe=U.b/255,J<=.03928?me=J/12.92:me=e.pow((J+.055)/1.055,2.4),O<=.03928?xe=O/12.92:xe=e.pow((O+.055)/1.055,2.4),oe<=.03928?qe=oe/12.92:qe=e.pow((oe+.055)/1.055,2.4),.2126*me+.7152*xe+.0722*qe},setAlpha:function(U){return this._a=Z(U),this._roundA=n(100*this._a)/100,this},toHsv:function(){var U=p(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=p(this._r,this._g,this._b),J=n(U.h*360),O=n(U.s*100),oe=n(U.v*100);return this._a==1?"hsv("+J+", "+O+"%, "+oe+"%)":"hsva("+J+", "+O+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=d(this._r,this._g,this._b),J=n(U.h*360),O=n(U.s*100),oe=n(U.l*100);return this._a==1?"hsl("+J+", "+O+"%, "+oe+"%)":"hsla("+J+", "+O+"%, "+oe+"%, "+this._roundA+")"},toHex:function(U){return m(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return b(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n($(this._r,255)*100)+"%",g:n($(this._g,255)*100)+"%",b:n($(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n($(this._r,255)*100)+"%, "+n($(this._g,255)*100)+"%, "+n($(this._b,255)*100)+"%)":"rgba("+n($(this._r,255)*100)+"%, "+n($(this._g,255)*100)+"%, "+n($(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var J="#"+x(this._r,this._g,this._b,this._a),O=J,oe=this._gradientType?"GradientType = 1, ":"";if(U){var me=l(U);O="#"+x(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+J+",endColorstr="+O+")"},toString:function(U){var J=!!U;U=U||this._format;var O=!1,oe=this._a<1&&this._a>=0,me=!J&&oe&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return me?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(O=this.toRgbString()),U==="prgb"&&(O=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(O=this.toHexString()),U==="hex3"&&(O=this.toHexString(!0)),U==="hex4"&&(O=this.toHex8String(!0)),U==="hex8"&&(O=this.toHex8String()),U==="name"&&(O=this.toName()),U==="hsl"&&(O=this.toHslString()),U==="hsv"&&(O=this.toHsvString()),O||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(U,J){var O=U.apply(null,[this].concat([].slice.call(J)));return this._r=O._r,this._g=O._g,this._b=O._b,this.setAlpha(O._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(L,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(U,J){return U.apply(null,[this].concat([].slice.call(J)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(F,arguments)}},l.fromRatio=function(U,J){if(typeof U=="object"){var O={};for(var oe in U)U.hasOwnProperty(oe)&&(oe==="a"?O[oe]=U[oe]:O[oe]=ge(U[oe]));U=O}return l(U,J)};function u(U){var J={r:0,g:0,b:0},O=1,oe=null,me=null,xe=null,qe=!1,Pe=!1;return typeof U=="string"&&(U=Le(U)),typeof U=="object"&&(De(U.r)&&De(U.g)&&De(U.b)?(J=c(U.r,U.g,U.b),qe=!0,Pe=String(U.r).substr(-1)==="%"?"prgb":"rgb"):De(U.h)&&De(U.s)&&De(U.v)?(oe=ge(U.s),me=ge(U.v),J=g(U.h,oe,me),qe=!0,Pe="hsv"):De(U.h)&&De(U.s)&&De(U.l)&&(oe=ge(U.s),xe=ge(U.l),J=h(U.h,oe,xe),qe=!0,Pe="hsl"),U.hasOwnProperty("a")&&(O=U.a)),O=Z(O),{ok:qe,format:U.format||Pe,r:i(255,o(J.r,0)),g:i(255,o(J.g,0)),b:i(255,o(J.b,0)),a:O}}function c(U,J,O){return{r:$(U,255)*255,g:$(J,255)*255,b:$(O,255)*255}}function d(U,J,O){U=$(U,255),J=$(J,255),O=$(O,255);var oe=o(U,J,O),me=i(U,J,O),xe,qe,Pe=(oe+me)/2;if(oe==me)xe=qe=0;else{var ye=oe-me;switch(qe=Pe>.5?ye/(2-oe-me):ye/(oe+me),oe){case U:xe=(J-O)/ye+(J1&&(nt-=1),nt<1/6?rt+(Ue-rt)*6*nt:nt<1/2?Ue:nt<2/3?rt+(Ue-rt)*(2/3-nt)*6:rt}if(J===0)oe=me=xe=O;else{var Pe=O<.5?O*(1+J):O+J-O*J,ye=2*O-Pe;oe=qe(ye,Pe,U+1/3),me=qe(ye,Pe,U),xe=qe(ye,Pe,U-1/3)}return{r:oe*255,g:me*255,b:xe*255}}function p(U,J,O){U=$(U,255),J=$(J,255),O=$(O,255);var oe=o(U,J,O),me=i(U,J,O),xe,qe,Pe=oe,ye=oe-me;if(qe=oe===0?0:ye/oe,oe==me)xe=0;else{switch(oe){case U:xe=(J-O)/ye+(J>1)+720)%360;--J;)oe.h=(oe.h+me)%360,xe.push(l(oe));return xe}function B(U,J){J=J||6;for(var O=l(U).toHsv(),oe=O.h,me=O.s,xe=O.v,qe=[],Pe=1/J;J--;)qe.push(l({h:oe,s:me,v:xe})),xe=(xe+Pe)%1;return qe}l.mix=function(U,J,O){O=O===0?0:O||50;var oe=l(U).toRgb(),me=l(J).toRgb(),xe=O/100,qe={r:(me.r-oe.r)*xe+oe.r,g:(me.g-oe.g)*xe+oe.g,b:(me.b-oe.b)*xe+oe.b,a:(me.a-oe.a)*xe+oe.a};return l(qe)},l.readability=function(U,J){var O=l(U),oe=l(J);return(e.max(O.getLuminance(),oe.getLuminance())+.05)/(e.min(O.getLuminance(),oe.getLuminance())+.05)},l.isReadable=function(U,J,O){var oe=l.readability(U,J),me,xe;switch(xe=!1,me=Se(O),me.level+me.size){case"AAsmall":case"AAAlarge":xe=oe>=4.5;break;case"AAlarge":xe=oe>=3;break;case"AAAsmall":xe=oe>=7;break}return xe},l.mostReadable=function(U,J,O){var oe=null,me=0,xe,qe,Pe,ye;O=O||{},qe=O.includeFallbackColors,Pe=O.level,ye=O.size;for(var rt=0;rtme&&(me=xe,oe=l(J[rt]));return l.isReadable(U,oe,{level:Pe,size:ye})||!qe?oe:(O.includeFallbackColors=!1,l.mostReadable(U,["#fff","#000"],O))};var W=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=l.hexNames=Y(W);function Y(U){var J={};for(var O in U)U.hasOwnProperty(O)&&(J[U[O]]=O);return J}function Z(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function $(U,J){de(U)&&(U="100%");var O=be(U);return U=i(J,o(0,parseFloat(U))),O&&(U=parseInt(U*J,10)/100),e.abs(U-J)<1e-6?1:U%J/parseFloat(J)}function ne(U){return i(1,o(0,U))}function te(U){return parseInt(U,16)}function de(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function be(U){return typeof U=="string"&&U.indexOf("%")!=-1}function re(U){return U.length==1?"0"+U:""+U}function ge(U){return U<=1&&(U=U*100+"%"),U}function ee(U){return e.round(parseFloat(U)*255).toString(16)}function Ae(U){return te(U)/255}var ke=function(){var U="[-\\+]?\\d+%?",J="[-\\+]?\\d*\\.\\d+%?",O="(?:"+J+")|(?:"+U+")",oe="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",me="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?";return{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function De(U){return!!ke.CSS_UNIT.exec(U)}function Le(U){U=U.replace(t,"").replace(r,"").toLowerCase();var J=!1;if(W[U])U=W[U],J=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var O;return(O=ke.rgb.exec(U))?{r:O[1],g:O[2],b:O[3]}:(O=ke.rgba.exec(U))?{r:O[1],g:O[2],b:O[3],a:O[4]}:(O=ke.hsl.exec(U))?{h:O[1],s:O[2],l:O[3]}:(O=ke.hsla.exec(U))?{h:O[1],s:O[2],l:O[3],a:O[4]}:(O=ke.hsv.exec(U))?{h:O[1],s:O[2],v:O[3]}:(O=ke.hsva.exec(U))?{h:O[1],s:O[2],v:O[3],a:O[4]}:(O=ke.hex8.exec(U))?{r:te(O[1]),g:te(O[2]),b:te(O[3]),a:Ae(O[4]),format:J?"name":"hex8"}:(O=ke.hex6.exec(U))?{r:te(O[1]),g:te(O[2]),b:te(O[3]),format:J?"name":"hex"}:(O=ke.hex4.exec(U))?{r:te(O[1]+""+O[1]),g:te(O[2]+""+O[2]),b:te(O[3]+""+O[3]),a:Ae(O[4]+""+O[4]),format:J?"name":"hex8"}:(O=ke.hex3.exec(U))?{r:te(O[1]+""+O[1]),g:te(O[2]+""+O[2]),b:te(O[3]+""+O[3]),format:J?"name":"hex"}:!1}function Se(U){var J,O;return U=U||{level:"AA",size:"small"},J=(U.level||"AA").toUpperCase(),O=(U.size||"small").toLowerCase(),J!=="AA"&&J!=="AAA"&&(J="AA"),O!=="small"&&O!=="large"&&(O="small"),{level:J,size:O}}typeof Ed!="undefined"&&Ed.exports?Ed.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)});var La=I((ebe,SS)=>{"use strict";SS.exports=function(e){var t=e.editType,r=e.colorEditType;r===void 0&&(r=t);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:r},editType:t,description:""+(e.description||"")+""};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var Uu=I((tbe,CS)=>{"use strict";CS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var al=I((rbe,DS)=>{"use strict";var LS=Uu(),qS=La(),og=qS({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});og.family.dflt=LS.HOVERFONT;og.size.dflt=LS.HOVERFONTSIZE;DS.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:og,grouptitlefont:qS({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}});var ra=I(Vu=>{"use strict";var PS=tl(),Gu=Array.isArray;function oK(e,t){var r,a;for(r=0;r{"use strict";var sK=La(),Id=al().hoverlabel,zd=ra().extendFlat;RS.exports={hoverlabel:{bgcolor:zd({},Id.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:zd({},Id.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:sK({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:zd({},Id.align,{arrayOk:!0}),namelength:zd({},Id.namelength,{arrayOk:!0}),editType:"none"}}});var Zi=I((ibe,ES)=>{"use strict";var lK=La(),uK=Nd();ES.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:lK({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with `*reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")},legendwidth:{valType:"number",min:0,editType:"style",description:"Sets the width (in px or fraction) of the legend for this trace."},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:uK.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["WARNING: All transforms are deprecated and may be removed from the API in next major version.","An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}});var Ho=I((obe,NS)=>{"use strict";var fK=Pn(),Fd={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)"]]},IS=Fd.RdBu;function cK(e,t){if(t||(t=IS),!e)return t;function r(){try{e=Fd[e]||JSON.parse(e)}catch{e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),zS(e)?e:t}function zS(e){var t=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 r=0;r{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*(14-4)/(15-4)});var It=I((lbe,FS)=>{"use strict";var Rn=Pn(),hK=jt(),vK=jo().isTypedArray,Zr=FS.exports={},jd=gi();Zr.defaults=jd.defaults;var pK=Zr.defaultLine=jd.defaultLine;Zr.lightLine=jd.lightLine;var sg=Zr.background=jd.background;Zr.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};Zr.rgb=function(e){return Zr.tinyRGB(Rn(e))};Zr.opacity=function(e){return e?Rn(e).getAlpha():0};Zr.addOpacity=function(e,t){var r=Rn(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};Zr.combine=function(e,t){var r=Rn(e).toRgb();if(r.a===1)return Rn(e).toRgbString();var a=Rn(t||sg).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-r.a)+r.r*r.a,g:n.g*(1-r.a)+r.g*r.a,b:n.b*(1-r.a)+r.b*r.a};return Rn(i).toRgbString()};Zr.contrast=function(e,t,r){var a=Rn(e);a.getAlpha()!==1&&(a=Rn(Zr.combine(e,sg)));var n=a.isDark()?t?a.lighten(t):sg:r?a.darken(r):pK;return n.toString()};Zr.stroke=function(e,t){var r=Rn(t);e.style({stroke:Zr.tinyRGB(r),"stroke-opacity":r.getAlpha()})};Zr.fill=function(e,t){var r=Rn(t);e.style({fill:Zr.tinyRGB(r),"fill-opacity":r.getAlpha()})};Zr.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,a,n,i;for(r=0;r=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Od=I((ube,jS)=>{"use strict";jS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var nl=I(OS=>{"use strict";OS.counter=function(e,t,r,a){var n=(t||"")+(r?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var GS=I(Ha=>{"use strict";var ug=jt(),HS=Pn(),mK=Zi(),BS=Ho(),gK=It(),yK=Od().DESELECTDIM,il=Dd(),US=nl().counter,bK=rl().modHalf,Hd=jo().isArrayOrTypedArray;Ha.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Hd(e)?t.set(e):r!==void 0&&t.set(r)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,r,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,a=0;aa.max?t.set(r):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,r,a){e%1||!ug(e)||a.min!==void 0&&ea.max?t.set(r):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,r,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?t.set(r):t.set(String(e))}else a.noBlank&&!e?t.set(r):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){HS(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){function a(n){return HS(n).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(a)?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(BS.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){t.set(BS.get(e,r))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){e==="auto"?t.set("auto"):ug(e)?t.set(bK(+e,360)):t.set(r)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,r,a){var n=a.regex||US(r);if(typeof e=="string"&&n.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!US(r).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,r,a){if((a.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var n=e.split("+"),i=0;i{"use strict";var WS={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},editSelection:{valType:"boolean",dflt:!0,description:"Enables moving selections."},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},VS={};function YS(e,t){for(var r in e){var a=e[r];a.valType?t[r]=a.dflt:(t[r]||(t[r]={}),YS(a,t[r]))}}YS(WS,VS);ZS.exports={configAttributes:WS,dfltConfig:VS}});var cg=I((hbe,XS)=>{"use strict";var fg=Ft(),xK=jt(),Yu=[];XS.exports=function(e,t){if(Yu.indexOf(e)!==-1)return;Yu.push(e);var r=1e3;xK(t)?r=t:t==="long"&&(r=3e3);var a=fg.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Yu);function i(o){o.duration(700).style("opacity",0).each("end",function(s){var l=Yu.indexOf(s);l!==-1&&Yu.splice(l,1),fg.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=fg.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var ol=Uo().dfltConfig,dg=cg(),hg=$S.exports={};hg.log=function(){var e;if(ol.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};hg.warn=function(){var e;if(ol.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};hg.error=function(){var e;if(ol.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var Ud=I((pbe,QS)=>{"use strict";QS.exports=function(){}});var vg=I((mbe,KS)=>{"use strict";KS.exports=function(t,r){if(r instanceof RegExp){for(var a=r.toString(),n=0;n{JS.exports=_K;function _K(){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 r3=I((ybe,t3)=>{t3.exports=wK;function wK(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var n3=I((bbe,a3)=>{a3.exports=TK;function TK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var pg=I((xbe,i3)=>{i3.exports=AK;function AK(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 s3=I((_be,o3)=>{o3.exports=kK;function kK(e,t){if(e===t){var r=t[1],a=t[2],n=t[3],i=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=a,e[9]=i,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var u3=I((wbe,l3)=>{l3.exports=MK;function MK(e,t){var r=t[0],a=t[1],n=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],d=t[9],h=t[10],p=t[11],g=t[12],m=t[13],b=t[14],x=t[15],_=r*s-a*o,k=r*l-n*o,w=r*u-i*o,A=a*l-n*s,L=a*u-i*s,S=n*u-i*l,q=c*m-d*g,P=c*b-h*g,E=c*x-p*g,F=d*b-h*m,N=d*x-p*m,j=h*x-p*b,B=_*j-k*N+w*F+A*E-L*P+S*q;return B?(B=1/B,e[0]=(s*j-l*N+u*F)*B,e[1]=(n*N-a*j-i*F)*B,e[2]=(m*S-b*L+x*A)*B,e[3]=(h*L-d*S-p*A)*B,e[4]=(l*E-o*j-u*P)*B,e[5]=(r*j-n*E+i*P)*B,e[6]=(b*w-g*S-x*k)*B,e[7]=(c*S-h*w+p*k)*B,e[8]=(o*N-s*E+u*q)*B,e[9]=(a*E-r*N-i*q)*B,e[10]=(g*L-m*w+x*_)*B,e[11]=(d*w-c*L-p*_)*B,e[12]=(s*P-o*F-l*q)*B,e[13]=(r*F-a*P+n*q)*B,e[14]=(m*k-g*A-b*_)*B,e[15]=(c*A-d*k+h*_)*B,e):null}});var c3=I((Tbe,f3)=>{f3.exports=SK;function SK(e,t){var r=t[0],a=t[1],n=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],d=t[9],h=t[10],p=t[11],g=t[12],m=t[13],b=t[14],x=t[15];return e[0]=s*(h*x-p*b)-d*(l*x-u*b)+m*(l*p-u*h),e[1]=-(a*(h*x-p*b)-d*(n*x-i*b)+m*(n*p-i*h)),e[2]=a*(l*x-u*b)-s*(n*x-i*b)+m*(n*u-i*l),e[3]=-(a*(l*p-u*h)-s*(n*p-i*h)+d*(n*u-i*l)),e[4]=-(o*(h*x-p*b)-c*(l*x-u*b)+g*(l*p-u*h)),e[5]=r*(h*x-p*b)-c*(n*x-i*b)+g*(n*p-i*h),e[6]=-(r*(l*x-u*b)-o*(n*x-i*b)+g*(n*u-i*l)),e[7]=r*(l*p-u*h)-o*(n*p-i*h)+c*(n*u-i*l),e[8]=o*(d*x-p*m)-c*(s*x-u*m)+g*(s*p-u*d),e[9]=-(r*(d*x-p*m)-c*(a*x-i*m)+g*(a*p-i*d)),e[10]=r*(s*x-u*m)-o*(a*x-i*m)+g*(a*u-i*s),e[11]=-(r*(s*p-u*d)-o*(a*p-i*d)+c*(a*u-i*s)),e[12]=-(o*(d*b-h*m)-c*(s*b-l*m)+g*(s*h-l*d)),e[13]=r*(d*b-h*m)-c*(a*b-n*m)+g*(a*h-n*d),e[14]=-(r*(s*b-l*m)-o*(a*b-n*m)+g*(a*l-n*s)),e[15]=r*(s*h-l*d)-o*(a*h-n*d)+c*(a*l-n*s),e}});var h3=I((Abe,d3)=>{d3.exports=CK;function CK(e){var t=e[0],r=e[1],a=e[2],n=e[3],i=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11],p=e[12],g=e[13],m=e[14],b=e[15],x=t*o-r*i,_=t*s-a*i,k=t*l-n*i,w=r*s-a*o,A=r*l-n*o,L=a*l-n*s,S=u*g-c*p,q=u*m-d*p,P=u*b-h*p,E=c*m-d*g,F=c*b-h*g,N=d*b-h*m;return x*N-_*F+k*E+w*P-A*q+L*S}});var p3=I((kbe,v3)=>{v3.exports=LK;function LK(e,t,r){var a=t[0],n=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=t[9],p=t[10],g=t[11],m=t[12],b=t[13],x=t[14],_=t[15],k=r[0],w=r[1],A=r[2],L=r[3];return e[0]=k*a+w*s+A*d+L*m,e[1]=k*n+w*l+A*h+L*b,e[2]=k*i+w*u+A*p+L*x,e[3]=k*o+w*c+A*g+L*_,k=r[4],w=r[5],A=r[6],L=r[7],e[4]=k*a+w*s+A*d+L*m,e[5]=k*n+w*l+A*h+L*b,e[6]=k*i+w*u+A*p+L*x,e[7]=k*o+w*c+A*g+L*_,k=r[8],w=r[9],A=r[10],L=r[11],e[8]=k*a+w*s+A*d+L*m,e[9]=k*n+w*l+A*h+L*b,e[10]=k*i+w*u+A*p+L*x,e[11]=k*o+w*c+A*g+L*_,k=r[12],w=r[13],A=r[14],L=r[15],e[12]=k*a+w*s+A*d+L*m,e[13]=k*n+w*l+A*h+L*b,e[14]=k*i+w*u+A*p+L*x,e[15]=k*o+w*c+A*g+L*_,e}});var g3=I((Mbe,m3)=>{m3.exports=qK;function qK(e,t,r){var a=r[0],n=r[1],i=r[2],o,s,l,u,c,d,h,p,g,m,b,x;return t===e?(e[12]=t[0]*a+t[4]*n+t[8]*i+t[12],e[13]=t[1]*a+t[5]*n+t[9]*i+t[13],e[14]=t[2]*a+t[6]*n+t[10]*i+t[14],e[15]=t[3]*a+t[7]*n+t[11]*i+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],d=t[5],h=t[6],p=t[7],g=t[8],m=t[9],b=t[10],x=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=d,e[6]=h,e[7]=p,e[8]=g,e[9]=m,e[10]=b,e[11]=x,e[12]=o*a+c*n+g*i+t[12],e[13]=s*a+d*n+m*i+t[13],e[14]=l*a+h*n+b*i+t[14],e[15]=u*a+p*n+x*i+t[15]),e}});var b3=I((Sbe,y3)=>{y3.exports=DK;function DK(e,t,r){var a=r[0],n=r[1],i=r[2];return e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var _3=I((Cbe,x3)=>{x3.exports=PK;function PK(e,t,r,a){var n=a[0],i=a[1],o=a[2],s=Math.sqrt(n*n+i*i+o*o),l,u,c,d,h,p,g,m,b,x,_,k,w,A,L,S,q,P,E,F,N,j,B,W;return Math.abs(s)<1e-6?null:(s=1/s,n*=s,i*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,d=t[0],h=t[1],p=t[2],g=t[3],m=t[4],b=t[5],x=t[6],_=t[7],k=t[8],w=t[9],A=t[10],L=t[11],S=n*n*c+u,q=i*n*c+o*l,P=o*n*c-i*l,E=n*i*c-o*l,F=i*i*c+u,N=o*i*c+n*l,j=n*o*c+i*l,B=i*o*c-n*l,W=o*o*c+u,e[0]=d*S+m*q+k*P,e[1]=h*S+b*q+w*P,e[2]=p*S+x*q+A*P,e[3]=g*S+_*q+L*P,e[4]=d*E+m*F+k*N,e[5]=h*E+b*F+w*N,e[6]=p*E+x*F+A*N,e[7]=g*E+_*F+L*N,e[8]=d*j+m*B+k*W,e[9]=h*j+b*B+w*W,e[10]=p*j+x*B+A*W,e[11]=g*j+_*B+L*W,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var T3=I((Lbe,w3)=>{w3.exports=RK;function RK(e,t,r){var a=Math.sin(r),n=Math.cos(r),i=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*n+u*a,e[5]=o*n+c*a,e[6]=s*n+d*a,e[7]=l*n+h*a,e[8]=u*n-i*a,e[9]=c*n-o*a,e[10]=d*n-s*a,e[11]=h*n-l*a,e}});var k3=I((qbe,A3)=>{A3.exports=EK;function EK(e,t,r){var a=Math.sin(r),n=Math.cos(r),i=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],d=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*n-u*a,e[1]=o*n-c*a,e[2]=s*n-d*a,e[3]=l*n-h*a,e[8]=i*a+u*n,e[9]=o*a+c*n,e[10]=s*a+d*n,e[11]=l*a+h*n,e}});var S3=I((Dbe,M3)=>{M3.exports=IK;function IK(e,t,r){var a=Math.sin(r),n=Math.cos(r),i=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],d=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*n+u*a,e[1]=o*n+c*a,e[2]=s*n+d*a,e[3]=l*n+h*a,e[4]=u*n-i*a,e[5]=c*n-o*a,e[6]=d*n-s*a,e[7]=h*n-l*a,e}});var L3=I((Pbe,C3)=>{C3.exports=zK;function zK(e,t,r){var a,n,i,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,a=Math.sin(t),n=Math.cos(t),i=1-n,e[0]=o*o*i+n,e[1]=s*o*i+l*a,e[2]=l*o*i-s*a,e[3]=0,e[4]=o*s*i-l*a,e[5]=s*s*i+n,e[6]=l*s*i+o*a,e[7]=0,e[8]=o*l*i+s*a,e[9]=s*l*i-o*a,e[10]=l*l*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var D3=I((Rbe,q3)=>{q3.exports=NK;function NK(e,t,r){var a=t[0],n=t[1],i=t[2],o=t[3],s=a+a,l=n+n,u=i+i,c=a*s,d=a*l,h=a*u,p=n*l,g=n*u,m=i*u,b=o*s,x=o*l,_=o*u;return e[0]=1-(p+m),e[1]=d+_,e[2]=h-x,e[3]=0,e[4]=d-_,e[5]=1-(c+m),e[6]=g+b,e[7]=0,e[8]=h+x,e[9]=g-b,e[10]=1-(c+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var R3=I((Ebe,P3)=>{P3.exports=FK;function FK(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var I3=I((Ibe,E3)=>{E3.exports=jK;function jK(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var N3=I((zbe,z3)=>{z3.exports=OK;function OK(e,t){var r=Math.sin(t),a=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var j3=I((Nbe,F3)=>{F3.exports=HK;function HK(e,t){var r=Math.sin(t),a=Math.cos(t);return e[0]=a,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var H3=I((Fbe,O3)=>{O3.exports=BK;function BK(e,t){var r=Math.sin(t),a=Math.cos(t);return e[0]=a,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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 mg=I((jbe,B3)=>{B3.exports=UK;function UK(e,t){var r=t[0],a=t[1],n=t[2],i=t[3],o=r+r,s=a+a,l=n+n,u=r*o,c=a*o,d=a*s,h=n*o,p=n*s,g=n*l,m=i*o,b=i*s,x=i*l;return e[0]=1-d-g,e[1]=c+x,e[2]=h-b,e[3]=0,e[4]=c-x,e[5]=1-u-g,e[6]=p+m,e[7]=0,e[8]=h+b,e[9]=p-m,e[10]=1-u-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var G3=I((Obe,U3)=>{U3.exports=GK;function GK(e,t,r,a,n,i,o){var s=1/(r-t),l=1/(n-a),u=1/(i-o);return e[0]=i*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(n+a)*l,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var V3=I((Hbe,W3)=>{W3.exports=WK;function WK(e,t,r,a,n){var i=1/Math.tan(t/2),o=1/(a-n);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var Z3=I((Bbe,Y3)=>{Y3.exports=VK;function VK(e,t,r,a){var n=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(n+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(n-i)*u*.5,e[10]=a/(r-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*r/(r-a),e[15]=0,e}});var $3=I((Ube,X3)=>{X3.exports=YK;function YK(e,t,r,a,n,i,o){var s=1/(t-r),l=1/(a-n),u=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+a)*l,e[14]=(o+i)*u,e[15]=1,e}});var K3=I((Gbe,Q3)=>{var ZK=pg();Q3.exports=XK;function XK(e,t,r,a){var n,i,o,s,l,u,c,d,h,p,g=t[0],m=t[1],b=t[2],x=a[0],_=a[1],k=a[2],w=r[0],A=r[1],L=r[2];return Math.abs(g-w)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(b-L)<1e-6?ZK(e):(c=g-w,d=m-A,h=b-L,p=1/Math.sqrt(c*c+d*d+h*h),c*=p,d*=p,h*=p,n=_*h-k*d,i=k*c-x*h,o=x*d-_*c,p=Math.sqrt(n*n+i*i+o*o),p?(p=1/p,n*=p,i*=p,o*=p):(n=0,i=0,o=0),s=d*o-h*i,l=h*n-c*o,u=c*i-d*n,p=Math.sqrt(s*s+l*l+u*u),p?(p=1/p,s*=p,l*=p,u*=p):(s=0,l=0,u=0),e[0]=n,e[1]=s,e[2]=c,e[3]=0,e[4]=i,e[5]=l,e[6]=d,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*g+i*m+o*b),e[13]=-(s*g+l*m+u*b),e[14]=-(c*g+d*m+h*b),e[15]=1,e)}});var eC=I((Wbe,J3)=>{J3.exports=$K;function $K(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 gg=I((Vbe,tC)=>{tC.exports={create:e3(),clone:r3(),copy:n3(),identity:pg(),transpose:s3(),invert:u3(),adjoint:c3(),determinant:h3(),multiply:p3(),translate:g3(),scale:b3(),rotate:_3(),rotateX:T3(),rotateY:k3(),rotateZ:S3(),fromRotation:L3(),fromRotationTranslation:D3(),fromScaling:R3(),fromTranslation:I3(),fromXRotation:N3(),fromYRotation:j3(),fromZRotation:H3(),fromQuat:mg(),frustum:G3(),perspective:V3(),perspectiveFromFieldOfView:Z3(),ortho:$3(),lookAt:K3(),str:eC()}});var Gd=I(Ar=>{"use strict";var QK=gg();Ar.init2dArray=function(e,t){for(var r=new Array(e),a=0;a{"use strict";var KK=Ft(),JK=Go(),eJ=Gd(),tJ=gg();function rJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function aJ(e){var t=KK.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function rC(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function nJ(e,t){aC("global",e,t)}function aC(e,t,r){var a="plotly.js-style-"+e,n=document.getElementById(a);n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i.insertRule?i.insertRule(t+"{"+r+"}",0):i.addRule?i.addRule(t,r,0):JK.warn("addStyleRule failed")}function iJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&rC(r)}function oJ(e){var t=iC(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(a){var n=nC(a);if(n){var i=eJ.convertCssMatrix(n);r=tJ.multiply(r,r,i)}}),r}function nC(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function iC(e){for(var t=[];sJ(e);)t.push(e),e=e.parentNode;return t}function sJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function lJ(e,t){return e&&t&&e.x===t.x&&e.y===t.y&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}oC.exports={getGraphDiv:rJ,isPlotDiv:aJ,removeElement:rC,addStyleRule:nJ,addRelatedStyleRule:aC,deleteRelatedStyleRule:iJ,getFullTransformMatrix:oJ,getElementTransformMatrix:nC,getElementAndAncestors:iC,equalDomRects:lJ}});var Zu=I((Xbe,sC)=>{"use strict";sC.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}});var yi=I(yg=>{"use strict";yg.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")};yg.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")}});var uC=I((Qbe,lC)=>{"use strict";var uJ=yi().dash,fJ=ra().extendFlat;lC.exports={newshape:{line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,editType:"none",description:"Sets the line width (in px)."},dash:fJ({},uJ,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none",description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active shape."},editType:"none"}}});var cC=I((Kbe,fC)=>{"use strict";var cJ=yi().dash,dJ=ra().extendFlat;fC.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:dJ({},cJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}}});var Vd=I((Jbe,dC)=>{"use strict";dC.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}});var sl=I((e1e,mC)=>{"use strict";var bg=La(),hJ=Zu(),Yd=gi(),hC=uC(),vC=cC(),vJ=Vd(),pC=ra().extendFlat,Zd=bg({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});Zd.family.dflt='"Open Sans", verdana, arial, sans-serif';Zd.size.dflt=12;Zd.color.dflt=Yd.defaultLine;mC.exports={font:Zd,title:{text:{valType:"string",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:bg({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:pC(vJ({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:Yd.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:Yd.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:Yd.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:hC.newshape,activeshape:hC.activeshape,newselection:vC.newselection,activeselection:vC.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:pC({},hJ.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:bg({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}});var bt=I(Dt=>{"use strict";var ll=Go(),gC=Ud(),yC=vg(),pJ=tl(),mJ=Wd().addStyleRule,bC=ra(),gJ=Zi(),yJ=sl(),bJ=bC.extendFlat,Xd=bC.extendDeepAll;Dt.modules={};Dt.allCategories={};Dt.allTypes=[];Dt.subplotsRegistry={};Dt.transformsRegistry={};Dt.componentsRegistry={};Dt.layoutArrayContainers=[];Dt.layoutArrayRegexes=[];Dt.traceLayoutAttributes={};Dt.localeRegistry={};Dt.apiMethodRegistry={};Dt.collectableSubplotTypes=null;Dt.register=function(t){if(Dt.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var kJ=Js().timeFormat,kC=jt(),xg=Go(),Xi=rl().mod,ul=Tr(),fn=ul.BADNUM,Ba=ul.ONEDAY,Xu=ul.ONEHOUR,$i=ul.ONEMIN,fl=ul.ONESEC,$u=ul.EPOCHJD,bi=bt(),MC=Js().utcFormat,MJ=/^\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,SJ=/^\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,SC=new Date().getFullYear()-70;function xi(e){return e&&bi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}kr.dateTick0=function(e,t){var r=CJ(e,!!t);if(t<2)return r;var a=kr.dateTime2ms(r,e);return a+=Ba*(t-1),kr.ms2DateTime(a,0,e)};function CJ(e,t){return xi(e)?t?bi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:bi.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}kr.dfltRange=function(e){return xi(e)?bi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};kr.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var $d,Qd;kr.dateTime2ms=function(e,t){if(kr.isJSDate(e)){var r=e.getTimezoneOffset()*$i,a=(e.getUTCMinutes()-e.getMinutes())*$i+(e.getUTCSeconds()-e.getSeconds())*fl+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*$i;r=r-n/2+Xi(a-r+n/2,n)}return e=Number(e)-r,e>=$d&&e<=Qd?e:fn}if(typeof e!="string"&&typeof e!="number")return fn;e=String(e);var i=xi(t),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=i&&t.substr(0,7)==="chinese",l=e.match(s?SJ:MJ);if(!l)return fn;var u=l[1],c=l[3]||"1",d=Number(l[5]||1),h=Number(l[7]||0),p=Number(l[9]||0),g=Number(l[11]||0);if(i){if(u.length===2)return fn;u=Number(u);var m;try{var b=bi.getComponentMethod("calendars","getCal")(t);if(s){var x=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=b.newDate(u,b.toMonthIndex(u,c,x),d)}else m=b.newDate(u,Number(c),d)}catch{return fn}return m?(m.toJD()-$u)*Ba+h*Xu+p*$i+g*fl:fn}u.length===2?u=(Number(u)+2e3-SC)%100+SC:u=Number(u),c-=1;var _=new Date(Date.UTC(2e3,c,d,h,p));return _.setUTCFullYear(u),_.getUTCMonth()!==c||_.getUTCDate()!==d?fn:_.getTime()+g*fl};$d=kr.MIN_MS=kr.dateTime2ms("-9999");Qd=kr.MAX_MS=kr.dateTime2ms("9999-12-31 23:59:59.9999");kr.isDateTime=function(e,t){return kr.dateTime2ms(e,t)!==fn};function cl(e,t){return String(e+Math.pow(10,t)).substr(1)}var Kd=90*Ba,CC=3*Xu,LC=5*$i;kr.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=$d&&e<=Qd))return fn;t||(t=0);var a=Math.floor(Xi(e+.05,1)*10),n=Math.round(e-a/10),i,o,s,l,u,c;if(xi(r)){var d=Math.floor(n/Ba)+$u,h=Math.floor(Xi(e,Ba));try{i=bi.getComponentMethod("calendars","getCal")(r).fromJD(d).formatDate("yyyy-mm-dd")}catch{i=MC("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t=$d+Ba&&e<=Qd-Ba))return fn;var t=Math.floor(Xi(e+.05,1)*10),r=new Date(Math.round(e-t/10)),a=kJ("%Y-%m-%d")(r),n=r.getHours(),i=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return qC(a,n,i,o,s)};function qC(e,t,r,a,n){if((t||r||a||n)&&(e+=" "+cl(t,2)+":"+cl(r,2),(a||n)&&(e+=":"+cl(a,2),n))){for(var i=4;n%10==0;)i-=1,n/=10;e+="."+cl(n,i)}return e}kr.cleanDate=function(e,t,r){if(e===fn)return t;if(kr.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(xi(r))return xg.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=kr.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!kr.isDateTime(e,r))return xg.error("unrecognized date",e),t;return e};var LJ=/%\d?f/g,qJ=/%h/g,DJ={"1":"1","2":"1","3":"2","4":"2"};function DC(e,t,r,a){e=e.replace(LJ,function(i){var o=Math.min(+i.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var n=new Date(Math.floor(t+.05));if(e=e.replace(qJ,function(){return DJ[r("%q")(n)]}),xi(a))try{e=bi.getComponentMethod("calendars","worldCalFmt")(e,t,a)}catch{return"Invalid"}return r(e)(n)}var PJ=[59,59.9,59.99,59.999,59.9999];function RJ(e,t){var r=Xi(e+.05,Ba),a=cl(Math.floor(r/Xu),2)+":"+cl(Xi(Math.floor(r/$i),60),2);if(t!=="M"){kC(t)||(t=0);var n=Math.min(Xi(e/fl,60),PJ[t]),i=(100+n).toFixed(t).substr(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}kr.formatDate=function(e,t,r,a,n,i){if(n=xi(n)&&n,!t)if(r==="y")t=i.year;else if(r==="m")t=i.month;else if(r==="d")t=i.dayMonth+` `+i.year;else return RJ(e,r)+` `+DC(i.dayMonthYear,e,a,n);return DC(t,e,a,n)};var PC=3*Ba;kr.incrementMonth=function(e,t,r){r=xi(r)&&r;var a=Xi(e,Ba);if(e=Math.round(e-a),r)try{var n=Math.round(e/Ba)+$u,i=bi.getComponentMethod("calendars","getCal")(r),o=i.fromJD(n);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-$u)*Ba+a}catch{xg.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+PC);return s.setUTCMonth(s.getUTCMonth()+t)+a-PC};kr.findExactDates=function(e,t){for(var r=0,a=0,n=0,i=0,o,s,l=xi(t)&&bi.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";EC.exports=function(t){return t}});var Tg=I(_i=>{"use strict";var EJ=jt(),IJ=Go(),zJ=_g(),NJ=Tr().BADNUM,wg=1e-9;_i.findBin=function(e,t,r){if(EJ(t.start))return r?Math.ceil((e-t.start)/t.size-wg)-1:Math.floor((e-t.start)/t.size+wg);var a=0,n=t.length,i=0,o=n>1?(t[n-1]-t[0])/(n-1):1,s,l;for(o>=0?l=r?FJ:jJ:l=r?HJ:OJ,e+=o*wg*(r?-1:1)*(o>=0?1:-1);a90&&IJ.log("Long binary search..."),a-1};function FJ(e,t){return et}function HJ(e,t){return e>=t}_i.sorterAsc=function(e,t){return e-t};_i.sorterDes=function(e,t){return t-e};_i.distinctVals=function(e){var t=e.slice();t.sort(_i.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===NJ;r--);for(var a=t[r]-t[0]||1,n=a/(r||1)/1e4,i=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(i.push(l),o=l):u>n&&(a=Math.min(a,u),i.push(l),o=l)}return{vals:i,minDiff:a}};_i.roundUp=function(e,t,r){for(var a=0,n=t.length-1,i,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;a0&&(a=1),r&&a)return e.sort(t)}return a?e:e.reverse()};_i.findIndexOfMin=function(e,t){t=t||zJ;for(var r=1/0,a,n=0;n{"use strict";IC.exports=function(t){return Object.keys(t).sort()}});var zC=I(Or=>{"use strict";var Qu=jt(),BJ=jo().isArrayOrTypedArray;Or.aggNums=function(e,t,r,a){var n,i;if((!a||a>r.length)&&(a=r.length),Qu(t)||(t=!1),BJ(r[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var HC=I((s1e,OC)=>{"use strict";var NC=rl(),kg=NC.mod,UJ=NC.modHalf,Ku=Math.PI,Qi=2*Ku;function GJ(e){return e/180*Ku}function WJ(e){return e/Ku*180}function Mg(e){return Math.abs(e[1]-e[0])>Qi-1e-14}function FC(e,t){return UJ(t-e,Qi)}function VJ(e,t){return Math.abs(FC(e,t))}function jC(e,t){if(Mg(t))return!0;var r,a;t[0]a&&(a+=Qi);var n=kg(e,Qi),i=n+Qi;return n>=r&&n<=a||i>=r&&i<=a}function YJ(e,t,r,a){if(!jC(t,a))return!1;var n,i;return r[0]=n&&e<=i}function Sg(e,t,r,a,n,i,o){n=n||0,i=i||0;var s=Mg([r,a]),l,u,c,d,h;s?(l=0,u=Ku,c=Qi):r{"use strict";Wo.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};Wo.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};Wo.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};Wo.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};Wo.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};Wo.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var WC=I(Vo=>{"use strict";var Cg=rl().mod;Vo.segmentsIntersect=UC;function UC(e,t,r,a,n,i,o,s){var l=r-e,u=n-e,c=o-n,d=a-t,h=i-t,p=s-i,g=l*p-c*d;if(g===0)return null;var m=(u*p-c*h)/g,b=(u*d-l*h)/g;return b<0||b>1||m<0||m>1?null:{x:e+l*m,y:t+d*m}}Vo.segmentDistance=function(t,r,a,n,i,o,s,l){if(UC(t,r,a,n,i,o,s,l))return 0;var u=a-t,c=n-r,d=s-i,h=l-o,p=u*u+c*c,g=d*d+h*h,m=Math.min(Jd(u,c,p,i-t,o-r),Jd(u,c,p,s-t,l-r),Jd(d,h,g,t-i,r-o),Jd(d,h,g,a-i,n-o));return Math.sqrt(m)};function Jd(e,t,r,a,n){var i=a*e+n*t;if(i<0)return a*a+n*n;if(i>r){var o=a-e,s=n-t;return o*o+s*s}else{var l=a*t-n*e;return l*l/r}}var eh,Lg,GC;Vo.getTextLocation=function(t,r,a,n){if((t!==Lg||n!==GC)&&(eh={},Lg=t,GC=n),eh[a])return eh[a];var i=t.getPointAtLength(Cg(a-n/2,r)),o=t.getPointAtLength(Cg(a+n/2,r)),s=Math.atan((o.y-i.y)/(o.x-i.x)),l=t.getPointAtLength(Cg(a,r)),u=(l.x*4+i.x+o.x)/6,c=(l.y*4+i.y+o.y)/6,d={x:u,y:c,theta:s};return eh[a]=d,d};Vo.clearLocationCache=function(){Lg=null};Vo.getVisibleSegment=function(t,r,a){var n=r.left,i=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,d,h;function p(m){var b=t.getPointAtLength(m);m===0?d=b:m===u&&(h=b);var x=b.xi?b.x-i:0,_=b.ys?b.y-s:0;return Math.sqrt(x*x+_*_)}for(var g=p(l);g;){if(l+=g+a,l>c)return;g=p(l)}for(g=p(c);g;){if(c-=g+a,l>c)return;g=p(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(d.x-h.x)<.1&&Math.abs(d.y-h.y)<.1}};Vo.findPointOnPath=function(t,r,a,n){n=n||{};for(var i=n.pathLength||t.getTotalLength(),o=n.tolerance||.001,s=n.iterationLimit||30,l=t.getPointAtLength(0)[a]>t.getPointAtLength(i)[a]?-1:1,u=0,c=0,d=i,h,p,g;u0?d=h:c=h,u++}return p}});var th=I(Ju=>{"use strict";var wi={};Ju.throttle=function(t,r,a){var n=wi[t],i=Date.now();if(!n){for(var o in wi)wi[o].tsn.ts+r){s();return}n.timer=setTimeout(function(){s(),n.timer=null},r)};Ju.done=function(e){var t=wi[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var a=t.onDone;t.onDone=function(){a&&a(),r(),t.onDone=null}})};Ju.clear=function(e){if(e)VC(wi[e]),delete wi[e];else for(var t in wi)Ju.clear(t)};function VC(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ZC=I((c1e,YC)=>{"use strict";YC.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var XC=I((d1e,rh)=>{"use strict";rh.exports=qg;rh.exports.isMobile=qg;rh.exports.default=qg;var QJ=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,KJ=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function qg(e){e||(e={});var t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;var r=e.tablet?KJ.test(t):QJ.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var QC=I((h1e,$C)=>{"use strict";var JJ=jt(),eee=XC();$C.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=tee(),typeof r!="string")return!0;var a=eee({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!a)for(var n=r.split(" "),i=1;i-1;s--){var l=n[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(JJ(u)&&(u=+u),u>=13)return!0}}}return a};function tee(){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 JC=I((v1e,KC)=>{"use strict";var ree=Ft();KC.exports=function(t,r,a){var n=t.selectAll("g."+a.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=t.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=ree.select(this)}),n}});var tL=I((p1e,eL)=>{"use strict";var aee=bt();eL.exports=function(t,r){for(var a=t._context.locale,n=0;n<2;n++){for(var i=t._context.locales,o=0;o<2;o++){var s=(i[a]||{}).dictionary;if(s){var l=s[r];if(l)return l}i=aee.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return r}});var aL=I((m1e,rL)=>{"use strict";rL.exports=function(t){for(var r={},a=[],n=0,i=0;i{"use strict";nL.exports=function(t){for(var r=oee(t)?iee:nee,a=[],n=0;n{"use strict";oL.exports=function(t,r){if(!r)return t;var a=1/Math.abs(r),n=a>1?(a*t+a*r)/a:t+r,i=String(n).length;if(i>16){var o=String(r).length,s=String(t).length;if(i>=s+o){var l=parseFloat(n).toPrecision(12);l.indexOf("e+")===-1&&(n=+l)}}return n}});var uL=I((b1e,lL)=>{"use strict";var see=jt(),lee=Tr().BADNUM,uee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;lL.exports=function(t){return typeof t=="string"&&(t=t.replace(uee,"")),see(t)?Number(t):lee}});var Re=I((x1e,wL)=>{"use strict";var ef=Ft(),fee=Js().utcFormat,cee=rg().format,fL=jt(),cL=Tr(),dL=cL.FP_SAFE,dee=-dL,hL=cL.BADNUM,fe=wL.exports={};fe.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var vL={};fe.warnBadFormat=function(e){var t=String(e);vL[t]||(vL[t]=1,fe.warn('encountered bad format: "'+t+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var t;try{t=cee(fe.adjustFormat(e))}catch{return fe.warnBadFormat(e),fe.noFormat}return t};fe.nestedProperty=Dd();fe.keyedContainer=yS();fe.relativeAttr=xS();fe.isPlainObject=tl();fe.toLogRange=Rd();fe.relinkPrivateKeys=kS();var Yo=jo();fe.isTypedArray=Yo.isTypedArray;fe.isArrayOrTypedArray=Yo.isArrayOrTypedArray;fe.isArray1D=Yo.isArray1D;fe.ensureArray=Yo.ensureArray;fe.concat=Yo.concat;fe.maxRowLength=Yo.maxRowLength;fe.minRowLength=Yo.minRowLength;var pL=rl();fe.mod=pL.mod;fe.modHalf=pL.modHalf;var Ki=GS();fe.valObjectMeta=Ki.valObjectMeta;fe.coerce=Ki.coerce;fe.coerce2=Ki.coerce2;fe.coerceFont=Ki.coerceFont;fe.coercePattern=Ki.coercePattern;fe.coerceHoverinfo=Ki.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=Ki.coerceSelectionMarkerOpacity;fe.validate=Ki.validate;var Qa=RC();fe.dateTime2ms=Qa.dateTime2ms;fe.isDateTime=Qa.isDateTime;fe.ms2DateTime=Qa.ms2DateTime;fe.ms2DateTimeLocal=Qa.ms2DateTimeLocal;fe.cleanDate=Qa.cleanDate;fe.isJSDate=Qa.isJSDate;fe.formatDate=Qa.formatDate;fe.incrementMonth=Qa.incrementMonth;fe.dateTick0=Qa.dateTick0;fe.dfltRange=Qa.dfltRange;fe.findExactDates=Qa.findExactDates;fe.MIN_MS=Qa.MIN_MS;fe.MAX_MS=Qa.MAX_MS;var Zo=Tg();fe.findBin=Zo.findBin;fe.sorterAsc=Zo.sorterAsc;fe.sorterDes=Zo.sorterDes;fe.distinctVals=Zo.distinctVals;fe.roundUp=Zo.roundUp;fe.sort=Zo.sort;fe.findIndexOfMin=Zo.findIndexOfMin;fe.sortObjectKeys=Ag();var Ji=zC();fe.aggNums=Ji.aggNums;fe.len=Ji.len;fe.mean=Ji.mean;fe.median=Ji.median;fe.midRange=Ji.midRange;fe.variance=Ji.variance;fe.stdev=Ji.stdev;fe.interp=Ji.interp;var En=Gd();fe.init2dArray=En.init2dArray;fe.transposeRagged=En.transposeRagged;fe.dot=En.dot;fe.translationMatrix=En.translationMatrix;fe.rotationMatrix=En.rotationMatrix;fe.rotationXYMatrix=En.rotationXYMatrix;fe.apply3DTransform=En.apply3DTransform;fe.apply2DTransform=En.apply2DTransform;fe.apply2DTransform2=En.apply2DTransform2;fe.convertCssMatrix=En.convertCssMatrix;fe.inverseTransformMatrix=En.inverseTransformMatrix;var ti=HC();fe.deg2rad=ti.deg2rad;fe.rad2deg=ti.rad2deg;fe.angleDelta=ti.angleDelta;fe.angleDist=ti.angleDist;fe.isFullCircle=ti.isFullCircle;fe.isAngleInsideSector=ti.isAngleInsideSector;fe.isPtInsideSector=ti.isPtInsideSector;fe.pathArc=ti.pathArc;fe.pathSector=ti.pathSector;fe.pathAnnulus=ti.pathAnnulus;var dl=BC();fe.isLeftAnchor=dl.isLeftAnchor;fe.isCenterAnchor=dl.isCenterAnchor;fe.isRightAnchor=dl.isRightAnchor;fe.isTopAnchor=dl.isTopAnchor;fe.isMiddleAnchor=dl.isMiddleAnchor;fe.isBottomAnchor=dl.isBottomAnchor;var hl=WC();fe.segmentsIntersect=hl.segmentsIntersect;fe.segmentDistance=hl.segmentDistance;fe.getTextLocation=hl.getTextLocation;fe.clearLocationCache=hl.clearLocationCache;fe.getVisibleSegment=hl.getVisibleSegment;fe.findPointOnPath=hl.findPointOnPath;var ah=ra();fe.extendFlat=ah.extendFlat;fe.extendDeep=ah.extendDeep;fe.extendDeepAll=ah.extendDeepAll;fe.extendDeepNoArrays=ah.extendDeepNoArrays;var Dg=Go();fe.log=Dg.log;fe.warn=Dg.warn;fe.error=Dg.error;var hee=nl();fe.counterRegex=hee.counter;var Pg=th();fe.throttle=Pg.throttle;fe.throttleDone=Pg.done;fe.clearThrottle=Pg.clear;var ri=Wd();fe.getGraphDiv=ri.getGraphDiv;fe.isPlotDiv=ri.isPlotDiv;fe.removeElement=ri.removeElement;fe.addStyleRule=ri.addStyleRule;fe.addRelatedStyleRule=ri.addRelatedStyleRule;fe.deleteRelatedStyleRule=ri.deleteRelatedStyleRule;fe.getFullTransformMatrix=ri.getFullTransformMatrix;fe.getElementTransformMatrix=ri.getElementTransformMatrix;fe.getElementAndAncestors=ri.getElementAndAncestors;fe.equalDomRects=ri.equalDomRects;fe.clearResponsive=ZC();fe.preserveDrawingBuffer=QC();fe.makeTraceGroups=JC();fe._=tL();fe.notifier=cg();fe.filterUnique=aL();fe.filterVisible=iL();fe.pushUnique=vg();fe.increment=sL();fe.cleanNumber=uL();fe.ensureNumber=function(t){return fL(t)?(t=Number(t),t>dL||t=t?!1:fL(e)&&e>=0&&e%1==0};fe.noop=Ud();fe.identity=_g();fe.repeat=function(e,t){for(var r=new Array(t),a=0;ar?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};fe.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};fe.simpleMap=function(e,t,r,a,n){for(var i=e.length,o=new Array(i),s=0;s=Math.pow(2,r)?n>10?(fe.warn("randstr failed uniqueness"),o):e(t,r,a,(n||0)+1):o};fe.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(a){a[t]=e,r[a.name]=a,r.optionList.push(a)},r["_"+t]=e,r};fe.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,a=2*r,n=2*t-1,i=new Array(n),o=new Array(r),s,l,u,c;for(s=0;s=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=r&&(u=a-1-u),c+=e[u]*i[l];o[s]=c}return o};fe.syncOrAsync=function(e,t,r){var a,n;function i(){return fe.syncOrAsync(e,t,r)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(t),a&&a.then)return a.then(i);return r&&r(t)};fe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};fe.noneOrAll=function(e,t,r){if(!!e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};fe.fillArray=function(e,t,r,a){if(a=a||fe.identity,fe.isArrayOrTypedArray(e))for(var n=0;n1?n+o[1]:"";if(i&&(o.length>1||s.length>4||r))for(;a.test(s);)s=s.replace(a,"$1"+i+"$2");return s+l};fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var gL=/^\w*$/;fe.templateString=function(e,t){var r={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return gL.test(n)?i=t[n]:(r[n]=r[n]||fe.nestedProperty(t,n).get,i=r[n]()),fe.isValidTextValue(i)?i:""})};var bee={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=function(){return bL.apply(bee,arguments)};var xee={max:10,count:0,name:"texttemplate"};fe.texttemplateString=function(){return bL.apply(xee,arguments)};var yL=/^[:|\|]/;function bL(e,t,r){var a=this,n=arguments;t||(t={});var i={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(o,s,l){var u=s==="xother"||s==="yother",c=s==="_xother"||s==="_yother",d=s==="_xother_"||s==="_yother_",h=s==="xother_"||s==="yother_",p=u||c||h||d,g=s;(c||d)&&(g=g.substring(1)),(h||d)&&(g=g.substring(0,g.length-1));var m;if(p){if(m=t[g],m===void 0)return""}else{var b,x;for(x=3;x=nh&&o<=xL,u=s>=nh&&s<=xL;if(l&&(a=10*a+o-nh),u&&(n=10*n+s-nh),!l||!u){if(a!==n)return a-n;if(o!==s)return o-s}}return n-a};var vl=2e9;fe.seedPseudoRandom=function(){vl=2e9};fe.pseudoRandom=function(){var e=vl;return vl=(69069*vl+1)%4294967296,Math.abs(vl-e)<429496729?fe.pseudoRandom():vl/4294967296};fe.fillText=function(e,t,r){var a=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},n=fe.extractOption(e,t,"htx","hovertext");if(fe.isValidTextValue(n))return a(n);var i=fe.extractOption(e,t,"tx","text");if(fe.isValidTextValue(i))return a(i)};fe.isValidTextValue=function(e){return e||e===0};fe.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",a=0;a1&&(u=1):u=0,fe.strTranslate(n-u*(r+o),i-u*(a+s))+fe.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+a)+")":"")};fe.setTransormAndDisplay=function(e,t){e.attr("transform",fe.getTextTransform(t)),e.style("display",t.scale?null:"none")};fe.ensureUniformFontSize=function(e,t){var r=fe.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};fe.join2=function(e,t,r){var a=e.length;return a>1?e.slice(0,-1).join(t)+r+e[a-1]:e.join(t)};fe.bigFont=function(e){return Math.round(1.2*e)};var _L=fe.getFirefoxVersion(),_ee=_L!==null&&_L<86;fe.getPositionFromD3Event=function(){return _ee?[ef.event.layerX,ef.event.layerY]:[ef.event.offsetX,ef.event.offsetY]}});var kL=I(()=>{"use strict";var wee=Re(),TL={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Rg in TL)AL=Rg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),wee.addStyleRule(AL,TL[Rg]);var AL,Rg});var Eg=I((T1e,ML)=>{ML.exports=!0});var zg=I((A1e,SL)=>{"use strict";var Tee=Eg(),Ig;typeof global.matchMedia=="function"?Ig=!global.matchMedia("(hover: none)").matches:Ig=Tee;SL.exports=Ig});var sh=I((k1e,Ng)=>{"use strict";var pl=typeof Reflect=="object"?Reflect:null,CL=pl&&typeof pl.apply=="function"?pl.apply:function(t,r,a){return Function.prototype.apply.call(t,r,a)},ih;pl&&typeof pl.ownKeys=="function"?ih=pl.ownKeys:Object.getOwnPropertySymbols?ih=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:ih=function(t){return Object.getOwnPropertyNames(t)};function Aee(e){console&&console.warn&&console.warn(e)}var LL=Number.isNaN||function(t){return t!==t};function sr(){sr.init.call(this)}Ng.exports=sr;Ng.exports.once=Cee;sr.EventEmitter=sr;sr.prototype._events=void 0;sr.prototype._eventsCount=0;sr.prototype._maxListeners=void 0;var qL=10;function oh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(sr,"defaultMaxListeners",{enumerable:!0,get:function(){return qL},set:function(e){if(typeof e!="number"||e<0||LL(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qL=e}});sr.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};sr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||LL(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function DL(e){return e._maxListeners===void 0?sr.defaultMaxListeners:e._maxListeners}sr.prototype.getMaxListeners=function(){return DL(this)};sr.prototype.emit=function(t){for(var r=[],a=1;a0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")CL(l,this,r);else for(var u=l.length,c=zL(l,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Aee(s)}return e}sr.prototype.addListener=function(t,r){return PL(this,t,r,!1)};sr.prototype.on=sr.prototype.addListener;sr.prototype.prependListener=function(t,r){return PL(this,t,r,!0)};function kee(){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 RL(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=kee.bind(a);return n.listener=r,a.wrapFn=n,n}sr.prototype.once=function(t,r){return oh(r),this.on(t,RL(this,t,r)),this};sr.prototype.prependOnceListener=function(t,r){return oh(r),this.prependListener(t,RL(this,t,r)),this};sr.prototype.removeListener=function(t,r){var a,n,i,o,s;if(oh(r),n=this._events,n===void 0)return this;if(a=n[t],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount==0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,a.listener||r));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===r||a[o].listener===r){s=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Mee(a,i),a.length===1&&(n[t]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};sr.prototype.off=sr.prototype.removeListener;sr.prototype.removeAllListeners=function(t){var r,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[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete a[t]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(t,r[n]);return this};function EL(e,t,r){var a=e._events;if(a===void 0)return[];var n=a[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?See(n):zL(n,n.length)}sr.prototype.listeners=function(t){return EL(this,t,!0)};sr.prototype.rawListeners=function(t){return EL(this,t,!1)};sr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):IL.call(e,t)};sr.prototype.listenerCount=IL;function IL(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}sr.prototype.eventNames=function(){return this._eventsCount>0?ih(this._events):[]};function zL(e,t){for(var r=new Array(t),a=0;a{"use strict";var Fg=sh().EventEmitter,qee={init:function(e){if(e._ev instanceof Fg)return e;var t=new Fg,r=new Fg;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(a,n){typeof jQuery!="undefined"&&jQuery(e).trigger(a,n),t.emit(a,n),r.emit(a,n)},e},triggerHandler:function(e,t,r){var a,n;typeof jQuery!="undefined"&&(a=jQuery(e).triggerHandler(t,r));var i=e._ev;if(!i)return a;var o=i._events[t];if(!o)return a;function s(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var jL=Re(),Dee=Uo().dfltConfig;function Pee(e,t){for(var r=[],a,n=0;nDee.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ti.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ti.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ti.undo=function(t){var r,a;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,a=0;a=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,a=0;a{"use strict";BL.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}});var Ai=I((L1e,$L)=>{"use strict";var UL=Re(),GL=UL.extendFlat,Ree=UL.isPlainObject,WL={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},VL={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},Eee=WL.flags.slice().concat(["fullReplot"]),Iee=VL.flags.slice().concat("layoutReplot");$L.exports={traces:WL,layout:VL,traceFlags:function(){return YL(Eee)},layoutFlags:function(){return YL(Iee)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var a=r.split("+"),n=0;n{"use strict";var sa=bt(),rf=Re(),af=Zi(),Og=sl(),zee=jg(),Nee=Zu(),Fee=Uo().configAttributes,QL=Ai(),cn=rf.extendDeepAll,ml=rf.isPlainObject,jee=rf.isArrayOrTypedArray,lh=rf.nestedProperty,Oee=rf.valObjectMeta,Hg="_isSubplotObj",uh="_isLinkedToArray",Hee="_arrayAttrRegexps",KL="_deprecated",Bg=[Hg,uh,Hee,KL];Lr.IS_SUBPLOT_OBJ=Hg;Lr.IS_LINKED_TO_ARRAY=uh;Lr.DEPRECATED=KL;Lr.UNDERSCORE_ATTRS=Bg;Lr.get=function(){var e={};sa.allTypes.forEach(function(r){e[r]=Uee(r)});var t={};return Object.keys(sa.transformsRegistry).forEach(function(r){t[r]=Wee(r)}),{defs:{valObjects:Oee,metaKeys:Bg.concat(["description","role","editType","impliedEdits"]),editType:{traces:QL.traces,layout:QL.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:e,layout:Gee(),transforms:t,frames:Vee(),animation:Xo(Nee),config:Xo(Fee)}};Lr.crawl=function(e,t,r,a){var n=r||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Bg.indexOf(i)===-1){var s=(a?a+".":"")+i;t(o,i,e,n,s),!Lr.isValObject(o)&&ml(o)&&i!=="impliedEdits"&&Lr.crawl(o,t,n+1,s)}})};Lr.isValObject=function(e){return e&&e.valType!==void 0};Lr.findArrayAttributes=function(e){var t=[],r=[],a=[],n,i;function o(h,p,g,m){r=r.slice(0,m).concat([p]),a=a.slice(0,m).concat([h&&h._isLinkedToArray]);var b=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[m-1]==="colorbar"&&(p==="ticktext"||p==="tickvals"));!b||s(n,0,"")}function s(h,p,g){var m=h[r[p]],b=g+r[p];if(p===r.length-1)jee(m)&&t.push(i+b);else if(a[p]){if(Array.isArray(m))for(var x=0;x=o.length)return!1;n=(sa.transformsRegistry[o[s].type]||{}).attributes,i=n&&n[t[2]],a=3}else{var l=e._module;if(l||(l=(sa.modules[e.type||af.type.dflt]||{})._module),!l)return!1;if(n=l.attributes,i=n&&n[r],!i){var u=l.basePlotModule;u&&u.attributes&&(i=u.attributes[r])}i||(i=af[r])}return JL(i,t,a)};Lr.getLayoutValObject=function(e,t){var r=Bee(e,t[0]);return JL(r,t,1)};function Bee(e,t){var r,a,n,i,o=e._basePlotModules;if(o){var s;for(r=0;r=i.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!nf(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function nf(e){return e===Math.round(e)&&e>=0}function Uee(e){var t,r;t=sa.modules[e]._module,r=t.basePlotModule;var a={};a.type=null;var n=cn({},af),i=cn({},t.attributes);Lr.crawl(i,function(l,u,c,d,h){lh(n,h).set(void 0),l===void 0&&lh(i,h).set(void 0)}),cn(a,n),sa.traceIs(e,"noOpacity")&&delete a.opacity,sa.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),sa.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),t.selectPoints||delete a.selectedpoints,cn(a,i),r.attributes&&cn(a,r.attributes),a.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:Boolean(t.animatable),type:e,attributes:Xo(a)};if(t.layoutAttributes){var s={};cn(s,t.layoutAttributes),o.layoutAttributes=Xo(s)}return t.animatable||Lr.crawl(o,function(l){Lr.isValObject(l)&&"anim"in l&&delete l.anim}),o}function Gee(){var e={},t,r;cn(e,Og);for(t in sa.subplotsRegistry)if(r=sa.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var a=0;a{"use strict";var gl=Re(),$ee=Zi(),to="templateitemname",Ug={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};Ug[to]={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")};$o.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Ug.name,t[to]=Ug[to],t};$o.traceTemplater=function(e){var t={},r,a;for(r in e)a=e[r],Array.isArray(a)&&a.length&&(t[r]=0);function n(i){r=gl.coerce(i,{},$ee,"type");var o={type:r,_template:null};if(r in t){a=e[r];var s=t[r]%a.length;t[r]++,o._template=a[s]}return o}return{newTrace:n}};$o.newContainer=function(e,t,r){var a=e._template,n=a&&(a[t]||r&&a[r]);gl.isPlainObject(n)||(n=null);var i=e[t]={_template:n};return i};$o.arrayTemplater=function(e,t,r){var a=e._template,n=a&&a[aq(t)],i=a&&a[t];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function s(u){var c={name:u.name,_input:u},d=c[to]=u[to];if(!rq(d))return c._template=n,c;for(var h=0;h=a&&(r._input||{})._templateitemname;i&&(n=a);var o=t+"["+n+"]",s;function l(){s={},i&&(s[o]={},s[o][to]=i)}l();function u(p,g){s[p]=g}function c(p,g){i?gl.nestedProperty(s[o],p).set(g):s[o+"."+p]=g}function d(){var p=s;return l(),p}function h(p,g){p&&c(p,g);var m=d();for(var b in m)gl.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:d,applyUpdate:h}}});var ga=I((P1e,nq)=>{"use strict";var of=nl().counter;nq.exports={idRegex:{x:of("x","( domain)?"),y:of("y","( domain)?")},attrRegex:of("[xy]axis"),xAxisMatch:of("xaxis"),yAxisMatch:of("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"}}});var Hr=I(Ua=>{"use strict";var Qee=bt(),Gg=ga();Ua.id2name=function(t){if(!(typeof t!="string"||!t.match(Gg.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Ua.name2id=function(t){if(!!t.match(Gg.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};Ua.cleanId=function(t,r,a){var n=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Gg.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(n&&!a)){var i=t.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),t.charAt(0)+i+(n&&a?" domain":"")}};Ua.list=function(e,t,r){var a=e._fullLayout;if(!a)return[];var n=Ua.listIds(e,t),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};Ua.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function iq(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Kee(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Jee(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}oq.exports={clearOutlineControllers:Kee,clearOutline:Jee}});var Wg=I(fh=>{"use strict";var sf=bt(),ete=ga().SUBPLOT_PATTERN;fh.getSubplotCalcData=function(e,t,r){var a=sf.subplotsRegistry[t];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var tte=bt(),yl=Re();Qo.manageCommandObserver=function(e,t,r,a){var n={},i=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Qo.hasSimpleAPICommandBindings(e,r,n.lookupTable);if(t&&t._commandObserver){if(o)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(o){sq(e,o,n.cache),n.check=function(){if(!!i){var c=sq(e,o,n.cache);return c.changed&&a&&n.lookupTable[c.value]!==void 0&&(n.disable(),Promise.resolve(a({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[c.value]})).then(n.enable,n.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+n;yl.isPlainObject(i)?Vg(i,t,o,a+1):t(o,n,i)}})}});var Nr=I((N1e,Aq)=>{"use strict";var cq=Ft(),ate=Js().timeFormatLocale,nte=rg().formatLocale,ch=jt(),Bt=bt(),dq=eo(),ite=ar(),tt=Re(),hq=It(),vq=Tr().BADNUM,Ka=Hr(),ote=ro().clearOutline,Yg=Zu(),ste=jg(),lte=Wg().getModuleCalcData,Zg=tt.relinkPrivateKeys,bl=tt._,Be=Aq.exports={};tt.extendFlat(Be,Bt);Be.attributes=Zi();Be.attributes.type.values=Be.allTypes;Be.fontAttrs=La();Be.layoutAttributes=sl();Be.fontWeight="normal";var dh=Be.transformsRegistry,hh=fq();Be.executeAPICommand=hh.executeAPICommand;Be.computeAPICommandBindings=hh.computeAPICommandBindings;Be.manageCommandObserver=hh.manageCommandObserver;Be.hasSimpleAPICommandBindings=hh.hasSimpleAPICommandBindings;Be.redrawText=function(e){return e=tt.getGraphDiv(e),new Promise(function(t){setTimeout(function(){!e._fullLayout||(Bt.getComponentMethod("annotations","draw")(e),Bt.getComponentMethod("legend","draw")(e),Bt.getComponentMethod("colorbar","draw")(e),t(Be.previousPromises(e)))},300)})};Be.resize=function(e){e=tt.getGraphDiv(e);var t,r=new Promise(function(a,n){(!e||tt.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||tt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Bt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return t&&t(r),r};Be.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Be.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=tt.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:hq.defaultLine,"pointer-events":"all"}).each(function(){var u=cq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=r.node(),n={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=t._paper.attr("width")-7),r.attr(n);var i=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&ute(e,i),o.text(i.text()&&s.text()?" - ":"")}};function ute(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",function(){Be.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Be.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!!t){e.emit("plotly_beforeexport");var r=cq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Be.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var fte=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],cte=["year","month","dayMonth","dayMonthYear"];Be.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},d;e._transitionData||Be.createTransitionData(e),n._dfltTitle={plot:bl(e,"Click to enter Plot title"),x:bl(e,"Click to enter X axis title"),y:bl(e,"Click to enter Y axis title"),colorbar:bl(e,"Click to enter Colorscale title"),annotation:bl(e,"new text")},n._traceWord=bl(e,"trace");var h=pq(e,fte);if(n._mapboxAccessToken=c.mapboxAccessToken,a._initialAutoSizeIsDone){var p=a.width,g=a.height;Be.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=p),i.height||(n.height=g),Be.sanitizeMargins(n)}else{Be.supplyLayoutGlobalDefaults(i,n,h);var m=!i.width||!i.height,b=n.autosize,x=c.autosizable,_=m&&(b||x);_?Be.plotAutoSize(e,i,n):m&&Be.sanitizeMargins(n),!b&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=vte(h,n.separators),n._extraFormat=pq(e,cte),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var k=n._subplots=hte(),w=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=dte(o,l),n._globalTransforms=(e._context||{}).globalTransforms,Be.supplyDataDefaults(l,s,i,n);var L=Object.keys(w.x),S=Object.keys(w.y);if(L.length>1&&S.length>1){for(Bt.getComponentMethod("grid","sizeDefaults")(i,n),d=0;d15&&S.length>15&&n.shapes.length===0&&n.images.length===0,Be.linkSubplots(s,n,o,a),Be.cleanPlot(s,n,o,a);var N=!!(a._has&&a._has("gl2d")),j=!!(n._has&&n._has("gl2d")),B=!!(a._has&&a._has("cartesian")),W=!!(n._has&&n._has("cartesian")),V=B||N,Y=W||j;V&&!Y?a._bgLayer.remove():Y&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&ote({_fullLayout:a}),pte(s,n),Zg(n,a),Bt.getComponentMethod("colorscale","crossTraceDefaults")(s,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Z=n._tracePreGUI,$={},ne;for(ne in Z)$[ne]="old";for(d=0;d0){var c=1-2*i;o=Math.round(c*o),s=Math.round(c*s)}}var d=Be.layoutAttributes.width.min,h=Be.layoutAttributes.height.min;o1,g=!r.height&&Math.abs(a.height-s)>1;(g||p)&&(p&&(a.width=o),g&&(a.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Be.sanitizeMargins(a)};Be.supplyLayoutModuleDefaults=function(e,t,r,a){var n=Bt.componentsRegistry,i=t._basePlotModules,o,s,l,u=Bt.subplotsRegistry.cartesian;for(o in n)l=n[o],l.includeBasePlot&&l.includeBasePlot(e,t);i.length||i.push(u),t._has("cartesian")&&(Bt.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(tt.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var x=(r.t+r.b)/h;x>1&&(r.t/=x,r.b/=x)}var _=r.xl!==void 0?r.xl:r.x,k=r.xr!==void 0?r.xr:r.x,w=r.yt!==void 0?r.yt:r.y,A=r.yb!==void 0?r.yb:r.y;p[t]={l:{val:_,size:r.l+m},r:{val:k,size:r.r+m},b:{val:A,size:r.b+m},t:{val:w,size:r.t+m}},g[t]=1}if(!a._replotting)return Be.doAutoMargin(e)}};Be.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,a=t.height;t._size||(t._size={}),gq(t);var n=t._size,i=t.margin,o=tt.extendFlat({},n),s=i.l,l=i.r,u=i.t,c=i.b,d=t._pushmargin,h=t._pushmarginIds,p=t.minreducedwidth,g=t.minreducedheight;if(t.margin.autoexpand!==!1){for(var m in d)h[m]||delete d[m];d.base={l:{val:0,size:s},r:{val:1,size:l},t:{val:1,size:u},b:{val:0,size:c}};for(var b in d){var x=d[b].l||{},_=d[b].b||{},k=x.val,w=x.size,A=_.val,L=_.size;for(var S in d){if(ch(w)&&d[S].r){var q=d[S].r.val,P=d[S].r.size;if(q>k){var E=(w*q+(P-r)*k)/(q-k),F=(P*(1-k)+(w-r)*(1-q))/(q-k);E+F>s+l&&(s=E,l=F)}}if(ch(L)&&d[S].t){var N=d[S].t.val,j=d[S].t.size;if(N>A){var B=(L*N+(j-a)*A)/(N-A),W=(j*(1-A)+(L-a)*(1-N))/(N-A);B+W>c+u&&(c=B,u=W)}}}}}var V=tt.constrain(r-i.l-i.r,yq,p),Y=tt.constrain(a-i.t-i.b,bq,g),Z=Math.max(0,r-V),$=Math.max(0,a-Y);if(Z){var ne=(s+l)/Z;ne>1&&(s/=ne,l/=ne)}if($){var te=(c+u)/$;te>1&&(c/=te,u/=te)}if(n.l=Math.round(s),n.r=Math.round(l),n.t=Math.round(u),n.b=Math.round(c),n.p=Math.round(i.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!t._replotting&&Be.didMarginChange(o,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var de=3*(1+Object.keys(h).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Be.graphJson=function(e,t,r,a,n,i){(n&&t&&!e._fullData||n&&!t&&!e._fullLayout)&&Be.supplyDefaults(e);var o=n?e._fullData:e.data,s=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,p){if(typeof h=="function")return p?"_function_":null;if(tt.isPlainObject(h)){var g={},m;return Object.keys(h).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof h[b]=="function"){p&&(g[b]="_function");return}if(r==="keepdata"){if(b.substr(b.length-3)==="src")return}else if(r==="keepstream"){if(m=h[b+"src"],typeof m=="string"&&m.indexOf(":")>0&&!tt.isPlainObject(h.stream))return}else if(r!=="keepall"&&(m=h[b+"src"],typeof m=="string"&&m.indexOf(":")>0))return;g[b]=u(h[b],p)}}),g}return Array.isArray(h)?h.map(function(b){return u(b,p)}):tt.isTypedArray(h)?tt.simpleMap(h,tt.identity):tt.isJSDate(h)?tt.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var p=u(h);return t&&delete p.fit,p})};if(!t&&(c.layout=u(s),n)){var d=s._size;c.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return l&&(c.frames=u(l)),i&&(c.config=u(e._context,!0)),a==="object"?c:JSON.stringify(c)};Be.modifyFrames=function(e,t){var r,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Bt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,p=0;function g(){return h++,function(){p++,!a&&p===h&&s(d)}}r.runFn(g),setTimeout(g())})}function s(d){if(!!e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Bt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(d)}function l(){if(!!e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Be.previousPromises,l,r.prepareFn,Be.rehover,Be.reselect,o],c=tt.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}Be.doCalcdata=function(e,t){var r=Ka.list(e),a=e._fullData,n=e._fullLayout,i,o,s,l,u=new Array(a.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},s=0;s=0;l--)if(A[l].enabled){i._indexToPoints=A[l]._indexToPoints;break}o&&o.calc&&(w=o.calc(e,i))}(!Array.isArray(w)||!w[0])&&(w=[{x:vq,y:vq}]),w[0].t||(w[0].t={}),w[0].trace=i,u[_]=w}}for(wq(r,a,n),s=0;s{"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 qa=I((j1e,kq)=>{"use strict";kq.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 Ga=I(dn=>{"use strict";var qr=Ft(),ki=Re(),_te=ki.strTranslate,Xg=Jo(),wte=qa().LINE_SPACING,Tte=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;dn.convertToTspans=function(e,t,r){var a=e.text(),n=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Tte),i=qr.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function s(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=zte(e.node(),a);l&&e.style("pointer-events","all"),dn.positionText(e),r&&r.call(e)}return n?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};Ste(n[2],c,function(d,h,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var g=d&&d.select("svg");if(!g||!g.node()){s(),l();return}var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(g.node()),h&&h.node()&&g.node().insertBefore(h.node().cloneNode(!0),g.node().firstChild);var b=p.width,x=p.height;g.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",k=g.select("g");k.attr({fill:_,stroke:_});var w=k.node().getBoundingClientRect(),A=w.width,L=w.height;(A>b||L>x)&&(g.style("overflow","hidden"),w=g.node().getBoundingClientRect(),A=w.width,L=w.height);var S=+e.attr("x"),q=+e.attr("y"),P=u||e.node().getBoundingClientRect().height,E=-P/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,S,q]+")"+_te(-A/2,E-L/2)});else if(o[0]==="l")q=E-L/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)S=0,q=E;else{var F=e.attr("text-anchor");S=S-A*(F==="middle"?.5:F==="end"?1:0),q=q+E-L/2}g.attr({x:S,y:q}),r&&r.call(e,m),l(m)})})):s(),e};var Ate=/(<|<|<)/g,kte=/(>|>|>)/g;function Mte(e){return e.replace(Ate,"\\lt ").replace(kte,"\\gt ")}var Mq=[["$","$"],["\\(","\\)"]];function Ste(e,t,r){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){ki.warn("No MathJax version:",MathJax.version);return}var n,i,o,s,l=function(){return i=ki.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Mq},displayAlign:"left"})},u=function(){i=ki.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Mq},c=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},d=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+ki.randstr({},64);s=qr.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Mte(e));var k=s.node();return a===2?MathJax.Hub.Typeset(k):MathJax.typeset([k])},p=function(){var _=s.select(a===2?".MathJax_SVG":".MathJax"),k=!_.empty()&&s.select("svg").node();if(!k)ki.log("There was an error in the tex syntax.",e),r();else{var w=k.getBoundingClientRect(),A;a===2?A=qr.select("body").select("#MathJax_SVG_glyphs"):A=_.select("defs"),r(_,A,w)}s.remove()},g=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(l,c,h,p,g,b):a===3&&(u(),d(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),p(),m(),x()}))}var Sq={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Cte={sub:"0.3em",sup:"-0.6em"},Lte={sub:"-0.21em",sup:"0.42em"},Cq="\u200B",Lq=["http:","https:","mailto:","",void 0,":"],qq=dn.NEWLINES=/(\r\n?|\n)/g,$g=/(<[^<>]*>)/,Qg=/<(\/?)([^ >]*)(\s+(.*))?>/i,qte=//i;dn.BR_TAG_ALL=//gi;var Dq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Pq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Rq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Dte=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function es(e,t){if(!e)return null;var r=e.match(t),a=r&&(r[3]||r[4]);return a&&ph(a)}var Pte=/(^|;)\s*color:/;dn.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,a=t.allowedTags!==void 0?t.allowedTags:["br"],n="...",i=n.length,o=e.split($g),s=[],l="",u=0,c=0;ci?s.push(d.substr(0,m-i)+n):s.push(d.substr(0,m));break}l=""}}return s.join("")};var Rte={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Ete=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function ph(e){return e.replace(Ete,function(t,r){var a;return r.charAt(0)==="#"?a=Ite(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):a=Rte[r],a||t})}dn.convertEntities=ph;function Ite(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function zte(e,t){t=t.replace(qq," ");var r=!1,a=[],n,i=-1;function o(){i++;var L=document.createElementNS(Xg.svg,"tspan");qr.select(L).attr({class:"line",dy:i*wte+"em"}),e.appendChild(L),n=L;var S=a;if(a=[{node:L}],S.length>1)for(var q=1;q.",t);return}var S=a.pop();L!==S.type&&ki.log("Start tag <"+S.type+"> doesnt match end tag <"+L+">. Pretending it did match.",t),n=a[a.length-1].node}var c=qte.test(t);c?o():(n=e,a=[{node:e}]);for(var d=t.split($g),h=0;h{"use strict";var Nte=Ft(),mh=Pn(),lf=jt(),gh=Re(),zq=It(),Fte=Ho().isValid;function jte(e,t,r){var a=t?gh.nestedProperty(e,t).get()||{}:e,n=a[r||"color"],i=!1;if(gh.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];r[n]=[1-i[0],i[1]]}return r}function Hq(e,t){t=t||{};for(var r=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";Gq.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 yh=I((U1e,Yq)=>{"use strict";var Wq=Jg(),Hte=Wq.FORMAT_LINK,Bte=Wq.DATE_FORMAT_LINK;function Ute(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?ey:Vq)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ey(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Hte+"."].join(" ")}function Vq(e,t){return ey(e,t)+[" And for dates see: "+Bte+".","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(" ")}Yq.exports={axisHoverFormat:Ute,descriptionOnlyNumbers:ey,descriptionWithDates:Vq}});var ni=I((G1e,c5)=>{"use strict";var ty=La(),xl=gi(),Zq=yi().dash,Xq=ra().extendFlat,$q=ar().templatedArray,Qq=yh().descriptionWithDates,Gte=Tr().ONEDAY,ai=ga(),ry=ai.HOUR_PATTERN,ay=ai.WEEKDAY_PATTERN,Kq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")};function Jq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")}}var e5={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},t5={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},r5={valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},a5={valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")};function n5(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick length (in px)."};return e||(t.dflt=5),t}function i5(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick width (in px)."};return e||(t.dflt=1),t}var o5={valType:"color",dflt:xl.defaultLine,editType:"ticks",description:"Sets the tick color."},s5={valType:"color",dflt:xl.lightLine,editType:"ticks",description:"Sets the color of the grid lines."};function l5(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the width (in px) of the grid lines."};return e||(t.dflt=1),t}var u5=Xq({},Zq,{editType:"ticks"}),f5={valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")};c5.exports={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:xl.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:ty({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[ai.idRegex.x.toString(),ai.idRegex.y.toString()],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[ai.idRegex.x.toString(),ai.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:$q("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[ay,ry,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+ay+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+ry+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+ay+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+ry+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:Gte,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:Kq,nticks:Jq(),tick0:e5,dtick:t5,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:r5,ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:a5,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*.","Similarly","left or right has no effect on y axes or when `ticklabelmode` is set to *period*.","Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:n5(),tickwidth:i5(),tickcolor:o5,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:Xq({},Zq,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:ty({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Qq("tick label")},tickformatstops:$q("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Qq("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:xl.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:f5,gridcolor:s5,gridwidth:l5(),griddash:u5,zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:xl.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:xl.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",ai.idRegex.x.toString(),ai.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",ai.idRegex.x.toString(),ai.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},minor:{tickmode:Kq,nticks:Jq("minor"),tick0:e5,dtick:t5,tickvals:r5,ticks:a5,ticklen:n5("minor"),tickwidth:i5("minor"),tickcolor:o5,gridcolor:s5,gridwidth:l5("minor"),griddash:u5,showgrid:f5,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:ty({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}});var bh=I((W1e,h5)=>{"use strict";var fr=ni(),ny=La(),d5=ra().extendFlat,Wte=Ai().overrideAll;h5.exports=Wte({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,description:["Sets the x position of the color bar (in plot fraction).","Defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction).","Defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:fr.linecolor,outlinewidth:fr.linewidth,bordercolor:fr.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:fr.tickmode,nticks:fr.nticks,tick0:fr.tick0,dtick:fr.dtick,tickvals:fr.tickvals,ticktext:fr.ticktext,ticks:d5({},fr.ticks,{dflt:""}),ticklabeloverflow:d5({},fr.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:fr.ticklen,tickwidth:fr.tickwidth,tickcolor:fr.tickcolor,ticklabelstep:fr.ticklabelstep,showticklabels:fr.showticklabels,tickfont:ny({description:"Sets the color bar's tick label font"}),tickangle:fr.tickangle,tickformat:fr.tickformat,tickformatstops:fr.tickformatstops,tickprefix:fr.tickprefix,showtickprefix:fr.showtickprefix,ticksuffix:fr.ticksuffix,showticksuffix:fr.showticksuffix,separatethousands:fr.separatethousands,exponentformat:fr.exponentformat,minexponent:fr.minexponent,showexponent:fr.showexponent,title:{text:{valType:"string",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:ny({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:ny({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")});var cf=I((V1e,p5)=>{"use strict";var Vte=bh(),Yte=nl().counter,Zte=Ag(),v5=Ho().scales,Xte=Zte(v5);function ff(e){return"`"+e+"`"}p5.exports=function(t,r){t=t||"",r=r||{};var a=r.cLetter||"c",n="onlyIfNumerical"in r?r.onlyIfNumerical:Boolean(t),i="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:a==="z",s=typeof r.colorscaleDflt=="string"?v5[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,d;"colorAttr"in r?(c=r.colorAttr,d=r.colorAttr):(c={z:"z",c:"color"}[a],d="in "+ff(u+c));var h=n?" Has an effect only if "+d+" is set to a numerical array.":"",p=a+"auto",g=a+"min",m=a+"max",b=a+"mid",x=ff(u+p),_=ff(u+g),k=ff(u+m),w=_+" and "+k,A={};A[g]=A[m]=void 0;var L={};L[p]=!1;var S={};return c==="color"&&(S.color={valType:"color",arrayOk:!0,editType:l||"style",description:["Sets the",t,"color.","It accepts either a specific color","or an array of numbers that are mapped to the colorscale","relative to the max and min values of the array or relative to",w,"if set."].join(" ")},r.anim&&(S.color.anim=!0)),S[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A,description:["Determines whether or not the color domain is computed","with respect to the input data (here "+d+") or the bounds set in",w+h,"Defaults to `false` when",w,"are set by the user."].join(" ")},S[g]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:L,description:["Sets the lower bound of the color domain."+h,"Value should have the same units as",d,"and if set,",k,"must be set as well."].join(" ")},S[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:L,description:["Sets the upper bound of the color domain."+h,"Value should have the same units as",d,"and if set,",_,"must be set as well."].join(" ")},S[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:A,description:["Sets the mid-point of the color domain by scaling",_,"and/or",k,"to be equidistant to this point."+h,"Value should have the same units as",d+".","Has no effect when",x,"is `false`."].join(" ")},S.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale."+h,"The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in color space,","use",w+".","Alternatively, `colorscale` may be a palette name string","of the following list: "+Xte+"."].join(" ")},S.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)","or the palette determined by",ff(u+"colorscale")+"."+h,"In case `colorscale` is unspecified or `autocolorscale` is true, the default","palette will be chosen according to whether numbers in the `color` array are","all positive, all negative or mixed."].join(" ")},S.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true."+h,"If true,",_,"will correspond to the last color","in the array and",k,"will correspond to the first color."].join(" ")},i||(S.showscale={valType:"boolean",dflt:o,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace."+h].join(" ")},S.colorbar=Vte),r.noColorAxis||(S.coloraxis={valType:"subplotid",regex:Yte("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),S}});var sy=I((Y1e,m5)=>{"use strict";var $te=ra().extendFlat,Qte=cf(),iy=Ho().scales,oy="Note that `autocolorscale` must be true for this attribute to work.";m5.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:iy.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",oy].join(" ")},sequentialminus:{valType:"colorscale",dflt:iy.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",oy].join(" ")},diverging:{valType:"colorscale",dflt:iy.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",oy].join(" ")}},coloraxis:$te({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},Qte("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var ly=I((Z1e,g5)=>{"use strict";var Kte=Re();g5.exports=function(t){return Kte.isPlainObject(t.colorbar)}});var cy=I(fy=>{"use strict";var uy=jt(),y5=Re(),b5=Tr(),Jte=b5.ONEDAY,ere=b5.ONEWEEK;fy.dtick=function(e,t){var r=t==="log",a=t==="date",n=t==="category",i=a?Jte: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||r))return i;var o=e.charAt(0),s=e.substr(1);return s=uy(s)?Number(s):0,s<=0||!(a&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?i:e};fy.tick0=function(e,t,r,a){if(t==="date")return y5.cleanDate(e,y5.dateTick0(r,a%ere==0?1:0));if(!(a==="D1"||a==="D2"))return uy(e)?Number(e):0}});var dy=I(($1e,_5)=>{"use strict";var x5=cy(),tre=Re().isArrayOrTypedArray;_5.exports=function(t,r,a,n,i){i||(i={});var o=i.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(_){var k=s[_];return k!==void 0?k:(l._template||{})[_]}var d=c("tick0"),h=c("dtick"),p=c("tickvals"),g=tre(p)?"array":h?"linear":"auto",m=a(u+"tickmode",g);if(m==="auto")a(u+"nticks");else if(m==="linear"){var b=l.dtick=x5.dtick(h,n);l.tick0=x5.tick0(d,n,r.calendar,b)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?l.tickmode="auto":o||a("ticktext")}}});var vy=I((Q1e,T5)=>{"use strict";var hy=Re(),w5=ni();T5.exports=function(t,r,a,n){var i=n.isMinor,o=i?t.minor||{}:t,s=i?r.minor:r,l=i?w5.minor:w5,u=i?"minor.":"",c=hy.coerce2(o,s,l,"ticklen",i?(r.ticklen||5)*.6:void 0),d=hy.coerce2(o,s,l,"tickwidth",i?r.tickwidth||1:void 0),h=hy.coerce2(o,s,l,"tickcolor",(i?r.tickcolor:void 0)||s.color),p=a(u+"ticks",!i&&n.outerTicks||c||d||h?"outside":"");p||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var py=I((K1e,A5)=>{"use strict";A5.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],a=r.filter(function(i){return t[i]!==void 0}),n=function(i){return t[i]===t[a[0]]};if(a.every(n)||a.length===1)return t[a[0]]}});var In=I((J1e,k5)=>{"use strict";var xh=Re(),rre=ar();k5.exports=function(t,r,a){var n=a.name,i=a.inclusionAttr||"visible",o=r[n],s=xh.isArrayOrTypedArray(t[n])?t[n]:[],l=r[n]=[],u=rre.arrayTemplater(r,n,i),c,d;for(c=0;c{"use strict";var M5=Re(),are=It().contrast,S5=ni(),nre=py(),ire=In();C5.exports=function(t,r,a,n,i){i||(i={});var o=nre(t),s=a("showticklabels");if(s){var l=i.font||{},u=r.color,c=r.ticklabelposition||"",d=c.indexOf("inside")!==-1?are(i.bgColor):u&&u!==S5.color.dflt?u:l.color;if(M5.coerceFont(a,"tickfont",{family:l.family,size:l.size,color:d}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),i.noAng||a("tickangle"),n!=="category"){var h=a("tickformat");ire(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ore}),r.tickformatstops.length||delete r.tickformatstops,!i.noExp&&!h&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}}};function ore(e,t){function r(n,i){return M5.coerce(e,t,S5.tickformatstops,n,i)}var a=r("enabled");a&&(r("dtickrange"),r("value"))}});var gy=I((txe,L5)=>{"use strict";var sre=py();L5.exports=function(t,r,a,n,i){i||(i={});var o=i.tickSuffixDflt,s=sre(t),l=a("tickprefix");l&&a("showtickprefix",s);var u=a("ticksuffix",o);u&&a("showticksuffix",s)}});var yy=I((rxe,q5)=>{"use strict";var _l=Re(),lre=ar(),ure=dy(),fre=vy(),cre=my(),dre=gy(),hre=bh();q5.exports=function(t,r,a){var n=lre.newContainer(r,"colorbar"),i=t.colorbar||{};function o(k,w){return _l.coerce(i,n,hre,k,w)}var s=a.margin||{t:0,b:0,l:0,r:0},l=a.width-s.l-s.r,u=a.height-s.t-s.b,c=o("orientation"),d=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(d?l:u):30);var p=o("lenmode");o("len",p==="fraction"?1:d?u:l),o("x",d?1.02:.5),o("xanchor",d?"left":"center"),o("xpad"),o("y",d?.5:1.02),o("yanchor",d?"middle":"bottom"),o("ypad"),_l.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var g=_l.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",g.indexOf("inside")!==-1?"hide past domain":"hide past div"),ure(i,n,o,"linear");var m=a.font,b={outerTicks:!1,font:m};g.indexOf("inside")!==-1&&(b.bgColor="black"),dre(i,n,o,"linear",b),cre(i,n,o,"linear",b),fre(i,n,o,"linear",b),o("title.text",a._dfltTitle.colorbar);var x=n.tickfont,_=_l.extendFlat({},x,{color:m.color,size:_l.bigFont(x.size)});_l.coerceFont(o,"title.font",_),o("title.side",d?"top":"right")}});var wl=I((axe,R5)=>{"use strict";var D5=jt(),by=Re(),vre=ly(),pre=yy(),P5=Ho().isValid,mre=bt().traceIs;function xy(e,t){var r=t.slice(0,t.length-1);return t?by.nestedProperty(e,r).get()||{}:e}R5.exports=function e(t,r,a,n,i){var o=i.prefix,s=i.cLetter,l="_module"in r,u=xy(t,o),c=xy(r,o),d=xy(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,a,n,i)};if(l){var p=a._colorAxes||{},g=n(o+"coloraxis");if(g){var m=mre(r,"contour")&&by.nestedProperty(r,"contours.coloring").get()||"heatmap",b=p[g];b?(b[2].push(h),b[0]!==m&&(b[0]=!1,by.warn(["Ignoring coloraxis:",g,"setting","as it is linked to incompatible colorscales."].join(" ")))):p[g]=[m,r,[h]];return}}var x=u[s+"min"],_=u[s+"max"],k=D5(x)&&D5(_)&&x<_,w=n(o+s+"auto",!k);w?n(o+s+"mid"):(n(o+s+"min"),n(o+s+"max"));var A=u.colorscale,L=d.colorscale,S;if(A!==void 0&&(S=!P5(A)),L!==void 0&&(S=!P5(L)),n(o+"autocolorscale",S),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var q;o&&l&&(q=vre(u));var P=n(o+"showscale",q);P&&(o&&d&&(c._template=d),pre(u,c,a))}}});var N5=I((nxe,z5)=>{"use strict";var E5=Re(),gre=ar(),I5=sy(),yre=wl();z5.exports=function(t,r){function a(d,h){return E5.coerce(t,r,I5,d,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=r._colorAxes,i,o;function s(d,h){return E5.coerce(i,o,I5.coloraxis,d,h)}for(var l in n){var u=n[l];if(u[0])i=t[l]||{},o=gre.newContainer(r,l,"coloraxis"),o._name=l,yre(i,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var bre=Re(),xre=hn().hasColorscale,_re=hn().extractOpts;F5.exports=function(t,r){function a(c,d){var h=c["_"+d];h!==void 0&&(c[d]=h)}function n(c,d){var h=d.container?bre.nestedProperty(c,d.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var p=_re(h),g=p.auto;(g||p.min===void 0)&&a(h,d.min),(g||p.max===void 0)&&a(h,d.max),p.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var O5=jt(),_y=Re(),wre=hn().extractOpts;H5.exports=function(t,r,a){var n=t._fullLayout,i=a.vals,o=a.containerStr,s=o?_y.nestedProperty(r,o).get():r,l=wre(s),u=l.auto!==!1,c=l.min,d=l.max,h=l.mid,p=function(){return _y.aggNums(Math.min,null,i)},g=function(){return _y.aggNums(Math.max,null,i)};if(c===void 0?c=p():u&&(s._colorAx&&O5(c)?c=Math.min(c,p()):c=p()),d===void 0?d=g():u&&(s._colorAx&&O5(d)?d=Math.max(d,g()):d=g()),u&&h!==void 0&&(d-h>h-c?c=h-(d-h):d-h=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,l._sync("colorscale",m)}}});var wy=I((sxe,B5)=>{"use strict";var wh=Ho(),Tl=hn();B5.exports={moduleType:"component",name:"colorscale",attributes:cf(),layoutAttributes:sy(),supplyLayoutDefaults:N5(),handleDefaults:wl(),crossTraceDefaults:j5(),calc:_h(),scales:wh.scales,defaultScale:wh.defaultScale,getScale:wh.get,isValidScale:wh.isValid,hasColorscale:Tl.hasColorscale,extractOpts:Tl.extractOpts,extractScale:Tl.extractScale,flipScale:Tl.flipScale,makeColorScaleFunc:Tl.makeColorScaleFunc,makeColorScaleFuncFromTrace:Tl.makeColorScaleFuncFromTrace}});var Ja=I((lxe,G5)=>{"use strict";var U5=Re();G5.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){return U5.isPlainObject(e.marker)&&U5.isArrayOrTypedArray(e.marker.size)}}});var V5=I((uxe,W5)=>{"use strict";var Tre=jt();W5.exports=function(t,r){r||(r=2);var a=t.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(s){return Math.sqrt(s/n)}:function(s){return s/n};return function(s){var l=o(s/r);return Tre(l)&&l>0?Math.max(l,i):0}}});var Mi=I(la=>{"use strict";var Y5=Re();la.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};la.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&r.index{$5.exports=Cre;var Ty={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Sre=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Cre(e){var t=[];return e.replace(Sre,function(r,a,n){var i=a.toLowerCase();for(n=qre(n),i=="m"&&n.length>2&&(t.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Ty[i])return n.unshift(a),t.push(n);if(n.length{"use strict";var Dre=Ay(),He=Ft().round,kt="M0,0Z",Q5=Math.sqrt(2),ao=Math.sqrt(3),ky=Math.PI,My=Math.cos,Sy=Math.sin;rD.exports={circle:{n:0,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return r?St(t,r,n):n}},square:{n:1,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.3,2);return St(t,r,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.4,2),n=He(e*1.2,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*.8/Q5,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,s="l-"+a+","+a;return St(t,r,"M0,"+a+n+i+o+i+o+s+o+s+n+s+n+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2/ao,2),n=He(e/2,2),i=He(e,2);return St(t,r,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2/ao,2),n=He(e/2,2),i=He(e,2);return St(t,r,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2/ao,2),n=He(e/2,2),i=He(e,2);return St(t,r,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2/ao,2),n=He(e/2,2),i=He(e,2);return St(t,r,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.6,2),n=He(e*1.2,2);return St(t,r,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.6,2),n=He(e*1.2,2);return St(t,r,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.6,2),n=He(e*1.2,2);return St(t,r,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.6,2),n=He(e*1.2,2);return St(t,r,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.951,2),n=He(e*.588,2),i=He(-e,2),o=He(e*-.309,2),s=He(e*.809,2);return St(t,r,"M"+a+","+o+"L"+n+","+s+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e/2,2),i=He(e*ao/2,2);return St(t,r,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e/2,2),i=He(e*ao/2,2);return St(t,r,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.924,2),n=He(e*.383,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=e*1.4,n=He(a*.225,2),i=He(a*.951,2),o=He(a*.363,2),s=He(a*.588,2),l=He(-a,2),u=He(a*-.309,2),c=He(a*.118,2),d=He(a*.809,2),h=He(a*.382,2);return St(t,r,"M"+n+","+u+"H"+i+"L"+o+","+c+"L"+s+","+d+"L0,"+h+"L-"+s+","+d+"L-"+o+","+c+"L-"+i+","+u+"H-"+n+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.66,2),n=He(e*.38,2),i=He(e*.76,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*ao*.8,2),n=He(e*.8,2),i=He(e*1.6,2),o=He(e*4,2),s="A "+o+","+o+" 0 0 1 ";return St(t,r,"M-"+a+","+n+s+a+","+n+s+"0,-"+i+s+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*ao*.8,2),n=He(e*.8,2),i=He(e*1.6,2),o=He(e*4,2),s="A "+o+","+o+" 0 0 1 ";return St(t,r,"M"+a+",-"+n+s+"-"+a+",-"+n+s+"0,"+i+s+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.1,2),n=He(e*2,2),i="A "+n+","+n+" 0 0 1 ";return St(t,r,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.4,2),n=He(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return St(t,r,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*.7,2),n=He(e*1.4,2);return St(t,r,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.4,2),n=He(e*.7,2);return St(t,r,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e/Q5,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.3,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.3,2),n=He(e*.65,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.4,2);return St(t,r,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.2,2),n=He(e*.85,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e/2,2),n=He(e,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.2,2),n=He(e*1.6,2),i=He(e*.8,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.2,2),n=He(e*1.6,2),i=He(e*.8,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.2,2),n=He(e*1.6,2),i=He(e*.8,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.2,2),n=He(e*1.6,2),i=He(e*.8,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e*1.4,2);return St(t,r,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*1.4,2);return St(t,r,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2);return St(t,r,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e*2,2);return St(t,r,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e*2,2);return St(t,r,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2,2),n=He(e,2);return St(t,r,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2,2),n=He(e,2);return St(t,r,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e*2,2);return St(t,r,"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,t,r){if(Mt(t))return kt;var a=He(e,2),n=He(e*2,2);return St(t,r,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2,2),n=He(e,2);return St(t,r,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Mt(t))return kt;var a=He(e*2,2),n=He(e,2);return St(t,r,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Mt(t))return kt;var a=ky/2.5,n=2*e*My(a),i=2*e*Sy(a);return St(t,r,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Mt(t))return kt;var a=ky/4,n=2*e*My(a),i=2*e*Sy(a);return St(t,r,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Mt(e){return e===null}var K5,J5,eD,tD;function St(e,t,r){if((!e||e%360==0)&&!t)return r;if(eD===e&&tD===t&&K5===r)return J5;eD=e,tD=t,K5=r;function a(b,x){var _=My(b),k=Sy(b),w=x[0],A=x[1]+(t||0);return[w*_-A*k,w*k+A*_]}for(var n=e/180*ky,i=0,o=0,s=Dre(r),l="",u=0;u{"use strict";var Br=Ft(),nr=Re(),Pre=nr.numberFormat,ts=jt(),Cy=Pn(),Th=bt(),ya=It(),Rre=wy(),df=nr.strTranslate,Ly=Ga(),Ere=Jo(),Ire=qa(),zre=Ire.LINE_SPACING,nD=Od().DESELECTDIM,Nre=Ja(),Fre=V5(),jre=Mi().appendArrayPointValue,We=AD.exports={};We.font=function(e,t,r,a){nr.isPlainObject(t)&&(a=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),a&&e.call(ya.fill,a)};We.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};We.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};We.setRect=function(e,t,r,a,n){e.call(We.setPosition,t,r).call(We.setSize,a,n)};We.translatePoint=function(e,t,r,a){var n=r.c2p(e.x),i=a.c2p(e.y);if(ts(n)&&ts(i)&&t.node())t.node().nodeName==="text"?t.attr("x",n).attr("y",i):t.attr("transform",df(n,i));else return!1;return!0};We.translatePoints=function(e,t,r){e.each(function(a){var n=Br.select(this);We.translatePoint(a,n,t,r)})};We.hideOutsideRangePoint=function(e,t,r,a,n,i){t.attr("display",r.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};We.hideOutsideRangePoints=function(e,t){if(!!t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,s=i.ycalendar,l=Th.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){We.hideOutsideRangePoint(u,Br.select(this),r,a,o,s)})})}};We.crispRound=function(e,t,r){return!t||!ts(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};We.singleLineStyle=function(e,t,r,a,n){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,s=n||i.dash||"";ya.stroke(t,a||i.color),We.dashLine(t,s,o)};We.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=a||i.dash||"";Br.select(this).call(ya.stroke,r||i.color).call(We.dashLine,s,o)})};We.dashLine=function(e,t,r){r=+r||0,t=We.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};We.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function iD(e,t,r){var a=t.fillpattern,n=a&&We.getPatternAttr(a.shape,0,"");if(n){var i=We.getPatternAttr(a.bgcolor,0,null),o=We.getPatternAttr(a.fgcolor,0,null),s=a.fgopacity,l=We.getPatternAttr(a.size,0,8),u=We.getPatternAttr(a.solidity,0,.3),c=t.uid;We.pattern(e,"point",r,c,n,l,u,void 0,a.fillmode,i,o,s)}else t.fillcolor&&e.call(ya.fill,t.fillcolor)}We.singleFillStyle=function(e,t){var r=Br.select(e.node()),a=r.data(),n=((a[0]||[])[0]||{}).trace||{};iD(e,n,t)};We.fillGroupStyle=function(e,t){e.style("stroke-width",0).each(function(r){var a=Br.select(this);r[0].trace&&iD(a,r[0].trace,t)})};var oD=aD();We.symbolNames=[];We.symbolFuncs=[];We.symbolBackOffs=[];We.symbolNeedLines={};We.symbolNoDot={};We.symbolNoFill={};We.symbolList=[];Object.keys(oD).forEach(function(e){var t=oD[e],r=t.n;We.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),We.symbolNames[r]=e,We.symbolFuncs[r]=t.f,We.symbolBackOffs[r]=t.backoff||0,t.needLine&&(We.symbolNeedLines[r]=!0),t.noDot?We.symbolNoDot[r]=!0:We.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(We.symbolNoFill[r]=!0)});var Ore=We.symbolNames.length,Hre="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";We.symbolNumber=function(e){if(ts(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=We.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Ore||e>=400?0:Math.floor(Math.max(e,0))};function sD(e,t,r,a){var n=e%100;return We.symbolFuncs[n](t,r,a)+(e>=200?Hre:"")}var lD={x1:1,x2:0,y1:0,y2:0},uD={x1:0,x2:0,y1:1,y2:0},fD=Pre("~f"),cD={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:lD},horizontalreversed:{node:"linearGradient",attrs:lD,reversed:!0},vertical:{node:"linearGradient",attrs:uD},verticalreversed:{node:"linearGradient",attrs:uD,reversed:!0}};We.gradient=function(e,t,r,a,n,i){for(var o=n.length,s=cD[a],l=new Array(o),u=0;u=100;var u=zy(e,r),c=Ry(e,r);t.attr("d",sD(l,s,u,c))}var d=!1,h,p,g;if(e.so)g=o.outlierwidth,p=o.outliercolor,h=i.outliercolor;else{var m=(o||{}).width;g=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):nr.isArrayOrTypedArray(o.color)?p=ya.defaultLine:p=o.color,nr.isArrayOrTypedArray(i.color)&&(h=ya.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=i.color||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}if(e.om)t.call(ya.stroke,h).style({"stroke-width":(g||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:g)+"px");var b=i.gradient,x=e.mgt;x?d=!0:x=b&&b.type,nr.isArrayOrTypedArray(x)&&(x=x[0],cD[x]||(x=0));var _=i.pattern,k=_&&We.getPatternAttr(_.shape,e.i,"");if(x&&x!=="none"){var w=e.mgc;w?d=!0:w=b.color;var A=r.uid;d&&(A+="-"+e.i),We.gradient(t,n,A,x,[[0,w],[1,h]],"fill")}else if(k){var L=We.getPatternAttr(_.bgcolor,e.i,null),S=We.getPatternAttr(_.fgcolor,e.i,null),q=_.fgopacity,P=We.getPatternAttr(_.size,e.i,8),E=We.getPatternAttr(_.solidity,e.i,.3),F=e.mcc||nr.isArrayOrTypedArray(_.shape)||nr.isArrayOrTypedArray(_.bgcolor)||nr.isArrayOrTypedArray(_.size)||nr.isArrayOrTypedArray(_.solidity),N=r.uid;F&&(N+="-"+e.i),We.pattern(t,"point",n,N,k,P,E,e.mcc,_.fillmode,L,S,q)}else ya.fill(t,h);g&&ya.stroke(t,p)}};We.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=We.tryColorscale(r,""),t.lineScale=We.tryColorscale(r,"line"),Th.traceIs(e,"symbols")&&(t.ms2mrc=Nre.isBubble(e)?Fre(e):function(){return(r.size||6)/2}),e.selectedpoints&&nr.extendFlat(t,We.makeSelectedPointStyleFns(e)),t};We.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.marker||{},i=r.marker||{},o=a.marker||{},s=n.opacity,l=i.opacity,u=o.opacity,c=l!==void 0,d=u!==void 0;(nr.isArrayOrTypedArray(s)||c||d)&&(t.selectedOpacityFn=function(w){var A=w.mo===void 0?n.opacity:w.mo;return w.selected?c?l:A:d?u:nD*A});var h=n.color,p=i.color,g=o.color;(p||g)&&(t.selectedColorFn=function(w){var A=w.mcc||h;return w.selected?p||A:g||A});var m=n.size,b=i.size,x=o.size,_=b!==void 0,k=x!==void 0;return Th.traceIs(e,"symbols")&&(_||k)&&(t.selectedSizeFn=function(w){var A=w.mrc||m/2;return w.selected?_?b/2:A:k?x/2:A}),t};We.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=r.textfont||{},o=a.textfont||{},s=n.color,l=i.color,u=o.color;return t.selectedTextColorFn=function(c){var d=c.tc||s;return c.selected?l||d:u||(l?d:ya.addOpacity(d,nD))},t};We.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=We.makeSelectedPointStyleFns(t),a=t.marker||{},n=[];r.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&n.push(function(i,o){ya.fill(i,r.selectedColorFn(o))}),r.selectedSizeFn&&n.push(function(i,o){var s=o.mx||a.symbol||0,l=r.selectedSizeFn(o);i.attr("d",sD(We.symbolNumber(s),l,zy(o,t),Ry(o,t))),o.mrc2=l}),n.length&&e.each(function(i){for(var o=Br.select(this),s=0;s0?r:0}We.textPointStyle=function(e,t,r){if(!!e.size()){var a;if(t.selectedpoints){var n=We.makeSelectedTextStyleFns(t);a=n.selectedTextColorFn}var i=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=Br.select(this),u=i?nr.extractOption(s,t,"txt","texttemplate"):nr.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(i){var c=t._module.formatLabels,d=c?c(s,t,o):{},h={};jre(h,t,s.i);var p=t._meta||{};u=nr.texttemplateString(u,d,o._d3locale,h,s,p)}var g=s.tp||t.textposition,m=hD(s,t),b=a?a(s):s.tc||t.textfont.color;l.call(We.font,s.tf||t.textfont.family,m,b).text(u).call(Ly.convertToTspans,r).call(dD,g,m,s.mrc)})}};We.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=We.makeSelectedTextStyleFns(t);e.each(function(a){var n=Br.select(this),i=r.selectedTextColorFn(a),o=a.tp||t.textposition,s=hD(a,t);ya.fill(n,i);var l=Th.traceIs(t,"bar-like");dD(n,o,s,a.mrc2||a.mrc,l)})}};var vD=.5;We.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],a=[],n;for(n=1;n=l||_>=c&&_<=l)&&(k<=d&&k>=u||k>=d&&k<=u)&&(e=[_,k])}return e}We.applyBackoff=gD;We.makeTester=function(){var e=nr.ensureSingleById(Br.select("body"),"svg","js-plotly-tester",function(r){r.attr(Ere.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=nr.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});We.tester=e,We.testref=t};We.savedBBoxes={};var Dy=0,Gre=1e4;We.bBox=function(e,t,r){r||(r=yD(e));var a;if(r){if(a=We.savedBBoxes[r],a)return nr.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(r=yD(n),r){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,s=n.getAttribute("transform");if(!s){var l=We.bBox(n,!1,r);return i&&(l.left+=i,l.right+=i),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+i+"~"+o+"~"+s,a=We.savedBBoxes[r],a)return nr.extendFlat({},a)}}var u,c;t?u=e:(c=We.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),Br.select(u).attr("transform",null).call(Ly.positionText,0,0);var d=u.getBoundingClientRect(),h=We.testref.node().getBoundingClientRect();t||c.removeChild(u);var p={height:d.height,width:d.width,left:d.left-h.left,top:d.top-h.top,right:d.right-h.left,bottom:d.bottom-h.top};return Dy>=Gre&&(We.savedBBoxes={},Dy=0),r&&(We.savedBBoxes[r]=p),Dy++,nr.extendFlat({},p)};function yD(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}We.setClipUrl=function(e,t,r){e.attr("clip-path",Py(t,r))};function Py(e,t){if(!e)return null;var r=t._context,a=r._exportedPlot?"":r._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}We.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",a=e[r]("transform")||"",n=a.replace(t,function(i,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};We.setTranslate=function(e,t,r){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||0,r=r||0,o=o.replace(a,"").trim(),o+=df(t,r),o=o.trim(),e[i]("transform",o),o};We.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",a=e[r]("transform")||"",n=a.replace(t,function(i,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};We.setScale=function(e,t,r){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||1,r=r||1,o=o.replace(a,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[i]("transform",o),o};var Wre=/\s*sc.*/;We.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var a=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Wre,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Vre=/translate\([^)]*\)\s*$/;We.setTextPointsScale=function(e,t,r){!e||e.each(function(){var a,n=Br.select(this),i=n.select("text");if(!!i.node()){var o=parseFloat(i.attr("x")||0),s=parseFloat(i.attr("y")||0),l=(n.attr("transform")||"").match(Vre);t===1&&r===1?a=[]:a=[df(o,s),"scale("+t+","+r+")",df(-o,-s)],l&&a.push(l),n.attr("transform",a.join(""))}})};function Ry(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}We.getMarkerStandoff=Ry;var hf=Math.atan2,ns=Math.cos,kl=Math.sin;function bD(e,t){var r=t[0],a=t[1];return[r*ns(e)-a*kl(e),r*kl(e)+a*ns(e)]}var xD,_D,wD,TD,Ey,Iy;function zy(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle||0);var a,n,i=t.marker.angleref;if(i==="previous"||i==="north"){if(t._geo){var o=t._geo.project(e.lonlat);a=o[0],n=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)a=s.c2p(e.x),n=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],d=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),p=hf(h[1]-n,h[0]-a),g=hf(d[1]-n,d[0]-a),m;if(i==="north")m=r/180*Math.PI;else if(i==="previous"){var b=u/180*Math.PI,x=c/180*Math.PI,_=xD/180*Math.PI,k=_D/180*Math.PI,w=_-b,A=ns(k)*kl(w),L=kl(k)*ns(x)-ns(k)*kl(x)*ns(w);m=-hf(A,L)-Math.PI,xD=u,_D=c}var S=bD(p,[ns(m),0]),q=bD(g,[kl(m),0]);r=hf(S[1]+q[1],S[0]+q[0])/Math.PI*180,i==="previous"&&!(Iy===t.uid&&e.i===Ey+1)&&(r=null)}if(i==="previous"&&!t._geo)if(Iy===t.uid&&e.i===Ey+1&&ts(a)&&ts(n)){var P=a-wD,E=n-TD,F=t.line&&t.line.shape||"",N=F.slice(F.length-1);N==="h"&&(E=0),N==="v"&&(P=0),r+=hf(E,P)/Math.PI*180+90}else r=null}return wD=a,TD=n,Ey=e.i,Iy=t.uid,r}We.getMarkerAngle=zy});var vf=I((vxe,PD)=>{"use strict";var kh=Ft(),Yre=jt(),kD=Nr(),MD=bt(),Ml=Re(),SD=Ml.strTranslate,CD=Kt(),LD=It(),Ny=Ga(),qD=Od(),Zre=qa().OPPOSITE_SIDE,DD=/ [XY][0-9]* /;function Xre(e,t,r){var a=r.propContainer,n=r.propName,i=r.placeholder,o=r.traceIndex,s=r.avoid||{},l=r.attributes,u=r.transform,c=r.containerGroup,d=e._fullLayout,h=1,p=!1,g=a.title,m=(g&&g.text?g.text:"").trim(),b=g&&g.font?g.font:{},x=b.family,_=b.size,k=b.color,w;n==="title.text"?w="titleText":n.indexOf("axis")!==-1?w="axisTitleText":n.indexOf("colorbar"!==-1)&&(w="colorbarTitleText");var A=e._context.edits[w];m===""?h=0:m.replace(DD," % ")===i.replace(DD," % ")&&(h=.2,p=!0,A||(m="")),r._meta?m=Ml.templateString(m,r._meta):d._meta&&(m=Ml.templateString(m,d._meta));var L=m||A,S;c||(c=Ml.ensureSingle(d._infolayer,"g","g-"+t),S=d._hColorbarMoveTitle);var q=c.selectAll("text").data(L?[0]:[]);if(q.enter().append("text"),q.text(m).attr("class",t),q.exit().remove(),!L)return c;function P(j){Ml.syncOrAsync([E,F],j)}function E(j){var B;return!u&&S&&(u={}),u?(B="",u.rotate&&(B+="rotate("+[u.rotate,l.x,l.y]+")"),(u.offset||S)&&(B+=SD(0,(u.offset||0)-(S||0)))):B=null,j.attr("transform",B),j.style({"font-family":x,"font-size":kh.round(_,2)+"px",fill:LD.rgb(k),opacity:h*LD.opacity(k),"font-weight":kD.fontWeight}).attr(l).call(Ny.convertToTspans,e),kD.previousPromises(e)}function F(j){var B=kh.select(j.node().parentNode);if(s&&s.selection&&s.side&&m){B.attr("transform",null);var W=Zre[s.side],V=s.side==="left"||s.side==="top"?-1:1,Y=Yre(s.pad)?s.pad:2,Z=CD.bBox(B.node()),$={left:0,top:0,right:d.width,bottom:d.height},ne=s.maxShift||V*($[s.side]-Z[s.side]),te=0;if(ne<0)te=ne;else{var de=s.offsetLeft||0,be=s.offsetTop||0;Z.left-=de,Z.right-=de,Z.top-=be,Z.bottom-=be,s.selection.each(function(){var ge=CD.bBox(this);Ml.bBoxIntersect(Z,ge,Y)&&(te=Math.max(te,V*(ge[s.side]-Z[W])+Y))}),te=Math.min(ne,te)}if(te>0||ne<0){var re={left:[-te,0],right:[te,0],top:[0,-te],bottom:[0,te]}[s.side];B.attr("transform",SD(re[0],re[1]))}}}q.call(P);function N(){h=0,p=!0,q.text(i).on("mouseover.opacity",function(){kh.select(this).transition().duration(qD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){kh.select(this).transition().duration(qD.HIDE_PLACEHOLDER).style("opacity",0)})}return A&&(m?q.on(".opacity",null):N(),q.call(Ny.makeEditable,{gd:e}).on("edit",function(j){o!==void 0?MD.call("_guiRestyle",e,n,j,o):MD.call("_guiRelayout",e,n,j)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(P)}).on("input",function(j){this.text(j||" ").call(Ny.positionText,l.x,l.y)})),q.classed("js-placeholder",p),c}PD.exports={draw:Xre}});var Rh=I((pxe,ND)=>{"use strict";var $re=Ft(),Qre=Js().utcFormat,lr=Re(),Kre=lr.numberFormat,ii=jt(),no=lr.cleanNumber,Jre=lr.ms2DateTime,RD=lr.dateTime2ms,oi=lr.ensureNumber,ED=lr.isArrayOrTypedArray,io=Tr(),Mh=io.FP_SAFE,zn=io.BADNUM,eae=io.LOG_CLIP,tae=io.ONEWEEK,Sh=io.ONEDAY,Ch=io.ONEHOUR,ID=io.ONEMIN,zD=io.ONESEC,Lh=Hr(),qh=ga(),Dh=qh.HOUR_PATTERN,Ph=qh.WEEKDAY_PATTERN;function pf(e){return Math.pow(10,e)}function Fy(e){return e!=null}ND.exports=function(t,r){r=r||{};var a=t._id||"x",n=a.charAt(0);function i(w,A){if(w>0)return Math.log(w)/Math.LN10;if(w<=0&&A&&t.range&&t.range.length===2){var L=t.range[0],S=t.range[1];return .5*(L+S-2*eae*Math.abs(L-S))}else return zn}function o(w,A,L,S){if((S||{}).msUTC&&ii(w))return+w;var q=RD(w,L||t.calendar);if(q===zn)if(ii(w)){w=+w;var P=Math.floor(lr.mod(w+.05,1)*10),E=Math.round(w-P/10);q=RD(new Date(E))+P/10}else return zn;return q}function s(w,A,L){return Jre(w,A,L||t.calendar)}function l(w){return t._categories[Math.round(w)]}function u(w){if(Fy(w)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[w]!==void 0)return t._categoriesMap[w];t._categories.push(typeof w=="number"?String(w):w);var A=t._categories.length-1;return t._categoriesMap[w]=A,A}return zn}function c(w,A){for(var L=new Array(A),S=0;St.range[1]&&(L=!L);for(var S=L?-1:1,q=S*w,P=0,E=0;EN)P=E+1;else{P=q<(F+N)/2?E:E+1;break}}var j=t._B[P]||0;return isFinite(j)?g(w,t._m2,j):0},x=function(w){var A=t._rangebreaks.length;if(!A)return m(w,t._m,t._b);for(var L=0,S=0;St._rangebreaks[S].pmax&&(L=S+1);return m(w,t._m2,t._B[L])}}t.c2l=t.type==="log"?i:oi,t.l2c=t.type==="log"?pf:oi,t.l2p=b,t.p2l=x,t.c2p=t.type==="log"?function(w,A){return b(i(w,A))}:b,t.p2c=t.type==="log"?function(w){return pf(x(w))}:x,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=no,t.c2d=t.c2r=t.l2d=t.l2r=oi,t.d2p=t.r2p=function(w){return t.l2p(no(w))},t.p2d=t.p2r=x,t.cleanPos=oi):t.type==="log"?(t.d2r=t.d2l=function(w,A){return i(no(w),A)},t.r2d=t.r2c=function(w){return pf(no(w))},t.d2c=t.r2l=no,t.c2d=t.l2r=oi,t.c2r=i,t.l2d=pf,t.d2p=function(w,A){return t.l2p(t.d2r(w,A))},t.p2d=function(w){return pf(x(w))},t.r2p=function(w){return t.l2p(no(w))},t.p2r=x,t.cleanPos=oi):t.type==="date"?(t.d2r=t.r2d=lr.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(w,A,L){return t.l2p(o(w,0,L))},t.p2d=t.p2r=function(w,A,L){return s(x(w),A,L)},t.cleanPos=function(w){return lr.cleanDate(w,zn,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(w){var A=p(w);return A!==void 0?A:t.fraction2r(.5)},t.l2r=t.c2r=oi,t.r2l=p,t.d2p=function(w){return t.l2p(t.r2c(w))},t.p2d=function(w){return l(x(w))},t.r2p=t.d2p,t.p2r=x,t.cleanPos=function(w){return typeof w=="string"&&w!==""?w:oi(w)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(w){var A=h(w);return A!==void 0?A:t.fraction2r(.5)},t.r2c_just_indices=d,t.l2r=t.c2r=oi,t.r2l=h,t.d2p=function(w){return t.l2p(t.r2c(w))},t.p2d=function(w){return l(x(w))},t.r2p=t.d2p,t.p2r=x,t.cleanPos=function(w){return Array.isArray(w)||typeof w=="string"&&w!==""?w:oi(w)},t.setupMultiCategory=function(w){var A=t._traceIndices,L,S,q=t._matchGroup;if(q&&t._categories.length===0){for(var P in q)if(P!==a){var E=r[Lh.id2name(P)];A=A.concat(E._traceIndices)}}var F=[[0,{}],[0,{}]],N=[];for(L=0;LMh&&(L[S]=Mh),L[0]===L[1]){var E=Math.max(1,Math.abs(L[0]*1e-6));L[0]-=E,L[1]+=E}}},t.setScale=function(w){var A=r._size;if(t.overlaying){var L=Lh.getFromId({_fullLayout:r},t.overlaying);t.domain=L.domain}var S=w&&t._r?"_r":"range",q=t.calendar;t.cleanRange(S);var P=t.r2l(t[S][0],q),E=t.r2l(t[S][1],q),F=n==="y";if(F?(t._offset=A.t+(1-t.domain[1])*A.h,t._length=A.h*(t.domain[1]-t.domain[0]),t._m=t._length/(P-E),t._b=-t._m*E):(t._offset=A.l+t.domain[0]*A.w,t._length=A.w*(t.domain[1]-t.domain[0]),t._m=t._length/(E-P),t._b=-t._m*P),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var N,j;if(t._rangebreaks=t.locateBreaks(Math.min(P,E),Math.max(P,E)),t._rangebreaks.length){for(N=0;NE&&(B=!B),B&&t._rangebreaks.reverse();var W=B?-1:1;for(t._m2=W*t._length/(Math.abs(E-P)-t._lBreaks),t._B.push(-t._m2*(F?E:P)),N=0;Nq&&(q+=7,Pq&&(q+=24,P=S&&P=S&&w=ee.min&&(deee.max&&(ee.max=be),re=!1)}re&&E.push({min:de,max:be})}};for(L=0;L{"use strict";var FD=jt(),jy=Re(),rae=Tr().BADNUM,Eh=jy.isArrayOrTypedArray,aae=jy.isDateTime,nae=jy.cleanNumber,jD=Math.round;HD.exports=function(t,r,a){var n=t,i=a.noMultiCategory;if(Eh(n)&&!n.length)return"-";if(!i&&uae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],s=0;si*2}function OD(e){return Math.max(1,(e-1)/1e3)}function lae(e,t){for(var r=e.length,a=OD(r),n=0,i=0,o={},s=0;sn*2}function uae(e){return Eh(e[0])&&Eh(e[1])}});var mf=I((gxe,ZD)=>{"use strict";var fae=Ft(),BD=jt(),is=Re(),Ih=Tr().FP_SAFE,cae=bt(),dae=Kt(),UD=Hr(),hae=UD.getFromId,vae=UD.isLinked;ZD.exports={getAutoRange:Hy,makePadFn:By,doAutoRange:mae,findExtremes:gae,concatExtremes:Uy};function Hy(e,t){var r,a,n=[],i=e._fullLayout,o=By(i,t,0),s=By(i,t,1),l=Uy(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return is.simpleMap(t.range,t.r2l);var d=u[0].val,h=c[0].val;for(r=1;r0&&(P=_-o(A)-s(L),P>k?E/P>w&&(S=A,q=L,w=E/P):E/_>w&&(S={val:A.val,nopad:1},q={val:L.val,nopad:1},w=E/_));function F(V,Y){return Math.max(V,s(Y))}if(d===h){var N=d-1,j=d+1;if(b)if(d===0)n=[0,1];else{var B=(d>0?c:u).reduce(F,0),W=d/(1-Math.min(.5,B/_));n=d>0?[0,W]:[W,0]}else x?n=[Math.max(0,N),Math.max(1,j)]:n=[N,j]}else b?(S.val>=0&&(S={val:0,nopad:1}),q.val<=0&&(q={val:0,nopad:1})):x&&(S.val-w*o(S)<0&&(S={val:0,nopad:1}),q.val<=0&&(q={val:1,nopad:1})),w=(q.val-S.val-GD(t,A.val,L.val))/(_-o(S)-s(q)),n=[S.val-w*o(S),q.val+w*s(q)];return p&&n.reverse(),is.simpleMap(n,t.l2r||Number)}function GD(e,t,r){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),i=0;i0?r.ppadplus:r.ppadminus)||r.ppad||0),L=w((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=w(r.vpadplus||r.vpad),q=w(r.vpadminus||r.vpad);if(!u){if(_=1/0,k=-1/0,l)for(d=0;d0&&(_=h),h>k&&h-Ih&&(_=h),h>k&&h=F;d--)E(d);return{min:a,max:n,opts:r}}function Gy(e,t,r,a){VD(e,t,r,a,yae)}function Wy(e,t,r,a){VD(e,t,r,a,bae)}function VD(e,t,r,a,n){for(var i=a.tozero,o=a.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else n(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=i&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function YD(e){return BD(e)&&Math.abs(e)=t}});var tr=I((yxe,vP)=>{"use strict";var vn=Ft(),Mr=jt(),Sl=Nr(),gf=bt(),qt=Re(),Cl=qt.strTranslate,yf=Ga(),xae=vf(),bf=It(),en=Kt(),_ae=ni(),XD=cy(),ba=Tr(),wae=ba.ONEMAXYEAR,zh=ba.ONEAVGYEAR,Vy=ba.ONEMINYEAR,Tae=ba.ONEMAXQUARTER,Yy=ba.ONEAVGQUARTER,Zy=ba.ONEMINQUARTER,Aae=ba.ONEMAXMONTH,Ll=ba.ONEAVGMONTH,Xy=ba.ONEMINMONTH,pn=ba.ONEWEEK,Da=ba.ONEDAY,os=Da/2,Si=ba.ONEHOUR,Nh=ba.ONEMIN,$y=ba.ONESEC,ss=ba.MINUS_SIGN,Fh=ba.BADNUM,Qy={K:"zeroline"},Ky={K:"gridline",L:"path"},Jy={K:"minor-gridline",L:"path"},$D={K:"tick",L:"path"},QD={K:"tick",L:"text"},KD={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},jh=qa(),Oh=jh.MID_SHIFT,ls=jh.CAP_SHIFT,Hh=jh.LINE_SPACING,kae=jh.OPPOSITE_SIDE,e0=3,Ie=vP.exports={};Ie.setConvert=Rh();var Mae=Oy(),Ci=Hr(),Sae=Ci.idSort,Cae=Ci.isLinked;Ie.id2name=Ci.id2name;Ie.name2id=Ci.name2id;Ie.cleanId=Ci.cleanId;Ie.list=Ci.list;Ie.listIds=Ci.listIds;Ie.getFromId=Ci.getFromId;Ie.getFromTrace=Ci.getFromTrace;var JD=mf();Ie.getAutoRange=JD.getAutoRange;Ie.findExtremes=JD.findExtremes;var Lae=1e-4;function t0(e){var t=(e[1]-e[0])*Lae;return[e[0]-t,e[1]+t]}Ie.coerceRef=function(e,t,r,a,n,i){var o=a.charAt(a.length-1),s=r._fullLayout._subplots[o+"axis"],l=a+"ref",u={};return n||(n=s[0]||(typeof i=="string"?i:i[0])),i||(i=n),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},qt.coerce(e,t,u,l)};Ie.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ie.coercePosition=function(e,t,r,a,n,i){var o,s,l=Ie.getRefType(a);if(l!=="range")o=qt.ensureNumber,s=r(n,i);else{var u=Ie.getFromId(t,a);i=u.fraction2r(i),s=r(n,i),o=u.cleanPos}e[n]=o(s)};Ie.cleanPosition=function(e,t,r){var a=r==="paper"||r==="pixel"?qt.ensureNumber:Ie.getFromId(t,r).cleanPos;return a(e)};Ie.redrawComponents=function(e,t){t=t||Ie.listIds(e);var r=e._fullLayout;function a(n,i,o,s){for(var l=gf.getComponentMethod(n,i),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ie.saveRangeInitial=function(e,t){for(var r=Ie.list(e,"",!0),a=!1,n=0;nd*.3||u(a)||u(n))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));i.exactYears>o&&s%12==0?e=Ie.tickIncrement(e,"M6","reverse")+Da*1.5:i.exactMonths>o?e=Ie.tickIncrement(e,"M1","reverse")+Da*15.5:e-=os;var l=Ie.tickIncrement(e,r);if(l<=a)return l}return e}Ie.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var a=t.dtick&&Mr(t._tmin),n;if(a){var i=Ie.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,i*.99+t._tmin*.01]}else{var o=qt.simpleMap(t.range,t.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=qt.simpleMap(n,t.l2r),e._isMinor=!0,Ie.prepTicks(e,r),a){var s=Mr(t.dtick),l=Mr(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?r0(u,c)?u===2*pn&&c===2*Da&&(e.dtick=pn):u===2*pn&&c===3*Da?e.dtick=pn:u===pn&&!(t._input.minor||{}).nticks?e.dtick=Da:rP(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":r0(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?r0(u,c)||(e.dtick=rP(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function r0(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function rP(e,t){return Math.abs(e/t-1)<.001}Ie.prepTicks=function(e,t){var r=qt.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?qt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=qt.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(r[1]-r[0])/a,Ie.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var s=e[i].value,l=e[o].value,u=Math.abs(l-s),c=r||u,d=0;c>=Vy?u>=Vy&&u<=wae?d=u:d=zh:r===Yy&&c>=Zy?u>=Zy&&u<=Tae?d=u:d=Yy:c>=Xy?u>=Xy&&u<=Aae?d=u:d=Ll:r===pn&&c>=pn?d=pn:c>=Da?d=Da:r===os&&c>=os?d=os:r===Si&&c>=Si&&(d=Si);var h;d>=u&&(d=u,h=!0);var p=n+d;if(t.rangebreaks&&d>0){for(var g=84,m=0,b=0;bpn&&(d=u)}(d>0||a===0)&&(e[a].periodX=n+d/2)}}Ie.calcTicks=function(t,r){for(var a=t.type,n=t.calendar,i=t.ticklabelstep,o=t.ticklabelmode==="period",s=qt.simpleMap(t.range,t.r2l,void 0,void 0,r),l=s[1]=(b?0:1);x--){var _=!x;x?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var k=x?t:qt.extendFlat({},t,t.minor);if(_?Ie.prepMinorTicks(k,t,r):Ie.prepTicks(k,r),k.tickmode==="array"){x?(g=[],h=aP(t)):(m=[],p=aP(t));continue}var w=t0(s),A=w[0],L=w[1],S=Mr(k.dtick),q=a==="log"&&!(S||k.dtick.charAt(0)==="L"),P=Ie.tickFirst(k,r);if(x){if(t._tmin=P,P=L:F<=L;F=Ie.tickIncrement(F,B,l,n)){if(x&&N++,k.rangebreaks&&!l){if(F=c)break}if(g.length>d||F===E)break;E=F;var W={value:F};x?(q&&F!==(F|0)&&(W.simpleLabel=!0),i>1&&N%i&&(W.skipLabel=!0),g.push(W)):(W.minor=!0,m.push(W))}}if(b){var V=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!V){for(var Y=g.map(function(oe){return oe.value}),Z=[],$=0;$-1;re--){if(g[re].drop){g.splice(re,1);continue}g[re].value=f0(g[re].value,t);var ke=t.c2p(g[re].value);(ge?Ae>ke-ee:Aec||Uc&&(Se.periodX=c),Ua&&dzh)t/=zh,a=n(10),e.dtick="M"+12*si(t,a,Bh);else if(i>Ll)t/=Ll,e.dtick="M"+si(t,1,nP);else if(i>Da){if(e.dtick=si(t,Da,e._hasDayOfWeekBreaks?[1,2,7,14]:Iae),!r){var o=Ie.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=qt.dateTick0(e.calendar,2):e.tick0=qt.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else i>Si?e.dtick=si(t,Si,nP):i>Nh?e.dtick=si(t,Nh,iP):i>$y?e.dtick=si(t,$y,iP):(a=n(10),e.dtick=si(t,a,Bh))}else if(e.type==="log"){e.tick0=0;var l=qt.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,a=n(10),e.dtick="L"+si(t,a,Bh)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):u0(e)?(e.tick0=0,a=1,e.dtick=si(t,a,zae)):(e.tick0=0,a=n(10),e.dtick=si(t,a,Bh));if(e.dtick===0&&(e.dtick=1),!Mr(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function lP(e){var t=e.dtick;if(e._tickexponent=0,!Mr(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),a=e.l2r(r).replace(/(^-|i)/g,""),n=a.length;if(String(t).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=Da&&n<=10||t>=Da*15)e._tickround="d";else if(t>=Nh&&n<=16||t>=Si)e._tickround="M";else if(t>=$y&&n<=19||t>=Nh)e._tickround="S";else{var i=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Mr(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Mr(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Uh(e.exponentformat)&&!i0(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Ie.tickIncrement=function(e,t,r,a){var n=r?-1:1;if(Mr(t))return qt.increment(e,n*t);var i=t.charAt(0),o=n*Number(t.substr(1));if(i==="M")return qt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var s=t==="D2"?sP:oP,l=e+n*.01,u=qt.roundUp(qt.mod(l,1),s,r);return Math.floor(l)+Math.log(vn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Ie.tickFirst=function(e,t){var r=e.r2l||Number,a=qt.simpleMap(e.range,r,void 0,void 0,t),n=a[1]=0&&b<=e._length?m:null};n.xbnd=[g(n.x-.5),g(n.x+e.dtick-.5)]}return n};Ie.hoverLabelText=function(e,t,r){r&&(e=qt.extendFlat({},e,{hoverformat:r}));var a=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:void 0;if(n!==void 0&&n!==a)return Ie.hoverLabelText(e,a,r)+" - "+Ie.hoverLabelText(e,n,r);var i=e.type==="log"&&a<=0,o=Ie.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":ss+o:o};function n0(e,t,r){var a=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:a.size,font:a.family,fontColor:a.color}}function Nae(e,t,r,a){var n=e._tickround,i=r&&e.hoverformat||Ie.getTickFormat(e);a&&(Mr(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=qt.formatDate(t.x,i,n,e._dateFormat,e.calendar,e._extraFormat),s,l=o.indexOf(` -`);if(l!==-1&&(s=o.substr(l+1),o=o.substr(0,l)),a&&(o==="00:00:00"||o==="00:00"?(o=s,s=""):o.length===8&&(o=o.replace(/:00$/,""))),s)if(r)n==="d"?o+=", "+s:o=s+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==s)e._prevDateHead=s,o+="
"+s;else{var u=_f(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Fae(e,t,r,a,n){var i=e.dtick,o=t.x,s=e.tickformat,l=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&l!=="L"&&(i="L3",l="L"),s||l==="L")t.text=xf(Math.pow(10,o),e,n,a);else if(Mr(i)||l==="D"&&qt.mod(o+.01,1)<.1){var u=Math.round(o),c=Math.abs(u),d=e.exponentformat;d==="power"||Uh(d)&&i0(u)?(u===0?t.text=1:u===1?t.text="10":t.text="10"+(u>1?"":ss)+c+"",t.fontSize*=1.25):(d==="e"||d==="E")&&c>2?t.text="1"+d+(u>0?"+":ss)+c:(t.text=xf(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=String(Math.round(Math.pow(10,qt.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function jae(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Oae(e,t,r){var a=Math.round(t.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}function Hae(e,t,r,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=xf(t.x,e,n,a)}function Bae(e,t,r,a,n){if(e.thetaunit==="radians"&&!r){var i=t.x/180;if(i===0)t.text="0";else{var o=Uae(i);if(o[1]>=100)t.text=xf(qt.deg2rad(t.x),e,n,a);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=ss+t.text)}}}else t.text=xf(t.x,e,n,a)}function Uae(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function a(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=a(e),i=e*n,o=Math.abs(r(i,n));return[Math.round(i/o),Math.round(n/o)]}var Gae=["f","p","n","\u03BC","m","","k","M","G","T"];function Uh(e){return e==="SI"||e==="B"}function i0(e){return e>14||e<-15}function xf(e,t,r,a){var n=e<0,i=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Ie.getTickFormat(t),u=t.separatethousands;if(a){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Mr(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};lP(c),i=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,ss);var d=Math.pow(10,-i)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+g+"":o==="B"&&s===9?e+="B":Uh(o)&&(e+=Gae[s/3+5])}return n?ss+e:e}Ie.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Ll}function a(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var d=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return d===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):d-h}else return typeof l=="number"?1:-1}function n(l,u,c){var d=c||function(g){return g},h=u[0],p=u[1];return(!h&&typeof h!="number"||d(h)<=d(l))&&(!p&&typeof p!="number"||d(p)>=d(l))}function i(l,u){var c=u[0]===null,d=u[1]===null,h=a(l,u[0])>=0,p=a(l,u[1])<=0;return(c||h)&&(d||p)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t0?Pe.bottom-xe:0,qe)))),t.automargin){ye={x:0,y:0,r:0,l:0,t:0,b:0};var nt=[0,1];if(l==="x"){if(oe==="b"?ye[oe]=t._depth:(ye[oe]=t._depth=Math.max(Pe.width>0?xe-Pe.top:0,qe),nt.reverse()),Pe.width>0){var at=Pe.right-(t._offset+t._length);at>0&&(ye.xr=1,ye.r=at);var ft=t._offset-Pe.left;ft>0&&(ye.xl=0,ye.l=ft)}}else if(oe==="l"?ye[oe]=t._depth=Math.max(Pe.height>0?xe-Pe.left:0,qe):(ye[oe]=t._depth=Math.max(Pe.height>0?Pe.right-xe:0,qe),nt.reverse()),Pe.height>0){var wt=Pe.bottom-(t._offset+t._length);wt>0&&(ye.yb=0,ye.b=wt);var se=t._offset-Pe.top;se>0&&(ye.yt=1,ye.t=se)}ye[u]=t.anchor==="free"?t.position:t._anchorAxis.domain[nt[0]],t.title.text!==o._dfltTitle[l]&&(ye[oe]+=fP(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(rt={x:0,y:0,r:0,l:0,t:0,b:0},rt[me]=t.linewidth,t.mirror&&t.mirror!==!0&&(rt[me]+=qe),t.mirror===!0||t.mirror==="ticks"?rt[u]=t._anchorAxis.domain[nt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(rt[u]=[t._counterDomainMin,t._counterDomainMax][nt[1]]))}O&&(Ue=gf.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(uP(ye,t.automargin),uP(rt,t.automargin)),Sl.autoMargin(e,l0(t),ye),Sl.autoMargin(e,dP(t),rt),Sl.autoMargin(e,hP(t),Ue)}),!r.skipTitle&&!(O&&t.side==="bottom")&&U.push(function(){return Qae(e,t)}),qt.syncOrAsync(U)}};function uP(e,t){if(!!e){var r=Object.keys(KD).reduce(function(a,n){return t.indexOf(n)!==-1&&KD[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){r[a]||(a.length===1?e[a]=0:delete e[a])})}}function Wae(e,t){var r=[],a,n=function(i,o){var s=i.xbnd[o];s!==null&&r.push(qt.extendFlat({},i,{x:s}))};if(t.length){for(a=0;a60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(P=!c&&L==="left"||c&&L==="right",w=P?1:-1,c&&(w*=-1),x=h,_=p*w,k=0,!c&&Math.abs(q)===90&&(q===-90&&L==="left"||q===90&&L==="right"?k=ls:k=.5),c){var E=Mr(q)?+q:0;if(E!==0){var F=qt.deg2rad(E);A=Math.abs(Math.sin(F))*ls*w,k=0}}b.xFn=function(N){return N.dx+t-(x+N.fontSize*k)*w+A*N.fontSize},b.yFn=function(N){return N.dy+_+N.fontSize*Oh},b.anchorFn=function(N,j){return Mr(j)&&Math.abs(j)===90?"middle":P?"end":"start"},b.heightFn=function(N,j,B){return e.side==="right"&&(j*=-1),j<-30?-B:j<30?-.5*B:0}}return b};function Gh(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ie.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=r.layer.selectAll("path."+a).data(n,Gh);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return bf.stroke(vn.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return en.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Vh(t,[$D]),i.attr("transform",r.transFn)};Ie.drawGrid=function(e,t,r){r=r||{};var a=t._id+"grid",n=t.minor&&t.minor.showgrid,i=n?r.vals.filter(function(x){return x.minor}):[],o=t.showgrid?r.vals.filter(function(x){return!x.minor}):[],s=r.counterAxis;if(s&&Ie.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;g--){var m=g?h:p;if(!!m){var b=m.selectAll("path."+a).data(g?o:i,Gh);b.exit().remove(),b.enter().append("path").classed(a,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(x){return bf.stroke(vn.select(this),x.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return en.dashStyle(x.minor?t.minor.griddash:t.griddash,x.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(x){return(x.minor?d:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}Vh(t,[Ky,Jy])};Ie.drawZeroLine=function(e,t,r){r=r||r;var a=t._id+"zl",n=Ie.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+a).data(n?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return Sae(o.id,s.id)})}),i.attr("transform",r.transFn).attr("d",r.path).call(bf.stroke,t.zerolinecolor||bf.defaultLine).style("stroke-width",en.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Vh(t,[Qy])};Ie.drawLabels=function(e,t,r){r=r||{};var a=e._fullLayout,n=t._id,i=n.charAt(0),o=r.cls||n+"tick",s=r.vals.filter(function(w){return w.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],d=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],Gh),h=[];d.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(w){var A=vn.select(this),L=e._promises.length;A.call(yf.positionText,l.xFn(w),l.yFn(w)).call(en.font,w.font,w.fontSize,w.fontColor).text(w.text).call(yf.convertToTspans,e),e._promises[L]?h.push(e._promises.pop().then(function(){p(A,u)})):p(A,u)}),Vh(t,[QD]),d.exit().remove(),r.repositionOnUpdate&&d.each(function(w){vn.select(this).select("text").call(yf.positionText,l.xFn(w),l.yFn(w))});function p(w,A){w.each(function(L){var S=vn.select(this),q=S.select(".text-math-group"),P=l.anchorFn(L,A),E=r.transFn.call(S.node(),L)+(Mr(A)&&+A!=0?" rotate("+A+","+l.xFn(L)+","+(l.yFn(L)-L.fontSize/2)+")":""),F=yf.lineCount(S),N=Hh*L.fontSize,j=l.heightFn(L,Mr(A)?+A:0,(F-1)*N);if(j&&(E+=Cl(0,j)),q.empty()){var B=S.select("text");B.attr({transform:E,"text-anchor":P}),B.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var W=en.bBox(q.node()).width,V=W*{end:-.5,start:.5}[P];q.attr("transform",E+Cl(V,0))}})}t._adjustTickLabelsOverflow=function(){var w=t.ticklabeloverflow;if(!(!w||w==="allow")){var A=w.indexOf("hide")!==-1,L=t._id.charAt(0)==="x",S=0,q=L?e._fullLayout.width:e._fullLayout.height;if(w.indexOf("domain")!==-1){var P=qt.simpleMap(t.range,t.r2l);S=t.l2p(P[0])+t._offset,q=t.l2p(P[1])+t._offset}var E=Math.min(S,q),F=Math.max(S,q),N=t.side,j=1/0,B=-1/0;d.each(function(Z){var $=vn.select(this),ne=$.select(".text-math-group");if(ne.empty()){var te=en.bBox($.node()),de=0;L?(te.right>F||te.leftF||te.top+(t.tickangle?0:Z.fontSize/4)t["_visibleLabelMin_"+P._id]?Z.style("display","none"):F.K==="tick"&&!E&&Z.style("display",null)})})})})},p(d,c+1?c:u);function g(){return h.length&&Promise.all(h)}var m=null;function b(){if(p(d,u),s.length&&i==="x"&&!Mr(u)&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=0;var w=0,A=[],L;if(d.each(function(te){w=Math.max(w,te.fontSize);var de=t.l2p(te.x),be=s0(this),re=en.bBox(be.node());A.push({top:0,bottom:10,height:10,left:de-re.width/2,right:de+re.width/2+2,width:re.width+2})}),(t.tickson==="boundaries"||t.showdividers)&&!r.secondary){var S=2;for(t.ticks&&(S+=t.tickwidth/2),L=0;L1&&r1)for(n=1;n=n.min&&e{var ane={left:0,top:0};pP.exports=nne;function nne(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=ine(t);return r[0]=a-i.left,r[1]=n-i.top,r}function ine(e){return e===window||e===document||e===document.body?ane:e.getBoundingClientRect()}});var c0=I((xxe,gP)=>{"use strict";var one=Eg();function sne(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}gP.exports=one&&sne()});var bP=I((_xe,yP)=>{"use strict";yP.exports=function(t,r,a,n,i){var o=(t-a)/(n-a),s=o+r/(n-a),l=(o+s)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?l:i==="right"||i==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var wP=I((wxe,_P)=>{"use strict";var xP=Re(),lne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];_P.exports=function(t,r,a,n){return a==="left"?t=0:a==="center"?t=1:a==="right"?t=2:t=xP.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=xP.constrain(Math.floor(r*3),0,2),lne[r][t]}});var AP=I((Txe,TP)=>{"use strict";var une=tf(),fne=th(),cne=Wd().getGraphDiv,dne=Uu(),d0=TP.exports={};d0.wrapped=function(e,t,r){e=cne(e),e._fullLayout&&fne.clear(e._fullLayout._uid+dne.HOVERID),d0.raw(e,t,r)};d0.raw=function(t,r){var a=t._fullLayout,n=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&une.triggerHandler(t,"plotly_beforehover",r)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}))}});var Nn=I((Axe,SP)=>{"use strict";var hne=mP(),h0=zg(),vne=c0(),pne=Re().removeElement,mne=ga(),us=SP.exports={};us.align=bP();us.getCursor=wP();var kP=AP();us.unhover=kP.wrapped;us.unhoverRaw=kP.raw;us.init=function(t){var r=t.gd,a=1,n=r._context.doubleClickDelay,i=t.element,o,s,l,u,c,d,h,p;r._mouseDownTime||(r._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=b,vne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=b,i.addEventListener("touchstart",b,{passive:!1})):i.ontouchstart=b;function g(k,w,A){return Math.abs(k)n&&(a=Math.max(a-1,1)),r._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(a,d),!p){var w;try{w=new MouseEvent("click",k)}catch{var A=v0(k);w=document.createEvent("MouseEvents"),w.initMouseEvent("click",k.bubbles,k.cancelable,k.view,k.detail,k.screenX,k.screenY,A[0],A[1],k.ctrlKey,k.altKey,k.shiftKey,k.metaKey,k.button,k.relatedTarget)}h.dispatchEvent(w)}r._dragging=!1,r._dragged=!1}};function MP(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}us.coverSlip=MP;function v0(e){return hne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var oo=I((kxe,CP)=>{"use strict";CP.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&t.classed(a,!1)}),r&&t.classed("cursor-"+r,!0)}});var DP=I((Mxe,qP)=>{"use strict";var p0=oo(),wf="data-savedcursor",LP="!!";qP.exports=function(t,r){var a=t.attr(wf);if(r){if(!a){for(var n=(t.attr("class")||"").split(" "),i=0;i{"use strict";var m0=La(),gne=gi();PP.exports={bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:gne.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:m0({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:m0({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","Defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:m0({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}});var Zh=I(Yh=>{"use strict";Yh.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};Yh.isVertical=function(t){return t.orientation!=="h"};Yh.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var x0=I((Lxe,RP)=>{"use strict";var y0=bt(),Fn=Re(),yne=ar(),bne=Zi(),xne=g0(),_ne=sl(),b0=Zh();RP.exports=function(t,r,a){var n=t.legend||{},i=yne.newContainer(r,"legend");function o(q,P){return Fn.coerce(n,i,xne,q,P)}for(var s,l=function(q,P){var E=s._input,F=s;return Fn.coerce(E,F,bne,q,P)},u=r.font||{},c=Fn.coerceFont(o,"grouptitlefont",Fn.extendFlat({},u,{size:Math.round(u.size*1.1)})),d=0,h=!1,p="normal",g=0;g1);if(m===!1&&(r.legend=void 0),!(m===!1&&!n.uirevision)&&(o("uirevision",r.uirevision),m!==!1)){o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth");var b=Fn.coerceFont(o,"font",r.font),x=o("orientation"),_=x==="h",k,w,A;_?(k=0,y0.getComponentMethod("rangeslider","isVisible")(t.xaxis)?(w=1.1,A="bottom"):(w=-.1,A="top")):(k=1.02,w=1,A="auto"),o("traceorder",p),b0.isGrouped(r.legend)&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("x",k),o("xanchor"),o("y",w),o("yanchor",A),o("valign"),Fn.noneOrAll(n,i,["x","y"]);var L=o("title.text");if(L){o("title.side",_?"left":"top");var S=Fn.extendFlat({},b,{size:Fn.bigFont(b.size)});Fn.coerceFont(o,"title.font",S)}}}});var IP=I((qxe,EP)=>{"use strict";var _0=Re(),fs=bt(),w0=!0;EP.exports=function(t,r,a){var n=r._fullLayout;if(r._dragged||r._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,s=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&w0&&r.data&&r._context.showTips&&_0.notifier(_0._(r,"Double-click on legend to isolate one trace"),"long"),w0=!1;var l;if(a===1?l=i:a===2&&(l=o),!l)return;var u=s==="togglegroup",c=n.hiddenlabels?n.hiddenlabels.slice():[],d=t.data()[0][0];if(d.groupTitle&&d.noClick)return;var h=r._fullData,p=d.trace,g=p.legendgroup,m,b,x,_,k,w,A={},L=[],S=[],q=[];function P(re,ge,ee){var Ae=L.indexOf(re),ke=A[ge];return ke||(ke=A[ge]=[]),L.indexOf(re)===-1&&(L.push(re),Ae=L.length-1),ke[Ae]=ee,Ae}function E(re,ge){if(!(d.groupTitle&&!u)){var ee=re._fullInput;if(fs.hasTransform(ee,"groupby")){var Ae=S[ee.index];if(!Ae){var ke=fs.getTransformIndices(ee,"groupby"),De=ke[ke.length-1];Ae=_0.keyedContainer(ee,"transforms["+De+"].styles","target","value.visible"),S[ee.index]=Ae}var Le=Ae.get(re._group);Le===void 0&&(Le=!0),Le!==!1&&Ae.set(re._group,ge),q[ee.index]=P(ee.index,"visible",ee.visible!==!1)}else{var Se=ee.visible===!1?!1:ge;P(ee.index,"visible",Se)}}}if(fs.traceIs(p,"pie-like")){var F=d.label,N=c.indexOf(F);l==="toggle"?N===-1?c.push(F):c.splice(N,1):l==="toggleothers"&&(c=[],r.calcdata[0].forEach(function(re){F!==re.label&&c.push(re.label)}),r._fullLayout.hiddenlabels&&r._fullLayout.hiddenlabels.length===c.length&&N===-1&&(c=[])),fs.call("_guiRelayout",r,"hiddenlabels",c)}else{var j=g&&g.length,B=[],W;if(j)for(m=0;m{"use strict";zP.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var jP=I((Pxe,FP)=>{"use strict";var NP=bt(),A0=Zh();FP.exports=function(t,r){var a=r._inHover,n=A0.isGrouped(r),i=A0.isReversed(r),o={},s=[],l=!1,u={},c=0,d=0,h,p;function g(W,V){if(W===""||!A0.isGrouped(r)){var Y="~~i"+c;s.push(Y),o[Y]=[V],c++}else s.indexOf(W)===-1?(s.push(W),l=!0,o[W]=[V]):o[W].push(V)}for(h=0;hq&&(S=q)}A[h][0]._groupMinRank=S,A[h][0]._preGroupSort=h}var P=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},E=function(W,V){return W.trace.legendrank-V.trace.legendrank||W._preSort-V._preSort};for(A.forEach(function(W,V){W[0]._preGroupSort=V}),A.sort(P),h=0;h{"use strict";var OP=Re();function HP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}cs.formatPiePercent=function(t,r){var a=HP((t*100).toPrecision(3));return OP.numSeparate(a,r)+"%"};cs.formatPieValue=function(t,r){var a=HP(t.toPrecision(10));return OP.numSeparate(a,r)};cs.getFirstFilled=function(t,r){if(!!Array.isArray(t))for(var a=0;a{"use strict";var M0=It(),BP=k0().castOption;UP.exports=function(t,r,a){var n=a.marker.line,i=BP(n.color,r.pts)||M0.defaultLine,o=BP(n.width,r.pts)||0;t.style("stroke-width",o).call(M0.fill,r.color).call(M0.stroke,i)}});var q0=I((Ixe,$P)=>{"use strict";var xa=Ft(),S0=bt(),ua=Re(),WP=ua.strTranslate,Pa=Kt(),mn=It(),C0=hn().extractOpts,Xh=Ja(),wne=GP(),Tne=k0().castOption,Ane=T0(),VP=12,YP=5,ds=2,kne=10,ql=5;$P.exports=function(t,r,a){var n=r._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,s=(o+Ane.itemGap*2)/2,l=WP(s,0),u=function(S,q,P,E){var F;if(S+1)F=S;else if(q&&q.width>0)F=q.width;else return 0;return i?E:Math.min(F,P)};t.each(function(S){var q=xa.select(this),P=ua.ensureSingle(q,"g","layers");P.style("opacity",S[0].trace.opacity);var E=a.valign,F=S[0].lineHeight,N=S[0].height;if(E==="middle"||!F||!N)P.attr("transform",null);else{var j={top:1,bottom:-1}[E],B=j*(.5*(F-N+3));P.attr("transform",WP(0,B))}var W=P.selectAll("g.legendfill").data([S]);W.enter().append("g").classed("legendfill",!0);var V=P.selectAll("g.legendlines").data([S]);V.enter().append("g").classed("legendlines",!0);var Y=P.selectAll("g.legendsymbols").data([S]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(L).each(h).each(g).each(p).each(b).each(w).each(k).each(c).each(d).each(x).each(_);function c(S){var q=ZP(S),P=q.showFill,E=q.showLine,F=q.showGradientLine,N=q.showGradientFill,j=q.anyFill,B=q.anyLine,W=S[0],V=W.trace,Y,Z,$=C0(V),ne=$.colorscale,te=$.reversescale,de=function(De){if(De.size())if(P)Pa.fillGroupStyle(De,r);else{var Le="legendfill-"+V.uid;Pa.gradient(De,r,Le,L0(te),ne,"fill")}},be=function(De){if(De.size()){var Le="legendline-"+V.uid;Pa.lineGroupStyle(De),Pa.gradient(De,r,Le,L0(te),ne,"stroke")}},re=Xh.hasMarkers(V)||!j?"M5,0":B?"M5,-2":"M5,-3",ge=xa.select(this),ee=ge.select(".legendfill").selectAll("path").data(P||N?[S]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",re+"h"+o+"v6h-"+o+"z").call(de),E||F){var Ae=u(void 0,V.line,kne,YP);Z=ua.minExtend(V,{line:{width:Ae}}),Y=[ua.minExtend(W,{trace:Z})]}var ke=ge.select(".legendlines").selectAll("path").data(E||F?[Y]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",re+(F?"l"+o+",0.0001":"h"+o)).call(E?Pa.lineGroupStyle:be)}function d(S){var q=ZP(S),P=q.anyFill,E=q.anyLine,F=q.showLine,N=q.showMarker,j=S[0],B=j.trace,W=!N&&!E&&!P&&Xh.hasText(B),V,Y;function Z(ee,Ae,ke,De){var Le=ua.nestedProperty(B,ee).get(),Se=ua.isArrayOrTypedArray(Le)&&Ae?Ae(Le):Le;if(i&&Se&&De!==void 0&&(Se=De),ke){if(Seke[1])return ke[1]}return Se}function $(ee){return j._distinct&&j.index&&ee[j.index]?ee[j.index]:ee[0]}if(N||W||F){var ne={},te={};if(N){ne.mc=Z("marker.color",$),ne.mx=Z("marker.symbol",$),ne.mo=Z("marker.opacity",ua.mean,[.2,1]),ne.mlc=Z("marker.line.color",$),ne.mlw=Z("marker.line.width",ua.mean,[0,5],ds),te.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var de=Z("marker.size",ua.mean,[2,16],VP);ne.ms=de,te.marker.size=de}F&&(te.line={width:Z("line.width",$,[0,10],YP)}),W&&(ne.tx="Aa",ne.tp=Z("textposition",$),ne.ts=10,ne.tc=Z("textfont.color",$),ne.tf=Z("textfont.family",$)),V=[ua.minExtend(j,ne)],Y=ua.minExtend(B,te),Y.selectedpoints=null,Y.texttemplate=null}var be=xa.select(this).select("g.legendpoints"),re=be.selectAll("path.scatterpts").data(N?V:[]);re.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),re.exit().remove(),re.call(Pa.pointStyle,Y,r),N&&(V[0].mrc=3);var ge=be.selectAll("g.pointtext").data(W?V:[]);ge.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ge.exit().remove(),ge.selectAll("text").call(Pa.textPointStyle,Y,r)}function h(S){var q=S[0].trace,P=q.type==="waterfall";if(S[0]._distinct&&P){var E=S[0].trace[S[0].dir].marker;return S[0].mc=E.color,S[0].mlw=E.line.width,S[0].mlc=E.line.color,m(S,this,"waterfall")}var F=[];q.visible&&P&&(F=S[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=xa.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(F);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(j){var B=xa.select(this),W=q[j[0]].marker,V=u(void 0,W.line,ql,ds);B.attr("d",j[1]).style("stroke-width",V+"px").call(mn.fill,W.color),V&&B.call(mn.stroke,W.line.color)})}function p(S){m(S,this)}function g(S){m(S,this,"funnel")}function m(S,q,P){var E=S[0].trace,F=E.marker||{},N=F.line||{},j=P?E.visible&&E.type===P:S0.traceIs(E,"bar"),B=xa.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(j?[S]:[]);B.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),B.exit().remove(),B.each(function(W){var V=xa.select(this),Y=W[0],Z=u(Y.mlw,F.line,ql,ds);V.style("stroke-width",Z+"px");var $=Y.mcc;if(!a._inHover&&"mc"in Y){var ne=C0(F),te=ne.mid;te===void 0&&(te=(ne.max+ne.min)/2),$=Pa.tryColorscale(F,"")(te)}var de=$||Y.mc||F.color,be=F.pattern,re=be&&Pa.getPatternAttr(be.shape,0,"");if(re){var ge=Pa.getPatternAttr(be.bgcolor,0,null),ee=Pa.getPatternAttr(be.fgcolor,0,null),Ae=be.fgopacity,ke=XP(be.size,8,10),De=XP(be.solidity,.5,1),Le="legend-"+E.uid;V.call(Pa.pattern,"legend",r,Le,re,ke,De,$,be.fillmode,ge,ee,Ae)}else V.call(mn.fill,de);Z&&mn.stroke(V,Y.mlc||N.color)})}function b(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&S0.traceIs(q,"box-violin")?[S]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),P.exit().remove(),P.each(function(){var E=xa.select(this);if((q.boxpoints==="all"||q.points==="all")&&mn.opacity(q.fillcolor)===0&&mn.opacity((q.line||{}).color)===0){var F=ua.minExtend(q,{marker:{size:i?VP:ua.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Pa.pointStyle,F,r)}else{var N=u(void 0,q.line,ql,ds);E.style("stroke-width",N+"px").call(mn.fill,q.fillcolor),N&&mn.stroke(E,q.line.color)}})}function x(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[S,S]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(E,F){return F?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(E,F){var N=xa.select(this),j=q[F?"increasing":"decreasing"],B=u(void 0,j.line,ql,ds);N.style("stroke-width",B+"px").call(mn.fill,j.fillcolor),B&&mn.stroke(N,j.line.color)})}function _(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[S,S]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(E,F){return F?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(E,F){var N=xa.select(this),j=q[F?"increasing":"decreasing"],B=u(void 0,j.line,ql,ds);N.style("fill","none").call(Pa.dashLine,j.line.dash,B),B&&mn.stroke(N,j.line.color)})}function k(S){A(S,this,"pie")}function w(S){A(S,this,"funnelarea")}function A(S,q,P){var E=S[0],F=E.trace,N=P?F.visible&&F.type===P:S0.traceIs(F,P),j=xa.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(N?[S]:[]);if(j.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),j.exit().remove(),j.size()){var B=(F.marker||{}).line,W=u(Tne(B.width,E.pts),B,ql,ds),V=ua.minExtend(F,{marker:{line:{width:W}}});V.marker.line.color=B.color;var Y=ua.minExtend(E,{trace:V});wne(j,Y,V)}}function L(S){var q=S[0].trace,P,E=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmapbox":E=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymapbox":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":E=[["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"]],P=!1;break;case"streamtube":E=[["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"]],P=!1;break;case"surface":E=[["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"]],P=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var F=xa.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);F.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(N,j){var B=xa.select(this),W=C0(q),V=W.colorscale,Y=W.reversescale,Z=function(de){if(de.size()){var be="legendfill-"+q.uid;Pa.gradient(de,r,be,L0(Y,P==="radial"),V,"fill")}},$;if(V){if(!P){var te=V.length;$=j===0?V[Y?te-1:0][1]:j===1?V[Y?0:te-1][1]:V[Math.floor((te-1)/2)][1]}}else{var ne=q.vertexcolor||q.facecolor||q.color;$=ua.isArrayOrTypedArray(ne)?ne[j]||ne[0]:ne}B.attr("d",N[0]),$?B.call(mn.fill,$):B.call(Z)})}};function L0(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function ZP(e){var t=e[0].trace,r=t.contours,a=Xh.hasLines(t),n=Xh.hasMarkers(t),i=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:a=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?i=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:s,anyLine:a||o,anyFill:i||s}}function XP(e,t,r){return e&&ua.isArrayOrTypedArray(e)?t:e>r?r:e}});var z0=I((zxe,nR)=>{"use strict";var tn=Ft(),Sr=Re(),D0=Nr(),hs=bt(),QP=tf(),P0=Nn(),Fr=Kt(),$h=It(),Dl=Ga(),KP=IP(),aa=T0(),R0=qa(),Mne=R0.LINE_SPACING,Qh=R0.FROM_TL,JP=R0.FROM_BR,eR=jP(),Sne=q0(),tR=Zh(),Pl=1;nR.exports=function(t,r){return r||(r=t._fullLayout.legend||{}),Cne(t,r)};function Cne(e,t){var r=e._fullLayout,a="legend"+r._uid,n,i=t._inHover;if(i?(n=t.layer,a+="-hover"):n=r._infolayer,!!n){e._legendMouseDownTime||(e._legendMouseDownTime=0);var o;if(i){if(!t.entries)return;o=eR(t.entries,t)}else{if(!e.calcdata)return;o=r.showlegend&&eR(e.calcdata,t)}var s=r.hiddenlabels||[];if(!i&&(!r.showlegend||!o.length))return n.selectAll(".legend").remove(),r._topdefs.select("#"+a).remove(),D0.autoMargin(e,"legend");var l=Sr.ensureSingle(n,"g","legend",function(x){i||x.attr("pointer-events","all")}),u=Sr.ensureSingleById(r._topdefs,"clipPath",a,function(x){x.append("rect")}),c=Sr.ensureSingle(l,"rect","bg",function(x){x.attr("shape-rendering","crispEdges")});c.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var d=Sr.ensureSingle(l,"g","scrollbox"),h=t.title;if(t._titleWidth=0,t._titleHeight=0,h.text){var p=Sr.ensureSingle(d,"text","legendtitletext");p.attr("text-anchor","start").call(Fr.font,h.font).text(h.text),Jh(p,d,e,t,Pl)}else d.selectAll(".legendtitletext").remove();var g=Sr.ensureSingle(l,"rect","scrollbar",function(x){x.attr(aa.scrollBarEnterAttrs).call($h.fill,aa.scrollBarColor)}),m=d.selectAll("g.groups").data(o);m.enter().append("g").attr("class","groups"),m.exit().remove();var b=m.selectAll("g.traces").data(Sr.identity);b.enter().append("g").attr("class","traces"),b.exit().remove(),b.style("opacity",function(x){var _=x[0].trace;return hs.traceIs(_,"pie-like")?s.indexOf(x[0].label)!==-1?.5:1:_.visible==="legendonly"?.5:1}).each(function(){tn.select(this).call(Lne,e,t)}).call(Sne,e,t).each(function(){i||tn.select(this).call(qne,e)}),Sr.syncOrAsync([D0.previousPromises,function(){return Rne(e,m,b,t)},function(){var x=r._size,_=t.borderwidth;if(!i){var k=Ene(e);if(k)return;var w=x.l+x.w*t.x-Qh[E0(t)]*t._width,A=x.t+x.h*(1-t.y)-Qh[I0(t)]*t._effHeight;if(r.margin.autoexpand){var L=w,S=A;w=Sr.constrain(w,0,r.width-t._width),A=Sr.constrain(A,0,r.height-t._effHeight),w!==L&&Sr.log("Constrain legend.x to make legend fit inside graph"),A!==S&&Sr.log("Constrain legend.y to make legend fit inside graph")}Fr.setTranslate(l,w,A)}if(g.on(".drag",null),l.on("wheel",null),i||t._height<=t._maxHeight||e._context.staticPlot){var q=t._effHeight;i&&(q=t._height),c.attr({width:t._width-_,height:q-_,x:_/2,y:_/2}),Fr.setTranslate(d,0,0),u.select("rect").attr({width:t._width-2*_,height:q-2*_,x:_,y:_}),Fr.setClipUrl(d,a,e),Fr.setRect(g,0,0,0,0),delete t._scrollY}else{var P=Math.max(aa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),E=t._effHeight-P-2*aa.scrollBarMargin,F=t._height-t._effHeight,N=E/F,j=Math.min(t._scrollY||0,F);c.attr({width:t._width-2*_+aa.scrollBarWidth+aa.scrollBarMargin,height:t._effHeight-_,x:_/2,y:_/2}),u.select("rect").attr({width:t._width-2*_+aa.scrollBarWidth+aa.scrollBarMargin,height:t._effHeight-2*_,x:_,y:_+j}),Fr.setClipUrl(d,a,e),te(j,P,N),l.on("wheel",function(){j=Sr.constrain(t._scrollY+tn.event.deltaY/E*F,0,F),te(j,P,N),j!==0&&j!==F&&tn.event.preventDefault()});var B,W,V,Y=function(ee,Ae,ke){var De=(ke-Ae)/N+ee;return Sr.constrain(De,0,F)},Z=function(ee,Ae,ke){var De=(Ae-ke)/N+ee;return Sr.constrain(De,0,F)},$=tn.behavior.drag().on("dragstart",function(){var ee=tn.event.sourceEvent;ee.type==="touchstart"?B=ee.changedTouches[0].clientY:B=ee.clientY,V=j}).on("drag",function(){var ee=tn.event.sourceEvent;ee.buttons===2||ee.ctrlKey||(ee.type==="touchmove"?W=ee.changedTouches[0].clientY:W=ee.clientY,j=Y(V,B,W),te(j,P,N))});g.call($);var ne=tn.behavior.drag().on("dragstart",function(){var ee=tn.event.sourceEvent;ee.type==="touchstart"&&(B=ee.changedTouches[0].clientY,V=j)}).on("drag",function(){var ee=tn.event.sourceEvent;ee.type==="touchmove"&&(W=ee.changedTouches[0].clientY,j=Z(V,B,W),te(j,P,N))});d.call(ne)}function te(ee,Ae,ke){t._scrollY=e._fullLayout.legend._scrollY=ee,Fr.setTranslate(d,0,-ee),Fr.setRect(g,t._width,aa.scrollBarMargin+ee*ke,aa.scrollBarWidth,Ae),u.select("rect").attr("y",_+ee)}if(e._context.edits.legendPosition){var de,be,re,ge;l.classed("cursor-move",!0),P0.init({element:l.node(),gd:e,prepFn:function(){var ee=Fr.getTranslate(l);re=ee.x,ge=ee.y},moveFn:function(ee,Ae){var ke=re+ee,De=ge+Ae;Fr.setTranslate(l,ke,De),de=P0.align(ke,0,x.l,x.l+x.w,t.xanchor),be=P0.align(De,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){de!==void 0&&be!==void 0&&hs.call("_guiRelayout",e,{"legend.x":de,"legend.y":be})},clickFn:function(ee,Ae){var ke=n.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return Ae.clientX>=De.left&&Ae.clientX<=De.right&&Ae.clientY>=De.top&&Ae.clientY<=De.bottom});ke.size()>0&&rR(e,l,ke,ee,Ae)}})}}],e)}}function Kh(e,t,r){var a=e[0],n=a.width,i=t.entrywidthmode,o=a.trace.legendwidth||t.entrywidth;return i==="fraction"?t._maxWidth*o:r+(o||n)}function rR(e,t,r,a,n){var i=r.data()[0][0].trace,o={event:n,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),hs.traceIs(i,"pie-like")&&(o.label=r.datum()[0].label);var s=QP.triggerHandler(e,"plotly_legendclick",o);if(s!==!1){if(a===1)t._clickTimeout=setTimeout(function(){!e._fullLayout||KP(r,e,a)},e._context.doubleClickDelay);else if(a===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=QP.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&KP(r,e,a)}}}function Lne(e,t,r){var a=e.data()[0][0],n=a.trace,i=hs.traceIs(n,"pie-like"),o=!r._inHover&&t._context.edits.legendText&&!i,s=r._maxNameLength,l,u;a.groupTitle?(l=a.groupTitle.text,u=a.groupTitle.font):(u=r.font,r.entries?l=a.text:(l=i?a.label:n.name,n._meta&&(l=Sr.templateString(l,n._meta))));var c=Sr.ensureSingle(e,"text","legendtext");c.attr("text-anchor","start").call(Fr.font,u).text(o?aR(l,s):l);var d=r.itemwidth+aa.itemGap*2;Dl.positionText(c,d,0),o?c.call(Dl.makeEditable,{gd:t,text:l}).call(Jh,e,t,r).on("edit",function(h){this.text(aR(h,s)).call(Jh,e,t,r);var p=a.trace._fullInput||{},g={};if(hs.hasTransform(p,"groupby")){var m=hs.getTransformIndices(p,"groupby"),b=m[m.length-1],x=Sr.keyedContainer(p,"transforms["+b+"].styles","target","value.name");x.set(a.trace._group,h),g=x.constructUpdate()}else g.name=h;return hs.call("_guiRestyle",t,g,n.index)}):Jh(c,e,t,r)}function aR(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var a=r-e.length;a>0;a--)e+=" ";return e}function qne(e,t){var r=t._context.doubleClickDelay,a,n=1,i=Sr.ensureSingle(e,"rect","legendtoggle",function(o){t._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call($h.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimer&&(n=Math.max(n-1,1)),rR(t,o,e,n,tn.event)}}))}function Jh(e,t,r,a,n){a._inHover&&e.attr("data-notex",!0),Dl.convertToTspans(e,r,function(){Dne(t,r,a,n)})}function Dne(e,t,r,a){var n=e.data()[0][0];if(!r._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var s=r.borderwidth,l;a===Pl?l=r.title.font:n.groupTitle?l=n.groupTitle.font:l=r.font;var u=l.size*Mne,c,d;if(o){var h=Fr.bBox(o);c=h.height,d=h.width,a===Pl?Fr.setTranslate(i,s,s+c*.75):Fr.setTranslate(i,0,c*.25)}else{var p=e.select(a===Pl?".legendtitletext":".legendtext"),g=Dl.lineCount(p),m=p.node();if(c=u*g,d=m?Fr.bBox(m).width:0,a===Pl)r.title.side==="left"&&(d+=aa.itemGap*2),Dl.positionText(p,s+aa.titlePad,s+u);else{var b=aa.itemGap*2+r.itemwidth;n.groupTitle&&(b=aa.itemGap,d-=r.itemwidth),Dl.positionText(p,b,-u*((g-1)/2-.3))}}a===Pl?(r._titleWidth=d,r._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=d)}function Pne(e){var t=0,r=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(t=e._titleWidth),a.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Rne(e,t,r,a){var n=e._fullLayout;a||(a=n.legend);var i=n._size,o=tR.isVertical(a),s=tR.isGrouped(a),l=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,d=aa.itemGap,h=a.itemwidth+d*2,p=2*(u+d),g=I0(a),m=a.y<0||a.y===0&&g==="top",b=a.y>1||a.y===1&&g==="bottom",x=a.tracegroupgap,_={};a._maxHeight=Math.max(m||b?n.height/2:i.h,30);var k=0;a._width=0,a._height=0;var w=Pne(a);if(o)r.each(function(re){var ge=re[0].height;Fr.setTranslate(this,u+w[0],u+w[1]+a._height+ge/2+d),a._height+=ge,a._width=Math.max(a._width,re[0].width)}),k=h+a._width,a._width+=d+h+c,a._height+=p,s&&(t.each(function(re,ge){Fr.setTranslate(this,0,ge*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var A=E0(a),L=a.x<0||a.x===0&&A==="right",S=a.x>1||a.x===1&&A==="left",q=b||m,P=n.width/2;a._maxWidth=Math.max(L?q&&A==="left"?i.l+i.w:P:S?q&&A==="right"?i.r+i.w:P:i.w,2*h);var E=0,F=0;r.each(function(re){var ge=Kh(re,a,h);E=Math.max(E,ge),F+=ge}),k=null;var N=0;if(s){var j=0,B=0,W=0;t.each(function(){var re=0,ge=0;tn.select(this).selectAll("g.traces").each(function(Ae){var ke=Kh(Ae,a,h),De=Ae[0].height;Fr.setTranslate(this,w[0],w[1]+u+d+De/2+ge),ge+=De,re=Math.max(re,ke),_[Ae[0].trace.legendgroup]=re});var ee=re+d;B>0&&ee+u+B>a._maxWidth?(N=Math.max(N,B),B=0,W+=j+x,j=ge):j=Math.max(j,ge),Fr.setTranslate(this,B,W),B+=ee}),a._width=Math.max(N,B)+u,a._height=W+j+p}else{var V=r.size(),Y=F+c+(V-1)*d=a._maxWidth&&(N=Math.max(N,te),$=0,ne+=Z,a._height+=Z,Z=0),Fr.setTranslate(this,w[0]+u+$,w[1]+u+ne+ge/2+d),te=$+ee+d,$+=Ae,Z=Math.max(Z,ge)}),Y?(a._width=$+c,a._height=Z+p):(a._width=Math.max(N,te)+c,a._height+=Z+p)}}a._width=Math.ceil(Math.max(a._width+w[0],a._titleWidth+2*(u+aa.titlePad))),a._height=Math.ceil(Math.max(a._height+w[1],a._titleHeight+2*(u+aa.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var de=e._context.edits,be=de.legendText||de.legendPosition;r.each(function(re){var ge=tn.select(this).select(".legendtoggle"),ee=re[0].height,Ae=re[0].trace.legendgroup,ke=Kh(re,a,h);s&&Ae!==""&&(ke=_[Ae]);var De=be?h:k||ke;!o&&!l&&(De+=d/2),Fr.setRect(ge,0,-ee/2,De,ee)})}function Ene(e){var t=e._fullLayout,r=t.legend,a=E0(r),n=I0(r);return D0.autoMargin(e,"legend",{x:r.x,y:r.y,l:r._width*Qh[a],r:r._width*JP[a],b:r._effHeight*JP[n],t:r._effHeight*Qh[n]})}function E0(e){return Sr.isRightAnchor(e)?"right":Sr.isCenterAnchor(e)?"center":"left"}function I0(e){return Sr.isBottomAnchor(e)?"bottom":Sr.isMiddleAnchor(e)?"middle":"top"}});var O0=I(j0=>{"use strict";var vs=Ft(),Li=jt(),iR=Pn(),Cr=Re(),N0=Cr.strTranslate,Ine=Cr.strRotate,zne=tf(),gn=Ga(),Nne=DP(),li=Kt(),Ur=It(),ev=Nn(),so=tr(),Rl=bt(),jn=Mi(),ps=Uu(),Fne=x0(),jne=z0(),oR=ps.YANGLE,F0=Math.PI*oR/180,One=1/Math.sin(F0),Hne=Math.cos(F0),Bne=Math.sin(F0),ur=ps.HOVERARROWSIZE,Ot=ps.HOVERTEXTPAD,sR={box:!0,ohlc:!0,violin:!0,candlestick:!0},Une={scatter:!0,scattergl:!0,splom:!0};j0.hover=function(t,r,a,n){t=Cr.getGraphDiv(t);var i=r.target;Cr.throttle(t._fullLayout._uid+ps.HOVERID,ps.HOVERMINTIME,function(){Gne(t,r,a,n,i)})};j0.loneHover=function(t,r){var a=!0;Array.isArray(t)||(a=!1,t=[t]);var n=r.gd,i=mR(n),o=gR(n),s=t.map(function(m){var b=m._x0||m.x0||m.x||0,x=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,k=m._y1||m.y1||m.y||0,w=m.eventData;if(w){var A=Math.min(b,x),L=Math.max(b,x),S=Math.min(_,k),q=Math.max(_,k),P=m.trace;if(Rl.traceIs(P,"gl3d")){var E=n._fullLayout[P.scene]._scene.container,F=E.offsetLeft,N=E.offsetTop;A+=F,L+=F,S+=N,q+=N}w.bbox={x0:A+o,x1:L+o,y0:S+i,y1:q+i},r.inOut_bbox&&r.inOut_bbox.push(w.bbox)}else w=!1;return{color:m.color||Ur.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:w}}),l=!1,u=uR(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Ur.background,container:vs.select(r.container),outerContainer:r.outerContainer||r.container}),c=5,d=0,h=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var x=m.y0-m.by/2;x-ch[0]._length||re<0||re>p[0]._length)return ev.unhoverRaw(e,t)}if(t.pointerX=be+h[0]._offset,t.pointerY=re+p[0]._offset,"xval"in t?S=jn.flat(i,t.xval):S=jn.p2c(h,be),"yval"in t?q=jn.flat(i,t.yval):q=jn.p2c(p,re),!Li(S[0])||!Li(q[0]))return Cr.warn("Fx.hover failed",t,e),ev.unhoverRaw(e,t)}var Ae=1/0;function ke(Te,Fe){for(E=0;E$&&(A.splice(0,$),Ae=A[0].distance),u&&w!==0&&A.length===0){Z.distance=w,Z.index=!1;var hr=N._module.hoverPoints(Z,V,Y,"closest",{hoverLayer:o._hoverlayer});if(hr&&(hr=hr.filter(function(Aa){return Aa.spikeDistance<=w})),hr&&hr.length){var ca,Qn=hr.filter(function(Aa){return Aa.xa.showspikes&&Aa.xa.spikesnap!=="hovered data"});if(Qn.length){var ia=Qn[0];Li(ia.x0)&&Li(ia.y0)&&(ca=Le(ia),(!ne.vLinePoint||ne.vLinePoint.spikeDistance>ca.spikeDistance)&&(ne.vLinePoint=ca))}var Xa=hr.filter(function(Aa){return Aa.ya.showspikes&&Aa.ya.spikesnap!=="hovered data"});if(Xa.length){var Cn=Xa[0];Li(Cn.x0)&&Li(Cn.y0)&&(ca=Le(Cn),(!ne.hLinePoint||ne.hLinePoint.spikeDistance>ca.spikeDistance)&&(ne.hLinePoint=ca))}}}}}ke();function De(Te,Fe,Et){for(var pr=null,Vr=1/0,Er,hr=0;hr0&&Math.abs(Te.distance)nt-1;ct--)it(A[ct]);A=wt,O()}var Je=e._hoverdata,we=[],Me=mR(e),Ye=gR(e);for(P=0;P1||A.length>1)||_==="closest"&&te&&A.length>1,pt=Ur.combine(o.plot_bgcolor||Ur.background,o.paper_bgcolor),ae=uR(A,{gd:e,hovermode:_,rotateLabels:vt,bgColor:pt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance});if(jn.isUnifiedHover(_)||(Vne(ae,vt?"xa":"ya",o),cR(ae,vt,o._invScaleX,o._invScaleY)),n&&n.tagName){var _e=Rl.getComponentMethod("annotations","hasClickToShow")(e,we);Nne(vs.select(n),_e?"pointer":"")}!n||a||!Zne(e,t,Je)||(Je&&e.emit("plotly_unhover",{event:t,points:Je}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:h,yaxes:p,xvals:S,yvals:q}))}function lR(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 Wne=/([\s\S]*)<\/extra>/;function uR(e,t){var r=t.gd,a=r._fullLayout,n=t.hovermode,i=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||ps.HOVERFONT,d=t.fontSize||ps.HOVERFONTSIZE,h=e[0],p=h.xa,g=h.ya,m=n.charAt(0),b=h[m+"Label"],x=El(r,l),_=x.top,k=x.width,w=x.height,A=b!==void 0&&h.distance<=t.hoverdistance&&(n==="x"||n==="y");if(A){var L=!0,S,q;for(S=0;Sa.width-Je?(Ce=a.width-Je,rt.attr("d","M"+(Je-ur)+",0L"+Je+","+ct+ur+"v"+ct+(Ot*2+se.height)+"H-"+Je+"V"+ct+ur+"H"+(Je-ur*2)+"Z")):rt.attr("d","M0,0L"+ur+","+ct+ur+"H"+(Ot+se.width/2)+"v"+ct+(Ot*2+se.height)+"H-"+(Ot+se.width/2)+"V"+ct+ur+"H-"+ur+"Z")}else{var we,Me,Ye;g.side==="right"?(we="start",Me=1,Ye="",Ce=p._offset+p._length):(we="end",Me=-1,Ye="-",Ce=p._offset),it=g._offset+(h.y0+h.y1)/2,Ue.attr("text-anchor",we),rt.attr("d","M0,0L"+Ye+ur+","+ur+"V"+(Ot+se.height/2)+"h"+Ye+(Ot*2+se.width)+"V-"+(Ot+se.height/2)+"H"+Ye+ur+"V-"+ur+"Z");var je=se.height/2,ze=_-se.top-je,Ge="clip"+a._uid+"commonlabel"+g._id,mt;if(Ce=0?xe=J:O+ge=0?xe=O:oe+ge=0?qe=Se:U+ee=0?qe=U:me+ee=0,(ye.idealAlign==="top"||!Oe)&&st?(ze-=mt/2,ye.anchor="end"):Oe?(ze+=mt/2,ye.anchor="start"):ye.anchor="middle";else if(ye.pos=ze,Oe=je+Ge/2+et<=k,st=je-Ge/2-et>=0,(ye.idealAlign==="left"||!Oe)&&st)je-=Ge/2,ye.anchor="end";else if(Oe)je+=Ge/2,ye.anchor="start";else{ye.anchor="middle";var dt=et/2,vt=je+dt-k,pt=je-dt;vt>0&&(je-=vt),pt<0&&(je+=-pt)}ct.attr("text-anchor",ye.anchor),we&&Je.attr("text-anchor",ye.anchor),rt.attr("transform",N0(je,ze)+(i?Ine(oR):""))}),Pe}function fR(e,t,r,a,n,i){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Cr.templateString(e.name,e.trace._meta)),o=vR(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),i&&s===""&&!e.hovertemplate&&(o===""&&i.remove(),s=o);var c=e.hovertemplate||!1;if(c){var d=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=Cr.hovertemplateString(c,d,a._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Wne,function(h,p){return o=vR(p,e.nameLength),""})}return[s,o]}function Vne(e,t,r){var a=0,n=1,i=e.size(),o=new Array(i),s=0;e.each(function(S){var q=S[t],P=q._id.charAt(0)==="x",E=q.range;s===0&&E&&E[0]>E[1]!==P&&(n=-1),o[s++]=[{datum:S,traceIndex:S.trace.index,dp:0,pos:S.pos,posref:S.posref,size:S.by*(P?One:1)/2,pmin:0,pmax:P?r.width:r.height}]}),o.sort(function(S,q){return S[0].posref-q[0].posref||n*(q[0].traceIndex-S[0].traceIndex)});var l,u,c,d,h,p,g;function m(S){var q=S[0],P=S[S.length-1];if(u=q.pmin-q.pos-q.dp+q.size,c=P.pos+P.dp+P.size-q.pmax,u>.01){for(h=S.length-1;h>=0;h--)S[h].dp+=u;l=!1}if(!(c<.01)){if(u<-.01){for(h=S.length-1;h>=0;h--)S[h].dp-=c;l=!1}if(!!l){var E=0;for(d=0;dq.pmax&&E++;for(d=S.length-1;d>=0&&!(E<=0);d--)p=S[d],p.pos>q.pmax-1&&(p.del=!0,E--);for(d=0;d=0;h--)S[h].dp-=c;for(d=S.length-1;d>=0&&!(E<=0);d--)p=S[d],p.pos+p.dp+p.size>q.pmax&&(p.del=!0,E--)}}}for(;!l&&a<=i;){for(a++,l=!0,d=0;d.01&&_.pmin===k.pmin&&_.pmax===k.pmax){for(h=x.length-1;h>=0;h--)x[h].dp+=u;for(b.push.apply(b,x),o.splice(d+1,1),g=0,h=b.length-1;h>=0;h--)g+=b[h].dp;for(c=g/b.length,h=b.length-1;h>=0;h--)b[h].dp-=c;l=!1}else d++}o.forEach(m)}for(d=o.length-1;d>=0;d--){var w=o[d];for(h=w.length-1;h>=0;h--){var A=w[h],L=A.datum;L.offset=A.dp,L.del=A.del}}}function cR(e,t,r,a){var n=function(o){return o*r},i=function(o){return o*a};e.each(function(o){var s=vs.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,d={start:1,end:-1,middle:0}[u],h=d*(ur+Ot),p=h+d*(o.txwidth+Ot),g=0,m=o.offset,b=u==="middle";b&&(h-=o.tx2width/2,p+=o.txwidth/2+Ot),t&&(m*=-Bne,g=o.offset*Hne),s.select("path").attr("d",b?"M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":"M0,0L"+n(c*ur+g)+","+i(ur+m)+"v"+i(o.by/2-ur)+"h"+n(c*o.bx)+"v-"+i(o.by)+"H"+n(c*ur+g)+"V"+i(m-ur)+"Z");var x=g+h,_=m+o.ty0-o.by/2+Ot,k=o.textAlign||"auto";k!=="auto"&&(k==="left"&&u!=="start"?(l.attr("text-anchor","start"),x=b?-o.bx/2-o.tx2width/2+Ot:-o.bx-Ot):k==="right"&&u!=="end"&&(l.attr("text-anchor","end"),x=b?o.bx/2-o.tx2width/2-Ot:o.bx+Ot)),l.call(gn.positionText,n(x),i(_)),o.tx2width&&(s.select("text.name").call(gn.positionText,n(p+d*Ot+g),i(m+o.ty0-o.by/2+Ot)),s.select("rect").call(li.setRect,n(p+(d-1)*o.tx2width/2+g),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Yne(e,t){var r=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[r]||{};function o(h){return h||Li(h)&&h===0}var s=Array.isArray(r)?function(h,p){var g=Cr.castOption(n,r,h);return o(g)?g:Cr.extractOption({},a,"",p)}:function(h,p){return Cr.extractOption(i,a,h,p)};function l(h,p,g){var m=s(p,g);o(m)&&(e[h]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Cr.constrain(e.x0,0,e.xa._length),e.x1=Cr.constrain(e.x1,0,e.xa._length),e.y0=Cr.constrain(e.y0,0,e.ya._length),e.y1=Cr.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:so.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:so.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=so.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+so.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=so.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+so.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var d=e.hoverinfo||e.trace.hoverinfo;return d&&d!=="all"&&(d=Array.isArray(d)?d:d.split("+"),d.indexOf("x")===-1&&(e.xLabel=void 0),d.indexOf("y")===-1&&(e.yLabel=void 0),d.indexOf("z")===-1&&(e.zLabel=void 0),d.indexOf("text")===-1&&(e.text=void 0),d.indexOf("name")===-1&&(e.name=void 0)),e}function dR(e,t,r){var a=r.container,n=r.fullLayout,i=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(a.selectAll(".spikeline").remove(),!!(l||s)){var d=Ur.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,p,g;u=h&&h.xa,c=h&&h.ya;var m=c.spikesnap;m==="cursor"?(p=o.pointerX,g=o.pointerY):(p=u._offset+h.x,g=c._offset+h.y);var b=iR.readability(h.color,d)<1.5?Ur.contrast(d):h.color,x=c.spikemode,_=c.spikethickness,k=c.spikecolor||b,w=so.getPxPosition(e,c),A,L;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(A=w,L=p),x.indexOf("across")!==-1){var S=c._counterDomainMin,q=c._counterDomainMax;c.anchor==="free"&&(S=Math.min(S,c.position),q=Math.max(q,c.position)),A=i.l+S*i.w,L=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:L,y1:g,y2:g,"stroke-width":_,stroke:k,"stroke-dasharray":li.dashStyle(c.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:L,y1:g,y2:g,"stroke-width":_+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:w+(c.side!=="right"?_:-_),cy:g,r:_,fill:k}).classed("spikeline",!0)}if(l){var P=t.vLinePoint,E,F;u=P&&P.xa,c=P&&P.ya;var N=u.spikesnap;N==="cursor"?(E=o.pointerX,F=o.pointerY):(E=u._offset+P.x,F=c._offset+P.y);var j=iR.readability(P.color,d)<1.5?Ur.contrast(d):P.color,B=u.spikemode,W=u.spikethickness,V=u.spikecolor||j,Y=so.getPxPosition(e,u),Z,$;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(Z=Y,$=F),B.indexOf("across")!==-1){var ne=u._counterDomainMin,te=u._counterDomainMax;u.anchor==="free"&&(ne=Math.min(ne,u.position),te=Math.max(te,u.position)),Z=i.t+(1-te)*i.h,$=i.t+(1-ne)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:Z,y2:$,"stroke-width":W,stroke:V,"stroke-dasharray":li.dashStyle(u.spikedash,W)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:Z,y2:$,"stroke-width":W+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?W:-W),r:W,fill:V}).classed("spikeline",!0)}}}function Zne(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var a=r.length-1;a>=0;a--){var n=r[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function hR(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function vR(e,t){return gn.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function Xne(e,t){for(var r=t.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var $ne=Re(),Qne=It(),Kne=Mi().isUnifiedHover;yR.exports=function(t,r,a,n){n=n||{};var i=r.legend;function o(s){n.font[s]||(n.font[s]=i?r.legend.font[s]:r.font[s])}r&&Kne(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),i?(n.bgcolor||(n.bgcolor=Qne.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),$ne.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var xR=I((jxe,bR)=>{"use strict";var Jne=Re(),eie=tv(),tie=al();bR.exports=function(t,r){function a(n,i){return Jne.coerce(t,r,tie,n,i)}eie(t,r,a)}});var TR=I((Oxe,wR)=>{"use strict";var _R=Re(),rie=Nd(),aie=tv();wR.exports=function(t,r,a,n){function i(s,l){return _R.coerce(t,r,rie,s,l)}var o=_R.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),aie(t,r,i,o)}});var H0=I((Hxe,AR)=>{"use strict";var nie=Re(),iie=al();AR.exports=function(t,r){function a(n,i){return r[n]!==void 0?r[n]:nie.coerce(t,r,iie,n,i)}return a("clickmode"),a("hovermode")}});var SR=I((Bxe,MR)=>{"use strict";var kR=Re(),oie=al(),sie=H0(),lie=tv();MR.exports=function(t,r){function a(u,c){return kR.coerce(t,r,oie,u,c)}var n=sie(t,r);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=r._has("mapbox"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),lie(t,r,a),kR.coerceFont(a,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var qR=I((Uxe,LR)=>{"use strict";var B0=Re(),CR=bt();LR.exports=function(t){var r=t.calcdata,a=t._fullLayout;function n(u){return function(c){return B0.coerceHoverinfo({hoverinfo:c},{_module:u._module},a)}}for(var i=0;i{"use strict";var fie=bt(),cie=O0().hover;DR.exports=function(t,r,a){var n=fie.getComponentMethod("annotations","onClick")(t,t._hoverdata);a!==void 0&&cie(t,r,a,!0);function i(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(n&&n.then?n.then(i):i(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var qi=I((Wxe,IR)=>{"use strict";var die=Ft(),rv=Re(),hie=Nn(),Tf=Mi(),RR=al(),ER=O0();IR.exports={moduleType:"component",name:"fx",constants:Uu(),schema:{layout:RR},attributes:Nd(),layoutAttributes:RR,supplyLayoutGlobalDefaults:xR(),supplyDefaults:TR(),supplyLayoutDefaults:SR(),calc:qR(),getDistanceFunction:Tf.getDistanceFunction,getClosest:Tf.getClosest,inbox:Tf.inbox,quadrature:Tf.quadrature,appendArrayPointValue:Tf.appendArrayPointValue,castHoverOption:pie,castHoverinfo:mie,hover:ER.hover,unhover:hie.unhover,loneHover:ER.loneHover,loneUnhover:vie,click:PR()};function vie(e){var t=rv.isD3Selection(e)?e:die.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function pie(e,t,r){return rv.castOption(e,t,"hoverlabel."+r)}function mie(e,t,r){function a(n){return rv.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return rv.castOption(e,r,"hoverinfo",a)}});var Il=I(Di=>{"use strict";Di.selectMode=function(e){return e==="lasso"||e==="select"};Di.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Di.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Di.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Di.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Di.selectingOrDrawing=function(e){return Di.freeMode(e)||Di.rectMode(e)}});var av=I((Yxe,zR)=>{"use strict";zR.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var nv=I((Zxe,NR)=>{"use strict";NR.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ov=I((Xxe,FR)=>{"use strict";var iv=32;FR.exports={CIRCLE_SIDES:iv,i000:0,i090:iv/4,i180:iv/2,i270:iv/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var sv=I(($xe,OR)=>{"use strict";var gie=Re().strTranslate;function jR(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function yie(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function bie(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return jR(e,r[t])}}function xie(e){return gie(e.xaxis._offset,e.yaxis._offset)}OR.exports={p2r:jR,r2p:yie,axValue:bie,getTransform:xie}});var ms=I(Pi=>{"use strict";var _ie=Ay(),HR=ov(),zl=HR.CIRCLE_SIDES,U0=HR.SQRT2,BR=sv(),UR=BR.p2r,GR=BR.r2p,wie=[0,3,4,5,6,1,2],Tie=[0,3,4,1,2];Pi.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",a=0;a0&&l{"use strict";var WR=Il(),Aie=WR.drawMode,kie=WR.openMode,Nl=ov(),VR=Nl.i000,YR=Nl.i090,ZR=Nl.i180,XR=Nl.i270,Mie=Nl.cos45,Sie=Nl.sin45,$R=sv(),uv=$R.p2r,lo=$R.r2p,Cie=ro(),Lie=Cie.clearOutline,fv=ms(),qie=fv.readPaths,Die=fv.writePaths,Pie=fv.ellipseOver,Rie=fv.fixDatesForPaths;QR.exports=function(t,r){if(!!t.length){var a=t[0][0];if(!!a){var n=a.getAttribute("d"),i=r.gd,o=i._fullLayout.newshape,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=!!s.domain||!s.xaxis,d=!!s.domain||!s.yaxis,h=r.isActiveShape,p=r.dragmode,g=(i.layout||{}).shapes||[];if(!Aie(p)&&h!==void 0){var m=i._fullLayout._activeShapeIndex;if(m{"use strict";var Eie=Il(),Iie=Eie.selectMode,zie=ro(),Nie=zie.clearOutline,W0=ms(),Fie=W0.readPaths,jie=W0.writePaths,Oie=W0.fixDatesForPaths;KR.exports=function(t,r){if(!!t.length){var a=t[0][0];if(!!a){var n=a.getAttribute("d"),i=r.gd,o=i._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,d=r.dragmode,h=(i.layout||{}).selections||[];if(!Iie(d)&&c!==void 0){var p=i._fullLayout._activeSelectionIndex;if(p{"use strict";var Hie=Re(),Bie=Hie.strTranslate,JR=Nn(),e6=Il(),Uie=e6.drawMode,t6=e6.selectMode,r6=bt(),a6=It(),cv=ov(),Gie=cv.i000,Wie=cv.i090,Vie=cv.i180,Yie=cv.i270,Zie=ro(),n6=Zie.clearOutlineControllers,Y0=ms(),dv=Y0.pointsOnRectangle,Z0=Y0.pointsOnEllipse,Xie=Y0.writePaths,$ie=G0(),Qie=V0();o6.exports=function e(t,r,a,n){n||(n=0);var i=a.gd;function o(){e(t,r,a,n++),Z0(t[0])&&s({redrawing:!0})}function s(W){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=$ie(r,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Qie(r,a),i._fullLayout._reselect=!0),Object.keys(V).length&&r6.call((W||{}).redrawing?"relayout":"_guiRelayout",i,V)}var l=i._fullLayout,u=l._zoomlayer,c=a.dragmode,d=Uie(c),h=t6(c);(d||h)&&(i._fullLayout._outlining=!0),n6(i),r.attr("d",Xie(t));var p,g,m,b,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Kie([],t);var _=u.append("g").attr("class","outline-controllers");q(_),B()}function k(W){m=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),p[m][b].moveFn=w}function w(W,V){if(!!t.length){var Y=x[m][b][1],Z=x[m][b][2],$=t[m],ne=$.length;if(dv($)){var te=W,de=V;if(a.isActiveSelection){var be=i6($,b);be[1]===$[b][1]?de=0:te=0}for(var re=0;re1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[m]=W,o(),s())}}function S(W,V){if(W===2){m=+V.srcElement.getAttribute("data-i"),b=+V.srcElement.getAttribute("data-j");var Y=t[m];!dv(Y)&&!Z0(Y)&&L()}}function q(W){p=[];for(var V=0;V{"use strict";s6.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ys=I(Xr=>{"use strict";var gs=kf(),l6=Re(),vv=tr();Xr.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Xr.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Xr.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Xr.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Xr.extractPathCoords=function(e,t,r){var a=[],n=e.match(gs.segmentRE);return n.forEach(function(i){var o=t[i.charAt(0)].drawn;if(o!==void 0){var s=i.substr(1).match(gs.paramRE);if(!(!s||s.lengthp&&(m="X"),m});return u>p&&(g=g.replace(/[\s,]*X.*/,""),l6.log("Ignoring extra params in segment "+l)),c+g})}});var J0=I((a_e,y6)=>{"use strict";var u6=bt(),f6=Re(),Fl=tr(),toe=ms().readPaths,roe=hv(),c6=ro().clearOutlineControllers,X0=It(),$0=Kt(),aoe=ar().arrayEditor,d6=Nn(),h6=oo(),bs=kf(),Wa=ys(),Q0=Wa.getPathString;y6.exports={draw:K0,drawOne:v6,eraseActiveShape:ooe};function K0(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove();for(var r in t._plots){var a=t._plots[r].shapelayer;a&&a.selectAll("path").remove()}for(var n=0;no&&xe>s&&!O.shiftKey?d6.getCursor(qe/me,1-Pe/xe):"move";h6(t,ye),de=ye.split("-")[0]}}function ee(O){pv(e)||(l&&(x=V(r.xanchor)),u&&(_=Y(r.yanchor)),r.type==="path"?F=r.path:(p=l?r.x0:V(r.x0),g=u?r.y0:Y(r.y0),m=l?r.x1:V(r.x1),b=u?r.y1:Y(r.y1)),pb?(k=g,S="y0",w=b,q="y1"):(k=b,S="y1",w=g,q="y0"),ge(O),Se(n,r),J(t,r,e),te.moveFn=de==="move"?De:Le,te.altKey=O.altKey)}function Ae(){pv(e)||(h6(t),U(n),p6(t,e,r),u6.call("_guiRelayout",e,i.getUpdateObj()))}function ke(){pv(e)||U(n)}function De(O,oe){if(r.type==="path"){var me=function(Pe){return Pe},xe=me,qe=me;l?h("xanchor",r.xanchor=Z(x+O)):(xe=function(ye){return Z(V(ye)+O)},N&&N.type==="date"&&(xe=Wa.encodeDate(xe))),u?h("yanchor",r.yanchor=$(_+oe)):(qe=function(ye){return $(Y(ye)+oe)},B&&B.type==="date"&&(qe=Wa.encodeDate(qe))),h("path",r.path=m6(F,xe,qe))}else l?h("xanchor",r.xanchor=Z(x+O)):(h("x0",r.x0=Z(p+O)),h("x1",r.x1=Z(m+O))),u?h("yanchor",r.yanchor=$(_+oe)):(h("y0",r.y0=$(g+oe)),h("y1",r.y1=$(b+oe)));t.attr("d",Q0(e,r)),Se(n,r)}function Le(O,oe){if(d){var me=function(we){return we},xe=me,qe=me;l?h("xanchor",r.xanchor=Z(x+O)):(xe=function(Me){return Z(V(Me)+O)},N&&N.type==="date"&&(xe=Wa.encodeDate(xe))),u?h("yanchor",r.yanchor=$(_+oe)):(qe=function(Me){return $(Y(Me)+oe)},B&&B.type==="date"&&(qe=Wa.encodeDate(qe))),h("path",r.path=m6(F,xe,qe))}else if(c){if(de==="resize-over-start-point"){var Pe=p+O,ye=u?g-oe:g+oe;h("x0",r.x0=l?Pe:Z(Pe)),h("y0",r.y0=u?ye:$(ye))}else if(de==="resize-over-end-point"){var rt=m+O,Ue=u?b-oe:b+oe;h("x1",r.x1=l?rt:Z(rt)),h("y1",r.y1=u?Ue:$(Ue))}}else{var nt=function(we){return de.indexOf(we)!==-1},at=nt("n"),ft=nt("s"),wt=nt("w"),se=nt("e"),Ce=at?k+oe:k,it=ft?w+oe:w,ct=wt?A+O:A,Je=se?L+O:L;u&&(at&&(Ce=k-oe),ft&&(it=w-oe)),(!u&&it-Ce>s||u&&Ce-it>s)&&(h(S,r[S]=u?Ce:$(Ce)),h(q,r[q]=u?it:$(it))),Je-ct>o&&(h(P,r[P]=l?ct:Z(ct)),h(E,r[E]=l?Je:Z(Je)))}t.attr("d",Q0(e,r)),Se(n,r)}function Se(O,oe){(l||u)&&me();function me(){var xe=oe.type!=="path",qe=O.selectAll(".visual-cue").data([0]),Pe=1;qe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var ye=V(l?oe.xanchor:f6.midRange(xe?[oe.x0,oe.x1]:Wa.extractPathCoords(oe.path,bs.paramIsX))),rt=Y(u?oe.yanchor:f6.midRange(xe?[oe.y0,oe.y1]:Wa.extractPathCoords(oe.path,bs.paramIsY)));if(ye=Wa.roundPositionForSharpStrokeRendering(ye,Pe),rt=Wa.roundPositionForSharpStrokeRendering(rt,Pe),l&&u){var Ue="M"+(ye-1-Pe)+","+(rt-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";qe.attr("d",Ue)}else if(l){var nt="M"+(ye-1-Pe)+","+(rt-9-Pe)+"v18 h2 v-18 Z";qe.attr("d",nt)}else{var at="M"+(ye-9-Pe)+","+(rt-1-Pe)+"h18 v2 h-18 Z";qe.attr("d",at)}}}function U(O){O.selectAll(".visual-cue").remove()}function J(O,oe,me){var xe=oe.xref,qe=oe.yref,Pe=Fl.getFromId(me,xe),ye=Fl.getFromId(me,qe),rt="";xe!=="paper"&&!Pe.autorange&&(rt+=xe),qe!=="paper"&&!ye.autorange&&(rt+=qe),$0.setClipUrl(O,rt?"clip"+me._fullLayout._uid+rt:null,me)}}function m6(e,t,r){return e.replace(bs.segmentRE,function(a){var n=0,i=a.charAt(0),o=bs.paramIsX[i],s=bs.paramIsY[i],l=bs.numParams[i],u=a.substr(1).replace(bs.paramRE,function(c){return n>=l||(o[n]?c=t(c):s[n]&&(c=r(c)),n++),c});return i+u})}function ioe(e,t){if(!!mv(e)){var r=t.node(),a=+r.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){g6(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=g6,K0(e)}}}function g6(e){if(!!mv(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(c6(e),delete e._fullLayout._activeShapeIndex,K0(e))}}function ooe(e){if(!!mv(e)){c6(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var yn=bt(),b6=Nr(),x6=Hr(),Ut=nv(),soe=J0().eraseActiveShape,jl=Re(),Nt=jl._,Gt=A6.exports={};Gt.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Nt(e,"Download plot as a png"):Nt(e,"Download plot")},icon:Ut.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};jl.notifier(Nt(e,"Taking snapshot - this may take a few seconds"),"long"),r.format!=="svg"&&jl.isIE()&&(jl.notifier(Nt(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach(function(a){a in t&&(r[a]=t[a])}),yn.call("downloadImage",e,r).then(function(a){jl.notifier(Nt(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){jl.notifier(Nt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nt(e,"Edit in Chart Studio")},icon:Ut.disk,click:function(e){b6.sendDataToCloud(e)}};Gt.editInChartStudio={name:"editInChartStudio",title:function(e){return Nt(e,"Edit in Chart Studio")},icon:Ut.pencil,click:function(e){b6.sendDataToCloud(e)}};Gt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ut.zoombox,click:_a};Gt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nt(e,"Pan")},attr:"dragmode",val:"pan",icon:Ut.pan,click:_a};Gt.select2d={name:"select2d",_cat:"select",title:function(e){return Nt(e,"Box Select")},attr:"dragmode",val:"select",icon:Ut.selectbox,click:_a};Gt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ut.lasso,click:_a};Gt.drawclosedpath={name:"drawclosedpath",title:function(e){return Nt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ut.drawclosedpath,click:_a};Gt.drawopenpath={name:"drawopenpath",title:function(e){return Nt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ut.drawopenpath,click:_a};Gt.drawline={name:"drawline",title:function(e){return Nt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ut.drawline,click:_a};Gt.drawrect={name:"drawrect",title:function(e){return Nt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ut.drawrect,click:_a};Gt.drawcircle={name:"drawcircle",title:function(e){return Nt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ut.drawcircle,click:_a};Gt.eraseshape={name:"eraseshape",title:function(e){return Nt(e,"Erase active shape")},icon:Ut.eraseshape,click:soe};Gt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nt(e,"Zoom in")},attr:"zoom",val:"in",icon:Ut.zoom_plus,click:_a};Gt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nt(e,"Zoom out")},attr:"zoom",val:"out",icon:Ut.zoom_minus,click:_a};Gt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ut.autoscale,click:_a};Gt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ut.home,click:_a};Gt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ut.tooltip_basic,gravity:"ne",click:_a};Gt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ut.tooltip_compare,gravity:"ne",click:_a};function _a(e,t){var r=t.currentTarget,a=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,i=e._fullLayout,o={},s=x6.list(e,null,!0),l=i._cartesianSpikesEnabled,u,c;if(a==="zoom"){var d=n==="in"?.5:2,h=(1+d)/2,p=(1-d)/2,g;for(c=0;c{"use strict";var k6=ab(),foe=Object.keys(k6),M6=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],S6=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(M6),Ol=[],coe=function(e){if(S6.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Ol.indexOf(t)===-1&&Ol.push(t),Ol.indexOf(r)===-1&&Ol.push(r)}};foe.forEach(function(e){coe(k6[e])});Ol.sort();C6.exports={DRAW_MODES:M6,backButtons:S6,foreButtons:Ol}});var ib=I((o_e,q6)=>{"use strict";var L6=nb();q6.exports={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 *"+L6.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 *"+L6.foreButtons.join("*, *")+"*."].join(" ")}}});var P6=I((s_e,D6)=>{"use strict";var doe=Re(),Mf=It(),hoe=ar(),voe=ib();D6.exports=function(t,r){var a=t.modebar||{},n=hoe.newContainer(r,"modebar");function i(s,l){return doe.coerce(a,n,voe,s,l)}i("orientation"),i("bgcolor",Mf.addOpacity(r.paper_bgcolor,.5));var o=Mf.contrast(Mf.rgb(r.modebar.bgcolor));i("color",Mf.addOpacity(o,.3)),i("activecolor",Mf.addOpacity(o,.7)),i("uirevision",r.uirevision),i("add"),i("remove")}});var z6=I((l_e,I6)=>{"use strict";var ob=Ft(),poe=jt(),Ri=Re(),R6=nv(),moe=Ad().version,goe=new DOMParser;function E6(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ui=E6.prototype;ui.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var i=a.modebar,o=r.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";Ri.deleteRelatedStyleRule(n),Ri.addRelatedStyleRule(n,o+"#"+n+" .modebar-group","background-color: "+i.bgcolor),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn .icon path","fill: "+i.color),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn:hover .icon path","fill: "+i.activecolor),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn.active .icon path","fill: "+i.activecolor);var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton()};ui.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var a=t.createGroup();r.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");t.buttonsNames.push(i);var o=t.createButton(n);t.buttonElements.push(o),a.appendChild(o)}),t.element.appendChild(a)})};ui.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e};ui.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&r.setAttribute("data-title",a),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ob.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||R6.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};ui.createIcon=function(e){var t=poe(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(r,"svg"),a.setAttribute("viewBox",[0,0,e.width,t].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(r,"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=goe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ui.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=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"),o=a.getAttribute("data-toggle")==="true",s=ob.select(a);if(o)i===r&&s.classed("active",!s.classed("active"));else{var l=i===null?i:Ri.nestedProperty(t,i).get();s.classed("active",l===n)}})};ui.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var xoe=Hr(),N6=Ja(),sb=bt(),_oe=Mi().isUnifiedHover,woe=z6(),bv=ab(),Toe=nb().DRAW_MODES,Aoe=Re().extendDeep;F6.exports=function(t){var r=t._fullLayout,a=t._context,n=r._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete r._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,o;Array.isArray(i)&&i.length?o=qoe(i):!a.displayModeBar&&a.watermark?o=[]:o=koe(t),n?n.update(t,o):r._modeBar=woe(t,o)};function koe(e){var t=e._fullLayout,r=e._fullData,a=e._context;function n(Z,$){if(typeof $=="string"){if($.toLowerCase()===Z.toLowerCase())return!0}else{var ne=$.name,te=$._cat||$.name;if(ne===Z||te===Z.toLowerCase())return!0}return!1}var i=t.modebar.add;typeof i=="string"&&(i=[i]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var $=0;$1?(E=["toggleHover"],F=["resetViews"]):d?(P=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],F=["resetGeo"]):c?(E=["hoverClosest3d"],F=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(P=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],F=["resetViewMapbox"]):g?E=["hoverClosestGl2d"]:h?E=["hoverClosestPie"]:k?(E=["hoverClosestCartesian","hoverCompareCartesian"],F=["resetViewSankey"]):E=["toggleHover"],u&&(E=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(Coe(r)||A)&&(E=[]),(u||g)&&!w&&(P=["zoomIn2d","zoomOut2d","autoScale2d"],F[0]!=="resetViews"&&(F=["resetScale2d"])),c?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:(u||g)&&!w||m?N=["zoom2d","pan2d"]:b||d?N=["pan2d"]:x&&(N=["zoom2d"]),Soe(r)&&N.push("select2d","lasso2d");var j=[],B=function(Z){j.indexOf(Z)===-1&&E.indexOf(Z)!==-1&&j.push(Z)};if(Array.isArray(s)){for(var W=[],V=0;V{"use strict";O6.exports={moduleType:"component",name:"modebar",layoutAttributes:ib(),supplyLayoutDefaults:P6(),manage:j6()}});var ub=I((c_e,H6)=>{"use strict";var Doe=qa().FROM_BL;H6.exports=function(t,r,a){a===void 0&&(a=Doe[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],i=n[0]+(n[1]-n[0])*a;t.range=t._input.range=[t.l2r(i+(n[0]-i)*r),t.l2r(i+(n[1]-i)*r)],t.setScale()}});var Cf=I(Sf=>{"use strict";var xs=Re(),fb=mf(),On=Hr().id2name,Poe=ni(),B6=ub(),Roe=Rh(),Eoe=Tr().ALMOST_EQUAL,Ioe=qa().FROM_BL;Sf.handleDefaults=function(e,t,r){var a=r.axIds,n=r.axHasImage,i=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,d,h,p,g;for(s=0;si?r.substr(i):a.substr(n))+o}function Noe(e,t){for(var r=t._size,a=r.h/r.w,n={},i=Object.keys(e),o=0;oEoe*g&&!_)){for(i=0;iN&&neE&&(E=ne);var de=(E-P)/(2*F);d/=de,P=l.l2r(P),E=l.l2r(E),l.range=l._input.range=L{"use strict";var Foe=Ft(),wa=bt(),Hn=Nr(),Ei=Re(),hb=av(),Lf=It(),qf=Kt(),joe=vf(),V6=lb(),Df=tr(),Pf=qa(),Y6=Cf(),Ooe=Y6.enforce,Hoe=Y6.clean,Z6=mf().doAutoRange,X6="start",Boe="middle",$6="end";Gr.layoutStyles=function(e){return Ei.syncOrAsync([Hn.doAutoMargin,Goe],e)};function Uoe(e,t,r){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]t[0])return!0}return!1}function Goe(e){var t=e._fullLayout,r=t._size,a=r.p,n=Df.list(e,"",!0),i,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(qf.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),Gr.drawMainTitle(e),V6.manage(e),!t._has("cartesian"))return Hn.previousPromises(e);function d(Se,U,J){var O=Se._lw/2;if(Se._id.charAt(0)==="x"){if(U){if(J==="top")return U._offset-a-O}else return r.t+r.h*(1-(Se.position||0))+O%1;return U._offset+U._length+a+O}if(U){if(J==="right")return U._offset+U._length+a+O}else return r.l+r.w*(Se.position||0)+O%1;return U._offset-a-O}for(i=0;i{"use strict";var Xoe=ms().readPaths,$oe=hv(),J6=ro().clearOutlineControllers,vb=It(),eE=Kt(),Qoe=ar().arrayEditor,tE=ys(),Koe=tE.getPathString;aE.exports={draw:wv,drawOne:rE,activateLastSelection:tse};function wv(e){var t=e._fullLayout;J6(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var a=t._plots[r].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;b--){var x=o.append("path").attr(l).style("opacity",b?.1:u).call(vb.stroke,d).call(vb.fill,c).call(eE.dashLine,b?"solid":p,b?4+h:h);if(Joe(x,e,a),g){var _=Qoe(e.layout,"selections",a);x.style({cursor:"move"});var k={element:x.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},w=Xoe(s,e);$oe(w,x,k)}else x.style("pointer-events",b?"all":"none");m[b]=x}var A=m[0],L=m[1];L.node().addEventListener("click",function(){return ese(e,A)})}}function Joe(e,t,r){var a=r.xref+r.yref;eE.setClipUrl(e,"clip"+t._fullLayout._uid+a,t)}function ese(e,t){if(!!Tv(e)){var r=t.node(),a=+r.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){pb(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=pb,wv(e)}}}function tse(e){if(!!Tv(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=pb,wv(e)}}function pb(e){if(!!Tv(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(J6(e),delete e._fullLayout._activeSelectionIndex,wv(e))}}});var iE=I((p_e,nE)=>{function rse(){var e,t=0,r=!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 t++},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,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===r?e:(r=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}nE.exports=rse});var sE=I((m_e,oE)=>{function ase(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,a,n){var i=a[0],o=a[1],s=n[0],l=n[1],u=r[0],c=r[1];return(s-i)*(c-o)-(l-o)*(u-i)>=-e},pointBetween:function(r,a,n){var i=r[1]-a[1],o=n[0]-a[0],s=r[0]-a[0],l=n[1]-a[1],u=s*o+i*l;if(u-e)},pointsSameX:function(r,a){return Math.abs(r[0]-a[0])e!=s-i>e&&(o-c)*(i-d)/(s-d)+c-n>e&&(l=!l),o=c,s=d}return l}};return t}oE.exports=ase});var uE=I((g_e,lE)=>{var nse={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var a=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}a=n,n=n.next}a.next=t,t.prev=a,t.next=null},findTransition:function(t){for(var r=e.root,a=e.root.next;a!==null&&!t(a);)r=a,a=a.next;return{before:r===e.root?null:r,after:a,insert:function(n){return n.prev=r,n.next=a,r.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}};lE.exports=nse});var cE=I((y_e,fE)=>{var Rf=uE();function ise(e,t,r){function a(g,m){return{id:r?r.segmentId():-1,start:g,end:m,myFill:{above:null,below:null},otherFill:null}}function n(g,m,b){return{id:r?r.segmentId():-1,start:g,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var i=Rf.create();function o(g,m,b,x,_,k){var w=t.pointsCompare(m,_);return w!==0?w:t.pointsSame(b,k)?0:g!==x?g?1:-1:t.pointAboveOrOnLine(b,x?_:k,x?k:_)?1:-1}function s(g,m){i.insertBefore(g,function(b){var x=o(g.isStart,g.pt,m,b.isStart,b.pt,b.other.pt);return x<0})}function l(g,m){var b=Rf.node({isStart:!0,pt:g.start,seg:g,primary:m,other:null,status:null});return s(b,g.end),b}function u(g,m,b){var x=Rf.node({isStart:!1,pt:m.end,seg:m,primary:b,other:g,status:null});g.other=x,s(x,g.pt)}function c(g,m){var b=l(g,m);return u(b,g,m),b}function d(g,m){r&&r.segmentChop(g.seg,m),g.other.remove(),g.seg.end=m,g.other.pt=m,s(g.other,g.pt)}function h(g,m){var b=n(m,g.seg.end,g.seg);return d(g,m),c(b,g.primary)}function p(g,m){var b=Rf.create();function x(W,V){var Y=W.seg.start,Z=W.seg.end,$=V.seg.start,ne=V.seg.end;return t.pointsCollinear(Y,$,ne)?t.pointsCollinear(Z,$,ne)||t.pointAboveOrOnLine(Z,$,ne)?1:-1:t.pointAboveOrOnLine(Y,$,ne)?1:-1}function _(W){return b.findTransition(function(V){var Y=x(W,V.ev);return Y>0})}function k(W,V){var Y=W.seg,Z=V.seg,$=Y.start,ne=Y.end,te=Z.start,de=Z.end;r&&r.checkIntersection(Y,Z);var be=t.linesIntersect($,ne,te,de);if(be===!1){if(!t.pointsCollinear($,ne,te)||t.pointsSame($,de)||t.pointsSame(ne,te))return!1;var re=t.pointsSame($,te),ge=t.pointsSame(ne,de);if(re&&ge)return V;var ee=!re&&t.pointBetween($,te,de),Ae=!ge&&t.pointBetween(ne,te,de);if(re)return Ae?h(V,ne):h(W,de),V;ee&&(ge||(Ae?h(V,ne):h(W,de)),h(V,$))}else be.alongA===0&&(be.alongB===-1?h(W,te):be.alongB===0?h(W,be.pt):be.alongB===1&&h(W,de)),be.alongB===0&&(be.alongA===-1?h(V,$):be.alongA===0?h(V,be.pt):be.alongA===1&&h(V,ne));return!1}for(var w=[];!i.isEmpty();){var A=i.getHead();if(r&&r.vert(A.pt[0]),A.isStart){let W=function(){if(S){var V=k(A,S);if(V)return V}return q?k(A,q):!1};var B=W;r&&r.segmentNew(A.seg,A.primary);var L=_(A),S=L.before?L.before.ev:null,q=L.after?L.after.ev:null;r&&r.tempStatus(A.seg,S?S.seg:!1,q?q.seg:!1);var P=W();if(P){if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,E&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=A.seg.myFill;r&&r.segmentUpdate(P.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){r&&r.rewind(A.seg);continue}if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=g,E?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var F;q?A.primary===q.primary?F=q.seg.otherFill.above:F=q.seg.myFill.above:F=A.primary?m:g,A.seg.otherFill={above:F,below:F}}r&&r.status(A.seg,S?S.seg:!1,q?q.seg:!1),A.other.status=L.insert(Rf.node({ev:A}))}else{var N=A.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(N.prev)&&b.exists(N.next)&&k(N.prev.ev,N.next.ev),r&&r.statusRemove(N.ev.seg),N.remove(),!A.primary){var j=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=j}w.push(A.seg)}i.getHead().remove()}return r&&r.done(),w}return e?{addRegion:function(g){for(var m,b=g[g.length-1],x=0;x{function ose(e,t,r){var a=[],n=[];return e.forEach(function(i){var o=i.start,s=i.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(i);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function d(B,W,V){return c.index=B,c.matches_head=W,c.matches_pt1=V,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function Ef(e,t,r){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);t[i]!==0&&a.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[i]===1,below:t[i]===2},otherFill:null})}),r&&r.selected(a),a}var sse={union:function(e,t){return Ef(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ef(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ef(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ef(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ef(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};vE.exports=sse});var gE=I((__e,mE)=>{var lse={toPolygon:function(e,t){function r(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(i[0]),l=1;l{var use=iE(),fse=sE(),yE=cE(),cse=hE(),If=pE(),bE=gE(),bn=!1,zf=fse(),Va;Va={buildLog:function(e){return e===!0?bn=use():e===!1&&(bn=!1),bn===!1?!1:bn.list},epsilon:function(e){return zf.epsilon(e)},segments:function(e){var t=yE(!0,zf,bn);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=yE(!1,zf,bn);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:If.union(e.combined,bn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:If.intersect(e.combined,bn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:If.difference(e.combined,bn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:If.differenceRev(e.combined,bn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:If.xor(e.combined,bn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:cse(e.segments,zf,bn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return bE.toPolygon(Va,e)},polygonToGeoJSON:function(e){return bE.fromPolygon(Va,zf,e)},union:function(e,t){return Nf(e,t,Va.selectUnion)},intersect:function(e,t){return Nf(e,t,Va.selectIntersect)},difference:function(e,t){return Nf(e,t,Va.selectDifference)},differenceRev:function(e,t){return Nf(e,t,Va.selectDifferenceRev)},xor:function(e,t){return Nf(e,t,Va.selectXor)}};function Nf(e,t,r){var a=Va.segments(e),n=Va.segments(t),i=Va.combine(a,n),o=r(i);return Va.polygon(o)}typeof window=="object"&&(window.PolyBool=Va);xE.exports=Va});var TE=I((T_e,wE)=>{wE.exports=function(t,r,a,n){var i=t[0],o=t[1],s=!1;a===void 0&&(a=0),n===void 0&&(n=r.length);for(var l=n-a,u=0,c=l-1;uo!=g>o&&i<(p-d)*(o-h)/(g-h)+d;m&&(s=!s)}return s}});var yb=I((A_e,AE)=>{"use strict";var gb=Gd().dot,Av=Tr().BADNUM,kv=AE.exports={};kv.tester=function(t){var r=t.slice(),a=r[0][0],n=a,i=r[0][1],o=i,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||x===Av||xo||m&&u(g))}function d(g,m){var b=g[0],x=g[1];if(b===Av||bn||x===Av||xo)return!1;var _=r.length,k=r[0][0],w=r[0][1],A=0,L,S,q,P,E;for(L=1;L<_;L++)if(S=k,q=w,k=r[L][0],w=r[L][1],P=Math.min(S,k),!(bMath.max(S,k)||x>Math.max(q,w)))if(xs||Math.abs(gb(d,u))>n)return!0;return!1};kv.filter=function(t,r){var a=[t[0]],n=0,i=0;function o(l){t.push(l);var u=a.length,c=n;a.splice(i+1);for(var d=c+1;d1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:a}}});var ME=I((k_e,kE)=>{"use strict";kE.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var ZE=I((M_e,YE)=>{"use strict";var SE=_E(),dse=TE(),Ff=bt(),hse=Kt().dashStyle,jf=It(),vse=qi(),pse=Mi().makeEventData,Of=Il(),mse=Of.freeMode,gse=Of.rectMode,Hf=Of.drawMode,bb=Of.openMode,xb=Of.selectMode,CE=ys(),LE=kf(),qE=hv(),DE=ro().clearOutline,PE=ms(),_b=PE.handleEllipse,yse=PE.readPaths,bse=G0(),xse=V0(),_se=mb().activateLastSelection,Mv=Re(),wse=Mv.sorterAsc,RE=yb(),Bf=th(),xn=Hr().getFromId,Tse=av(),Ase=_v().redrawReglTraces,Sv=ME(),fi=Sv.MINSELECT,kse=RE.filter,wb=RE.tester,Tb=sv(),EE=Tb.p2r,Mse=Tb.axValue,Sse=Tb.getTransform;function Ab(e){return e.subplot!==void 0}function Cse(e,t,r,a,n){var i=!Ab(a),o=mse(n),s=gse(n),l=bb(n),u=Hf(n),c=xb(n),d=n==="drawline",h=n==="drawcircle",p=d||h,g=a.gd,m=g._fullLayout,b=c&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,_=a.element.getBoundingClientRect(),k=a.plotinfo,w=Sse(k),A=t-_.left,L=r-_.top;m._calcInverseTransform(g);var S=Mv.apply3DTransform(m._invTransform)(A,L);A=S[0],L=S[1];var q=m._invScaleX,P=m._invScaleY,E=A,F=L,N="M"+A+","+L,j=a.xaxes[0],B=a.yaxes[0],W=j._length,V=B._length,Y=e.altKey&&!(Hf(n)&&l),Z,$,ne,te,de,be,re;zE(e,g,a),o&&(Z=kse([[A,L]],Sv.BENDPX));var ge=x.selectAll("path.select-outline-"+k.id).data([1]),ee=u?m.newshape:m.newselection,Ae=u&&!l?ee.fillcolor:"rgba(0,0,0,0)",ke=ee.line.color||(i?jf.contrast(g._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+k.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":hse(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(jf.stroke,ke).call(jf.fill,Ae).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",w).attr("d",N+"Z");var De=x.append("path").attr("class","zoombox-corners").style({fill:jf.background,stroke:jf.defaultLine,"stroke-width":1}).attr("transform",w).attr("d","M0,0Z"),Le=m._uid+Sv.SELECTID,Se=[],U=Cv(g,a.xaxes,a.yaxes,a.subplot);b&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(!!i){var O=j._id,oe=B._id;UE(g,O,oe,U);for(var me=(g.layout||{}).selections||[],xe=[],qe=!1,Pe=0;Pe=0){g._fullLayout._deactivateShape(g);return}if(!u){var me=m.clickmode;Bf.done(Le).then(function(){if(Bf.clear(Le),O===2){for(ge.remove(),de=0;de-1&&IE(oe,g,a.xaxes,a.yaxes,a.subplot,a,ge),me==="event"&&Wf(g,void 0);vse.click(g,oe)}).catch(Mv.error)}},a.doneFn=function(){De.remove(),Bf.done(Le).then(function(){Bf.clear(Le),!b&&te&&a.selectionDefs&&(te.subtract=Y,a.selectionDefs.push(te),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ne)),(b||u)&&Uf(a,b),a.doneFnCompleted&&a.doneFnCompleted(Se),c&&Wf(g,re)}).catch(Mv.error)}}function IE(e,t,r,a,n,i,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,d=[],h,p,g,m,b,x,_,k,w,A;if(Rse(s)){zE(e,t,i),h=Cv(t,r,a,n);var L=Ese(s,h),S=L.pointNumbers.length>0;if(S?Ise(h,L):zse(h)&&(_=FE(L))){for(o&&o.remove(),A=0;A=0}function Pse(e){return e._fullLayout._activeSelectionIndex>=0}function Uf(e,t){var r=e.dragmode,a=e.plotinfo,n=e.gd;Dse(n)&&n._fullLayout._deactivateShape(n),Pse(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,s=Hf(r),l=xb(r);if(s||l){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var c;s&&(c=bse(u,e)),c&&Ff.call("_guiRelayout",n,{shapes:c});var d;l&&!Ab(e)&&(d=xse(u,e)),d&&(n._fullLayout._noEmitSelectedAtStart=!0,Ff.call("_guiRelayout",n,{selections:d}).then(function(){t&&_se(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function NE(e){return e._id}function Cv(e,t,r,a){if(!e.calcdata)return[];var n=[],i=t.map(NE),o=r.map(NE),s,l,u;for(u=0;u0,i=n?a[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(i)>-1:!1}function Ise(e,t){var r=[],a,n,i,o;for(o=0;o0&&r.push(a);if(r.length===1&&(i=r[0]===t.searchInfo,i&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=a.selectedpoints.length,t>1)))return!1;return t===1}function Gf(e,t,r){var a;for(a=0;a-1&&t;if(!o&&t){var oe=GE(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var qe=WE(oe),Pe=VE([xn(e,me,"x"),xn(e,xe,"y")]);Pe(U,qe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:O&&Wf(e,U),h._reselect=!1}if(!o&&h._deselect){var ye=h._deselect;s=ye.xref,l=ye.yref,jse(s,l,c)||UE(e,s,l,a),O&&(U.points.length?Wf(e,U):Lb(e)),h._deselect=!1}return{eventData:U,selectionTesters:r}}function Fse(e){var t=e.calcdata;if(!!t)for(var r=0;r{"use strict";XE.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 Vf=I((C_e,$E)=>{"use strict";$E.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Hl=I((L_e,t4)=>{"use strict";var QE=qb(),KE=La(),qv=ga(),Gse=ar().templatedArray,Dv=Vf();function JE(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function e4(e,t,r){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",r,"to",t,"("+t,"to",r+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}t4.exports=Gse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (
), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:KE({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:QE.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:QE.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[e4("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[e4("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",qv.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",Dv.axisRefDescription("x","left","right"),JE("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",qv.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",Dv.axisRefDescription("y","bottom","top"),JE("y")].join(" ")},xref:{valType:"enumerated",values:["paper",qv.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",Dv.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",qv.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",Dv.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:KE({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})});var Yf=I(Db=>{"use strict";var r4=Jg(),Wse=r4.FORMAT_LINK,Vse=r4.DATE_FORMAT_LINK;function a4(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" 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}".`,Wse,"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}".`,Vse,"for details on the date formatting syntax."].join(" ")}function n4(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var a=[],n=0;n` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Db.texttemplateAttrs=function(e,t){e=e||{},t=t||{};var r=n4(t),a={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",a4(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return e.arrayOk!==!1&&(a.arrayOk=!0),a}});var Pv=I((D_e,i4)=>{"use strict";i4.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Bl=I((P_e,d4)=>{"use strict";var o4=yh().axisHoverFormat,Yse=Yf().texttemplateAttrs,Zse=Yf().hovertemplateAttrs,s4=cf(),Xse=La(),$se=yi().dash,Qse=yi().pattern,Kse=Kt(),l4=Pv(),Pb=ra().extendFlat;function u4(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M* on the "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function f4(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function c4(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}d4.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:u4("x"),yperiod:u4("y"),xperiod0:f4("x0"),yperiod0:f4("y0"),xperiodalignment:c4("x"),yperiodalignment:c4("y"),xhoverformat:o4("x"),yhoverformat:o4("y"),stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:Yse({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+l4.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:Zse({},{keys:l4.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:Pb({},$se,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},fillpattern:Qse,marker:Pb({symbol:{valType:"enumerated",values:Kse.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:Pb({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},s4("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},s4("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:Xse({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}});var Rb=I((R_e,m4)=>{"use strict";var h4=Hl(),v4=Bl().line,Jse=yi().dash,Rv=ra().extendFlat,ele=Ai().overrideAll,tle=ar().templatedArray,p4=Vf();m4.exports=ele(tle("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:Rv({},h4.xref,{description:["Sets the selection's x coordinate axis.",p4.axisRefDescription("x","left","right")].join(" ")}),yref:Rv({},h4.yref,{description:["Sets the selection's x coordinate axis.",p4.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:v4.color,width:Rv({},v4.width,{min:1,dflt:1}),dash:Rv({},Jse,{dflt:"dot"})}}),"arraydraw","from-root")});var x4=I((E_e,b4)=>{"use strict";var g4=Re(),Ev=tr(),rle=In(),ale=Rb(),y4=ys();b4.exports=function(t,r){rle(t,r,{name:"selections",handleItemDefaults:nle});for(var a=r.selections,n=0;n{"use strict";_4.exports=function(t,r,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 Zf=I((z_e,k4)=>{"use strict";var ile=bt(),T4=Re(),A4=Hr();k4.exports=function(t){return function(a,n){var i=a[t];if(!!Array.isArray(i))for(var o=ile.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,c=l.yaxis,d=l.cartesian,h=n._has("cartesian")||n._has("gl2d"),p=0;p{"use strict";var M4=mb(),Xf=ZE();S4.exports={moduleType:"component",name:"selections",layoutAttributes:Rb(),supplyLayoutDefaults:x4(),supplyDrawNewSelectionDefaults:w4(),includeBasePlot:Zf()("selections"),draw:M4.draw,drawOne:M4.drawOne,reselect:Xf.reselect,prepSelect:Xf.prepSelect,clearOutline:Xf.clearOutline,clearSelectionsCache:Xf.clearSelectionsCache,selectOnClick:Xf.selectOnClick}});var Z4=I((F_e,Y4)=>{"use strict";var Eb=Ft(),_n=Re(),C4=_n.numberFormat,ole=Pn(),sle=c0(),Iv=bt(),L4=_n.strTranslate,lle=Ga(),q4=It(),fo=Kt(),ule=qi(),D4=tr(),fle=oo(),cle=Nn(),P4=Il(),zv=P4.selectingOrDrawing,dle=P4.freeMode,hle=qa().FROM_TL,vle=av(),ple=_v().redrawReglTraces,mle=Nr(),Ib=Hr().getFromId,gle=Ul().prepSelect,yle=Ul().clearOutline,ble=Ul().selectOnClick,zb=ub(),Nb=ga(),R4=Nb.MINDRAG,Ra=Nb.MINZOOM,E4=!0;function xle(e,t,r,a,n,i,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,d,h,p,g,m,b,x,_,k,w,A,L,S,q,P,E,F,N,j,B,W,V,Y;function Z(){if(d=t.xaxis,h=t.yaxis,k=d._length,w=h._length,x=d._offset,_=h._offset,p={},p[d._id]=d,g={},g[h._id]=h,o&&s)for(var we=t.overlays,Me=0;Me=0){Ye._fullLayout._deactivateShape(Ye);return}var je=Ye._fullLayout.clickmode;if(jb(Ye),we===2&&!c&&wt(),u)je.indexOf("select")>-1&&ble(Me,Ye,m,b,t.id,te),je.indexOf("event")>-1&&ule.click(Ye,Me,t.id);else if(we===1&&c){var ze=o?h:d,Ge=o==="s"||s==="w"?0:1,mt=ze._name+".range["+Ge+"]",Tt=_le(ze,Ge),ot="left",Ne="middle";if(ze.fixedrange)return;o?(Ne=o==="n"?"top":"bottom",ze.side==="right"&&(ot="right")):s==="e"&&(ot="right"),Ye._context.showAxisRangeEntryBoxes&&Eb.select(ne).call(lle.makeEditable,{gd:Ye,immediate:!0,background:Ye._fullLayout.paper_bgcolor,text:String(Tt),fill:ze.tickfont?ze.tickfont.color:"#444",horizontalAlign:ot,verticalAlign:Ne}).on("edit",function(et){var Oe=ze.d2r(et);Oe!==void 0&&Iv.call("_guiRelayout",Ye,mt,Oe)})}}cle.init(te);var re,ge,ee,Ae,ke,De,Le,Se,U,J;function O(we,Me,Ye){var je=ne.getBoundingClientRect();re=Me-je.left,ge=Ye-je.top,e._fullLayout._calcInverseTransform(e);var ze=_n.apply3DTransform(e._fullLayout._invTransform)(re,ge);re=ze[0],ge=ze[1],ee={l:re,r:re,w:0,t:ge,b:ge,h:0},Ae=e._hmpixcount?e._hmlumcount/e._hmpixcount:ole(e._fullLayout.plot_bgcolor).getLuminance(),ke="M0,0H"+k+"V"+w+"H0V0",De=!1,Le="xy",J=!1,Se=j4(l,Ae,x,_,ke),U=O4(l,x,_)}function oe(we,Me){if(e._transitioningWithDuration)return!1;var Ye=Math.max(0,Math.min(k,V*we+re)),je=Math.max(0,Math.min(w,Y*Me+ge)),ze=Math.abs(Ye-re),Ge=Math.abs(je-ge);ee.l=Math.min(re,Ye),ee.r=Math.max(re,Ye),ee.t=Math.min(ge,je),ee.b=Math.max(ge,je);function mt(){Le="",ee.r=ee.l,ee.t=ee.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)ze>Ra||Ge>Ra?(Le="xy",ze/k>Ge/w?(Ge=ze*w/k,ge>je?ee.t=ge-Ge:ee.b=ge+Ge):(ze=Ge*k/w,re>Ye?ee.l=re-ze:ee.r=re+ze),U.attr("d",Nv(ee))):mt();else if(L.isSubplotConstrained)if(ze>Ra||Ge>Ra){Le="xy";var Tt=Math.min(ee.l/k,(w-ee.b)/w),ot=Math.max(ee.r/k,(w-ee.t)/w);ee.l=Tt*k,ee.r=ot*k,ee.b=(1-Tt)*w,ee.t=(1-ot)*w,U.attr("d",Nv(ee))}else mt();else!q||Ge0){var et;if(L.isSubplotConstrained||!S&&q.length===1){for(et=0;et=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Tle(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function j4(e,t,r,a,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",L4(r,a)).attr("d",n+"Z")}function O4(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:q4.background,stroke:q4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",L4(t,r)).attr("d","M0,0Z")}function H4(e,t,r,a,n,i){e.attr("d",a+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),B4(e,t,n,i)}function B4(e,t,r,a){r||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function jb(e){Eb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function U4(e){E4&&e.data&&e._context.showTips&&(_n.notifier(_n._(e,"Double-click to zoom back out"),"long"),E4=!1)}function Ale(e,t){return"M"+(e.l-.5)+","+(t-Ra-.5)+"h-3v"+(2*Ra+1)+"h3ZM"+(e.r+.5)+","+(t-Ra-.5)+"h3v"+(2*Ra+1)+"h-3Z"}function kle(e,t){return"M"+(t-Ra-.5)+","+(e.t-.5)+"v-3h"+(2*Ra+1)+"v3ZM"+(t-Ra-.5)+","+(e.b+.5)+"v3h"+(2*Ra+1)+"v-3Z"}function Nv(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ra)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function G4(e,t,r,a,n){for(var i=!1,o={},s={},l,u,c,d,h=(n||{}).xaHash,p=(n||{}).yaHash,g=0;g{"use strict";var Mle=Ft(),Fv=qi(),Sle=Nn(),Cle=oo(),Bn=Z4().makeDragBox,Wr=ga().DRAGGERSIZE;jv.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Mle.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var a=Object.keys(r._plots||{}).sort(function(i,o){if((r._plots[i].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=i.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[i].mainplot?1:-1});a.forEach(function(i){var o=r._plots[i],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Bn(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===i&&t._fullLayout._plots[i]&&Fv.hover(t,h,i)},Fv.hover(t,h,i),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=i},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Sle.unhover(t,h))},t._context.showAxisDragHandles&&(Bn(t,o,s._offset-Wr,l._offset-Wr,Wr,Wr,"n","w"),Bn(t,o,s._offset+s._length,l._offset-Wr,Wr,Wr,"n","e"),Bn(t,o,s._offset-Wr,l._offset+l._length,Wr,Wr,"s","w"),Bn(t,o,s._offset+s._length,l._offset+l._length,Wr,Wr,"s","e"))}if(t._context.showAxisDragHandles){if(i===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=Wr),Bn(t,o,s._offset+s._length*.1,c,s._length*.8,Wr,"","ew"),Bn(t,o,s._offset,c,s._length*.1,Wr,"","w"),Bn(t,o,s._offset+s._length*.9,c,s._length*.1,Wr,"","e")}if(i===l._mainSubplot){var d=l._mainLinePosition;l.side!=="right"&&(d-=Wr),Bn(t,o,d,l._offset+l._length*.1,Wr,l._length*.8,"ns",""),Bn(t,o,d,l._offset+l._length*.9,Wr,l._length*.1,"s",""),Bn(t,o,d,l._offset,Wr,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(i){i.target=t._fullLayout._lasthover,Fv.hover(t,i,r._hoversubplot)},n.onclick=function(i){i.target=t._fullLayout._lasthover,Fv.click(t,i)},n.onmousedown=function(i){t._fullLayout._lasthover.onmousedown(i)},jv.updateFx(t)}};jv.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Cle(t._draggers,r)}});var Q4=I((O_e,$4)=>{"use strict";var X4=bt();$4.exports=function(t){for(var r=X4.layoutArrayContainers,a=X4.layoutArrayRegexes,n=t.split("[")[0],i,o,s=0;s{"use strict";var Lle=tl(),Hb=Ud(),$f=Go(),qle=Tg().sorterAsc,Bb=bt();Qf.containerArrayMatch=Q4();var Dle=Qf.isAddVal=function(t){return t==="add"||Lle(t)},K4=Qf.isRemoveVal=function(t){return t===null||t==="remove"};Qf.applyContainerArrayChanges=function(t,r,a,n,i){var o=r.astr,s=Bb.getComponentMethod(o,"supplyLayoutDefaults"),l=Bb.getComponentMethod(o,"draw"),u=Bb.getComponentMethod(o,"drawOne"),c=n.replot||n.recalc||s===Hb||l===Hb,d=t.layout,h=t._fullLayout;if(a[""]){Object.keys(a).length>1&&$f.warn("Full array edits are incompatible with other edits",o);var p=a[""][""];if(K4(p))r.set(null);else if(Array.isArray(p))r.set(p);else return $f.warn("Unrecognized full array edit value",o,p),!0;return c?!1:(s(d,h),l(t),!0)}var g=Object.keys(a).map(Number).sort(qle),m=r.get(),b=m||[],x=i(h,o).get(),_=[],k=-1,w=b.length,A,L,S,q,P,E,F,N;for(A=0;Ab.length-(F?0:1)){$f.warn("index out of range",o,S);continue}if(E!==void 0)P.length>1&&$f.warn("Insertion & removal are incompatible with edits to the same index.",o,S),K4(E)?_.push(S):F?(E==="add"&&(E={}),b.splice(S,0,E),x&&x.splice(S,0,{})):$f.warn("Unrecognized full object edit value",o,S,E),k===-1&&(k=S);else for(L=0;L=0;A--)b.splice(_[A],1),x&&x.splice(_[A],1);if(b.length?m||r.set(b):r.set(null),c)return!1;if(s(d,h),u!==Hb){var j;if(k===-1)j=g;else{for(w=Math.max(b.length,w),j=[],A=0;A=k));A++)j.push(S);for(A=k;A{"use strict";var eI=jt(),Ple=mg(),tI=bt(),Ea=Re(),Kf=Nr(),rI=Hr(),_s=It(),Jf=rI.cleanId,Rle=rI.getFromTrace,ec=tI.traceIs;wn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ea.log("Clearing previous rejected promises from queue."),e._promises=[]};wn.cleanLayout=function(e){var t,r;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=(Kf.subplotsRegistry.cartesian||{}).attrRegex,n=(Kf.subplotsRegistry.polar||{}).attrRegex,i=(Kf.subplotsRegistry.ternary||{}).attrRegex,o=(Kf.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),Ia(e),e.dragmode==="rotate"&&(e.dragmode="orbit"),_s.clean(e),e.template&&e.template.layout&&wn.cleanLayout(e.template.layout),e};function Gl(e,t){var r=e[t],a=t.charAt(0);r&&r!=="paper"&&(e[t]=Jf(r,a,!0))}function Ia(e){e&&((typeof e.title=="string"||typeof e.title=="number")&&(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"));function t(r,a){var n=e[r],i=e.title&&e.title[a];n&&!i&&(e.title||(e.title={}),e.title[a]=e[r],delete e[r])}}wn.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}wn.hasParent=function(e,t){for(var r=iI(t);r;){if(r in e)return!0;r=iI(r)}return!1};var zle=["x","y","z"];wn.clearAxisTypes=function(e,t,r){for(var a=0;a{"use strict";var Hv=Ft(),Nle=jt(),Fle=zg(),Ve=Re(),Jt=Ve.nestedProperty,Ub=tf(),za=HL(),Tn=bt(),Bv=eo(),xt=Nr(),Ta=tr(),Gb=Kt(),jle=It(),Ole=Ob().initInteractions,Hle=Jo(),Ble=Ul().clearOutline,sI=Uo().dfltConfig,Uv=J4(),Dr=oI(),Xt=_v(),co=Ai(),Ule=ga().AX_NAME_PATTERN,Wb=0,lI=5;function Gle(e,t,r,a){var n;if(e=Ve.getGraphDiv(e),Ub.init(e),Ve.isPlainObject(t)){var i=t;t=i.data,r=i.layout,a=i.config,n=i.frames}var o=Ub.triggerHandler(e,"plotly_beforeplot",[t,r,a]);if(o===!1)return Promise.reject();!t&&!r&&!Ve.isPlotDiv(e)&&Ve.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return Ht.addFrames(e,n)}fI(e,a),r||(r={}),Hv.select(e).classed("js-plotly-plot",!0),Gb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Dr.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Dr.cleanLayout(r)),xt.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(due(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Gb.initGradients(e),Gb.initPatterns(e),l&&Ta.saveShowSpikeInitial(e);var d=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;d&&xt.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,a+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function cI(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Wv(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Wv(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Xle(e,t,r){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),a=0;a=0&&c=0&&c-1&&i.indexOf("grouptitlefont")===-1?s(i,i.replace("titlefont","title.font")):i.indexOf("titleposition")>-1?s(i,i.replace("titleposition","title.position")):i.indexOf("titleside")>-1?s(i,i.replace("titleside","title.side")):i.indexOf("titleoffset")>-1&&s(i,i.replace("titleoffset","title.offset"));function s(l,u){e[u]=e[l],delete e[l]}}function rc(e,t,r){e=Ve.getGraphDiv(e),Dr.clearPromiseQueue(e);var a={};if(typeof t=="string")a[t]=r;else if(Ve.isPlainObject(t))a=Ve.extendFlat({},t);else return Ve.warn("Relayout fail.",t,r),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=AI(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[xt.previousPromises];i.layoutReplot?o.push(Xt.layoutReplot):Object.keys(a).length&&(xI(e,i,n)||xt.supplyDefaults(e),i.legend&&o.push(Xt.doLegend),i.layoutstyle&&o.push(Xt.layoutStyles),i.axrange&&Xv(o,n.rangesAltered),i.ticks&&o.push(Xt.doTicksRelayout),i.modebar&&o.push(Xt.doModeBar),i.camera&&o.push(Xt.doCamera),i.colorbars&&o.push(Xt.doColorBars),o.push(tc)),o.push(xt.rehover,xt.redrag,xt.reselect),za.add(e,rc,[e,n.undoit],rc,[e,n.redoit]);var s=Ve.syncOrAsync(o,e);return(!s||!s.then)&&(s=Promise.resolve(e)),s.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function xI(e,t,r){var a=e._fullLayout;if(!t.axrange)return!1;for(var n in t)if(n!=="axrange"&&t[n])return!1;for(var i in r.rangesAltered){var o=Ta.id2name(i),s=e.layout[o],l=a[o];if(l.autorange=s.autorange,s.range&&(l.range=s.range.slice()),l.cleanRange(),l._matchGroup){for(var u in l._matchGroup)if(u!==i){var c=a[Ta.id2name(u)];c.autorange=l.autorange,c.range=l.range.slice(),c._input.range=l.range.slice()}}}return!0}function Xv(e,t){var r=t?function(a){var n=[],i=!0;for(var o in t){var s=Ta.getFromId(a,o);if(n.push(o),(s.ticklabelposition||"").indexOf("inside")!==-1&&s._anchorAxis&&n.push(s._anchorAxis._id),s._matchGroup)for(var l in s._matchGroup)t[l]||n.push(l)}return Ta.draw(a,n,{skipTitle:i})}:function(a){return Ta.draw(a,"redraw")};e.push(Ble,Xt.doAutoRangeAndConstraints,r,Xt.drawData,Xt.finalDraw)}var _I=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,wI=/^[xyz]axis[0-9]*\.autorange$/,TI=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function AI(e,t){var r=e.layout,a=e._fullLayout,n=a._guiEditing,i=Yv(a._preGUI,n),o=Object.keys(t),s=Ta.list(e),l=Ve.extendDeepAll({},t),u={},c,d,h;for(bI(t),o=Object.keys(t),d=0;d0&&typeof q.parts[F]!="string";)F--;var N=q.parts[F],j=q.parts[F-1]+"."+N,B=q.parts.slice(0,F).join("."),W=Jt(e.layout,B).get(),V=Jt(a,B).get(),Y=q.get();if(P!==void 0){x[S]=P,_[S]=N==="reverse"?P:Ii(Y);var Z=Bv.getLayoutValObject(a,q.parts);if(Z&&Z.impliedEdits&&P!==null)for(var $ in Z.impliedEdits)k(Ve.relativeAttr(S,$),Z.impliedEdits[$]);if(["width","height"].indexOf(S)!==-1)if(P){k("autosize",null);var ne=S==="height"?"width":"height";k(ne,a[ne])}else a[S]=e._initialAutoSize[S];else if(S==="autosize")k("width",P?null:a.width),k("height",P?null:a.height);else if(j.match(_I))L(j),Jt(a,B+"._inputRange").set(null);else if(j.match(wI)){L(j),Jt(a,B+"._inputRange").set(null);var te=Jt(a,B).get();te._inputDomain&&(te._input.domain=te._inputDomain.slice())}else j.match(TI)&&Jt(a,B+"._inputDomain").set(null);if(N==="type"){A=W;var de=V.type==="linear"&&P==="log",be=V.type==="log"&&P==="linear";if(de||be){if(!A||!A.range)k(B+".autorange",!0);else if(V.autorange)de&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var re=A.range[0],ge=A.range[1];de?(re<=0&&ge<=0&&k(B+".autorange",!0),re<=0?re=ge/1e6:ge<=0&&(ge=re/1e6),k(B+".range[0]",Math.log(re)/Math.LN10),k(B+".range[1]",Math.log(ge)/Math.LN10)):(k(B+".range[0]",Math.pow(10,re)),k(B+".range[1]",Math.pow(10,ge)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Tn.getComponentMethod("annotations","convertCoords")(e,V,P,k),Tn.getComponentMethod("images","convertCoords")(e,V,P,k)}else k(B+".autorange",!0),k(B+".range",null);Jt(a,B+"._inputRange").set(null)}else if(N.match(Ule)){var ee=Jt(a,S).get(),Ae=(P||{}).type;(!Ae||Ae==="-")&&(Ae="linear"),Tn.getComponentMethod("annotations","convertCoords")(e,ee,Ae,k),Tn.getComponentMethod("images","convertCoords")(e,ee,Ae,k)}var ke=Uv.containerArrayMatch(S);if(ke){c=ke.array,d=ke.index;var De=ke.property,Le=Z||{editType:"calc"};d!==""&&De===""&&(Uv.isAddVal(P)?_[S]=null:Uv.isRemoveVal(P)?_[S]=(Jt(r,c).get()||[])[d]:Ve.warn("unrecognized full object value",t)),co.update(b,Le),u[c]||(u[c]={});var Se=u[c][d];Se||(Se=u[c][d]={}),Se[De]=P,delete t[S]}else N==="reverse"?(W.range?W.range.reverse():(k(B+".autorange",!0),W.range=[1,0]),V.autorange?b.calc=!0:b.plot=!0):(S==="dragmode"&&(P===!1&&Y!==!1||P!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&S==="dragmode"&&(P==="lasso"||P==="select")&&!(Y==="lasso"||Y==="select")||a._has("gl2d")?b.plot=!0:Z?co.update(b,Z):b.calc=!0,q.set(P))}}for(c in u){var U=Uv.applyContainerArrayChanges(e,i(r,c),u[c],b,i);U||(b.plot=!0)}for(var J in w){A=Ta.getFromId(e,J);var O=A&&A._constraintGroup;if(O){b.calc=!0;for(var oe in O)w[oe]||(Ta.getFromId(e,oe)._constraintShrinkable=!0)}}return(kI(e)||t.height||t.width)&&(b.plot=!0),(b.plot||b.calc)&&(b.layoutReplot=!0),{flags:b,rangesAltered:w,undoit:_,redoit:x,eventData:l}}function kI(e){var t=e._fullLayout,r=t.width,a=t.height;return e.layout.autosize&&xt.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==a}function $v(e,t,r,a){e=Ve.getGraphDiv(e),Dr.clearPromiseQueue(e),Ve.isPlainObject(t)||(t={}),Ve.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var n=Dr.coerceTraceIndices(e,a),i=yI(e,Ve.extendFlat({},t),n),o=i.flags,s=AI(e,Ve.extendFlat({},r)),l=s.flags;(o.calc||l.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&Dr.clearAxisTypes(e,n,r);var u=[];l.layoutReplot?u.push(Xt.layoutReplot):o.fullReplot?u.push(Ht._doPlot):(u.push(xt.previousPromises),xI(e,l,s)||xt.supplyDefaults(e),o.style&&u.push(Xt.doTraceStyle),(o.colorbars||l.colorbars)&&u.push(Xt.doColorBars),l.legend&&u.push(Xt.doLegend),l.layoutstyle&&u.push(Xt.layoutStyles),l.axrange&&Xv(u,s.rangesAltered),l.ticks&&u.push(Xt.doTicksRelayout),l.modebar&&u.push(Xt.doModeBar),l.camera&&u.push(Xt.doCamera),u.push(tc)),u.push(xt.rehover,xt.redrag,xt.reselect),za.add(e,$v,[e,i.undoit,s.undoit,i.traces],$v,[e,i.redoit,s.redoit,i.traces]);var c=Ve.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve(e)),c.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:s.eventData}),e})}function Yb(e){return function(r){r._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return r._fullLayout._guiEditing=!1,a}}var Jle=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],eue=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function MI(e,t){for(var r=0;r1;)if(a.pop(),r=Jt(t,a.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function tue(e,t){for(var r=0;r=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function l(u,c){var d=0;return function(){if(u&&++d===c)return u()}}return new Promise(function(u,c){function d(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var j=0;ja._timeToNext&&g()};N()}var b=0;function x(N){return Array.isArray(n)?b>=n.length?N.transitionOpts=n[b]:N.transitionOpts=n[0]:N.transitionOpts=n,b++,N}var _,k,w=[],A=t==null,L=Array.isArray(t),S=!A&&!L&&Ve.isPlainObject(t);if(S)w.push({type:"object",data:x(Ve.extendFlat({},t))});else if(A||["string","number"].indexOf(typeof t)!==-1)for(_=0;_0&&EE)&&F.push(k);w=F}}w.length>0?h(w):(e.emit("plotly_animated"),u())})}function lue(e,t,r){if(e=Ve.getGraphDiv(e),t==null)return Promise.resolve();if(!Ve.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,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],d={};for(a=t.length-1;a>=0;a--)if(!!Ve.isPlainObject(t[a])){var h=t[a].name,p=(l[h]||d[h]||{}).name,g=t[a].name,m=l[p]||d[p];p&&g&&typeof g=="number"&&m&&Wbq.index?-1:S.index=0;a--){if(n=c[a].frame,typeof n.name=="number"&&Ve.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(i=0;i=0;r--)a=t[r],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var s=xt.modifyFrames,l=xt.modifyFrames,u=[e,o],c=[e,i];return za&&za.add(e,s,u,l,c),xt.modifyFrames(e,i)}function fue(e){e=Ve.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return xt.cleanPlot([],{},r,t),xt.purge(e),Ub.purge(e),t._container&&t._container.remove(),delete e._context,e}function cue(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Ve.equalDomRects(r,t._lastBBox)){var a=t._invTransform=Ve.inverseTransformMatrix(Ve.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),t._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),t._lastBBox=r}}function due(e){var t=Hv.select(e),r=e._fullLayout;if(r._calcInverseTransform=cue,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var a={};Hv.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),r._uid=Ve.randstr(a)}r._paperdiv.selectAll(".main-svg").attr(Hle.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var i=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=i.append("g").classed("imagelayer",!0),r._shapeUpperLayer=i.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ht.animate=sue;Ht.addFrames=lue;Ht.deleteFrames=uue;Ht.addTraces=mI;Ht.deleteTraces=gI;Ht.extendTraces=vI;Ht.moveTraces=Vb;Ht.prependTraces=pI;Ht.newPlot=Zle;Ht._doPlot=Gle;Ht.purge=fue;Ht.react=nue;Ht.redraw=Yle;Ht.relayout=rc;Ht.restyle=Vv;Ht.setPlotConfig=Wle;Ht.update=$v;Ht._guiRelayout=Yb(rc);Ht._guiRestyle=Yb(Vv);Ht._guiUpdate=Yb($v);Ht._storeDirectGUIEdit=Kle});var ws=I(Un=>{"use strict";var hue=bt();Un.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0};Un.getRedrawFunc=function(e){return function(){hue.getComponentMethod("colorbar","draw")(e)}};Un.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Un.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var LI=window.URL||window.webkitURL;Un.createObjectURL=function(e){return LI.createObjectURL(e)};Un.revokeObjectURL=function(e){return LI.revokeObjectURL(e)};Un.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=vue(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Un.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function vue(e){for(var t=e.length,r=new ArrayBuffer(t),a=new Uint8Array(r),n=0;n{"use strict";var $b=Ft(),pue=Re(),mue=Kt(),gue=It(),Kv=Jo(),Qb=/"/g,ac="TOBESTRIPPED",yue=new RegExp('("'+ac+")|("+ac+'")',"g");function bue(e){var t=$b.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":t.html(a).text()});return t.remove(),r}function xue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}qI.exports=function(t,r,a){var n=t._fullLayout,i=n._paper,o=n._toppaper,s=n.width,l=n.height,u;i.insert("rect",":first-child").call(mue.setRect,0,0,s,l).call(gue.fill,n.paper_bgcolor);var c=n._basePlotModules||[];for(u=0;u{"use strict";var DI=Re(),_ue=sh().EventEmitter,Wl=ws();function wue(e){var t=e.emitter||new _ue,r=new Promise(function(a,n){var i=window.Image,o=e.svg,s=e.format||"png";if(DI.isIE()&&s!=="svg"){var l=new Error(Wl.MSG_IE_BAD_FORMAT);return n(l),e.promise?r:t.emit("error",l)}var u=e.canvas,c=e.scale||1,d=e.width||300,h=e.height||150,p=c*d,g=c*h,m=u.getContext("2d",{willReadFrequently:!0}),b=new i,x,_;s==="svg"||DI.isSafari()?_=Wl.encodeSVG(o):(x=Wl.createBlob(o,"svg"),_=Wl.createObjectURL(x)),u.width=p,u.height=g,b.onload=function(){var k;switch(x=null,Wl.revokeObjectURL(_),s!=="svg"&&m.drawImage(b,0,0,p,g),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=_;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return t.emit("error",w)}a(k),e.promise||t.emit("success",k)},b.onerror=function(k){if(x=null,Wl.revokeObjectURL(_),n(k),!e.promise)return t.emit("error",k)},b.src=_});return e.promise?r:t}PI.exports=wue});var Jb=I((Y_e,II)=>{"use strict";var RI=jt(),EI=Xb(),Tue=Nr(),ci=Re(),nc=ws(),Aue=Jv(),kue=ep(),Mue=Ad().version,Kb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};function Sue(e,t){t=t||{};var r,a,n,i;ci.isPlainObject(e)?(r=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=ci.getGraphDiv(e),r=ci.extendDeep([],e.data),a=ci.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(L){return!(L in t)||ci.validate(t[L],Kb[L])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+ci.join2(Kb.format.values,", "," or ")+".");var s={};function l(L,S){return ci.coerce(t,s,Kb,L,S)}var u=l("format"),c=l("width"),d=l("height"),h=l("scale"),p=l("setBackground"),g=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=ci.extendFlat({},a);c?b.width=c:t.width===null&&RI(i.width)&&(b.width=i.width),d?b.height=d:t.height===null&&RI(i.height)&&(b.height=i.height);var x=ci.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:p}),_=nc.getRedrawFunc(m);function k(){return new Promise(function(L){setTimeout(L,nc.getDelay(m._fullLayout))})}function w(){return new Promise(function(L,S){var q=Aue(m,u,h),P=m._fullLayout.width,E=m._fullLayout.height;function F(){EI.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=Tue.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=Mue,N=JSON.stringify(N),F(),L(g?N:nc.encodeJSON(N))}if(F(),u==="svg")return L(g?q:nc.encodeSVG(q));var j=document.createElement("canvas");j.id=ci.randstr(),kue({format:u,width:P,height:E,scale:h,canvas:j,svg:q,promise:!0}).then(L).catch(S)})}function A(L){return g?L.replace(nc.IMAGE_URL_PREFIX,""):L}return new Promise(function(L,S){EI.newPlot(m,r,b,x).then(_).then(k).then(w).then(function(q){L(A(q))}).catch(function(q){S(q)})})}II.exports=Sue});var jI=I((Z_e,FI)=>{"use strict";var An=Re(),Cue=Nr(),Lue=eo(),que=Uo().dfltConfig,kn=An.isPlainObject,ho=Array.isArray,zI=An.isArrayOrTypedArray;FI.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var a=Lue.get(),n=[],i={_context:An.extendFlat({},que)},o,s;ho(t)?(i.data=An.extendDeep([],t),o=t):(i.data=[],o=[],n.push(Pr("array","data"))),kn(r)?(i.layout=An.extendDeep({},r),s=r):(i.layout={},s={},arguments.length>1&&n.push(Pr("object","layout"))),Cue.supplyDefaults(i);for(var l=i._fullData,u=o.length,c=0;cd.length&&a.push(Pr("unused",n,u.concat(d.length)));var x=d.length,_=Array.isArray(b);_&&(x=Math.min(x,b.length));var k,w,A,L,S;if(h.dimensions===2)for(w=0;wd[w].length&&a.push(Pr("unused",n,u.concat(w,d[w].length)));var q=d[w].length;for(k=0;k<(_?Math.min(q,b[w].length):q);k++)A=_?b[w][k]:b,L=c[w][k],S=d[w][k],An.validate(L,A)?S!==L&&S!==+L&&a.push(Pr("dynamic",n,u.concat(w,k),L,S)):a.push(Pr("value",n,u.concat(w,k),L))}else a.push(Pr("array",n,u.concat(w),c[w]));else for(w=0;w{"use strict";var OI=Re(),oc=ws();function Nue(e,t,r){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,s){var l,u;if(OI.isIE())return l=oc.createBlob(e,"svg"),window.navigator.msSaveBlob(l,t),l=null,o(t);if(n)return l=oc.createBlob(e,r),u=oc.createObjectURL(l),a.href=u,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),oc.revokeObjectURL(u),l=null,o(t);if(OI.isSafari()){var c=r==="svg"?",":";base64,";return oc.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return i}HI.exports=Nue});var t1=I(($_e,UI)=>{"use strict";var e1=Re(),Fue=Jb(),jue=BI(),Oue=ws();function Hue(e,t){var r;return e1.isPlainObject(e)||(r=e1.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(a,n){r&&r._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),e1.isIE()&&t.format!=="svg"&&n(new Error(Oue.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var i=Fue(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),i.then(function(s){return r&&(r._snapshotInProgress=!1),jue(s,o,t.format)}).then(function(s){a(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),n(s)})})}UI.exports=Hue});var ZI=I(r1=>{"use strict";var Ya=Re(),Za=Ya.isPlainObject,GI=eo(),WI=Nr(),Bue=Zi(),VI=ar(),YI=Uo().dfltConfig;r1.makeTemplate=function(e){e=Ya.isPlainObject(e)?e:Ya.getGraphDiv(e),e=Ya.extendDeep({_context:YI},{data:e.data,layout:e.layout}),WI.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var a={data:{},layout:{}};t.forEach(function(p){var g={};sc(p,g,Gue.bind(null,p));var m=Ya.coerce(p,{},Bue,"type"),b=a.data[m];b||(b=a.data[m]=[]),b.push(g)}),sc(r,a.layout,Uue.bind(null,r)),delete a.layout.template;var n=r.template;if(Za(n)){var i=n.layout,o,s,l,u,c,d;Za(i)&&tp(i,a.layout);var h=n.data;if(Za(h)){for(s in a.data)if(l=h[s],Array.isArray(l)){for(c=a.data[s],d=c.length,u=l.length,o=0;ox?o.push({code:"unused",traceType:p,templateCount:b,dataCount:x}):x>b&&o.push({code:"reused",traceType:p,templateCount:b,dataCount:x})}}function _(k,w){for(var A in k)if(A.charAt(0)!=="_"){var L=k[A],S=Mn(k,A,w);Za(L)?(Array.isArray(k)&&L._template===!1&&L.templateitemname&&o.push({code:"missing",path:S,templateitemname:L.templateitemname}),_(L,S)):Array.isArray(L)&&Wue(L)&&_(L,S)}}if(_({data:l,layout:s},""),o.length)return o.map(Vue)};function Wue(e){for(var t=0;t{"use strict";var jr=Xb();cr._doPlot=jr._doPlot;cr.newPlot=jr.newPlot;cr.restyle=jr.restyle;cr.relayout=jr.relayout;cr.redraw=jr.redraw;cr.update=jr.update;cr._guiRestyle=jr._guiRestyle;cr._guiRelayout=jr._guiRelayout;cr._guiUpdate=jr._guiUpdate;cr._storeDirectGUIEdit=jr._storeDirectGUIEdit;cr.react=jr.react;cr.extendTraces=jr.extendTraces;cr.prependTraces=jr.prependTraces;cr.addTraces=jr.addTraces;cr.deleteTraces=jr.deleteTraces;cr.moveTraces=jr.moveTraces;cr.purge=jr.purge;cr.addFrames=jr.addFrames;cr.deleteFrames=jr.deleteFrames;cr.animate=jr.animate;cr.setPlotConfig=jr.setPlotConfig;cr.toImage=Jb();cr.validate=jI();cr.downloadImage=t1();var XI=ZI();cr.makeTemplate=XI.makeTemplate;cr.validateTemplate=XI.validateTemplate});var n1=I((J_e,QI)=>{"use strict";var a1=Re(),Yue=bt();QI.exports=function(t,r,a,n){var i=n("x"),o=n("y"),s,l=Yue.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],a),i){var u=a1.minRowLength(i);o?s=Math.min(u,a1.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=a1.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var i1=I((ewe,ez)=>{"use strict";var KI=Re().dateTick0,Zue=Tr(),Xue=Zue.ONEWEEK;function JI(e,t){return e%Xue==0?KI(t,1):KI(t,0)}ez.exports=function(t,r,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",JI(o,r.xcalendar)),n("xperiodalignment"))}if(i.y){var s=n("yperiod");s&&(n("yperiod0",JI(s,r.ycalendar)),n("yperiodalignment"))}}});var az=I((twe,rz)=>{"use strict";var tz=["orientation","groupnorm","stackgaps"];rz.exports=function(t,r,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=i[s];l||(l=i[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var d={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var nz=It(),iz=hn().hasColorscale,oz=wl(),$ue=Ja();sz.exports=function(t,r,a,n,i,o){var s=$ue.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(a=l),i("marker.symbol"),i("marker.opacity",s?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),iz(t,"marker")&&oz(t,r,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=nz.background:u=nz.defaultLine,i("marker.line.color",u),iz(t,"marker.line")&&oz(t,r,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",s?1:0)),s&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var c=i("marker.gradient.type");c!=="none"&&i("marker.gradient.color")}}});var fz=I((awe,uz)=>{"use strict";var Que=Re().isArrayOrTypedArray,Kue=hn().hasColorscale,Jue=wl();uz.exports=function(t,r,a,n,i,o){o||(o={});var s=(t.marker||{}).color;if(i("line.color",a),Kue(t,"line"))Jue(t,r,n,i,{prefix:"line.",cLetter:"c"});else{var l=(Que(s)?!1:s)||a;i("line.color",l)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var dz=I((nwe,cz)=>{"use strict";cz.exports=function(t,r,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var vz=I((iwe,hz)=>{"use strict";var efe=Re();hz.exports=function(e,t,r,a,n){n=n||{},a("textposition"),efe.coerceFont(a,"textfont",r.font),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var gz=I((owe,mz)=>{"use strict";var tfe=It(),pz=Re().isArrayOrTypedArray;mz.exports=function(t,r,a,n){var i=!1;if(r.marker){var o=r.marker.color,s=(r.marker.line||{}).color;o&&!pz(o)?i=o:s&&!pz(s)&&(i=s)}n("fillcolor",tfe.addOpacity((r.line||{}).color||i||a,.5))}});var _z=I((swe,xz)=>{"use strict";var yz=Re(),rfe=bt(),afe=Bl(),nfe=Pv(),Vl=Ja(),ife=n1(),ofe=i1(),sfe=az(),lfe=lz(),ufe=fz(),bz=dz(),ffe=vz(),cfe=gz(),dfe=Re().coercePattern;xz.exports=function(t,r,a,n){function i(p,g){return yz.coerce(t,r,afe,p,g)}var o=ife(t,r,n,i);if(o||(r.visible=!1),!!r.visible){ofe(t,r,n,i),i("xhoverformat"),i("yhoverformat");var s=sfe(t,r,n,i),l=!s&&o{"use strict";wz.exports=function(t){for(var r=0;r=0;i--){var o=t[i];if(o.type==="scatter"&&o.xaxis===a.xaxis&&o.yaxis===a.yaxis){o.opacity=void 0;break}}}}}});var o1=I((uwe,kz)=>{"use strict";var hfe=jt(),Az=Re(),vfe=Az.dateTime2ms,ap=Az.incrementMonth,pfe=Tr(),mfe=pfe.ONEAVGMONTH;kz.exports=function(t,r,a,n){if(r.type!=="date")return{vals:n};var i=t[a+"periodalignment"];if(!i)return{vals:n};var o=t[a+"period"],s;if(hfe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,c=i==="start",d=i==="end",h=t[a+"period0"],p=vfe(h,u)||0,g=[],m=[],b=[],x=n.length,_=0;_k;)L=ap(L,-s,u);for(;L<=k;)L=ap(L,s,u);A=ap(L,-s,u)}else{for(w=Math.round((k-p)/o),L=p+w*o;L>k;)L-=o;for(;L<=k;)L+=o;A=L-o}g[_]=c?A:d?L:(A+L)/2,m[_]=A,b[_]=L}return{vals:g,starts:m,ends:b}}});var Cz=I((fwe,Sz)=>{"use strict";var s1=hn().hasColorscale,l1=_h(),Mz=Ja();Sz.exports=function(t,r){Mz.hasLines(r)&&s1(r,"line")&&l1(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Mz.hasMarkers(r)&&(s1(r,"marker")&&l1(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),s1(r,"marker.line")&&l1(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var u1=I((cwe,Lz)=>{"use strict";var na=Re();Lz.exports=function(t,r){for(var a=0;a{"use strict";var qz=Re();Dz.exports=function(t,r){qz.isArrayOrTypedArray(r.selectedpoints)&&qz.tagSelected(t,r)}});var p1=I((hwe,Fz)=>{"use strict";var Pz=jt(),c1=Re(),lc=tr(),Rz=o1(),d1=Tr().BADNUM,h1=Ja(),gfe=Cz(),yfe=u1(),bfe=f1();function xfe(e,t){var r=e._fullLayout,a=t._xA=lc.getFromId(e,t.xaxis||"x","x"),n=t._yA=lc.getFromId(e,t.yaxis||"y","y"),i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=Rz(t,a,"x",i),l=Rz(t,n,"y",o),u=s.vals,c=l.vals,d=t._length,h=new Array(d),p=t.ids,g=v1(t,r,a,n),m=!1,b,x,_,k,w,A;zz(r,t);var L="x",S="y",q;if(g)c1.pushUnique(g.traceIndices,t._expandedIndex),b=g.orientation==="v",b?(S="s",q="x"):(L="s",q="y"),w=g.stackgaps==="interpolate";else{var P=Iz(t,d);Ez(e,t,a,n,u,c,P)}var E=!!t.xperiodalignment,F=!!t.yperiodalignment;for(x=0;xx&&h[k].gap;)k--;for(A=h[k].s,_=h.length-1;_>k;_--)h[_].s=A;for(;x{"use strict";var jz=p1();Oz.exports=function(t,r){var a=r.xaxis,n=r.yaxis,i=a._id+n._id,o=t._fullLayout._scatterStackOpts[i];if(!!o){var s=t.calcdata,l,u,c,d,h,p,g,m,b,x,_,k,w,A,L;for(var S in o){x=o[S];var q=x.traceIndices;if(!!q.length){for(_=x.stackgaps==="interpolate",k=x.groupnorm,x.orientation==="v"?(w="x",A="y"):(w="y",A="x"),L=new Array(q.length),l=0;lP[c]&&c{"use strict";var wfe=Kt(),Bz=Tr(),uc=Bz.BADNUM,Uz=Bz.LOG_CLIP,Gz=Uz+.5,Wz=Uz-.5,np=Re(),Tfe=np.segmentsIntersect,Vz=np.constrain,g1=Pv();Yz.exports=function(t,r){var a=r.trace||{},n=r.xaxis,i=r.yaxis,o=n.type==="log",s=i.type==="log",l=n._length,u=i._length,c=r.backoff,d=a.marker,h=r.connectGaps,p=r.baseTolerance,g=r.shape,m=g==="linear",b=a.fill&&a.fill!=="none",x=[],_=g1.minTolerance,k=t.length,w=new Array(k),A=0,L,S,q,P,E,F,N,j,B,W,V,Y,Z,$,ne,te;function de(Ne){var et=t[Ne];if(!et)return!1;var Oe=r.linearized?n.l2p(et.x):n.c2p(et.x),st=r.linearized?i.l2p(et.y):i.c2p(et.y);if(Oe===uc){if(o&&(Oe=n.c2p(et.x,!0)),Oe===uc)return!1;s&&st===uc&&(Oe*=Math.abs(n._m*u*(n._m>0?Gz:Wz)/(i._m*l*(i._m>0?Gz:Wz)))),Oe*=1e3}if(st===uc){if(s&&(st=i.c2p(et.y,!0)),st===uc)return!1;st*=1e3}return[Oe,st]}function be(Ne,et,Oe,st){var dt=Oe-Ne,vt=st-et,pt=.5-Ne,ae=.5-et,_e=dt*dt+vt*vt,Te=dt*pt+vt*ae;if(Te>0&&Te<_e){var Fe=pt*vt-ae*dt;if(Fe*Fe<_e)return!0}}var re,ge;function ee(Ne,et){var Oe=Ne[0]/l,st=Ne[1]/u,dt=Math.max(0,-Oe,Oe-1,-st,st-1);return dt&&re!==void 0&&be(Oe,st,re,ge)&&(dt=0),dt&&et&&be(Oe,st,et[0]/l,et[1]/u)&&(dt=0),(1+g1.toleranceGrowth*dt)*p}function Ae(Ne,et){var Oe=Ne[0]-et[0],st=Ne[1]-et[1];return Math.sqrt(Oe*Oe+st*st)}var ke=g1.maxScreensAway,De=-l*ke,Le=l*(1+ke),Se=-u*ke,U=u*(1+ke),J=[[De,Se,Le,Se],[Le,Se,Le,U],[Le,U,De,U],[De,U,De,Se]],O,oe,me,xe,qe,Pe;function ye(Ne,et){for(var Oe=[],st=0,dt=0;dt<4;dt++){var vt=J[dt],pt=Tfe(Ne[0],Ne[1],et[0],et[1],vt[0],vt[1],vt[2],vt[3]);pt&&(!st||Math.abs(pt.x-Oe[0][0])>1||Math.abs(pt.y-Oe[0][1])>1)&&(pt=[pt.x,pt.y],st&&Ae(pt,Ne)Le||Ne[1]U)return[Vz(Ne[0],De,Le),Vz(Ne[1],Se,U)]}function Ue(Ne,et){if(Ne[0]===et[0]&&(Ne[0]===De||Ne[0]===Le)||Ne[1]===et[1]&&(Ne[1]===Se||Ne[1]===U))return!0}function nt(Ne,et){var Oe=[],st=rt(Ne),dt=rt(et);return st&&dt&&Ue(st,dt)||(st&&Oe.push(st),dt&&Oe.push(dt)),Oe}function at(Ne,et,Oe){return function(st,dt){var vt=rt(st),pt=rt(dt),ae=[];if(vt&&pt&&Ue(vt,pt))return ae;vt&&ae.push(vt),pt&&ae.push(pt);var _e=2*np.constrain((st[Ne]+dt[Ne])/2,et,Oe)-((vt||st)[Ne]+(pt||dt)[Ne]);if(_e){var Te;vt&&pt?Te=_e>0==vt[Ne]>pt[Ne]?vt:pt:Te=vt||pt,Te[Ne]+=_e}return ae}}var ft;g==="linear"||g==="spline"?ft=ye:g==="hv"||g==="vh"?ft=nt:g==="hvh"?ft=at(0,De,Le):g==="vhv"&&(ft=at(1,Se,U));function wt(Ne,et){var Oe=et[0]-Ne[0],st=(et[1]-Ne[1])/Oe,dt=(Ne[1]*et[0]-et[1]*Ne[0])/Oe;return dt>0?[st>0?De:Le,U]:[st>0?Le:De,Se]}function se(Ne){var et=Ne[0],Oe=Ne[1],st=et===w[A-1][0],dt=Oe===w[A-1][1];if(!(st&&dt))if(A>1){var vt=et===w[A-2][0],pt=Oe===w[A-2][1];st&&(et===De||et===Le)&&vt?pt?A--:w[A-1]=Ne:dt&&(Oe===Se||Oe===U)&&pt?vt?A--:w[A-1]=Ne:w[A++]=Ne}else w[A++]=Ne}function Ce(Ne){w[A-1][0]!==Ne[0]&&w[A-1][1]!==Ne[1]&&se([me,xe]),se(Ne),qe=null,me=xe=0}var it=np.isArrayOrTypedArray(d);function ct(Ne){if(Ne&&c&&(Ne.i=L,Ne.d=t,Ne.trace=a,Ne.marker=it?d[Ne.i]:d,Ne.backoff=c),re=Ne[0]/l,ge=Ne[1]/u,O=Ne[0]Le?Le:0,oe=Ne[1]U?U:0,O||oe){if(!A)w[A++]=[O||Ne[0],oe||Ne[1]];else if(qe){var et=ft(qe,Ne);et.length>1&&(Ce(et[0]),w[A++]=et[1])}else Pe=ft(w[A-1],Ne)[0],w[A++]=Pe;var Oe=w[A-1];O&&oe&&(Oe[0]!==O||Oe[1]!==oe)?(qe&&(me!==O&&xe!==oe?se(me&&xe?wt(qe,Ne):[me||O,xe||oe]):me&&xe&&se([me,xe])),se([O,oe])):me-O&&xe-oe&&se([O||me,oe||xe]),qe=Ne,me=O,xe=oe}else qe&&Ce(ft(qe,Ne)[0]),w[A++]=Ne}for(L=0;Lee(F,Je))break;q=F,Z=B[0]*j[0]+B[1]*j[1],Z>V?(V=Z,P=F,N=!1):Z=t.length||!F)break;ct(F),S=F}}qe&&se([me||qe[0],xe||qe[1]]),x.push(w.slice(0,A))}var we=g.slice(g.length-1);if(c&&we!=="h"&&we!=="v"){for(var Me=!1,Ye=-1,je=[],ze=0;ze{"use strict";var Xz={tonextx:1,tonexty:1,tonext:1};$z.exports=function(t,r,a){var n,i,o,s,l,u={},c=!1,d=-1,h=0,p=-1;for(i=0;i=0?l=p:(l=p=h,h++),l{"use strict";var Gn=Ft(),Afe=bt(),fc=Re(),Yl=fc.ensureSingle,Kz=fc.identity,br=Kt(),Zl=Ja(),kfe=Zz(),Mfe=Qz(),Sfe=yb().tester;e8.exports=function(t,r,a,n,i,o){var s,l,u=!i,c=!!i&&i.duration>0,d=Mfe(t,r,a);if(s=n.selectAll("g.trace").data(d,function(p){return p[0].trace.uid}),s.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),s.order(),Cfe(t,s,r),c){o&&(l=o());var h=Gn.transition().duration(i.duration).ease(i.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(p,g){Jz(t,g,r,p,d,this,i)})})}else s.each(function(p,g){Jz(t,g,r,p,d,this,i)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function Cfe(e,t,r){t.each(function(a){var n=Yl(Gn.select(this),"g","fills");br.setClipUrl(n,r.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,Kz);s.enter().append("g"),s.exit().each(function(l){i[l]=null}).remove(),s.order().each(function(l){i[l]=Yl(Gn.select(this),"path","js-fill")})})}function Jz(e,t,r,a,n,i,o){var s;Lfe(e,t,r,a,n);var l=!!o&&o.duration>0;function u(J){return l?J.transition():J}var c=r.xaxis,d=r.yaxis,h=a[0].trace,p=h.line,g=Gn.select(i),m=Yl(g,"g","errorbars"),b=Yl(g,"g","lines"),x=Yl(g,"g","points"),_=Yl(g,"g","text");if(Afe.getComponentMethod("errorbars","plot")(e,m,r,o),h.visible!==!0)return;u(g).style("opacity",h.opacity);var k,w,A=h.fill.charAt(h.fill.length-1);A!=="x"&&A!=="y"&&(A=""),a[0][r.isRangePlot?"nodeRangePlot3":"node3"]=g;var L="",S=[],q=h._prevtrace;q&&(L=q._prevRevpath||"",w=q._nextFill,S=q._polygons);var P,E,F="",N="",j,B,W,V,Y,Z,$,ne=[],te=fc.noop;if(k=h._ownFill,Zl.hasLines(h)||h.fill!=="none"){for(w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(j=br.steps(p.shape),B=br.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?j=B=function(J){var O=J[J.length-1];return J.length>1&&J[0][0]===O[0]&&J[0][1]===O[1]?br.smoothclosed(J.slice(1),p.smoothing):br.smoothopen(J,p.smoothing)}:j=B=function(J){return"M"+J.join("L")},W=function(J){return B(J.reverse())},ne=kfe(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),$=h._polygons=new Array(ne.length),s=0;s1){var oe=Gn.select(this);if(oe.datum(a),J)u(oe.style("opacity",0).attr("d",P).call(br.lineGroupStyle)).style("opacity",1);else{var me=u(oe);me.attr("d",P),br.singleLineStyle(a,me)}}}}}var de=b.selectAll(".js-line").data(ne);u(de.exit()).style("opacity",0).remove(),de.each(te(!1)),de.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(br.lineGroupStyle).each(te(!0)),br.setClipUrl(de,r.layerClipId,e);function be(J){u(J).attr("d","M0,0Z")}ne.length?(k?(k.datum(a),V&&Z&&(A?(A==="y"?V[1]=Z[1]=d.c2p(0,!0):A==="x"&&(V[0]=Z[0]=c.c2p(0,!0)),u(k).attr("d","M"+Z+"L"+V+"L"+F.substr(1)).call(br.singleFillStyle,e)):u(k).attr("d",F+"Z").call(br.singleFillStyle,e))):w&&(h.fill.substr(0,6)==="tonext"&&F&&L?(h.fill==="tonext"?u(w).attr("d",F+"Z"+L+"Z").call(br.singleFillStyle,e):u(w).attr("d",F+"L"+L.substr(1)+"Z").call(br.singleFillStyle,e),h._polygons=h._polygons.concat(S)):(be(w),h._polygons=null)),h._prevRevpath=N,h._prevPolygons=$):(k?be(k):w&&be(w),h._polygons=h._prevRevpath=h._prevPolygons=null);function re(J){return J.filter(function(O){return!O.gap&&O.vis})}function ge(J){return J.filter(function(O){return O.vis})}function ee(J){return J.filter(function(O){return!O.gap})}function Ae(J){return J.id}function ke(J){if(J.ids)return Ae}function De(){return!1}function Le(J,O,oe){var me,xe,qe,Pe=oe[0].trace,ye=Zl.hasMarkers(Pe),rt=Zl.hasText(Pe),Ue=ke(Pe),nt=De,at=De;if(ye||rt){var ft=Kz,wt=Pe.stackgroup,se=wt&&e._fullLayout._scatterStackOpts[c._id+d._id][wt].stackgaps==="infer zero";Pe.marker.maxdisplayed||Pe._needsCull?ft=se?ge:re:wt&&!se&&(ft=ee),ye&&(nt=ft),rt&&(at=ft)}xe=J.selectAll("path.point"),me=xe.data(nt,Ue);var Ce=me.enter().append("path").classed("point",!0);l&&Ce.call(br.pointStyle,Pe,e).call(br.translatePoints,c,d).style("opacity",0).transition().style("opacity",1),me.order();var it;ye&&(it=br.makePointStyleFns(Pe)),me.each(function(ct){var Je=Gn.select(this),we=u(Je);qe=br.translatePoint(ct,we,c,d),qe?(br.singlePointStyle(ct,we,Pe,it,e),r.layerClipId&&br.hideOutsideRangePoint(ct,we,c,d,Pe.xcalendar,Pe.ycalendar),Pe.customdata&&Je.classed("plotly-customdata",ct.data!==null&&ct.data!==void 0)):we.remove()}),l?me.exit().transition().style("opacity",0).remove():me.exit().remove(),xe=O.selectAll("g"),me=xe.data(at,Ue),me.enter().append("g").classed("textpoint",!0).append("text"),me.order(),me.each(function(ct){var Je=Gn.select(this),we=u(Je.select("text"));qe=br.translatePoint(ct,we,c,d),qe?r.layerClipId&&br.hideOutsideRangePoint(ct,Je,c,d,Pe.xcalendar,Pe.ycalendar):Je.remove()}),me.selectAll("text").call(br.textPointStyle,Pe,e).each(function(ct){var Je=c.c2p(ct.x),we=d.c2p(ct.y);Gn.select(this).selectAll("tspan.line").each(function(){u(Gn.select(this)).attr({x:Je,y:we})})}),me.exit().remove()}x.datum(a),_.datum(a),Le(x,_,a);var Se=h.cliponaxis===!1,U=Se?null:r.layerClipId;br.setClipUrl(x,U,e),br.setClipUrl(_,U,e)}function Lfe(e,t,r,a,n){var i=r.xaxis,o=r.yaxis,s=Gn.extent(fc.simpleMap(i.range,i.r2c)),l=Gn.extent(fc.simpleMap(o.range,o.r2c)),u=a[0].trace;if(!!Zl.hasMarkers(u)){var c=u.marker.maxdisplayed;if(c!==0){var d=a.filter(function(m){return m.x>=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),h=Math.ceil(d.length/c),p=0;n.forEach(function(m,b){var x=m[0].trace;Zl.hasMarkers(x)&&x.marker.maxdisplayed>0&&b{"use strict";r8.exports={container:"marker",min:"cmin",max:"cmax"}});var n8=I((bwe,a8)=>{"use strict";var ip=tr();a8.exports=function(t,r,a){var n={},i={_fullLayout:a},o=ip.getFromTrace(i,r,"x"),s=ip.getFromTrace(i,r,"y");return n.xLabel=ip.tickText(o,o.c2l(t.x),!0).text,n.yLabel=ip.tickText(s,s.c2l(t.y),!0).text,n}});var w1=I((xwe,i8)=>{"use strict";var b1=Ft(),Xl=Kt(),qfe=bt();function Dfe(e){var t=b1.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var a=b1.select(this),n=r.trace||r[0].trace;x1(a,n,e)}),t.selectAll("g.text").each(function(r){var a=b1.select(this),n=r.trace||r[0].trace;_1(a,n,e)}),t.selectAll("g.trace path.js-line").call(Xl.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(Xl.fillGroupStyle,e),qfe.getComponentMethod("errorbars","style")(t)}function x1(e,t,r){Xl.pointStyle(e.selectAll("path.point"),t,r)}function _1(e,t,r){Xl.textPointStyle(e.selectAll("text"),t,r)}function Pfe(e,t,r){var a=t[0].trace;a.selectedpoints?(Xl.selectedPointStyle(r.selectAll("path.point"),a),Xl.selectedTextStyle(r.selectAll("text"),a)):(x1(r,a,e),_1(r,a,e))}i8.exports={style:Dfe,stylePoints:x1,styleText:_1,styleOnSelect:Pfe}});var s8=I((_we,o8)=>{"use strict";var $l=It(),Rfe=Ja();o8.exports=function(t,r){var a,n;if(t.mode==="lines")return a=t.line.color,a&&$l.opacity(a)?a:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var i=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=i&&$l.opacity(i)?i:o&&$l.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?$l.opacity(n)<.3?$l.addOpacity(n,.3):n:(a=(t.line||{}).color,a&&$l.opacity(a)&&Rfe.hasLines(t)&&t.line.width?a:t.fillcolor)}});var f8=I((wwe,u8)=>{"use strict";var T1=Re(),l8=qi(),Efe=bt(),Ife=s8(),A1=It(),zfe=T1.fillText;u8.exports=function(t,r,a,n){var i=t.cd,o=i[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(a),d=[u,c],h=o.hoveron||"",p=o.mode.indexOf("markers")!==-1?3:.5,g=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(Le){if(g){var Se=s.c2p(Le.xStart),U=s.c2p(Le.xEnd);return u>=Math.min(Se,U)&&u<=Math.max(Se,U)?0:1/0}var J=Math.max(3,Le.mrc||0),O=1-1/J,oe=Math.abs(s.c2p(Le.x)-u);return oe=Math.min(Se,U)&&c<=Math.max(Se,U)?0:1/0}var J=Math.max(3,Le.mrc||0),O=1-1/J,oe=Math.abs(l.c2p(Le.y)-c);return oeke!=Ae>=ke&&(re=de[ne-1][0],ge=de[ne][0],Ae-ee&&(be=re+(ge-re)*(ke-ee)/(Ae-ee),W=Math.min(W,be),V=Math.max(V,be)));W=Math.max(W,0),V=Math.min(V,s._length);var De=A1.defaultLine;return A1.opacity(o.fillcolor)?De=o.fillcolor:A1.opacity((o.line||{}).color)&&(De=o.line.color),T1.extendFlat(t,{distance:t.maxHoverDistance,x0:W,x1:V,y0:ke,y1:ke,color:De,hovertemplate:!1}),delete t.index,o.text&&!Array.isArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var h8=I((Twe,d8)=>{"use strict";var c8=Ja();d8.exports=function(t,r){var a=t.cd,n=t.xaxis,i=t.yaxis,o=[],s=a[0].trace,l,u,c,d,h=!c8.hasMarkers(s)&&!c8.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";v8.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}});var b8=I((kwe,y8)=>{"use strict";var cc=bt().traceIs,k1=Oy();y8.exports=function(t,r,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nfe(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function Nfe(e,t){if(e.type==="-"){var r=e._id,a=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=a);var i=Ffe(t,r,a);if(!!i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",s=i[o],l={noMultiCategory:!cc(i,"cartesian")||cc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,g8(i,a)){var u=m8(i),c=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(g8(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function m8(e){return{v:"x",h:"y"}[e.orientation||"v"]}function g8(e,t){var r=m8(e),a=cc(e,"box-violin"),n=cc(e._fullInput||{},"candlestick");return a&&!n&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var _8=I((Mwe,x8)=>{"use strict";function jfe(e,t){var r=t.dataAttr||e._id.charAt(0),a={},n,i,o;if(t.axData)n=t.axData;else for(n=[],i=0;i0,s;o&&(s="array");var l=a("categoryorder",s),u;l==="array"&&(u=a("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=jfe(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var A8=I((Swe,T8)=>{"use strict";var w8=Pn().mix,Ofe=gi(),Hfe=Re();T8.exports=function(t,r,a,n){n=n||{};var i=n.dfltColor;function o(S,q){return Hfe.coerce2(t,r,n.attributes,S,q)}var s=o("linecolor",i),l=o("linewidth"),u=a("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=w8(i,n.bgColor,n.blend||Ofe.lightFraction).toRgbString(),d=o("gridcolor",c),h=o("gridwidth"),p=o("griddash"),g=a("showgrid",n.showGrid||!!d||!!h||!!p);if(g||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var m=w8(r.gridcolor,n.bgColor,67).toRgbString(),b=o("minor.gridcolor",m),x=o("minor.gridwidth",r.gridwidth||1),_=o("minor.griddash",r.griddash||"solid"),k=a("minor.showgrid",!!b||!!x||!!_);k||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var w=o("zerolinecolor",i),A=o("zerolinewidth"),L=a("zeroline",n.showGrid||!!w||!!A);L||(delete r.zerolinecolor,delete r.zerolinewidth)}}});var S1=I((Cwe,q8)=>{"use strict";var k8=jt(),Bfe=bt(),dc=Re(),Ufe=ar(),Gfe=In(),M1=ni(),M8=dy(),S8=vy(),Wfe=my(),Vfe=gy(),Yfe=_8(),Zfe=A8(),C8=Rh(),op=ga().WEEKDAY_PATTERN,Xfe=ga().HOUR_PATTERN;q8.exports=function(t,r,a,n,i){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=a("visible",!n.visibleDflt),c=r._template||{},d=r.type||c.type||"-",h;if(d==="date"){var p=Bfe.getComponentMethod("calendars","handleDefaults");p(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}var g="";(!n.noTicklabelposition||d==="multicategory")&&(g=dc.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="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",g.indexOf("inside")!==-1?"hide past domain":d==="category"||d==="multicategory"?"allow":"hide past div"),C8(r,i);var m=!r.isValidRange(t.range);m&&n.reverseDflt&&(m="reversed");var b=a("autorange",m);b&&(d==="linear"||d==="-")&&a("rangemode"),a("range"),r.cleanRange(),Yfe(t,r,a,n),d!=="category"&&!n.noHover&&a("hoverformat");var x=a("color"),_=x!==M1.color.dflt?x:s.color,k=l.label||i._dfltTitle[o];if(Vfe(t,r,a,d,n),!u)return r;a("title.text",k),dc.coerceFont(a,"title.font",{family:s.family,size:dc.bigFont(s.size),color:_}),M8(t,r,a,d);var w=n.hasMinor;if(w&&(Ufe.newContainer(r,"minor"),M8(t,r,a,d,{isMinor:!0})),Wfe(t,r,a,d,n),S8(t,r,a,n),w){var A=n.isMinor;n.isMinor=!0,S8(t,r,a,n),n.isMinor=A}Zfe(t,r,a,{dfltColor:x,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:M1}),w&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&a("mirror"),n.automargin&&a("automargin");var L=d==="multicategory";if(!n.noTickson&&(d==="category"||L)&&(r.ticks||r.showgrid)){var S;L&&(S="boundaries");var q=a("tickson",S);q==="boundaries"&&delete r.ticklabelposition}if(L){var P=a("showdividers");P&&(a("dividercolor"),a("dividerwidth"))}if(d==="date")if(Gfe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:$fe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var E=0;E=2){var o="",s,l;if(i.length===2){for(s=0;s<2;s++)if(l=L8(i[s]),l){o=op;break}}var u=a("pattern",o);if(u===op)for(s=0;s<2;s++)l=L8(i[s]),l&&(t.bounds[s]=i[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=i[s],u){case op:if(!k8(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=i[s]=l;break;case Xfe:if(!k8(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=i[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(i[0]>c[0]&&i[1]{"use strict";var Kfe=jt(),sp=Re();D8.exports=function(t,r,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u,c,d,h;l&&(c=l._domains[s][l._axisMap[r._id]],u=l._anchors[r._id],c&&(d=l[s+"side"].split(" ")[0],h=l.domain[s][d==="right"||d==="top"?1:0])),c=c||[0,1],u=u||(Kfe(t.position)?"free":i[0]||"free"),d=d||(s==="x"?"bottom":"left"),h=h||0;var p=sp.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor");p==="free"&&a("position",h),sp.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");var g=!1;if(o.length&&(g=sp.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!g){var m=a("domain",c);m[0]>m[1]-1/4096&&(r.domain=c),sp.noneOrAll(t.domain,r.domain,c)}return a("layer"),r}});var O8=I((qwe,j8)=>{"use strict";var As=Re(),P8=It(),Jfe=Mi().isUnifiedHover,ece=H0(),R8=ar(),tce=sl(),E8=ni(),rce=b8(),I8=S1(),ace=Cf(),z8=C1(),L1=Hr(),vo=L1.id2name,N8=L1.name2id,nce=ga().AX_ID_PATTERN,F8=bt(),hc=F8.traceIs,q1=F8.getComponentMethod;function lp(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}j8.exports=function(t,r,a){var n=r.autotypenumbers,i={},o={},s={},l={},u={},c={},d={},h={},p={},g={},m,b;for(m=0;m{"use strict";var ice=Ft(),H8=bt(),up=Re(),rn=Kt(),fp=tr();B8.exports=function(t,r,a,n){var i=t._fullLayout;if(r.length===0){fp.redrawComponents(t);return}function o(b){var x=b.xaxis,_=b.yaxis;i._defs.select("#"+b.clipId+"> rect").call(rn.setTranslate,0,0).call(rn.setScale,1,1),b.plot.call(rn.setTranslate,x._offset,_._offset).call(rn.setScale,1,1);var k=b.plot.selectAll(".scatterlayer .trace");k.selectAll(".point").call(rn.setPointGroupScale,1,1),k.selectAll(".textpoint").call(rn.setTextPointsScale,1,1),k.call(rn.hideOutsideRangePoints,b)}function s(b,x){var _=b.plotinfo,k=_.xaxis,w=_.yaxis,A=k._length,L=w._length,S=!!b.xr1,q=!!b.yr1,P=[];if(S){var E=up.simpleMap(b.xr0,k.r2l),F=up.simpleMap(b.xr1,k.r2l),N=E[1]-E[0],j=F[1]-F[0];P[0]=(E[0]*(1-x)+x*F[0]-E[0])/(E[1]-E[0])*A,P[2]=A*(1-x+x*j/N),k.range[0]=k.l2r(E[0]*(1-x)+x*F[0]),k.range[1]=k.l2r(E[1]*(1-x)+x*F[1])}else P[0]=0,P[2]=A;if(q){var B=up.simpleMap(b.yr0,w.r2l),W=up.simpleMap(b.yr1,w.r2l),V=B[1]-B[0],Y=W[1]-W[0];P[1]=(B[1]*(1-x)+x*W[1]-B[1])/(B[0]-B[1])*L,P[3]=L*(1-x+x*Y/V),w.range[0]=k.l2r(B[0]*(1-x)+x*W[0]),w.range[1]=w.l2r(B[1]*(1-x)+x*W[1])}else P[1]=0,P[3]=L;fp.drawOne(t,k,{skipTitle:!0}),fp.drawOne(t,w,{skipTitle:!0}),fp.redrawComponents(t,[k._id,w._id]);var Z=S?A/P[2]:1,$=q?L/P[3]:1,ne=S?P[0]:0,te=q?P[1]:0,de=S?P[0]/P[2]*A:0,be=q?P[1]/P[3]*L:0,re=k._offset-de,ge=w._offset-be;_.clipRect.call(rn.setTranslate,ne,te).call(rn.setScale,1/Z,1/$),_.plot.call(rn.setTranslate,re,ge).call(rn.setScale,Z,$),rn.setPointGroupScale(_.zoomScalePts,1/Z,1/$),rn.setTextPointsScale(_.zoomScaleTxt,1/Z,1/$)}var l;n&&(l=n());function u(){for(var b={},x=0;xa.duration?(u(),p=window.cancelAnimationFrame(m)):p=window.requestAnimationFrame(m)}return d=Date.now(),p=window.requestAnimationFrame(m),Promise.resolve()}});var vp=I(fa=>{"use strict";var cp=Ft(),G8=bt(),dp=Re(),oce=Nr(),sce=Kt(),W8=Wg().getModuleCalcData,po=Hr(),di=ga(),lce=Jo(),Qt=dp.ensureSingle;function hp(e,t,r){return dp.ensureSingle(e,t,r,function(a){a.datum(r)})}fa.name="cartesian";fa.attr=["xaxis","yaxis"];fa.idRoot=["x","y"];fa.idRegex=di.idRegex;fa.attrRegex=di.attrRegex;fa.attributes=p8();fa.layoutAttributes=ni();fa.supplyLayoutDefaults=O8();fa.transitionAxes=U8();fa.finalizeSubplots=function(e,t){var r=t._subplots,a=r.xaxis,n=r.yaxis,i=r.cartesian,o=i.concat(r.gl2d||[]),s={},l={},u,c,d;for(u=0;u{"use strict";var pp=Ja();$8.exports={hasLines:pp.hasLines,hasMarkers:pp.hasMarkers,hasText:pp.hasText,isBubble:pp.isBubble,attributes:Bl(),supplyDefaults:_z(),crossTraceDefaults:Tz(),calc:p1().calc,crossTraceCalc:Hz(),arraysToCalcdata:u1(),plot:t8(),colorbar:y1(),formatLabels:n8(),style:w1().style,styleOnSelect:w1().styleOnSelect,hoverPoints:f8(),selectPoints:h8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vp(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}});var J8=I((Ewe,K8)=>{"use strict";K8.exports={moduleType:"component",name:"legend",layoutAttributes:g0(),supplyLayoutDefaults:x0(),draw:z0(),style:q0()}});var rN=I((Iwe,tN)=>{"use strict";var fce=Ft(),cce=It(),eN=qb(),D1=Re(),dce=D1.strScale,hce=D1.strRotate,vce=D1.strTranslate;tN.exports=function(t,r,a){var n=t.node(),i=eN[a.arrowhead||0],o=eN[a.startarrowhead||0],s=(a.arrowwidth||1)*(a.arrowsize||1),l=(a.arrowwidth||1)*(a.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,d=i.backoff*s+a.standoff,h=o.backoff*l+a.startstandoff,p,g,m,b;if(n.nodeName==="line"){p={x:+t.attr("x1"),y:+t.attr("y1")},g={x:+t.attr("x2"),y:+t.attr("y2")};var x=p.x-g.x,_=p.y-g.y;if(m=Math.atan2(_,x),b=m+Math.PI,d&&h&&d+h>Math.sqrt(x*x+_*_)){B();return}if(d){if(d*d>x*x+_*_){B();return}var k=d*Math.cos(m),w=d*Math.sin(m);g.x+=k,g.y+=w,t.attr({x2:g.x,y2:g.y})}if(h){if(h*h>x*x+_*_){B();return}var A=h*Math.cos(m),L=h*Math.sin(m);p.x-=A,p.y-=L,t.attr({x1:p.x,y1:p.y})}}else if(n.nodeName==="path"){var S=n.getTotalLength(),q="";if(S{"use strict";var aN=Ft(),P1=bt(),pce=Nr(),mo=Re(),R1=mo.strTranslate,vc=tr(),ks=It(),zi=Kt(),nN=qi(),E1=Ga(),I1=oo(),pc=Nn(),mce=ar().arrayEditor,gce=rN();sN.exports={draw:yce,drawOne:iN,drawRaw:oN};function yce(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?dt="right":dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dt]}for(var Se=!1,U=["x","y"],J=0;J1)&&(me===oe?(Je=xe.r2fraction(t["a"+O]),(Je<0||Je>1)&&(Se=!0)):Se=!0),ft=xe._offset+xe.r2p(t[O]),Ce=.5}else{var we=ct==="domain";O==="x"?(se=t[O],ft=we?xe._offset+xe._length*se:ft=s.l+s.w*se):(se=1-t[O],ft=we?xe._offset+xe._length*se:ft=s.t+s.h*se),Ce=t.showarrow?.5:se}if(t.showarrow){at.head=ft;var Me=t["a"+O];if(it=Pe*Le(.5,t.xanchor)-ye*Le(.5,t.yanchor),me===oe){var Ye=vc.getRefType(me);Ye==="domain"?(O==="y"&&(Me=1-Me),at.tail=xe._offset+xe._length*Me):Ye==="paper"?O==="y"?(Me=1-Me,at.tail=s.t+s.h*Me):at.tail=s.l+s.w*Me:at.tail=xe._offset+xe.r2p(Me),wt=it}else at.tail=ft+Me,wt=it+Me;at.text=at.tail+it;var je=o[O==="x"?"width":"height"];if(oe==="paper"&&(at.head=mo.constrain(at.head,1,je-1)),me==="pixel"){var ze=-Math.max(at.tail-3,at.text),Ge=Math.min(at.tail+3,at.text)-je;ze>0?(at.tail+=ze,at.text+=ze):Ge>0&&(at.tail-=Ge,at.text-=Ge)}at.tail+=nt,at.head+=nt}else it=rt*Le(Ce,Ue),wt=it,at.text=ft+it;at.text+=nt,it+=nt,wt+=nt,t["_"+O+"padplus"]=rt/2+wt,t["_"+O+"padminus"]=rt/2-wt,t["_"+O+"size"]=rt,t["_"+O+"shift"]=it}if(Se){S.remove();return}var mt=0,Tt=0;if(t.align!=="left"&&(mt=(ee-re)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Tt=(Ae-ge)*(t.valign==="middle"?.5:1)),de)te.select("svg").attr({x:E+mt-1,y:E+Tt}).call(zi.setClipUrl,N?m:null,e);else{var ot=E+Tt-be.top,Ne=E+mt-be.left;V.call(E1.positionText,Ne,ot).call(zi.setClipUrl,N?m:null,e)}j.select("rect").call(zi.setRect,E,E,ee,Ae),F.call(zi.setRect,q/2,q/2,ke-q,De-q),S.call(zi.setTranslate,Math.round(b.x.text-ke/2),Math.round(b.y.text-De/2)),k.attr({transform:"rotate("+x+","+b.x.text+","+b.y.text+")"});var et=function(st,dt){_.selectAll(".annotation-arrow-g").remove();var vt=b.x.head,pt=b.y.head,ae=b.x.tail+st,_e=b.y.tail+dt,Te=b.x.text+st,Fe=b.y.text+dt,Et=mo.rotationXYMatrix(x,Te,Fe),pr=mo.apply2DTransform(Et),Vr=mo.apply2DTransform2(Et),Er=+F.attr("width"),hr=+F.attr("height"),ca=Te-.5*Er,Qn=ca+Er,ia=Fe-.5*hr,Xa=ia+hr,Cn=[[ca,ia,ca,Xa],[ca,Xa,Qn,Xa],[Qn,Xa,Qn,ia],[Qn,ia,ca,ia]].map(Vr);if(!Cn.reduce(function(mr,Qr){return mr^!!mo.segmentsIntersect(vt,pt,vt+1e6,pt+1e6,Qr[0],Qr[1],Qr[2],Qr[3])},!1)){Cn.forEach(function(mr){var Qr=mo.segmentsIntersect(ae,_e,vt,pt,mr[0],mr[1],mr[2],mr[3]);Qr&&(ae=Qr.x,_e=Qr.y)});var Aa=t.arrowwidth,hi=t.arrowcolor,Co=t.arrowside,$a=_.append("g").style({opacity:ks.opacity(hi)}).classed("annotation-arrow-g",!0),ka=$a.append("path").attr("d","M"+ae+","+_e+"L"+vt+","+pt).style("stroke-width",Aa+"px").call(ks.stroke,ks.rgb(hi));if(gce(ka,Co,t),l.annotationPosition&&ka.node().parentNode&&!a){var Ma=vt,Sa=pt;if(t.standoff){var da=Math.sqrt(Math.pow(vt-ae,2)+Math.pow(pt-_e,2));Ma+=t.standoff*(ae-vt)/da,Sa+=t.standoff*(_e-pt)/da}var Fa=$a.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ae-Ma)+","+(_e-Sa),transform:R1(Ma,Sa)}).style("stroke-width",Aa+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),vi,Yr;pc.init({element:Fa.node(),gd:e,prepFn:function(){var mr=zi.getTranslate(S);vi=mr.x,Yr=mr.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(mr,Qr){var Lo=pr(vi,Yr),qo=Lo[0]+mr,Hi=Lo[1]+Qr;S.call(zi.setTranslate,qo,Hi),p("x",go(n,mr,"x",s,t)),p("y",go(i,Qr,"y",s,t)),t.axref===t.xref&&p("ax",go(n,mr,"ax",s,t)),t.ayref===t.yref&&p("ay",go(i,Qr,"ay",s,t)),$a.attr("transform",R1(mr,Qr)),k.attr({transform:"rotate("+x+","+qo+","+Hi+")"})},doneFn:function(){P1.call("_guiRelayout",e,g());var mr=document.querySelector(".js-notes-box-panel");mr&&mr.redraw(mr.selectedObj)}})}}};if(t.showarrow&&et(0,0),w){var Oe;pc.init({element:S.node(),gd:e,prepFn:function(){Oe=k.attr("transform")},moveFn:function(st,dt){var vt="pointer";if(t.showarrow)t.axref===t.xref?p("ax",go(n,st,"ax",s,t)):p("ax",t.ax+st),t.ayref===t.yref?p("ay",go(i,dt,"ay",s.w,t)):p("ay",t.ay+dt),et(st,dt);else{if(a)return;var pt,ae;if(n)pt=go(n,st,"x",s,t);else{var _e=t._xsize/s.w,Te=t.x+(t._xshift-t.xshift)/s.w-_e/2;pt=pc.align(Te+st/s.w,_e,0,1,t.xanchor)}if(i)ae=go(i,dt,"y",s,t);else{var Fe=t._ysize/s.h,Et=t.y-(t._yshift+t.yshift)/s.h-Fe/2;ae=pc.align(Et-dt/s.h,Fe,0,1,t.yanchor)}p("x",pt),p("y",ae),(!n||!i)&&(vt=pc.getCursor(n?.5:pt,i?.5:ae,t.xanchor,t.yanchor))}k.attr({transform:R1(st,dt)+Oe}),I1(S,vt)},clickFn:function(st,dt){t.captureevents&&e.emit("plotly_clickannotation",L(dt))},doneFn:function(){I1(S),P1.call("_guiRelayout",e,g());var st=document.querySelector(".js-notes-box-panel");st&&st.redraw(st.selectedObj)}})}}l.annotationText?V.call(E1.makeEditable,{delegate:S,gd:e}).call(Y).on("edit",function($){t.text=$,this.call(Y),p("text",$),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),P1.call("_guiRelayout",e,g())}):V.call(Y)}});var hN=I((Nwe,dN)=>{"use strict";var lN=Re(),bce=bt(),uN=ar().arrayEditor;dN.exports={hasClickToShow:xce,onClick:_ce};function xce(e,t){var r=fN(e,t);return r.on.length>0||r.explicitOff.length>0}function _ce(e,t){var r=fN(e,t),a=r.on,n=r.off.concat(r.explicitOff),i={},o=e._fullLayout.annotations,s,l;if(!!(a.length||n.length)){for(s=0;s{"use strict";var vN=Re(),Ql=It();pN.exports=function(t,r,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),s=Ql.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),vN.coerceFont(n,"font",a.font),n("width"),n("align");var c=n("height");if(c&&n("valign"),u){var d=n("arrowside"),h,p;d.indexOf("end")!==-1&&(h=n("arrowhead"),p=n("arrowsize")),d.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",p)),n("arrowcolor",s?r.bordercolor:Ql.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var g=n("hovertext"),m=a.hoverlabel||{};if(g){var b=n("hoverlabel.bgcolor",m.bgcolor||(Ql.opacity(i)?Ql.rgb(i):Ql.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Ql.contrast(b));vN.coerceFont(n,"hoverlabel.font",{family:m.font.family,size:m.font.size,color:m.font.color||x})}n("captureevents",!!g)}});var gN=I((jwe,mN)=>{"use strict";var N1=Re(),Ms=tr(),wce=In(),Tce=z1(),Ace=Hl();mN.exports=function(t,r){wce(t,r,{name:"annotations",handleItemDefaults:kce})};function kce(e,t,r){function a(k,w){return N1.coerce(e,t,Ace,k,w)}var n=a("visible"),i=a("clicktoshow");if(!!(n||i)){Tce(e,t,r,a);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var d=s[c],h=Ms.coerceRef(e,t,u,d,"","paper");if(h!=="paper"){var p=Ms.getFromId(u,h);p._annIndices.push(t._index)}if(Ms.coercePosition(t,u,a,h,d,.5),o){var g="a"+d,m=Ms.coerceRef(e,t,u,g,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=t[g]="pixel");var b=m==="pixel"?l[c]:.4;Ms.coercePosition(t,u,a,m,g,b)}a(d+"anchor"),a(d+"shift")}if(N1.noneOrAll(e,t,["x","y"]),o&&N1.noneOrAll(e,t,["ax","ay"]),i){var x=a("xclick"),_=a("yclick");t._xclick=x===void 0?t.x:Ms.cleanPosition(x,u,t.xref),t._yclick=_===void 0?t.y:Ms.cleanPosition(_,u,t.yref)}}}});var xN=I((Owe,bN)=>{"use strict";var F1=Re(),Ss=tr(),Mce=mp().draw;bN.exports=function(t){var r=t._fullLayout,a=F1.filterVisible(r.annotations);if(a.length&&t._fullData.length)return F1.syncOrAsync([Mce,Sce],t)};function Sce(e){var t=e._fullLayout;F1.filterVisible(t.annotations).forEach(function(r){var a=Ss.getFromId(e,r.xref),n=Ss.getFromId(e,r.yref),i=Ss.getRefType(r.xref),o=Ss.getRefType(r.yref);r._extremes={},i==="range"&&yN(r,a),o==="range"&&yN(r,n)})}function yN(e,t){var r=t._id,a=r.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],s=e["a"+a+"ref"],l=e["_"+a+"padplus"],u=e["_"+a+"padminus"],c={x:1,y:-1}[a]*e[a+"shift"],d=3*e.arrowsize*e.arrowwidth||0,h=d+c,p=d-c,g=3*e.startarrowsize*e.arrowwidth||0,m=g+c,b=g-c,x;if(s===o){var _=Ss.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:p}),k=Ss.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,b)});x={min:[_.min[0],k.min[0]],max:[_.max[0],k.max[0]]}}else m=i?m+i:m,b=i?b-i:b,x=Ss.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,m),ppadminus:Math.max(u,p,b)});e._extremes[r]=x}});var wN=I((Hwe,_N)=>{"use strict";var Cce=jt(),Lce=Rd();_N.exports=function(t,r,a,n){r=r||{};var i=a==="log"&&r.type==="linear",o=a==="linear"&&r.type==="log";if(!(i||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function d(p){var g=u[p],m=null;i?m=Lce(g,r.range):m=Math.pow(10,g),Cce(m)||(m=null),n(c+p,m)}for(var h=0;h{"use strict";var j1=mp(),TN=hN();AN.exports={moduleType:"component",name:"annotations",layoutAttributes:Hl(),supplyLayoutDefaults:gN(),includeBasePlot:Zf()("annotations"),calcAutorange:xN(),draw:j1.draw,drawOne:j1.drawOne,drawRaw:j1.drawRaw,hasClickToShow:TN.hasClickToShow,onClick:TN.onClick,convertCoords:wN()}});var gp=I((Uwe,MN)=>{"use strict";var rr=Hl(),qce=Ai().overrideAll,Dce=ar().templatedArray;MN.exports=qce(Dce("annotation",{visible:rr.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:rr.xanchor,xshift:rr.xshift,yanchor:rr.yanchor,yshift:rr.yshift,text:rr.text,textangle:rr.textangle,font:rr.font,width:rr.width,height:rr.height,opacity:rr.opacity,align:rr.align,valign:rr.valign,bgcolor:rr.bgcolor,bordercolor:rr.bordercolor,borderpad:rr.borderpad,borderwidth:rr.borderwidth,showarrow:rr.showarrow,arrowcolor:rr.arrowcolor,arrowhead:rr.arrowhead,startarrowhead:rr.startarrowhead,arrowside:rr.arrowside,arrowsize:rr.arrowsize,startarrowsize:rr.startarrowsize,arrowwidth:rr.arrowwidth,standoff:rr.standoff,startstandoff:rr.startstandoff,hovertext:rr.hovertext,hoverlabel:rr.hoverlabel,captureevents:rr.captureevents}),"calc","from-root")});var CN=I((Gwe,SN)=>{"use strict";var O1=Re(),Pce=tr(),Rce=In(),Ece=z1(),Ice=gp();SN.exports=function(t,r,a){Rce(t,r,{name:"annotations",handleItemDefaults:zce,fullLayout:a.fullLayout})};function zce(e,t,r,a){function n(s,l){return O1.coerce(e,t,Ice,s,l)}function i(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],Pce.coercePosition(t,u,n,s,s,.5)}var o=n("visible");!o||(Ece(e,t,a.fullLayout,n),i("x"),i("y"),i("z"),O1.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),O1.noneOrAll(e,t,["ax","ay"])))}});var PN=I((Wwe,DN)=>{"use strict";var LN=Re(),qN=tr();DN.exports=function(t){for(var r=t.fullSceneLayout,a=r.annotations,n=0;n{"use strict";function H1(e,t){var r=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)r[n]+=e[4*a+n]*t[a];return r}function Fce(e,t){var r=H1(e.projection,H1(e.view,H1(e.model,[t[0],t[1],t[2],1])));return r}RN.exports=Fce});var zN=I((Ywe,IN)=>{"use strict";var jce=mp().drawRaw,Oce=EN(),Hce=["x","y","z"];IN.exports=function(t){for(var r=t.fullSceneLayout,a=t.dataScale,n=r.annotations,i=0;i1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+i+'"]').remove():(o._pdata=Oce(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*a[0],r.yaxis.r2l(o.y)*a[1],r.zaxis.r2l(o.z)*a[2]]),jce(t.graphDiv,o,i,t.id,o._xa,o._ya))}}});var jN=I((Zwe,FN)=>{"use strict";var Bce=bt(),NN=Re();FN.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:gp()}}},layoutAttributes:gp(),handleDefaults:CN(),includeBasePlot:Uce,convert:PN(),draw:zN()};function Uce(e,t){var r=Bce.subplotsRegistry.gl3d;if(!!r)for(var a=r.attrRegex,n=Object.keys(e),i=0;i{"use strict";var ON=Hl(),HN=Bl().line,Gce=yi().dash,mc=ra().extendFlat,Wce=ar().templatedArray,BN=Vf();UN.exports=Wce("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:mc({},ON.xref,{description:["Sets the shape's x coordinate axis.",BN.axisRefDescription("x","left","right")].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:mc({},ON.yref,{description:["Sets the shape's y coordinate axis.",BN.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:mc({},HN.color,{editType:"arraydraw"}),width:mc({},HN.width,{editType:"calc+arraydraw"}),dash:mc({},Gce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},editType:"arraydraw"})});var VN=I(($we,WN)=>{"use strict";var U1=Re(),Kl=tr(),Vce=In(),Yce=B1(),GN=ys();WN.exports=function(t,r){Vce(t,r,{name:"shapes",handleItemDefaults:Zce})};function Zce(e,t,r){function a(B,W){return U1.coerce(e,t,Yce,B,W)}var n=a("visible");if(!!n){var i=a("path"),o=i?"path":"rect",s=a("type",o),l=s!=="path";l&&delete t.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),d=a("ysizemode"),h=["x","y"],p=0;p<2;p++){var g=h[p],m=g+"anchor",b=g==="x"?c:d,x={_fullLayout:r},_,k,w,A=Kl.coerceRef(e,t,x,g,void 0,"paper"),L=Kl.getRefType(A);if(L==="range"?(_=Kl.getFromId(x,A),_._shapeIndices.push(t._index),w=GN.rangeToShapePosition(_),k=GN.shapePositionToRange(_)):k=w=U1.identity,l){var S=.25,q=.75,P=g+"0",E=g+"1",F=e[P],N=e[E];e[P]=k(e[P],!0),e[E]=k(e[E],!0),b==="pixel"?(a(P,0),a(E,10)):(Kl.coercePosition(t,x,a,A,P,S),Kl.coercePosition(t,x,a,A,E,q)),t[P]=w(t[P]),t[E]=w(t[E]),e[P]=F,e[E]=N}if(b==="pixel"){var j=e[m];e[m]=k(e[m],!0),Kl.coercePosition(t,x,a,A,m,.25),t[m]=w(t[m]),e[m]=j}}l&&U1.noneOrAll(e,t,["x0","x1","y0","y1"])}}});var ZN=I((Qwe,YN)=>{"use strict";var Xce=It();YN.exports=function(t,r,a){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=(t||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Xce.contrast(i)),a("newshape.line.dash")}a("activeshape.fillcolor"),a("activeshape.opacity")}});var JN=I((Kwe,KN)=>{"use strict";var G1=Re(),Jl=tr(),eu=kf(),XN=ys();KN.exports=function(t){var r=t._fullLayout,a=G1.filterVisible(r.shapes);if(!(!a.length||!t._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:s?d:h,ppadminus:s?h:d}}else return{ppad:o}}function QN(e,t,r,a,n){var i=e.type==="category"||e.type==="multicategory"?e.r2c:e.d2c;if(t!==void 0)return[i(t),i(r)];if(!!a){var o=1/0,s=-1/0,l=a.match(eu.segmentRE),u,c,d,h,p;for(e.type==="date"&&(i=XN.decodeDate(i)),u=0;us&&(s=p)));if(s>=o)return[o,s]}}});var rF=I((Jwe,tF)=>{"use strict";var eF=J0();tF.exports={moduleType:"component",name:"shapes",layoutAttributes:B1(),supplyLayoutDefaults:VN(),supplyDrawNewShapeDefaults:ZN(),includeBasePlot:Zf()("shapes"),calcAutorange:JN(),draw:eF.draw,drawOne:eF.drawOne}});var W1=I((e2e,iF)=>{"use strict";var aF=ga(),Kce=ar().templatedArray,nF=Vf();iF.exports=Kce("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",aF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",nF.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",aF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",nF.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})});var sF=I((t2e,oF)=>{"use strict";var Jce=Re(),V1=tr(),ede=In(),tde=W1(),rde="images";oF.exports=function(t,r){var a={name:rde,handleItemDefaults:ade};ede(t,r,a)};function ade(e,t,r){function a(h,p){return Jce.coerce(e,t,tde,h,p)}var n=a("source"),i=a("visible",!!n);if(!i)return t;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=V1.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var d=V1.getFromId(o,c);d._imgIndices.push(t._index)}V1.coercePosition(t,o,a,c,u,0)}return t}});var cF=I((r2e,fF)=>{"use strict";var lF=Ft(),nde=Kt(),tu=tr(),uF=Hr(),ide=Jo();fF.exports=function(t){var r=t._fullLayout,a=[],n={},i=[],o,s;for(s=0;s{"use strict";var dF=jt(),ode=Rd();hF.exports=function(t,r,a,n){r=r||{};var i=a==="log"&&r.type==="linear",o=a==="linear"&&r.type==="log";if(!!(i||o)){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,d=0;d{"use strict";pF.exports={moduleType:"component",name:"images",layoutAttributes:W1(),supplyLayoutDefaults:sF(),includeBasePlot:Zf()("images"),draw:cF(),convertCoords:vF()}});var yp=I((i2e,gF)=>{"use strict";gF.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 Y1=I((o2e,bF)=>{"use strict";var sde=La(),lde=gi(),ude=ra().extendFlat,fde=Ai().overrideAll,cde=Vd(),yF=ar().templatedArray,dde=yF("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});bF.exports=fde(yF("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:dde,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:ude(cde({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:sde({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:lde.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")});var TF=I((s2e,wF)=>{"use strict";var bp=Re(),xF=In(),_F=Y1(),hde=yp(),vde=hde.name,pde=_F.buttons;wF.exports=function(t,r){var a={name:vde,handleItemDefaults:mde};xF(t,r,a)};function mde(e,t,r){function a(o,s){return bp.coerce(e,t,_F,o,s)}var n=xF(e,t,{name:"buttons",handleItemDefaults:gde}),i=a("visible",n.length>0);!i||(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),bp.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),bp.coerceFont(a,"font",r.font),a("bgcolor",r.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function gde(e,t){function r(n,i){return bp.coerce(e,t,pde,n,i)}var a=r("visible",e.method==="skip"||Array.isArray(e.args));a&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var MF=I((l2e,kF)=>{"use strict";kF.exports=vr;var Wn=Ft(),AF=It(),ru=Kt(),xp=Re();function vr(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}vr.barWidth=2;vr.barLength=20;vr.barRadius=2;vr.barPad=1;vr.barColor="#808BA4";vr.prototype.enable=function(t,r,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,d=this.position.direction,h=d==="down",p=d==="left",g=d==="right",m=d==="up",b=l,x=c,_,k,w,A;!h&&!p&&!g&&!m&&(this.position.direction="down",h=!0);var L=h||m;L?(_=s,k=_+b,h?(w=u,A=Math.min(w+x,o),x=A-w):(A=u+x,w=Math.max(A-x,0),x=A-w)):(w=u,A=w+x,p?(k=s+b,_=Math.max(k-b,0),b=k-_):(_=s,k=Math.min(_+b,i),b=k-_)),this._box={l:_,t:w,w:b,h:x};var S=l>b,q=vr.barLength+2*vr.barPad,P=vr.barWidth+2*vr.barPad,E=s,F=u+c;F+P>o&&(F=o-P);var N=this.container.selectAll("rect.scrollbar-horizontal").data(S?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(AF.fill,vr.barColor),S?(this.hbar=N.attr({rx:vr.barRadius,ry:vr.barRadius,x:E,y:F,width:q,height:P}),this._hbarXMin=E+q/2,this._hbarTranslateMax=b-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var j=c>x,B=vr.barWidth+2*vr.barPad,W=vr.barLength+2*vr.barPad,V=s+l,Y=u;V+B>i&&(V=i-B);var Z=this.container.selectAll("rect.scrollbar-vertical").data(j?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(AF.fill,vr.barColor),j?(this.vbar=Z.attr({rx:vr.barRadius,ry:vr.barRadius,x:V,y:Y,width:B,height:W}),this._vbarYMin=Y+W/2,this._vbarTranslateMax=x-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var $=this.id,ne=_-.5,te=j?k+B+.5:k+.5,de=w-.5,be=S?A+P+.5:A+.5,re=n._topdefs.selectAll("#"+$).data(S||j?[0]:[]);if(re.exit().remove(),re.enter().append("clipPath").attr("id",$).append("rect"),S||j?(this._clipRect=re.select("rect").attr({x:Math.floor(ne),y:Math.floor(de),width:Math.ceil(te)-Math.floor(ne),height:Math.ceil(be)-Math.floor(de)}),this.container.call(ru.setClipUrl,$,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ru.setClipUrl,null),delete this._clipRect),S||j){var ge=Wn.behavior.drag().on("dragstart",function(){Wn.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ge);var ee=Wn.behavior.drag().on("dragstart",function(){Wn.event.sourceEvent.preventDefault(),Wn.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));S&&this.hbar.on(".drag",null).call(ee),j&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(r,a)};vr.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ru.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)};vr.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Wn.event.dx),this.vbar&&(r-=Wn.event.dy),this.setTranslate(t,r)};vr.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Wn.event.deltaY),this.vbar&&(r+=Wn.event.deltaY),this.setTranslate(t,r)};vr.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var a=t+this._hbarXMin,n=a+this._hbarTranslateMax,i=xp.constrain(Wn.event.x,a,n),o=(i-a)/(n-a),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=xp.constrain(Wn.event.y,l,u),d=(c-l)/(u-l),h=this.position.h-this._box.h;r=d*h}this.setTranslate(t,r)};vr.prototype.setTranslate=function(t,r){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=xp.constrain(t||0,0,a),r=xp.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(ru.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var i=t/a;this.hbar.call(ru.setTranslate,t+i*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(ru.setTranslate,t,r+o*this._vbarTranslateMax)}}});var zF=I((u2e,IF)=>{"use strict";var au=Ft(),gc=Nr(),yc=It(),nu=Kt(),an=Re(),_p=Ga(),yde=ar().arrayEditor,SF=qa().LINE_SPACING,_t=yp(),bde=MF();IF.exports=function(t){var r=t._fullLayout,a=an.filterVisible(r[_t.name]);function n(h){gc.autoMargin(t,RF(h))}var i=r._menulayer.selectAll("g."+_t.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_t.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){au.select(this).selectAll("g."+_t.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+_t.headerGroupClassName).data(a,xde);o.enter().append("g").classed(_t.headerGroupClassName,!0);for(var s=an.ensureSingle(i,"g",_t.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var Sde=yp();NF.exports={moduleType:"component",name:Sde.name,layoutAttributes:Y1(),supplyLayoutDefaults:TF(),draw:zF()}});var xc=I((c2e,jF)=>{"use strict";jF.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 Q1=I((d2e,BF)=>{"use strict";var OF=La(),Cde=Vd(),Lde=ra().extendDeepAll,qde=Ai().overrideAll,Dde=Zu(),HF=ar().templatedArray,Cs=xc(),Pde=HF("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});BF.exports=qde(HF("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:Pde,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:Lde(Cde({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:Dde.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:OF({description:"Sets the font of the current value label text."})},font:OF({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:Cs.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:Cs.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:Cs.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:Cs.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:Cs.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:Cs.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:Cs.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")});var VF=I((h2e,WF)=>{"use strict";var iu=Re(),UF=In(),GF=Q1(),Rde=xc(),Ede=Rde.name,Ide=GF.steps;WF.exports=function(t,r){UF(t,r,{name:Ede,handleItemDefaults:zde})};function zde(e,t,r){function a(d,h){return iu.coerce(e,t,GF,d,h)}for(var n=UF(e,t,{name:"steps",handleItemDefaults:Nde}),i=0,o=0;o{"use strict";var Vn=Ft(),wp=Nr(),yo=It(),Yn=Kt(),nn=Re(),Fde=nn.strTranslate,_c=Ga(),jde=ar().arrayEditor,Rt=xc(),K1=qa(),YF=K1.LINE_SPACING,J1=K1.FROM_TL,ex=K1.FROM_BR;t7.exports=function(t){var r=t._fullLayout,a=Ode(r,t),n=r._infolayer.selectAll("g."+Rt.containerClassName).data(a.length>0?[0]:[]);n.enter().append("g").classed(Rt.containerClassName,!0).style("cursor","ew-resize");function i(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),wp.autoMargin(t,ZF(u))}if(n.exit().each(function(){Vn.select(this).selectAll("g."+Rt.groupClassName).each(i)}).remove(),a.length!==0){var o=n.selectAll("g."+Rt.groupClassName).data(a,Hde);o.enter().append("g").classed(Rt.groupClassName,!0),o.exit().each(i).remove();for(var s=0;s0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Fde(o-Rt.gripWidth*.5,t._dims.currentValueTotalHeight))}}function tx(e,t){var r=e._dims;return r.inputAreaStart+Rt.stepInset+(r.inputAreaLength-2*Rt.stepInset)*Math.min(1,Math.max(0,t))}function e7(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Rt.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Rt.stepInset-2*r.inputAreaStart)))}function Zde(e,t,r){var a=r._dims,n=nn.ensureSingle(e,"rect",Rt.railTouchRectClass,function(i){i.call(KF,t,e,r).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Rt.tickOffset+r.ticklen+a.labelHeight)}).call(yo.fill,r.bgcolor).attr("opacity",0),Yn.setTranslate(n,0,a.currentValueTotalHeight)}function Xde(e,t){var r=t._dims,a=r.inputAreaLength-Rt.railInset*2,n=nn.ensureSingle(e,"rect",Rt.railRectClass);n.attr({width:a,height:Rt.railWidth,rx:Rt.railRadius,ry:Rt.railRadius,"shape-rendering":"crispEdges"}).call(yo.stroke,t.bordercolor).call(yo.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Yn.setTranslate(n,Rt.railInset,(r.inputAreaWidth-Rt.railWidth)*.5+r.currentValueTotalHeight)}});var n7=I((p2e,a7)=>{"use strict";var $de=xc();a7.exports={moduleType:"component",name:$de.name,layoutAttributes:Q1(),supplyLayoutDefaults:VF(),draw:r7()}});var Ap=I((m2e,o7)=>{"use strict";var i7=gi();o7.exports={bgcolor:{valType:"color",dflt:i7.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:i7.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}});var rx=I((g2e,s7)=>{"use strict";s7.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}});var kp=I((y2e,l7)=>{"use strict";l7.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 c7=I(Sp=>{"use strict";var Qde=Hr(),Kde=Ga(),u7=kp(),Jde=qa().LINE_SPACING,Mp=u7.name;function f7(e){var t=e&&e[Mp];return t&&t.visible}Sp.isVisible=f7;Sp.makeData=function(e){var t=Qde.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var n=0;n{"use strict";var Cp=Re(),d7=ar(),h7=Hr(),ehe=Ap(),the=rx();v7.exports=function(t,r,a){var n=t[a],i=r[a];if(!(n.rangeslider||r._requestRangeslider[i._id]))return;Cp.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=d7.newContainer(i,"rangeslider");function l(A,L){return Cp.coerce(o,s,ehe,A,L)}var u,c;function d(A,L){return Cp.coerce(u,c,the,A,L)}var h=l("visible");if(!!h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!i.isValidRange(o.range)),l("range");var p=r._subplots;if(p)for(var g=p.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===h7.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),m=Cp.simpleMap(g,h7.id2name),b=0;b{"use strict";var rhe=Hr().list,ahe=mf().getAutoRange,nhe=kp();m7.exports=function(t){for(var r=rhe(t,"x",!0),a=0;a{"use strict";var Lp=Ft(),ihe=bt(),ohe=Nr(),xr=Re(),qp=xr.strTranslate,y7=Kt(),bo=It(),she=vf(),lhe=vp(),ax=Hr(),uhe=Nn(),fhe=oo(),zt=kp();b7.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,a=0;a=Z.max)V=F[Y+1];else if(W=Z.pmax)V=F[Y+1];else if(W{"use strict";var _he=Re(),whe=Ap(),The=rx(),nx=c7();_7.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:_he.extendFlat({},whe,{yaxis:The})}}},layoutAttributes:Ap(),handleDefaults:p7(),calcAutorange:g7(),draw:x7(),isVisible:nx.isVisible,makeData:nx.makeData,autoMarginOpts:nx.autoMarginOpts}});var Dp=I((A2e,A7)=>{"use strict";var Ahe=La(),T7=gi(),khe=ar().templatedArray,Mhe=khe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});A7.exports={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:Mhe,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:Ahe({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:T7.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:T7.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}});var ix=I((k2e,k7)=>{"use strict";k7.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var C7=I((M2e,S7)=>{"use strict";var Pp=Re(),She=It(),Che=ar(),Lhe=In(),M7=Dp(),ox=ix();S7.exports=function(t,r,a,n,i){var o=t.rangeselector||{},s=Che.newContainer(r,"rangeselector");function l(p,g){return Pp.coerce(o,s,M7,p,g)}var u=Lhe(o,s,{name:"buttons",handleItemDefaults:qhe,calendar:i}),c=l("visible",u.length>0);if(c){var d=Dhe(r,a,n);l("x",d[0]),l("y",d[1]),Pp.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),Pp.coerceFont(l,"font",a.font);var h=l("bgcolor");l("activecolor",She.contrast(h,ox.lightAmount,ox.darkAmount)),l("bordercolor"),l("borderwidth")}};function qhe(e,t,r,a){var n=a.calendar;function i(l,u){return Pp.coerce(e,t,M7.buttons,l,u)}var o=i("visible");if(o){var s=i("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Dhe(e,t,r){for(var a=r.filter(function(s){return t[s].anchor===e._id}),n=0,i=0;i{"use strict";var Phe=tg(),Rhe=Re().titleCase;L7.exports=function(t,r){var a=t._name,n={};if(r.step==="all")n[a+".autorange"]=!0;else{var i=Ehe(t,r);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Ehe(e,t){var r=e.range,a=new Date(e.r2l(r[1])),n=t.step,i=Phe["utc"+Rhe(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+i.offset(a,-o));break;case"todate":var l=i.offset(a,-o);s=e.l2r(+i.ceil(l));break}var u=r[1];return[s,u]}});var F7=I((C2e,N7)=>{"use strict";var Rp=Ft(),Ihe=bt(),zhe=Nr(),D7=It(),P7=Kt(),Ni=Re(),R7=Ni.strTranslate,Ep=Ga(),Nhe=Hr(),sx=qa(),E7=sx.LINE_SPACING,I7=sx.FROM_TL,z7=sx.FROM_BR,lx=ix(),Fhe=q7();N7.exports=function(t){var r=t._fullLayout,a=r._infolayer.selectAll(".rangeselector").data(jhe(t),Ohe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Rp.select(this),o=n,s=o.rangeselector,l=i.selectAll("g.button").data(Ni.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=Rp.select(this),d=Fhe(o,u);u._isActive=Hhe(o,u,d),c.call(ux,s,u),c.call(Uhe,s,u,t),c.on("click",function(){t._dragged||Ihe.call("_guiRelayout",t,d)}),c.on("mouseover",function(){u._isHovered=!0,c.call(ux,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(ux,s,u)})}),Whe(t,l,s,o._name,i)})};function jhe(e){for(var t=Nhe.list(e,"x",!0),r=[],a=0;a{"use strict";j7.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Dp()}}},layoutAttributes:Dp(),handleDefaults:C7(),draw:F7()}});var B7=I(fx=>{"use strict";var H7=ra().extendFlat;fx.attributes=function(e,t){e=e||{},t=t||{};var r={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=t.description?" "+t.description:"",o={x:H7({},r,{description:["Sets the horizontal domain of this ",a,n,"(in plot fraction).",i].join("")}),y:H7({},r,{description:["Sets the vertical domain of this ",a,n,"(in plot fraction).",i].join("")}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",a,n,".",i].join("")},o.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",a,n,".",i].join("")}),o};fx.defaults=function(e,t,r,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Vhe=Re(),Yhe=nl().counter,Zhe=B7().attributes,U7=ga().idRegex,Xhe=ar(),cx={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Yhe("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U7.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U7.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:Zhe({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function Ip(e,t,r){var a=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(a))return a;if(n.length)return n}function $he(e,t){var r=e.grid||{},a=Ip(t,r,"x"),n=Ip(t,r,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(a),s=Array.isArray(n),l=o&&a!==r.xaxes&&s&&n!==r.yaxes,u,c;i?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=n.length),o&&(c=a.length));var d=Xhe.newContainer(t,"grid");function h(L,S){return Vhe.coerce(r,d,cx,L,S)}var p=h("rows",u),g=h("columns",c);if(!(p*g>1)){delete t.grid;return}if(!i&&!o&&!s){var m=h("pattern")==="independent";m&&(i=!0)}d._hasSubplotGrid=i;var b=h("roworder"),x=b==="top to bottom",_=i?.2:.1,k=i?.3:.1,w,A;l&&t._splomGridDflt&&(w=t._splomGridDflt.xside,A=t._splomGridDflt.yside),d._domains={x:G7("x",h,_,w,g),y:G7("y",h,k,A,p,x)}}function G7(e,t,r,a,n,i){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",a);for(var l=new Array(n),u=s[0],c=(s[1]-u)/(n-o),d=c*(1-o),h=0;h{"use strict";Z7.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,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",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}});var Q7=I((R2e,$7)=>{"use strict";var X7=jt(),Khe=bt(),Jhe=Re(),eve=ar(),tve=dx();$7.exports=function(e,t,r,a){var n="error_"+a.axis,i=eve.newContainer(t,n),o=e[n]||{};function s(g,m){return Jhe.coerce(o,i,tve,g,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),d=!0;c!=="sqrt"&&(d=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),d||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),d||s("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var p=t["error_"+a.inherit];(p||{}).visible&&s(h,!(o.color||X7(o.thickness)||X7(o.width)))}(!a.inherit||!i[h])&&(s("color",r),s("thickness"),s("width",Khe.traceIs(t,"gl3d")?0:4))}}});var hx=I((E2e,J7)=>{"use strict";J7.exports=function(t){var r=t.type,a=t.symmetric;if(r==="data"){var n=t.array||[];if(a)return function(u,c){var d=+n[c];return[d,d]};var i=t.arrayminus||[];return function(u,c){var d=+n[c],h=+i[c];return!isNaN(d)||!isNaN(h)?[h||0,d||0]:[NaN,NaN]}}else{var o=K7(r,t.value),s=K7(r,t.valueminus);return a||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function K7(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var r9=I((I2e,t9)=>{"use strict";var vx=jt(),rve=bt(),px=tr(),ave=Re(),nve=hx();t9.exports=function(t){for(var r=t.calcdata,a=0;a{"use strict";var a9=Ft(),xo=jt(),ive=Kt(),ove=Ja();n9.exports=function(t,r,a,n){var i,o=a.xaxis,s=a.yaxis,l=n&&n.duration>0;r.each(function(u){var c=u[0].trace,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(x){return x.id});var g=ove.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(u=[]);var m=a9.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){d.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);l&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),ive.setClipUrl(m,a.layerClipId,t),m.each(function(x){var _=a9.select(this),k=sve(x,o,s);if(!(g&&!x.vis)){var w,A=_.select("path.yerror");if(h.visible&&xo(k.x)&&xo(k.yh)&&xo(k.ys)){var L=h.width;w="M"+(k.x-L)+","+k.yh+"h"+2*L+"m-"+L+",0V"+k.ys,k.noYS||(w+="m-"+L+",0h"+2*L),i=!A.size(),i?A=_.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):l&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",w)}else A.remove();var S=_.select("path.xerror");if(d.visible&&xo(k.y)&&xo(k.xh)&&xo(k.xs)){var q=(d.copy_ystyle?h:d).width;w="M"+k.xh+","+(k.y-q)+"v"+2*q+"m0,-"+q+"H"+k.xs,k.noXS||(w+="m0,-"+q+"v"+2*q),i=!S.size(),i?S=_.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",w)}else S.remove()}})}})};function sve(e,t,r){var a={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(a.yh=r.c2p(e.yh),a.ys=r.c2p(e.ys),xo(a.ys)||(a.noYS=!0,a.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),xo(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0))),a}});var l9=I((N2e,s9)=>{"use strict";var lve=Ft(),o9=It();s9.exports=function(t){t.each(function(r){var a=r[0].trace,n=a.error_y||{},i=a.error_x||{},o=lve.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(o9.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(o9.stroke,i.color)})}});var c9=I((F2e,f9)=>{"use strict";var wc=Re(),u9=Ai().overrideAll,Tc=dx(),Ls={error_x:wc.extendFlat({},Tc),error_y:wc.extendFlat({},Tc)};delete Ls.error_x.copy_zstyle;delete Ls.error_y.copy_zstyle;delete Ls.error_y.copy_ystyle;var Ac={error_x:wc.extendFlat({},Tc),error_y:wc.extendFlat({},Tc),error_z:wc.extendFlat({},Tc)};delete Ac.error_x.copy_ystyle;delete Ac.error_y.copy_ystyle;delete Ac.error_z.copy_ystyle;delete Ac.error_z.copy_zstyle;f9.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ls,bar:Ls,histogram:Ls,scatter3d:u9(Ac,"calc","nested"),scattergl:u9(Ls,"calc","nested")}},supplyDefaults:Q7(),calc:r9(),makeComputeError:hx(),plot:i9(),style:l9(),hoverInfo:uve};function uve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var h9=I((j2e,d9)=>{"use strict";d9.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 x9=I((O2e,b9)=>{"use strict";var _o=Ft(),mx=Pn(),zp=Nr(),v9=bt(),Fi=tr(),Np=Nn(),Sn=Re(),Zn=Sn.strTranslate,p9=ra().extendFlat,gx=oo(),Xn=Kt(),yx=It(),fve=vf(),cve=Ga(),dve=hn().flipScale,hve=S1(),vve=C1(),pve=ni(),bx=qa(),m9=bx.LINE_SPACING,g9=bx.FROM_TL,y9=bx.FROM_BR,dr=h9().cn;function mve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+dr.colorbar).data(gve(e),function(a){return a._id});r.enter().append("g").attr("class",function(a){return a._id}).classed(dr.colorbar,!0),r.each(function(a){var n=_o.select(this);Sn.ensureSingle(n,"rect",dr.cbbg),Sn.ensureSingle(n,"g",dr.cbfills),Sn.ensureSingle(n,"g",dr.cblines),Sn.ensureSingle(n,"g",dr.cbaxis,function(o){o.classed(dr.crisp,!0)}),Sn.ensureSingle(n,"g",dr.cbtitleunshift,function(o){o.append("g").classed(dr.cbtitle,!0)}),Sn.ensureSingle(n,"rect",dr.cboutline);var i=yve(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&bve(n,a,e)}),r.exit().each(function(a){zp.autoMargin(e,a._id)}).remove(),r.order()}function gve(e){var t=e._fullLayout,r=e.calcdata,a=[],n,i,o,s;function l(k){return p9(k,{_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 s.calc=="function"?s.calc(e,o,n):(n._fillgradient=i.reversescale?dve(i.colorscale):i.colorscale,n._zrange=[i[s.min],i[s.max]])}for(var c=0;c1){var De=Math.pow(10,Math.floor(Math.log(ke)/Math.LN10));ee*=De*Sn.roundUp(ke/De,[2,5,10]),(Math.abs(E.start)/E.size+1e-6)%1<2e-6&&(re.tick0=0)}re.dtick=ee}re.domain=a?[de+g/_.h,de+Y-g/_.h]:[de+p/_.w,de+Y-p/_.w],re.setScale(),e.attr("transform",Zn(Math.round(_.l),Math.round(_.t)));var Le=e.select("."+dr.cbtitleunshift).attr("transform",Zn(-Math.round(_.l),-Math.round(_.t))),Se=re.ticklabelposition,U=re.title.font.size,J=e.select("."+dr.cbaxis),O,oe=0,me=0;function xe(Ue,nt){var at={propContainer:re,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+dr.cbtitle)},ft=Ue.charAt(0)==="h"?Ue.substr(1):"h"+Ue;e.selectAll("."+ft+",."+ft+"-math-group").remove(),fve.draw(r,Ue,p9(at,nt||{}))}function qe(){if(a&&ge||!a&&!ge){var Ue,nt;L==="top"&&(Ue=p+_.l+_.w*m,nt=g+_.t+_.h*(1-de-Y)+3+U*.75),L==="bottom"&&(Ue=p+_.l+_.w*m,nt=g+_.t+_.h*(1-de)-3-U*.25),L==="right"&&(nt=g+_.t+_.h*b+3+U*.75,Ue=p+_.l+_.w*de),xe(re._id+"title",{attributes:{x:Ue,y:nt,"text-anchor":a?"start":"middle"}})}}function Pe(){if(a&&!ge||!a&&ge){var Ue=re.position||0,nt=re._offset+re._length/2,at,ft;if(L==="right")ft=nt,at=_.l+_.w*Ue+10+U*(re.showticklabels?1:.5);else if(at=nt,L==="bottom"&&(ft=_.t+_.h*Ue+10+(Se.indexOf("inside")===-1?re.tickfont.size:0)+(re.ticks!=="intside"&&t.ticklen||0)),L==="top"){var wt=A.text.split("
").length;ft=_.t+_.h*Ue+10-B-m9*U*wt}xe((a?"h":"v")+re._id+"title",{avoid:{selection:_o.select(r).selectAll("g."+re._id+"tick"),side:L,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:at,y:ft,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function ye(){if(!a&&!ge||a&&ge){var Ue=e.select("."+dr.cbtitle),nt=Ue.select("text"),at=[-l/2,l/2],ft=Ue.select(".h"+re._id+"title-math-group").node(),wt=15.6;nt.node()&&(wt=parseInt(nt.node().style.fontSize,10)*m9);var se;if(ft?(se=Xn.bBox(ft),me=se.width,oe=se.height,oe>wt&&(at[1]-=(oe-wt)/2)):nt.node()&&!nt.classed(dr.jsPlaceholder)&&(se=Xn.bBox(nt.node()),me=se.width,oe=se.height),a){if(oe){if(oe+=5,L==="top")re.domain[1]-=oe/_.h,at[1]*=-1;else{re.domain[0]+=oe/_.h;var Ce=cve.lineCount(nt);at[1]+=(1-Ce)*wt}Ue.attr("transform",Zn(at[0],at[1])),re.setScale()}}else me&&(L==="right"&&(re.domain[0]+=(me+U/2)/_.w),Ue.attr("transform",Zn(at[0],at[1])),re.setScale())}e.selectAll("."+dr.cbfills+",."+dr.cblines).attr("transform",a?Zn(0,Math.round(_.h*(1-re.domain[1]))):Zn(Math.round(_.w*re.domain[0]),0)),J.attr("transform",a?Zn(0,Math.round(-_.t)):Zn(Math.round(-_.l),0));var it=e.select("."+dr.cbfills).selectAll("rect."+dr.cbfill).attr("style","").data(N);it.enter().append("rect").classed(dr.cbfill,!0).style("stroke","none"),it.exit().remove();var ct=S.map(re.c2p).map(Math.round).sort(function(je,ze){return je-ze});it.each(function(je,ze){var Ge=[ze===0?S[0]:(N[ze]+N[ze-1])/2,ze===N.length-1?S[1]:(N[ze]+N[ze+1])/2].map(re.c2p).map(Math.round);a&&(Ge[1]=Sn.constrain(Ge[1]+(Ge[1]>Ge[0])?1:-1,ct[0],ct[1]));var mt=_o.select(this).attr(a?"x":"y",Z).attr(a?"y":"x",_o.min(Ge)).attr(a?"width":"height",Math.max(B,2)).attr(a?"height":"width",Math.max(_o.max(Ge)-_o.min(Ge),2));if(t._fillgradient)Xn.gradient(mt,r,t._id,a?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Tt=P(je).replace("e-","");mt.attr("fill",mx(Tt).toHexString())}});var Je=e.select("."+dr.cblines).selectAll("path."+dr.cbline).data(w.color&&w.width?j:[]);Je.enter().append("path").classed(dr.cbline,!0),Je.exit().remove(),Je.each(function(je){var ze=Z,Ge=Math.round(re.c2p(je))+w.width/2%1;_o.select(this).attr("d","M"+(a?ze+","+Ge:Ge+","+ze)+(a?"h":"v")+B).call(Xn.lineGroupStyle,w.width,q(je),w.dash)}),J.selectAll("g."+re._id+"tick,path").remove();var we=Z+B+(l||0)/2-(t.ticks==="outside"?1:0),Me=Fi.calcTicks(re),Ye=Fi.getTickSigns(re)[2];return Fi.drawTicks(r,re,{vals:re.ticks==="inside"?Fi.clipEnds(re,Me):Me,layer:J,path:Fi.makeTickPath(re,we,Ye),transFn:Fi.makeTransTickFn(re)}),Fi.drawLabels(r,re,{vals:Me,layer:J,transFn:Fi.makeTransTickLabelFn(re),labelFns:Fi.makeLabelFns(re,we)})}function rt(){var Ue,nt=B+l/2;Se.indexOf("inside")===-1&&(Ue=Xn.bBox(J.node()),nt+=a?Ue.width:Ue.height),O=Le.select("text");var at=0,ft=a&&L==="top",wt=!a&&L==="right",se=0;if(O.node()&&!O.classed(dr.jsPlaceholder)){var Ce,it=Le.select(".h"+re._id+"title-math-group").node();it&&(a&&ge||!a&&!ge)?(Ue=Xn.bBox(it),at=Ue.width,Ce=Ue.height):(Ue=Xn.bBox(Le.node()),at=Ue.right-_.l-(a?Z:be),Ce=Ue.bottom-_.t-(a?be:Z),!a&&L==="top"&&(nt+=Ue.height,se=Ue.height)),wt&&(O.attr("transform",Zn(at/2+U/2,0)),at*=2),nt=Math.max(nt,a?at:Ce)}var ct=(a?p:g)*2+nt+u+l/2,Je=0;!a&&A.text&&h==="bottom"&&b<=0&&(Je=ct/2,ct+=Je,se+=Je),x._hColorbarMoveTitle=Je,x._hColorbarMoveCBTitle=se;var we=u+l;e.select("."+dr.cbbg).attr("x",(a?Z:be)-we/2-(a?p:0)).attr("y",(a?be:Z)-(a?V:g+se-Je)).attr(a?"width":"height",Math.max(ct-Je,2)).attr(a?"height":"width",Math.max(V+we,2)).call(yx.fill,c).call(yx.stroke,t.bordercolor).style("stroke-width",u);var Me=wt?Math.max(at-10,0):0;if(e.selectAll("."+dr.cboutline).attr("x",(a?Z:be+p)+Me).attr("y",(a?be+g-V:Z)+(ft?oe:0)).attr(a?"width":"height",Math.max(B,2)).attr(a?"height":"width",Math.max(V-(a?2*g+oe:2*p+Me),2)).call(yx.stroke,t.outlinecolor).style({fill:"none","stroke-width":l}),e.attr("transform",Zn(_.l-(a?$*ct:0),_.t-(a?0:(1-ne)*ct-se))),!a&&(u||mx(c).getAlpha()&&!mx.equals(x.paper_bgcolor,c))){var Ye=J.selectAll("text"),je=Ye[0].length,ze=e.select("."+dr.cbbg).node(),Ge=Xn.bBox(ze),mt=Xn.getTranslate(e),Tt=2;Ye.each(function(vt,pt){var ae=0,_e=je-1;if(pt===ae||pt===_e){var Te=Xn.bBox(this),Fe=Xn.getTranslate(this),Et;if(pt===_e){var pr=Te.right+Fe.x,Vr=Ge.right+mt.x+be-u-Tt+m;Et=Vr-pr,Et>0&&(Et=0)}else if(pt===ae){var Er=Te.left+Fe.x,hr=Ge.left+mt.x+be+u+Tt;Et=hr-Er,Et<0&&(Et=0)}Et&&(je<3?this.setAttribute("transform","translate("+Et+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ot={},Ne=g9[d],et=y9[d],Oe=g9[h],st=y9[h],dt=ct-B;a?(i==="pixels"?(ot.y=b,ot.t=V*Oe,ot.b=V*st):(ot.t=ot.b=0,ot.yt=b+n*Oe,ot.yb=b-n*st),s==="pixels"?(ot.x=m,ot.l=ct*Ne,ot.r=ct*et):(ot.l=dt*Ne,ot.r=dt*et,ot.xl=m-o*Ne,ot.xr=m+o*et)):(i==="pixels"?(ot.x=m,ot.l=V*Ne,ot.r=V*et):(ot.l=ot.r=0,ot.xl=m+n*Ne,ot.xr=m-n*et),s==="pixels"?(ot.y=1-b,ot.t=ct*Oe,ot.b=ct*st):(ot.t=dt*Oe,ot.b=dt*st,ot.yt=b-o*Oe,ot.yb=b+o*st)),zp.autoMargin(r,t._id,ot)}return Sn.syncOrAsync([zp.previousPromises,qe,ye,Pe,zp.previousPromises,rt],r)}function bve(e,t,r){var a=t.orientation==="v",n=r._fullLayout,i=n._size,o,s,l;Np.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),gx(e)},moveFn:function(u,c){e.attr("transform",o+Zn(u,c)),s=Np.align((a?t._uFrac:t._vFrac)+u/i.w,a?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=Np.align((a?t._vFrac:1-t._uFrac)-c/i.h,a?t._lenFrac:t._thickFrac,0,1,t.yanchor);var d=Np.getCursor(s,l,t.xanchor,t.yanchor);gx(e,d)},doneFn:function(){if(gx(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?v9.call("_guiRestyle",r,u,t._traceIndex):v9.call("_guiRelayout",r,u)}}})}function xve(e,t,r){var a=t._levels,n=[],i=[],o,s,l=a.end+a.size/100,u=a.size,c=1.001*r[0]-.001*r[1],d=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=a.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";_9.exports={moduleType:"component",name:"colorbar",attributes:bh(),supplyDefaults:yy(),draw:x9().draw,hasColorbar:ly()}});var A9=I((B2e,T9)=>{"use strict";T9.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 M9=I((U2e,k9)=>{"use strict";k9.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var _x=I((G2e,q9)=>{"use strict";var wve=bt(),S9=Re(),xx=S9.extendFlat,C9=S9.extendDeep;function L9(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Tve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}q9.exports=function(t,r){var a,n=t.data,i=t.layout,o=C9([],n),s=C9({},i,L9(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(a=0;a{"use strict";var Ave=sh().EventEmitter,kve=bt(),Mve=Re(),D9=ws(),Sve=_x(),Cve=Jv(),Lve=ep();function qve(e,t){var r=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 s=D9.getDelay(n._fullLayout);setTimeout(function(){var l=Cve(n),u=document.createElement("canvas");u.id=Mve.randstr(),r=Lve({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=D9.getRedrawFunc(n);return kve.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(s){r.emit("error",s)}),r}P9.exports=qve});var z9=I((V2e,I9)=>{"use strict";var E9=ws(),Dve={getDelay:E9.getDelay,getRedrawFunc:E9.getRedrawFunc,clone:_x(),toSVG:Jv(),svgToImg:ep(),toImage:R9(),downloadImage:t1()};I9.exports=Dve});var F9=I(ji=>{"use strict";ji.version=Ad().version;eS();kL();var Pve=bt(),kc=ji.register=Pve.register,wx=$I(),N9=Object.keys(wx);for(Fp=0;Fp{"use strict";j9.exports=F9()});var Ax=I((X2e,H9)=>{"use strict";H9.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Mc=I(($2e,W9)=>{"use strict";var Rr=Bl(),B9=yh().axisHoverFormat,Rve=Yf().hovertemplateAttrs,Eve=Yf().texttemplateAttrs,U9=cf(),Ive=La(),G9=Ax(),zve=yi().pattern,qs=ra().extendFlat,kx=Ive({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),Nve=Rr.marker,Fve=Nve.line,jve=qs({},Fve.width,{dflt:0}),Ove=qs({width:jve,editType:"calc"},U9("marker.line")),Hve=qs({line:Ove,editType:"calc"},U9("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:zve});W9.exports={x:Rr.x,x0:Rr.x0,dx:Rr.dx,y:Rr.y,y0:Rr.y0,dy:Rr.dy,xperiod:Rr.xperiod,yperiod:Rr.yperiod,xperiod0:Rr.xperiod0,yperiod0:Rr.yperiod0,xperiodalignment:Rr.xperiodalignment,yperiodalignment:Rr.yperiodalignment,xhoverformat:B9("x"),yhoverformat:B9("y"),text:Rr.text,texttemplate:Eve({editType:"plot"},{keys:G9.eventDataKeys}),hovertext:Rr.hovertext,hovertemplate:Rve({},{keys:G9.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:qs({},kx,{description:"Sets the font used for `text`."}),insidetextfont:qs({},kx,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:qs({},kx,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:qs({},Rr.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:Hve,offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},selected:{marker:{opacity:Rr.selected.marker.opacity,color:Rr.selected.marker.color,editType:"style"},textfont:Rr.selected.textfont,editType:"style"},unselected:{marker:{opacity:Rr.unselected.marker.opacity,color:Rr.unselected.marker.color,editType:"style"},textfont:Rr.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}});var Mx=I((Q2e,V9)=>{"use strict";V9.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}});var $9=I((K2e,X9)=>{"use strict";var Bve=It(),Y9=hn().hasColorscale,Z9=wl(),Uve=Re().coercePattern;X9.exports=function(t,r,a,n,i){var o=a("marker.color",n),s=Y9(t,"marker");s&&Z9(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Bve.defaultLine),Y9(t,"marker.line")&&Z9(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Uve(a,"marker.pattern",o,s),a("selected.marker.color"),a("unselected.marker.color")}});var Sx=I((J2e,tj)=>{"use strict";var su=Re(),Q9=It(),Gve=bt(),Wve=n1(),Vve=i1(),Yve=$9(),Zve=Cf().getAxisGroup,K9=Mc(),Op=su.coerceFont;function Xve(e,t,r,a){function n(u,c){return su.coerce(e,t,K9,u,c)}var i=Wve(e,t,a,n);if(!i){t.visible=!1;return}Vve(e,t,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");ej(e,t,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Yve(e,t,n,r,a);var s=(t.marker.line||{}).color,l=Gve.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||Q9.defaultLine,{axis:"y"}),l(e,t,s||Q9.defaultLine,{axis:"x",inherit:"y"}),su.coerceSelectionMarkerOpacity(t,n)}function J9(e,t,r,a){var n=t.orientation,i=t[{v:"x",h:"y"}[n]+"axis"],o=Zve(r,i)+n,s=r._alignmentOpts||{},l=a("alignmentgroup"),u=s[o];u||(u=s[o]={});var c=u[l];c?c.traces.push(t):c=u[l]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var d=a("offsetgroup"),h=c.offsetGroups,p=h[d];d&&(p||(p=h[d]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}function $ve(e,t){var r,a;function n(o){return su.coerce(a._input,a,K9,o)}if(t.barmode==="group")for(var i=0;i{"use strict";var Qve=bt(),Kve=tr(),Jve=Re(),epe=Mx();rj.exports=function(e,t,r){function a(p,g){return Jve.coerce(e,t,epe,p,g)}for(var n=!1,i=!1,o=!1,s={},l=a("barmode"),u=0;u{"use strict";var lu=Re();nj.exports=function(t,r){for(var a=0;a{"use strict";var ij=tr(),oj=o1(),sj=hn().hasColorscale,lj=_h(),tpe=Cx(),rpe=f1();uj.exports=function(t,r){var a=ij.getFromId(t,r.xaxis||"x"),n=ij.getFromId(t,r.yaxis||"y"),i,o,s,l,u,c,d={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(i=a.makeCalcdata(r,"x",d),s=n.makeCalcdata(r,"y"),l=oj(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(i=n.makeCalcdata(r,"y",d),s=a.makeCalcdata(r,"x"),l=oj(r,a,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,i.length),p=new Array(h),g=0;g{"use strict";cj.exports=Hp;var ape=Re().distinctVals,npe=Tr().BADNUM;function Hp(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=[],n=0;n{"use strict";var wo=jt(),Lx=Re().isArrayOrTypedArray,uu=Tr().BADNUM,ipe=bt(),Sc=tr(),ope=Cf().getAxisGroup,Bp=dj();function spe(e,t){for(var r=t.xaxis,a=t.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!wo(s))}for(var c=0;c{"use strict";var ppe=Ft(),mpe=Re();function gpe(e,t,r){var a=e._fullLayout,n=a["_"+r+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=i&&l.hide?0:n/l.fontSize;var u=ppe.select(this).select("text");mpe.setTransormAndDisplay(u,l)}})}}function ype(e,t,r){if(r.uniformtext.mode){var a=_j(e),n=r.uniformtext.minsize,i=t.scale*t.fontSize;t.hide=i{"use strict";var xpe=jt(),_pe=Pn(),wpe=Re().isArrayOrTypedArray;Ds.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};Ds.coerceNumber=function(e,t,r){if(xpe(t)){t=+t;var a=e.min,n=e.max,i=a!==void 0&&tn;if(!i)return t}return r!==void 0?r:e.dflt};Ds.coerceColor=function(e,t,r){return _pe(t).isValid()?t:r!==void 0?r:e.dflt};Ds.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};Ds.getValue=function(e,t){var r;return Array.isArray(e)?t{"use strict";var Lc=Ft(),Tpe=It(),qc=Kt(),Tj=Re(),Aj=bt(),kj=Rx().resizeText,Ex=Mc(),Ape=Ex.textfont,kpe=Ex.insidetextfont,Mpe=Ex.outsidetextfont,fu=Up();function Spe(e){var t=Lc.select(e).selectAll("g.barlayer").selectAll("g.trace");kj(e,t,"bar");var r=t.size(),a=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&r>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Lc.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var i=Lc.select(this),o=n[0].trace;Mj(i,o,e)}),Aj.getComponentMethod("errorbars","style")(t)}function Mj(e,t,r){qc.pointStyle(e.selectAll("path"),t,r),Sj(e,t,r)}function Sj(e,t,r){e.selectAll("text").each(function(a){var n=Lc.select(this),i=Tj.ensureUniformFontSize(r,Cj(n,a,t,r));qc.font(n,i)})}function Cpe(e,t,r){var a=t[0].trace;a.selectedpoints?Lpe(r,a,e):(Mj(r,a,e),Aj.getComponentMethod("errorbars","style")(r))}function Lpe(e,t,r){qc.selectedPointStyle(e.selectAll("path"),t),qpe(e.selectAll("text"),t,r)}function qpe(e,t,r){e.each(function(a){var n=Lc.select(this),i;if(a.selected){i=Tj.ensureUniformFontSize(r,Cj(n,a,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(i.color=o),qc.font(n,i)}else qc.selectedTextStyle(n,t)})}function Cj(e,t,r,a){var n=a._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=Pj(t,r);i=qj(r,t.i,n,o)}else e.classed("bartext-outside")&&(i=Dj(r,t.i,n));return i}function Lj(e,t,r){return Ix(Ape,e.textfont,t,r)}function qj(e,t,r,a){var n=Lj(e,t,r),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return i&&(n={color:Tpe.contrast(a),family:n.family,size:n.size}),Ix(kpe,e.insidetextfont,t,n)}function Dj(e,t,r){var a=Lj(e,t,r);return Ix(Mpe,e.outsidetextfont,t,a)}function Ix(e,t,r,a){t=t||{};var n=fu.getValue(t.family,r),i=fu.getValue(t.size,r),o=fu.getValue(t.color,r);return{family:fu.coerceString(e.family,n,a.family),size:fu.coerceNumber(e.size,i,a.size),color:fu.coerceColor(e.color,o,a.color)}}function Pj(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Rj.exports={style:Spe,styleTextPoints:Sj,styleOnSelect:Cpe,getInsideTextFont:qj,getOutsideTextFont:Dj,getBarColor:Pj,resizeText:kj}});var Bj=I((lTe,Hj)=>{"use strict";var Wp=Ft(),Vp=jt(),$r=Re(),Dpe=Ga(),Ppe=It(),To=Kt(),Rpe=bt(),Yp=tr().tickText,Ej=Rx(),Epe=Ej.recordMinTextSize,Ipe=Ej.clearMinTextSize,zx=Gp(),cu=Up(),zpe=Ax(),Ij=Mc(),Npe=Ij.text,Fpe=Ij.textposition,jpe=Mi().appendArrayPointValue,$n=zpe.TEXTPAD;function Ope(e){return e.id}function Hpe(e){if(e.ids)return Ope}function Ao(e,t){return e0}function Upe(e,t,r,a,n,i){var o=t.xaxis,s=t.yaxis,l=e._fullLayout;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},Ipe("bar",l));var u=$r.makeTraceGroups(a,r,"trace bars").each(function(c){var d=Wp.select(this),h=c[0].trace,p=h.type==="waterfall",g=h.type==="funnel",m=h.type==="bar",b=m||g,x=0;p&&h.connector.visible&&h.connector.mode==="between"&&(x=h.connector.line.width/2);var _=h.orientation==="h",k=Nj(n),w=$r.ensureSingle(d,"g","points"),A=Hpe(h),L=w.selectAll("g.point").data($r.identity,A);L.enter().append("g").classed("point",!0),L.exit().remove(),L.each(function(q,P){var E=Wp.select(this),F=Bpe(q,o,s,_),N=F[0][0],j=F[0][1],B=F[1][0],W=F[1][1],V=(_?j-N:W-B)==0;V&&b&&cu.getLineWidth(h,q)&&(V=!1),V||(V=!Vp(N)||!Vp(j)||!Vp(B)||!Vp(W)),q.isBlank=V,V&&(_?j=N:W=B),x&&!V&&(_?(N-=Ao(N,j)*x,j+=Ao(N,j)*x):(B-=Ao(B,W)*x,W+=Ao(B,W)*x));var Y,Z;if(h.type==="waterfall"){if(!V){var $=h[q.dir].marker;Y=$.line.width,Z=$.color}}else Y=cu.getLineWidth(h,q),Z=q.mc||h.marker.color;function ne(ee){var Ae=Wp.round(Y/2%1,2);return n.gap===0&&n.groupgap===0?Wp.round(Math.round(ee)-Ae,2):ee}function te(ee,Ae,ke){return ke&&ee===Ae?ee:Math.abs(ee-Ae)>=2?ne(ee):ee>Ae?Math.ceil(ee):Math.floor(ee)}if(!e._context.staticPlot){var de=Ppe.opacity(Z),be=de<1||Y>.01?ne:te;N=be(N,j,_),j=be(j,N,_),B=be(B,W,!_),W=be(W,B,!_)}var re=zj($r.ensureSingle(E,"path"),l,n,i);if(re.style("vector-effect","non-scaling-stroke").attr("d",isNaN((j-N)*(W-B))||V&&e._context.staticPlot?"M0,0Z":"M"+N+","+B+"V"+W+"H"+j+"V"+B+"Z").call(To.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&k){var ge=To.makePointStyleFns(h);To.singlePointStyle(q,re,h,ge,e)}Gpe(e,t,E,c,P,N,j,B,W,n,i),t.layerClipId&&To.hideOutsideRangePoint(q,E.select("text"),o,s,h.xcalendar,h.ycalendar)});var S=h.cliponaxis===!1;To.setClipUrl(d,S?null:t.layerClipId,e)});Rpe.getComponentMethod("errorbars","plot")(e,u,t,n)}function Gpe(e,t,r,a,n,i,o,s,l,u,c){var d=t.xaxis,h=t.yaxis,p=e._fullLayout,g;function m(Ae,ke,De){var Le=$r.ensureSingle(Ae,"text").text(ke).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(To.font,De).call(Dpe.convertToTspans,e);return Le}var b=a[0].trace,x=b.orientation==="h",_=Vpe(p,a,n,d,h);g=Ype(b,n);var k=u.mode==="stack"||u.mode==="relative",w=a[n],A=!k||w._outmost;if(!_||g==="none"||(w.isBlank||i===o||s===l)&&(g==="auto"||g==="inside")){r.select("text").remove();return}var L=p.font,S=zx.getBarColor(a[n],b),q=zx.getInsideTextFont(b,n,L,S),P=zx.getOutsideTextFont(b,n,L),E=r.datum();x?d.type==="log"&&E.s0<=0&&(d.range[0]0&&V>0,$=W<=F&&V<=N,ne=W<=N&&V<=F,te=x?F>=W*(N/V):N>=V*(F/W);Z&&($||ne||te)?g="inside":(g="outside",j.remove(),j=null)}else g="inside";if(!j){Y=$r.ensureUniformFontSize(e,g==="outside"?P:q),j=m(r,_,Y);var de=j.attr("transform");if(j.attr("transform",""),B=To.bBox(j.node()),W=B.width,V=B.height,j.attr("transform",de),W<=0||V<=0){j.remove();return}}var be=b.textangle,re,ge;g==="outside"?(ge=b.constraintext==="both"||b.constraintext==="outside",re=Wpe(i,o,s,l,B,{isHorizontal:x,constrained:ge,angle:be})):(ge=b.constraintext==="both"||b.constraintext==="inside",re=Oj(i,o,s,l,B,{isHorizontal:x,constrained:ge,angle:be,anchor:b.insidetextanchor})),re.fontSize=Y.size,Epe(b.type==="histogram"?"bar":b.type,re,p),w.transform=re;var ee=zj(j,p,u,c);$r.setTransormAndDisplay(ee,re)}function Fj(e){return e==="auto"?0:e}function jj(e,t){var r=Math.PI/180*t,a=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function Oj(e,t,r,a,n,i){var o=!!i.isHorizontal,s=!!i.constrained,l=i.angle||0,u=i.anchor||"end",c=u==="end",d=u==="start",h=i.leftToRight||0,p=(h+1)/2,g=1-p,m=n.width,b=n.height,x=Math.abs(t-e),_=Math.abs(a-r),k=x>2*$n&&_>2*$n?$n:0;x-=2*k,_-=2*k;var w=Fj(l);l==="auto"&&!(m<=x&&b<=_)&&(m>x||b>_)&&(!(m>_||b>x)||m2*$n?$n:0:p=d>2*$n?$n:0;var g=1;s&&(g=o?Math.min(1,h/c):Math.min(1,d/u));var m=Fj(l),b=jj(n,m),x=(o?b.x:b.y)/2,_=(n.left+n.right)/2,k=(n.top+n.bottom)/2,w=(e+t)/2,A=(r+a)/2,L=0,S=0,q=o?Ao(t,e):Ao(r,a);return o?(w=t-q*p,L=q*x):(A=a+q*p,S=-q*x),{textX:_,textY:k,targetX:w,targetY:A,anchorX:L,anchorY:S,scale:g,rotate:m}}function Vpe(e,t,r,a,n){var i=t[0].trace,o=i.texttemplate,s;return o?s=Zpe(e,t,r,a,n):i.textinfo?s=Xpe(t,r,a,n):s=cu.getValue(i.text,r),cu.coerceString(Npe,s)}function Ype(e,t){var r=cu.getValue(e.textposition,t);return cu.coerceEnumerated(Fpe,r)}function Zpe(e,t,r,a,n){var i=t[0].trace,o=$r.castOption(i,r,"texttemplate");if(!o)return"";var s=i.type==="histogram",l=i.type==="waterfall",u=i.type==="funnel",c=i.orientation==="h",d,h,p,g;c?(d="y",h=n,p="x",g=a):(d="x",h=a,p="y",g=n);function m(L){return Yp(h,h.c2l(L),!0).text}function b(L){return Yp(g,g.c2l(L),!0).text}var x=t[r],_={};_.label=x.p,_.labelLabel=_[d+"Label"]=m(x.p);var k=$r.castOption(i,x.i,"text");(k===0||k)&&(_.text=k),_.value=x.s,_.valueLabel=_[p+"Label"]=b(x.s);var w={};jpe(w,i,x.i),(s||w.x===void 0)&&(w.x=c?_.value:_.label),(s||w.y===void 0)&&(w.y=c?_.label:_.value),(s||w.xLabel===void 0)&&(w.xLabel=c?_.valueLabel:_.labelLabel),(s||w.yLabel===void 0)&&(w.yLabel=c?_.labelLabel:_.valueLabel),l&&(_.delta=+x.rawS||x.s,_.deltaLabel=b(_.delta),_.final=x.v,_.finalLabel=b(_.final),_.initial=_.final-_.delta,_.initialLabel=b(_.initial)),u&&(_.value=x.s,_.valueLabel=b(_.value),_.percentInitial=x.begR,_.percentInitialLabel=$r.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=$r.formatPercent(x.difR),_.percentTotal=x.sumR,_.percenTotalLabel=$r.formatPercent(x.sumR));var A=$r.castOption(i,x.i,"customdata");return A&&(_.customdata=A),$r.texttemplateString(o,_,e._d3locale,w,_,i._meta||{})}function Xpe(e,t,r,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(A){var L=i?a:r;return Yp(L,A,!0).text}function u(A){var L=i?r:a;return Yp(L,+A,!0).text}var c=n.textinfo,d=e[t],h=c.split("+"),p=[],g,m=function(A){return h.indexOf(A)!==-1};if(m("label")&&p.push(l(e[t].p)),m("text")&&(g=$r.castOption(n,d.i,"text"),(g===0||g)&&p.push(g)),o){var b=+d.rawS||d.s,x=d.v,_=x-b;m("initial")&&p.push(u(_)),m("delta")&&p.push(u(b)),m("final")&&p.push(u(x))}if(s){m("value")&&p.push(u(d.s));var k=0;m("percent initial")&&k++,m("percent previous")&&k++,m("percent total")&&k++;var w=k>1;m("percent initial")&&(g=$r.formatPercent(d.begR),w&&(g+=" of initial"),p.push(g)),m("percent previous")&&(g=$r.formatPercent(d.difR),w&&(g+=" of previous"),p.push(g)),m("percent total")&&(g=$r.formatPercent(d.sumR),w&&(g+=" of total"),p.push(g))}return p.join("
")}Hj.exports={plot:Upe,toMoveInsideBar:Oj}});var Yj=I((uTe,Vj)=>{"use strict";var Dc=qi(),$pe=bt(),Uj=It(),Qpe=Re().fillText,Kpe=Up().getLineWidth,Nx=tr().hoverLabelText,Jpe=Tr().BADNUM;function eme(e,t,r,a,n){var i=Gj(e,t,r,a,n);if(i){var o=i.cd,s=o[0].trace,l=o[i.index];return i.color=Wj(s,l),$pe.getComponentMethod("errorbars","hoverInfo")(l,s,i),[i]}}function Gj(e,t,r,a,n){var i=e.cd,o=i[0].trace,s=i[0].t,l=a==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,d=e.maxSpikeDistance,h,p,g,m,b,x,_;o.orientation==="h"?(h=r,p=t,g="y",m="x",b=W,x=N):(h=t,p=r,g="x",m="y",x=W,b=N);var k=o[g+"period"],w=l||k;function A(ee){return S(ee,-1)}function L(ee){return S(ee,1)}function S(ee,Ae){var ke=ee.w;return ee[g]+Ae*ke/2}function q(ee){return ee[g+"End"]-ee[g+"Start"]}var P=l?A:k?function(ee){return ee.p-q(ee)/2}:function(ee){return Math.min(A(ee),ee.p-s.bardelta/2)},E=l?L:k?function(ee){return ee.p+q(ee)/2}:function(ee){return Math.max(L(ee),ee.p+s.bardelta/2)};function F(ee,Ae,ke){return n.finiteRange&&(ke=0),Dc.inbox(ee-h,Ae-h,ke+Math.min(1,Math.abs(Ae-ee)/_)-1)}function N(ee){return F(P(ee),E(ee),c)}function j(ee){return F(A(ee),L(ee),d)}function B(ee){var Ae=ee[m];if(u){var ke=Math.abs(ee.rawS)||0;p>0?Ae+=ke:p<0&&(Ae-=ke)}return Ae}function W(ee){var Ae=p,ke=ee.b,De=B(ee);return Dc.inbox(ke-Ae,De-Ae,c+(De-Ae)/(De-ke)-1)}function V(ee){var Ae=p,ke=ee.b,De=B(ee);return Dc.inbox(ke-Ae,De-Ae,d+(De-Ae)/(De-ke)-1)}var Y=e[g+"a"],Z=e[m+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function $(ee){return(b(ee)+x(ee))/2}var ne=Dc.getDistanceFunction(a,b,x,$);if(Dc.getClosest(i,ne,e),e.index!==!1&&i[e.index].p!==Jpe){w||(P=function(ee){return Math.min(A(ee),ee.p-s.bargroupwidth/2)},E=function(ee){return Math.max(L(ee),ee.p+s.bargroupwidth/2)});var te=e.index,de=i[te],be=o.base?de.b+de.s:de.s;e[m+"0"]=e[m+"1"]=Z.c2p(de[m],!0),e[m+"LabelVal"]=be;var re=s.extents[s.extents.round(de.p)];e[g+"0"]=Y.c2p(l?P(de):re[0],!0),e[g+"1"]=Y.c2p(l?E(de):re[1],!0);var ge=de.orig_p!==void 0;return e[g+"LabelVal"]=ge?de.orig_p:de.p,e.labelLabel=Nx(Y,e[g+"LabelVal"],o[g+"hoverformat"]),e.valueLabel=Nx(Z,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=Nx(Z,de.b,o[m+"hoverformat"]),e.spikeDistance=(V(de)+j(de))/2,e[g+"Spike"]=Y.c2p(de.p,!0),Qpe(de,o,e),e.hovertemplate=o.hovertemplate,e}}function Wj(e,t){var r=t.mcc||e.marker.color,a=t.mlcc||e.marker.line.color,n=Kpe(e,t);if(Uj.opacity(r))return r;if(Uj.opacity(a)&&n)return a}Vj.exports={hoverPoints:eme,hoverOnBars:Gj,getTraceColor:Wj}});var Xj=I((fTe,Zj)=>{"use strict";Zj.exports=function(t,r,a){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),a.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var Qj=I((cTe,$j)=>{"use strict";$j.exports=function(t,r){var a=t.cd,n=t.xaxis,i=t.yaxis,o=a[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";Kj.exports={attributes:Mc(),layoutAttributes:Mx(),supplyDefaults:Sx().supplyDefaults,crossTraceDefaults:Sx().crossTraceDefaults,supplyLayoutDefaults:aj(),calc:fj(),crossTraceCalc:xj().crossTraceCalc,colorbar:y1(),arraysToCalcdata:Cx(),plot:Bj().plot,style:Gp().style,styleOnSelect:Gp().styleOnSelect,hoverPoints:Yj().hoverPoints,eventData:Xj(),selectPoints:Qj(),moduleType:"trace",name:"bar",basePlotModule:vp(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}});var tO=I((hTe,eO)=>{"use strict";eO.exports=Jj()});var Pc=I(rO=>{"use strict";rO.pointsAccessorFunction=function(e,t){for(var r,a,n=0;n{"use strict";var rme=tr(),du=Re(),ame=eo(),nme=Pc().pointsAccessorFunction,_r=Tr().BADNUM;hu.moduleType="transform";hu.name="aggregate";var aO=hu.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregate transform is enabled or disabled."].join(" ")},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the grouping target to which the aggregation is applied.","Data points with matching group values will be coalesced into","one point, using the supplied aggregation functions to reduce data","in other data arrays.","If a string, `groups` is assumed to be a reference to a data array","in the parent trace object.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","about the marker color array.","If an array, `groups` is itself the data array by which we aggregate."].join(" ")},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc",description:["A reference to the data array in the parent trace to aggregate.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","over the marker color array.","The referenced array must already exist, unless `func` is *count*,","and each array may only be referenced once."].join(" ")},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc",description:["Sets the aggregation function.","All values from the linked `target`, corresponding to the same value","in the `groups` array, are collected and reduced by this function.","*count* is simply the number of values in the `groups` array, so does","not even require the linked array to exist. *first* (*last*) is just","the first (last) linked value.","Invalid values are ignored, so for example in *avg* they do not","contribute to either the numerator or the denominator.","Any data type (numeric, date, category) may be aggregated with any","function, even though in certain cases it is unlikely to make sense,","for example a sum of dates or average of categories.","*median* will return the average of the two central values if there is","an even count. *mode* will return the first value to reach the maximum","count, in case of a tie.","*change* will return the difference between the first and last linked values.","*range* will return the difference between the min and max linked values."].join(" ")},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc",description:["*stddev* supports two formula variants: *sample* (normalize by N-1)","and *population* (normalize by N)."].join(" ")},enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregation function is enabled or disabled."].join(" ")},editType:"calc"},editType:"calc"},nO=aO.aggregations;hu.supplyDefaults=function(e,t){var r={},a;function n(b,x){return du.coerce(e,r,aO,b,x)}var i=n("enabled");if(!i)return r;var o=ame.findArrayAttributes(t),s={};for(a=0;al&&(l=h,u=d)}}return l?n(u):_r};case"rms":return function(i,o){for(var s=0,l=0,u=0;u{"use strict";sO.exports=oO()});var fO=I((gTe,uO)=>{"use strict";uO.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var cO=I(Rs=>{"use strict";var Ps=Re(),ume=bt(),fme=tr(),cme=Pc().pointsAccessorFunction,Fx=fO(),jx=Fx.COMPARISON_OPS,Ox=Fx.INTERVAL_OPS,Hx=Fx.SET_OPS;Rs.moduleType="transform";Rs.name="filter";Rs.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this filter transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the filter target by which the filter is applied.","If a string, `target` is assumed to be a reference to a data array","in the parent trace object.","To filter about nested variables, use *.* to access them.","For example, set `target` to *marker.color* to filter","about the marker color array.","If an array, `target` is then the data array by which the filter is applied."].join(" ")},operation:{valType:"enumerated",values:[].concat(jx).concat(Ox).concat(Hx),dflt:"=",editType:"calc",description:["Sets the filter operation.","*=* keeps items equal to `value`","*!=* keeps items not equal to `value`","*<* keeps items less than `value`","*<=* keeps items less than or equal to `value`","*>* keeps items greater than `value`","*>=* keeps items greater than or equal to `value`","*[]* keeps items inside `value[0]` to `value[1]` including both bounds","*()* keeps items inside `value[0]` to `value[1]` excluding both bounds","*[)* keeps items inside `value[0]` to `value[1]` including `value[0]` but excluding `value[1]","*(]* keeps items inside `value[0]` to `value[1]` excluding `value[0]` but including `value[1]","*][* keeps items outside `value[0]` to `value[1]` and equal to both bounds","*)(* keeps items outside `value[0]` to `value[1]`","*](* keeps items outside `value[0]` to `value[1]` and equal to `value[0]`","*)[* keeps items outside `value[0]` to `value[1]` and equal to `value[1]`","*{}* keeps items present in a set of values","*}{* keeps items not present in a set of values"].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values by which to filter.","Values are expected to be in the same type as the data linked","to `target`.","When `operation` is set to one of","the comparison values ("+jx+")","`value` is expected to be a number or a string.","When `operation` is set to one of the interval values","("+Ox+")","`value` is expected to be 2-item array where the first item","is the lower bound and the second item is the upper bound.","When `operation`, is set to one of the set values","("+Hx+")","`value` is expected to be an array with as many items as","the desired set elements."].join(" ")},preservegaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps in data arrays produced by the filter operation","are preserved.","Setting this to *true* might be useful when plotting a line chart","with `connectgaps` set to *false*."].join(" ")},editType:"calc"};Rs.supplyDefaults=function(e){var t={};function r(o,s){return Ps.coerce(e,t,Rs.attributes,o,s)}var a=r("enabled");if(a){var n=r("target");if(Ps.isArrayOrTypedArray(n)&&n.length===0)return t.enabled=!1,t;r("preservegaps"),r("operation"),r("value");var i=ume.getComponentMethod("calendars","handleDefaults");i(e,t,"valuecalendar",null),i(e,t,"targetcalendar",null)}return t};Rs.calcTransform=function(e,t,r){if(!r.enabled)return;var a=Ps.getTargetArray(t,r);if(!a)return;var n=r.target,i=a.length;t._length&&(i=Math.min(i,t._length));var o=r.targetcalendar,s=t._arrayAttrs,l=r.preservegaps;if(typeof n=="string"){var u=Ps.nestedProperty(t,n+"calendar").get();u&&(o=u)}var c=fme.getDataToCoordFunc(e,t,n,a),d=dme(r,c,o),h={},p={},g=0;function m(A,L){for(var S=0;S":return function(c){return l(c)>u};case">=":return function(c){return l(c)>=u};case"[]":return function(c){var d=l(c);return d>=u[0]&&d<=u[1]};case"()":return function(c){var d=l(c);return d>u[0]&&d=u[0]&&du[0]&&d<=u[1]};case"][":return function(c){var d=l(c);return d<=u[0]||d>=u[1]};case")(":return function(c){var d=l(c);return du[1]};case"](":return function(c){var d=l(c);return d<=u[0]||d>u[1]};case")[":return function(c){var d=l(c);return d=u[1]};case"{}":return function(c){return u.indexOf(l(c))!==-1};case"}{":return function(c){return u.indexOf(l(c))===-1}}}});var hO=I((bTe,dO)=>{"use strict";dO.exports=cO()});var vO=I(Oi=>{"use strict";var Na=Re(),hme=eo(),vme=Nr(),pme=Pc().pointsAccessorFunction;Oi.moduleType="transform";Oi.name="groupby";Oi.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this group-by transform is enabled or disabled."].join(" ")},groups:{valType:"data_array",dflt:[],editType:"calc",description:["Sets the groups in which the trace data will be split.","For example, with `x` set to *[1, 2, 3, 4]* and","`groups` set to *['a', 'b', 'a', 'b']*,","the groupby transform with split in one trace","with `x` [1, 3] and one trace with `x` [2, 4]."].join(" ")},nameformat:{valType:"string",editType:"calc",description:["Pattern by which grouped traces are named. If only one trace is present,",'defaults to the group name (`"%{group}"`), otherwise defaults to the group name','with trace name (`"%{group} (%{trace})"`). Available escape sequences are `%{group}`, which',"inserts the group name, and `%{trace}`, which inserts the trace name. If grouping","GDP data by country when more than one trace is present, for example, the",'default "%{group} (%{trace})" would return "Monaco (GDP per capita)".'].join(" ")},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc",description:["The group value which receives these styles."].join(" ")},value:{valType:"any",dflt:{},editType:"calc",description:["Sets each group styles.","For example, with `groups` set to *['a', 'b', 'a', 'b']*","and `styles` set to *[{target: 'a', value: { marker: { color: 'red' } }}]","marker points in group *'a'* will be drawn in red."].join(" "),_compareAsJSON:!0},editType:"calc"},editType:"calc"};Oi.supplyDefaults=function(e,t,r){var a,n={};function i(d,h){return Na.coerce(e,n,Oi.attributes,d,h)}var o=i("enabled");if(!o)return n;i("groups"),i("nameformat",r._dataLength>1?"%{group} (%{trace})":"%{group}");var s=e.styles,l=n.styles=[];if(s)for(a=0;a{"use strict";pO.exports=vO()});var gO=I(Es=>{"use strict";var Bx=Re(),gme=tr(),yme=Pc().pointsAccessorFunction,Zp=Tr().BADNUM;Es.moduleType="transform";Es.name="sort";Es.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this sort transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the target by which the sort transform is applied.","If a string, *target* is assumed to be a reference to a data array","in the parent trace object.","To sort about nested variables, use *.* to access them.","For example, set `target` to *marker.size* to sort","about the marker size array.","If an array, *target* is then the data array by which","the sort transform is applied."].join(" ")},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc",description:["Sets the sort transform order."].join(" ")},editType:"calc"};Es.supplyDefaults=function(e){var t={};function r(n,i){return Bx.coerce(e,t,Es.attributes,n,i)}var a=r("enabled");return a&&(r("target"),r("order")),t};Es.calcTransform=function(e,t,r){if(!!r.enabled){var a=Bx.getTargetArray(t,r);if(!!a){var n=r.target,i=a.length;t._length&&(i=Math.min(i,t._length));var o=t._arrayAttrs,s=gme.getDataToCoordFunc(e,t,n,a),l=bme(r,a,s,i),u=yme(t.transforms,r),c={},d,h;for(d=0;d{"use strict";yO.exports=gO()});var Zt=Mm(Om()),qO=Mm(XM());var $M="1.7.4";function UQ(e){return Boolean(e)}var GQ=e=>{let t=Array.from(document.querySelectorAll('style[id^="plotly.js"]')).map(r=>r.sheet).filter(UQ).flatMap(r=>Array.from(r.cssRules)).map(r=>r.cssText).join(` +`);if(l!==-1&&(s=o.substr(l+1),o=o.substr(0,l)),a&&(o==="00:00:00"||o==="00:00"?(o=s,s=""):o.length===8&&(o=o.replace(/:00$/,""))),s)if(r)n==="d"?o+=", "+s:o=s+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==s)e._prevDateHead=s,o+="
"+s;else{var u=_f(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Fae(e,t,r,a,n){var i=e.dtick,o=t.x,s=e.tickformat,l=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&l!=="L"&&(i="L3",l="L"),s||l==="L")t.text=xf(Math.pow(10,o),e,n,a);else if(Mr(i)||l==="D"&&qt.mod(o+.01,1)<.1){var u=Math.round(o),c=Math.abs(u),d=e.exponentformat;d==="power"||Uh(d)&&i0(u)?(u===0?t.text=1:u===1?t.text="10":t.text="10"+(u>1?"":ss)+c+"",t.fontSize*=1.25):(d==="e"||d==="E")&&c>2?t.text="1"+d+(u>0?"+":ss)+c:(t.text=xf(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=String(Math.round(Math.pow(10,qt.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function jae(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Oae(e,t,r){var a=Math.round(t.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}function Hae(e,t,r,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=xf(t.x,e,n,a)}function Bae(e,t,r,a,n){if(e.thetaunit==="radians"&&!r){var i=t.x/180;if(i===0)t.text="0";else{var o=Uae(i);if(o[1]>=100)t.text=xf(qt.deg2rad(t.x),e,n,a);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=ss+t.text)}}}else t.text=xf(t.x,e,n,a)}function Uae(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function a(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=a(e),i=e*n,o=Math.abs(r(i,n));return[Math.round(i/o),Math.round(n/o)]}var Gae=["f","p","n","\u03BC","m","","k","M","G","T"];function Uh(e){return e==="SI"||e==="B"}function i0(e){return e>14||e<-15}function xf(e,t,r,a){var n=e<0,i=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Ie.getTickFormat(t),u=t.separatethousands;if(a){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Mr(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};lP(c),i=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,ss);var d=Math.pow(10,-i)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+g+"
":o==="B"&&s===9?e+="B":Uh(o)&&(e+=Gae[s/3+5])}return n?ss+e:e}Ie.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Ll}function a(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var d=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return d===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):d-h}else return typeof l=="number"?1:-1}function n(l,u,c){var d=c||function(g){return g},h=u[0],p=u[1];return(!h&&typeof h!="number"||d(h)<=d(l))&&(!p&&typeof p!="number"||d(p)>=d(l))}function i(l,u){var c=u[0]===null,d=u[1]===null,h=a(l,u[0])>=0,p=a(l,u[1])<=0;return(c||h)&&(d||p)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t0?Pe.bottom-xe:0,qe)))),t.automargin){ye={x:0,y:0,r:0,l:0,t:0,b:0};var nt=[0,1];if(l==="x"){if(oe==="b"?ye[oe]=t._depth:(ye[oe]=t._depth=Math.max(Pe.width>0?xe-Pe.top:0,qe),nt.reverse()),Pe.width>0){var at=Pe.right-(t._offset+t._length);at>0&&(ye.xr=1,ye.r=at);var ft=t._offset-Pe.left;ft>0&&(ye.xl=0,ye.l=ft)}}else if(oe==="l"?ye[oe]=t._depth=Math.max(Pe.height>0?xe-Pe.left:0,qe):(ye[oe]=t._depth=Math.max(Pe.height>0?Pe.right-xe:0,qe),nt.reverse()),Pe.height>0){var wt=Pe.bottom-(t._offset+t._length);wt>0&&(ye.yb=0,ye.b=wt);var se=t._offset-Pe.top;se>0&&(ye.yt=1,ye.t=se)}ye[u]=t.anchor==="free"?t.position:t._anchorAxis.domain[nt[0]],t.title.text!==o._dfltTitle[l]&&(ye[oe]+=fP(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(rt={x:0,y:0,r:0,l:0,t:0,b:0},rt[me]=t.linewidth,t.mirror&&t.mirror!==!0&&(rt[me]+=qe),t.mirror===!0||t.mirror==="ticks"?rt[u]=t._anchorAxis.domain[nt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(rt[u]=[t._counterDomainMin,t._counterDomainMax][nt[1]]))}O&&(Ue=gf.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(uP(ye,t.automargin),uP(rt,t.automargin)),Sl.autoMargin(e,l0(t),ye),Sl.autoMargin(e,dP(t),rt),Sl.autoMargin(e,hP(t),Ue)}),!r.skipTitle&&!(O&&t.side==="bottom")&&U.push(function(){return Qae(e,t)}),qt.syncOrAsync(U)}};function uP(e,t){if(!!e){var r=Object.keys(KD).reduce(function(a,n){return t.indexOf(n)!==-1&&KD[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){r[a]||(a.length===1?e[a]=0:delete e[a])})}}function Wae(e,t){var r=[],a,n=function(i,o){var s=i.xbnd[o];s!==null&&r.push(qt.extendFlat({},i,{x:s}))};if(t.length){for(a=0;a60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(P=!c&&L==="left"||c&&L==="right",w=P?1:-1,c&&(w*=-1),x=h,_=p*w,k=0,!c&&Math.abs(q)===90&&(q===-90&&L==="left"||q===90&&L==="right"?k=ls:k=.5),c){var E=Mr(q)?+q:0;if(E!==0){var F=qt.deg2rad(E);A=Math.abs(Math.sin(F))*ls*w,k=0}}b.xFn=function(N){return N.dx+t-(x+N.fontSize*k)*w+A*N.fontSize},b.yFn=function(N){return N.dy+_+N.fontSize*Oh},b.anchorFn=function(N,j){return Mr(j)&&Math.abs(j)===90?"middle":P?"end":"start"},b.heightFn=function(N,j,B){return e.side==="right"&&(j*=-1),j<-30?-B:j<30?-.5*B:0}}return b};function Gh(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ie.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=r.layer.selectAll("path."+a).data(n,Gh);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return bf.stroke(vn.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return en.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Vh(t,[$D]),i.attr("transform",r.transFn)};Ie.drawGrid=function(e,t,r){r=r||{};var a=t._id+"grid",n=t.minor&&t.minor.showgrid,i=n?r.vals.filter(function(x){return x.minor}):[],o=t.showgrid?r.vals.filter(function(x){return!x.minor}):[],s=r.counterAxis;if(s&&Ie.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;g--){var m=g?h:p;if(!!m){var b=m.selectAll("path."+a).data(g?o:i,Gh);b.exit().remove(),b.enter().append("path").classed(a,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(x){return bf.stroke(vn.select(this),x.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return en.dashStyle(x.minor?t.minor.griddash:t.griddash,x.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(x){return(x.minor?d:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}Vh(t,[Ky,Jy])};Ie.drawZeroLine=function(e,t,r){r=r||r;var a=t._id+"zl",n=Ie.shouldShowZeroLine(e,t,r.counterAxis),i=r.layer.selectAll("path."+a).data(n?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return Sae(o.id,s.id)})}),i.attr("transform",r.transFn).attr("d",r.path).call(bf.stroke,t.zerolinecolor||bf.defaultLine).style("stroke-width",en.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Vh(t,[Qy])};Ie.drawLabels=function(e,t,r){r=r||{};var a=e._fullLayout,n=t._id,i=n.charAt(0),o=r.cls||n+"tick",s=r.vals.filter(function(w){return w.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],d=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],Gh),h=[];d.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(w){var A=vn.select(this),L=e._promises.length;A.call(yf.positionText,l.xFn(w),l.yFn(w)).call(en.font,w.font,w.fontSize,w.fontColor).text(w.text).call(yf.convertToTspans,e),e._promises[L]?h.push(e._promises.pop().then(function(){p(A,u)})):p(A,u)}),Vh(t,[QD]),d.exit().remove(),r.repositionOnUpdate&&d.each(function(w){vn.select(this).select("text").call(yf.positionText,l.xFn(w),l.yFn(w))});function p(w,A){w.each(function(L){var S=vn.select(this),q=S.select(".text-math-group"),P=l.anchorFn(L,A),E=r.transFn.call(S.node(),L)+(Mr(A)&&+A!=0?" rotate("+A+","+l.xFn(L)+","+(l.yFn(L)-L.fontSize/2)+")":""),F=yf.lineCount(S),N=Hh*L.fontSize,j=l.heightFn(L,Mr(A)?+A:0,(F-1)*N);if(j&&(E+=Cl(0,j)),q.empty()){var B=S.select("text");B.attr({transform:E,"text-anchor":P}),B.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var W=en.bBox(q.node()).width,V=W*{end:-.5,start:.5}[P];q.attr("transform",E+Cl(V,0))}})}t._adjustTickLabelsOverflow=function(){var w=t.ticklabeloverflow;if(!(!w||w==="allow")){var A=w.indexOf("hide")!==-1,L=t._id.charAt(0)==="x",S=0,q=L?e._fullLayout.width:e._fullLayout.height;if(w.indexOf("domain")!==-1){var P=qt.simpleMap(t.range,t.r2l);S=t.l2p(P[0])+t._offset,q=t.l2p(P[1])+t._offset}var E=Math.min(S,q),F=Math.max(S,q),N=t.side,j=1/0,B=-1/0;d.each(function(Z){var $=vn.select(this),ne=$.select(".text-math-group");if(ne.empty()){var te=en.bBox($.node()),de=0;L?(te.right>F||te.leftF||te.top+(t.tickangle?0:Z.fontSize/4)t["_visibleLabelMin_"+P._id]?Z.style("display","none"):F.K==="tick"&&!E&&Z.style("display",null)})})})})},p(d,c+1?c:u);function g(){return h.length&&Promise.all(h)}var m=null;function b(){if(p(d,u),s.length&&i==="x"&&!Mr(u)&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=0;var w=0,A=[],L;if(d.each(function(te){w=Math.max(w,te.fontSize);var de=t.l2p(te.x),be=s0(this),re=en.bBox(be.node());A.push({top:0,bottom:10,height:10,left:de-re.width/2,right:de+re.width/2+2,width:re.width+2})}),(t.tickson==="boundaries"||t.showdividers)&&!r.secondary){var S=2;for(t.ticks&&(S+=t.tickwidth/2),L=0;L1&&r1)for(n=1;n=n.min&&e{var ane={left:0,top:0};pP.exports=nne;function nne(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=ine(t);return r[0]=a-i.left,r[1]=n-i.top,r}function ine(e){return e===window||e===document||e===document.body?ane:e.getBoundingClientRect()}});var c0=I((xxe,gP)=>{"use strict";var one=Eg();function sne(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}gP.exports=one&&sne()});var bP=I((_xe,yP)=>{"use strict";yP.exports=function(t,r,a,n,i){var o=(t-a)/(n-a),s=o+r/(n-a),l=(o+s)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?l:i==="right"||i==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var wP=I((wxe,_P)=>{"use strict";var xP=Re(),lne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];_P.exports=function(t,r,a,n){return a==="left"?t=0:a==="center"?t=1:a==="right"?t=2:t=xP.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=xP.constrain(Math.floor(r*3),0,2),lne[r][t]}});var AP=I((Txe,TP)=>{"use strict";var une=tf(),fne=th(),cne=Wd().getGraphDiv,dne=Uu(),d0=TP.exports={};d0.wrapped=function(e,t,r){e=cne(e),e._fullLayout&&fne.clear(e._fullLayout._uid+dne.HOVERID),d0.raw(e,t,r)};d0.raw=function(t,r){var a=t._fullLayout,n=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&une.triggerHandler(t,"plotly_beforehover",r)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}))}});var Nn=I((Axe,SP)=>{"use strict";var hne=mP(),h0=zg(),vne=c0(),pne=Re().removeElement,mne=ga(),us=SP.exports={};us.align=bP();us.getCursor=wP();var kP=AP();us.unhover=kP.wrapped;us.unhoverRaw=kP.raw;us.init=function(t){var r=t.gd,a=1,n=r._context.doubleClickDelay,i=t.element,o,s,l,u,c,d,h,p;r._mouseDownTime||(r._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=b,vne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=b,i.addEventListener("touchstart",b,{passive:!1})):i.ontouchstart=b;function g(k,w,A){return Math.abs(k)n&&(a=Math.max(a-1,1)),r._dragged)t.doneFn&&t.doneFn();else if(t.clickFn&&t.clickFn(a,d),!p){var w;try{w=new MouseEvent("click",k)}catch{var A=v0(k);w=document.createEvent("MouseEvents"),w.initMouseEvent("click",k.bubbles,k.cancelable,k.view,k.detail,k.screenX,k.screenY,A[0],A[1],k.ctrlKey,k.altKey,k.shiftKey,k.metaKey,k.button,k.relatedTarget)}h.dispatchEvent(w)}r._dragging=!1,r._dragged=!1}};function MP(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}us.coverSlip=MP;function v0(e){return hne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var oo=I((kxe,CP)=>{"use strict";CP.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&t.classed(a,!1)}),r&&t.classed("cursor-"+r,!0)}});var DP=I((Mxe,qP)=>{"use strict";var p0=oo(),wf="data-savedcursor",LP="!!";qP.exports=function(t,r){var a=t.attr(wf);if(r){if(!a){for(var n=(t.attr("class")||"").split(" "),i=0;i{"use strict";var m0=La(),gne=gi();PP.exports={bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:gne.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:m0({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:m0({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},x:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the x position (in normalized coordinates) of the legend.","Defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"legend",description:["Sets the y position (in normalized coordinates) of the legend.","Defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:m0({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}});var Zh=I(Yh=>{"use strict";Yh.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};Yh.isVertical=function(t){return t.orientation!=="h"};Yh.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var x0=I((Lxe,RP)=>{"use strict";var y0=bt(),Fn=Re(),yne=ar(),bne=Zi(),xne=g0(),_ne=sl(),b0=Zh();RP.exports=function(t,r,a){var n=t.legend||{},i=yne.newContainer(r,"legend");function o(q,P){return Fn.coerce(n,i,xne,q,P)}for(var s,l=function(q,P){var E=s._input,F=s;return Fn.coerce(E,F,bne,q,P)},u=r.font||{},c=Fn.coerceFont(o,"grouptitlefont",Fn.extendFlat({},u,{size:Math.round(u.size*1.1)})),d=0,h=!1,p="normal",g=0;g1);if(m===!1&&(r.legend=void 0),!(m===!1&&!n.uirevision)&&(o("uirevision",r.uirevision),m!==!1)){o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth");var b=Fn.coerceFont(o,"font",r.font),x=o("orientation"),_=x==="h",k,w,A;_?(k=0,y0.getComponentMethod("rangeslider","isVisible")(t.xaxis)?(w=1.1,A="bottom"):(w=-.1,A="top")):(k=1.02,w=1,A="auto"),o("traceorder",p),b0.isGrouped(r.legend)&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("x",k),o("xanchor"),o("y",w),o("yanchor",A),o("valign"),Fn.noneOrAll(n,i,["x","y"]);var L=o("title.text");if(L){o("title.side",_?"left":"top");var S=Fn.extendFlat({},b,{size:Fn.bigFont(b.size)});Fn.coerceFont(o,"title.font",S)}}}});var IP=I((qxe,EP)=>{"use strict";var _0=Re(),fs=bt(),w0=!0;EP.exports=function(t,r,a){var n=r._fullLayout;if(r._dragged||r._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,s=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&w0&&r.data&&r._context.showTips&&_0.notifier(_0._(r,"Double-click on legend to isolate one trace"),"long"),w0=!1;var l;if(a===1?l=i:a===2&&(l=o),!l)return;var u=s==="togglegroup",c=n.hiddenlabels?n.hiddenlabels.slice():[],d=t.data()[0][0];if(d.groupTitle&&d.noClick)return;var h=r._fullData,p=d.trace,g=p.legendgroup,m,b,x,_,k,w,A={},L=[],S=[],q=[];function P(re,ge,ee){var Ae=L.indexOf(re),ke=A[ge];return ke||(ke=A[ge]=[]),L.indexOf(re)===-1&&(L.push(re),Ae=L.length-1),ke[Ae]=ee,Ae}function E(re,ge){if(!(d.groupTitle&&!u)){var ee=re._fullInput;if(fs.hasTransform(ee,"groupby")){var Ae=S[ee.index];if(!Ae){var ke=fs.getTransformIndices(ee,"groupby"),De=ke[ke.length-1];Ae=_0.keyedContainer(ee,"transforms["+De+"].styles","target","value.visible"),S[ee.index]=Ae}var Le=Ae.get(re._group);Le===void 0&&(Le=!0),Le!==!1&&Ae.set(re._group,ge),q[ee.index]=P(ee.index,"visible",ee.visible!==!1)}else{var Se=ee.visible===!1?!1:ge;P(ee.index,"visible",Se)}}}if(fs.traceIs(p,"pie-like")){var F=d.label,N=c.indexOf(F);l==="toggle"?N===-1?c.push(F):c.splice(N,1):l==="toggleothers"&&(c=[],r.calcdata[0].forEach(function(re){F!==re.label&&c.push(re.label)}),r._fullLayout.hiddenlabels&&r._fullLayout.hiddenlabels.length===c.length&&N===-1&&(c=[])),fs.call("_guiRelayout",r,"hiddenlabels",c)}else{var j=g&&g.length,B=[],W;if(j)for(m=0;m{"use strict";zP.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var jP=I((Pxe,FP)=>{"use strict";var NP=bt(),A0=Zh();FP.exports=function(t,r){var a=r._inHover,n=A0.isGrouped(r),i=A0.isReversed(r),o={},s=[],l=!1,u={},c=0,d=0,h,p;function g(W,V){if(W===""||!A0.isGrouped(r)){var Y="~~i"+c;s.push(Y),o[Y]=[V],c++}else s.indexOf(W)===-1?(s.push(W),l=!0,o[W]=[V]):o[W].push(V)}for(h=0;hq&&(S=q)}A[h][0]._groupMinRank=S,A[h][0]._preGroupSort=h}var P=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},E=function(W,V){return W.trace.legendrank-V.trace.legendrank||W._preSort-V._preSort};for(A.forEach(function(W,V){W[0]._preGroupSort=V}),A.sort(P),h=0;h{"use strict";var OP=Re();function HP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}cs.formatPiePercent=function(t,r){var a=HP((t*100).toPrecision(3));return OP.numSeparate(a,r)+"%"};cs.formatPieValue=function(t,r){var a=HP(t.toPrecision(10));return OP.numSeparate(a,r)};cs.getFirstFilled=function(t,r){if(!!Array.isArray(t))for(var a=0;a{"use strict";var M0=It(),BP=k0().castOption;UP.exports=function(t,r,a){var n=a.marker.line,i=BP(n.color,r.pts)||M0.defaultLine,o=BP(n.width,r.pts)||0;t.style("stroke-width",o).call(M0.fill,r.color).call(M0.stroke,i)}});var q0=I((Ixe,$P)=>{"use strict";var xa=Ft(),S0=bt(),ua=Re(),WP=ua.strTranslate,Pa=Kt(),mn=It(),C0=hn().extractOpts,Xh=Ja(),wne=GP(),Tne=k0().castOption,Ane=T0(),VP=12,YP=5,ds=2,kne=10,ql=5;$P.exports=function(t,r,a){var n=r._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,s=(o+Ane.itemGap*2)/2,l=WP(s,0),u=function(S,q,P,E){var F;if(S+1)F=S;else if(q&&q.width>0)F=q.width;else return 0;return i?E:Math.min(F,P)};t.each(function(S){var q=xa.select(this),P=ua.ensureSingle(q,"g","layers");P.style("opacity",S[0].trace.opacity);var E=a.valign,F=S[0].lineHeight,N=S[0].height;if(E==="middle"||!F||!N)P.attr("transform",null);else{var j={top:1,bottom:-1}[E],B=j*(.5*(F-N+3));P.attr("transform",WP(0,B))}var W=P.selectAll("g.legendfill").data([S]);W.enter().append("g").classed("legendfill",!0);var V=P.selectAll("g.legendlines").data([S]);V.enter().append("g").classed("legendlines",!0);var Y=P.selectAll("g.legendsymbols").data([S]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(L).each(h).each(g).each(p).each(b).each(w).each(k).each(c).each(d).each(x).each(_);function c(S){var q=ZP(S),P=q.showFill,E=q.showLine,F=q.showGradientLine,N=q.showGradientFill,j=q.anyFill,B=q.anyLine,W=S[0],V=W.trace,Y,Z,$=C0(V),ne=$.colorscale,te=$.reversescale,de=function(De){if(De.size())if(P)Pa.fillGroupStyle(De,r);else{var Le="legendfill-"+V.uid;Pa.gradient(De,r,Le,L0(te),ne,"fill")}},be=function(De){if(De.size()){var Le="legendline-"+V.uid;Pa.lineGroupStyle(De),Pa.gradient(De,r,Le,L0(te),ne,"stroke")}},re=Xh.hasMarkers(V)||!j?"M5,0":B?"M5,-2":"M5,-3",ge=xa.select(this),ee=ge.select(".legendfill").selectAll("path").data(P||N?[S]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",re+"h"+o+"v6h-"+o+"z").call(de),E||F){var Ae=u(void 0,V.line,kne,YP);Z=ua.minExtend(V,{line:{width:Ae}}),Y=[ua.minExtend(W,{trace:Z})]}var ke=ge.select(".legendlines").selectAll("path").data(E||F?[Y]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",re+(F?"l"+o+",0.0001":"h"+o)).call(E?Pa.lineGroupStyle:be)}function d(S){var q=ZP(S),P=q.anyFill,E=q.anyLine,F=q.showLine,N=q.showMarker,j=S[0],B=j.trace,W=!N&&!E&&!P&&Xh.hasText(B),V,Y;function Z(ee,Ae,ke,De){var Le=ua.nestedProperty(B,ee).get(),Se=ua.isArrayOrTypedArray(Le)&&Ae?Ae(Le):Le;if(i&&Se&&De!==void 0&&(Se=De),ke){if(Seke[1])return ke[1]}return Se}function $(ee){return j._distinct&&j.index&&ee[j.index]?ee[j.index]:ee[0]}if(N||W||F){var ne={},te={};if(N){ne.mc=Z("marker.color",$),ne.mx=Z("marker.symbol",$),ne.mo=Z("marker.opacity",ua.mean,[.2,1]),ne.mlc=Z("marker.line.color",$),ne.mlw=Z("marker.line.width",ua.mean,[0,5],ds),te.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var de=Z("marker.size",ua.mean,[2,16],VP);ne.ms=de,te.marker.size=de}F&&(te.line={width:Z("line.width",$,[0,10],YP)}),W&&(ne.tx="Aa",ne.tp=Z("textposition",$),ne.ts=10,ne.tc=Z("textfont.color",$),ne.tf=Z("textfont.family",$)),V=[ua.minExtend(j,ne)],Y=ua.minExtend(B,te),Y.selectedpoints=null,Y.texttemplate=null}var be=xa.select(this).select("g.legendpoints"),re=be.selectAll("path.scatterpts").data(N?V:[]);re.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),re.exit().remove(),re.call(Pa.pointStyle,Y,r),N&&(V[0].mrc=3);var ge=be.selectAll("g.pointtext").data(W?V:[]);ge.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ge.exit().remove(),ge.selectAll("text").call(Pa.textPointStyle,Y,r)}function h(S){var q=S[0].trace,P=q.type==="waterfall";if(S[0]._distinct&&P){var E=S[0].trace[S[0].dir].marker;return S[0].mc=E.color,S[0].mlw=E.line.width,S[0].mlc=E.line.color,m(S,this,"waterfall")}var F=[];q.visible&&P&&(F=S[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=xa.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(F);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(j){var B=xa.select(this),W=q[j[0]].marker,V=u(void 0,W.line,ql,ds);B.attr("d",j[1]).style("stroke-width",V+"px").call(mn.fill,W.color),V&&B.call(mn.stroke,W.line.color)})}function p(S){m(S,this)}function g(S){m(S,this,"funnel")}function m(S,q,P){var E=S[0].trace,F=E.marker||{},N=F.line||{},j=P?E.visible&&E.type===P:S0.traceIs(E,"bar"),B=xa.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(j?[S]:[]);B.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),B.exit().remove(),B.each(function(W){var V=xa.select(this),Y=W[0],Z=u(Y.mlw,F.line,ql,ds);V.style("stroke-width",Z+"px");var $=Y.mcc;if(!a._inHover&&"mc"in Y){var ne=C0(F),te=ne.mid;te===void 0&&(te=(ne.max+ne.min)/2),$=Pa.tryColorscale(F,"")(te)}var de=$||Y.mc||F.color,be=F.pattern,re=be&&Pa.getPatternAttr(be.shape,0,"");if(re){var ge=Pa.getPatternAttr(be.bgcolor,0,null),ee=Pa.getPatternAttr(be.fgcolor,0,null),Ae=be.fgopacity,ke=XP(be.size,8,10),De=XP(be.solidity,.5,1),Le="legend-"+E.uid;V.call(Pa.pattern,"legend",r,Le,re,ke,De,$,be.fillmode,ge,ee,Ae)}else V.call(mn.fill,de);Z&&mn.stroke(V,Y.mlc||N.color)})}function b(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&S0.traceIs(q,"box-violin")?[S]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),P.exit().remove(),P.each(function(){var E=xa.select(this);if((q.boxpoints==="all"||q.points==="all")&&mn.opacity(q.fillcolor)===0&&mn.opacity((q.line||{}).color)===0){var F=ua.minExtend(q,{marker:{size:i?VP:ua.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Pa.pointStyle,F,r)}else{var N=u(void 0,q.line,ql,ds);E.style("stroke-width",N+"px").call(mn.fill,q.fillcolor),N&&mn.stroke(E,q.line.color)}})}function x(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[S,S]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(E,F){return F?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(E,F){var N=xa.select(this),j=q[F?"increasing":"decreasing"],B=u(void 0,j.line,ql,ds);N.style("stroke-width",B+"px").call(mn.fill,j.fillcolor),B&&mn.stroke(N,j.line.color)})}function _(S){var q=S[0].trace,P=xa.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[S,S]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(E,F){return F?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(E,F){var N=xa.select(this),j=q[F?"increasing":"decreasing"],B=u(void 0,j.line,ql,ds);N.style("fill","none").call(Pa.dashLine,j.line.dash,B),B&&mn.stroke(N,j.line.color)})}function k(S){A(S,this,"pie")}function w(S){A(S,this,"funnelarea")}function A(S,q,P){var E=S[0],F=E.trace,N=P?F.visible&&F.type===P:S0.traceIs(F,P),j=xa.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(N?[S]:[]);if(j.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),j.exit().remove(),j.size()){var B=(F.marker||{}).line,W=u(Tne(B.width,E.pts),B,ql,ds),V=ua.minExtend(F,{marker:{line:{width:W}}});V.marker.line.color=B.color;var Y=ua.minExtend(E,{trace:V});wne(j,Y,V)}}function L(S){var q=S[0].trace,P,E=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmapbox":E=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymapbox":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":E=[["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"]],P=!1;break;case"streamtube":E=[["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"]],P=!1;break;case"surface":E=[["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"]],P=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var F=xa.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);F.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(N,j){var B=xa.select(this),W=C0(q),V=W.colorscale,Y=W.reversescale,Z=function(de){if(de.size()){var be="legendfill-"+q.uid;Pa.gradient(de,r,be,L0(Y,P==="radial"),V,"fill")}},$;if(V){if(!P){var te=V.length;$=j===0?V[Y?te-1:0][1]:j===1?V[Y?0:te-1][1]:V[Math.floor((te-1)/2)][1]}}else{var ne=q.vertexcolor||q.facecolor||q.color;$=ua.isArrayOrTypedArray(ne)?ne[j]||ne[0]:ne}B.attr("d",N[0]),$?B.call(mn.fill,$):B.call(Z)})}};function L0(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function ZP(e){var t=e[0].trace,r=t.contours,a=Xh.hasLines(t),n=Xh.hasMarkers(t),i=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:a=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?i=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:s,anyLine:a||o,anyFill:i||s}}function XP(e,t,r){return e&&ua.isArrayOrTypedArray(e)?t:e>r?r:e}});var z0=I((zxe,nR)=>{"use strict";var tn=Ft(),Sr=Re(),D0=Nr(),hs=bt(),QP=tf(),P0=Nn(),Fr=Kt(),$h=It(),Dl=Ga(),KP=IP(),aa=T0(),R0=qa(),Mne=R0.LINE_SPACING,Qh=R0.FROM_TL,JP=R0.FROM_BR,eR=jP(),Sne=q0(),tR=Zh(),Pl=1;nR.exports=function(t,r){return r||(r=t._fullLayout.legend||{}),Cne(t,r)};function Cne(e,t){var r=e._fullLayout,a="legend"+r._uid,n,i=t._inHover;if(i?(n=t.layer,a+="-hover"):n=r._infolayer,!!n){e._legendMouseDownTime||(e._legendMouseDownTime=0);var o;if(i){if(!t.entries)return;o=eR(t.entries,t)}else{if(!e.calcdata)return;o=r.showlegend&&eR(e.calcdata,t)}var s=r.hiddenlabels||[];if(!i&&(!r.showlegend||!o.length))return n.selectAll(".legend").remove(),r._topdefs.select("#"+a).remove(),D0.autoMargin(e,"legend");var l=Sr.ensureSingle(n,"g","legend",function(x){i||x.attr("pointer-events","all")}),u=Sr.ensureSingleById(r._topdefs,"clipPath",a,function(x){x.append("rect")}),c=Sr.ensureSingle(l,"rect","bg",function(x){x.attr("shape-rendering","crispEdges")});c.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var d=Sr.ensureSingle(l,"g","scrollbox"),h=t.title;if(t._titleWidth=0,t._titleHeight=0,h.text){var p=Sr.ensureSingle(d,"text","legendtitletext");p.attr("text-anchor","start").call(Fr.font,h.font).text(h.text),Jh(p,d,e,t,Pl)}else d.selectAll(".legendtitletext").remove();var g=Sr.ensureSingle(l,"rect","scrollbar",function(x){x.attr(aa.scrollBarEnterAttrs).call($h.fill,aa.scrollBarColor)}),m=d.selectAll("g.groups").data(o);m.enter().append("g").attr("class","groups"),m.exit().remove();var b=m.selectAll("g.traces").data(Sr.identity);b.enter().append("g").attr("class","traces"),b.exit().remove(),b.style("opacity",function(x){var _=x[0].trace;return hs.traceIs(_,"pie-like")?s.indexOf(x[0].label)!==-1?.5:1:_.visible==="legendonly"?.5:1}).each(function(){tn.select(this).call(Lne,e,t)}).call(Sne,e,t).each(function(){i||tn.select(this).call(qne,e)}),Sr.syncOrAsync([D0.previousPromises,function(){return Rne(e,m,b,t)},function(){var x=r._size,_=t.borderwidth;if(!i){var k=Ene(e);if(k)return;var w=x.l+x.w*t.x-Qh[E0(t)]*t._width,A=x.t+x.h*(1-t.y)-Qh[I0(t)]*t._effHeight;if(r.margin.autoexpand){var L=w,S=A;w=Sr.constrain(w,0,r.width-t._width),A=Sr.constrain(A,0,r.height-t._effHeight),w!==L&&Sr.log("Constrain legend.x to make legend fit inside graph"),A!==S&&Sr.log("Constrain legend.y to make legend fit inside graph")}Fr.setTranslate(l,w,A)}if(g.on(".drag",null),l.on("wheel",null),i||t._height<=t._maxHeight||e._context.staticPlot){var q=t._effHeight;i&&(q=t._height),c.attr({width:t._width-_,height:q-_,x:_/2,y:_/2}),Fr.setTranslate(d,0,0),u.select("rect").attr({width:t._width-2*_,height:q-2*_,x:_,y:_}),Fr.setClipUrl(d,a,e),Fr.setRect(g,0,0,0,0),delete t._scrollY}else{var P=Math.max(aa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),E=t._effHeight-P-2*aa.scrollBarMargin,F=t._height-t._effHeight,N=E/F,j=Math.min(t._scrollY||0,F);c.attr({width:t._width-2*_+aa.scrollBarWidth+aa.scrollBarMargin,height:t._effHeight-_,x:_/2,y:_/2}),u.select("rect").attr({width:t._width-2*_+aa.scrollBarWidth+aa.scrollBarMargin,height:t._effHeight-2*_,x:_,y:_+j}),Fr.setClipUrl(d,a,e),te(j,P,N),l.on("wheel",function(){j=Sr.constrain(t._scrollY+tn.event.deltaY/E*F,0,F),te(j,P,N),j!==0&&j!==F&&tn.event.preventDefault()});var B,W,V,Y=function(ee,Ae,ke){var De=(ke-Ae)/N+ee;return Sr.constrain(De,0,F)},Z=function(ee,Ae,ke){var De=(Ae-ke)/N+ee;return Sr.constrain(De,0,F)},$=tn.behavior.drag().on("dragstart",function(){var ee=tn.event.sourceEvent;ee.type==="touchstart"?B=ee.changedTouches[0].clientY:B=ee.clientY,V=j}).on("drag",function(){var ee=tn.event.sourceEvent;ee.buttons===2||ee.ctrlKey||(ee.type==="touchmove"?W=ee.changedTouches[0].clientY:W=ee.clientY,j=Y(V,B,W),te(j,P,N))});g.call($);var ne=tn.behavior.drag().on("dragstart",function(){var ee=tn.event.sourceEvent;ee.type==="touchstart"&&(B=ee.changedTouches[0].clientY,V=j)}).on("drag",function(){var ee=tn.event.sourceEvent;ee.type==="touchmove"&&(W=ee.changedTouches[0].clientY,j=Z(V,B,W),te(j,P,N))});d.call(ne)}function te(ee,Ae,ke){t._scrollY=e._fullLayout.legend._scrollY=ee,Fr.setTranslate(d,0,-ee),Fr.setRect(g,t._width,aa.scrollBarMargin+ee*ke,aa.scrollBarWidth,Ae),u.select("rect").attr("y",_+ee)}if(e._context.edits.legendPosition){var de,be,re,ge;l.classed("cursor-move",!0),P0.init({element:l.node(),gd:e,prepFn:function(){var ee=Fr.getTranslate(l);re=ee.x,ge=ee.y},moveFn:function(ee,Ae){var ke=re+ee,De=ge+Ae;Fr.setTranslate(l,ke,De),de=P0.align(ke,0,x.l,x.l+x.w,t.xanchor),be=P0.align(De,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){de!==void 0&&be!==void 0&&hs.call("_guiRelayout",e,{"legend.x":de,"legend.y":be})},clickFn:function(ee,Ae){var ke=n.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return Ae.clientX>=De.left&&Ae.clientX<=De.right&&Ae.clientY>=De.top&&Ae.clientY<=De.bottom});ke.size()>0&&rR(e,l,ke,ee,Ae)}})}}],e)}}function Kh(e,t,r){var a=e[0],n=a.width,i=t.entrywidthmode,o=a.trace.legendwidth||t.entrywidth;return i==="fraction"?t._maxWidth*o:r+(o||n)}function rR(e,t,r,a,n){var i=r.data()[0][0].trace,o={event:n,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),hs.traceIs(i,"pie-like")&&(o.label=r.datum()[0].label);var s=QP.triggerHandler(e,"plotly_legendclick",o);if(s!==!1){if(a===1)t._clickTimeout=setTimeout(function(){!e._fullLayout||KP(r,e,a)},e._context.doubleClickDelay);else if(a===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=QP.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&KP(r,e,a)}}}function Lne(e,t,r){var a=e.data()[0][0],n=a.trace,i=hs.traceIs(n,"pie-like"),o=!r._inHover&&t._context.edits.legendText&&!i,s=r._maxNameLength,l,u;a.groupTitle?(l=a.groupTitle.text,u=a.groupTitle.font):(u=r.font,r.entries?l=a.text:(l=i?a.label:n.name,n._meta&&(l=Sr.templateString(l,n._meta))));var c=Sr.ensureSingle(e,"text","legendtext");c.attr("text-anchor","start").call(Fr.font,u).text(o?aR(l,s):l);var d=r.itemwidth+aa.itemGap*2;Dl.positionText(c,d,0),o?c.call(Dl.makeEditable,{gd:t,text:l}).call(Jh,e,t,r).on("edit",function(h){this.text(aR(h,s)).call(Jh,e,t,r);var p=a.trace._fullInput||{},g={};if(hs.hasTransform(p,"groupby")){var m=hs.getTransformIndices(p,"groupby"),b=m[m.length-1],x=Sr.keyedContainer(p,"transforms["+b+"].styles","target","value.name");x.set(a.trace._group,h),g=x.constructUpdate()}else g.name=h;return hs.call("_guiRestyle",t,g,n.index)}):Jh(c,e,t,r)}function aR(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var a=r-e.length;a>0;a--)e+=" ";return e}function qne(e,t){var r=t._context.doubleClickDelay,a,n=1,i=Sr.ensureSingle(e,"rect","legendtoggle",function(o){t._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call($h.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimer&&(n=Math.max(n-1,1)),rR(t,o,e,n,tn.event)}}))}function Jh(e,t,r,a,n){a._inHover&&e.attr("data-notex",!0),Dl.convertToTspans(e,r,function(){Dne(t,r,a,n)})}function Dne(e,t,r,a){var n=e.data()[0][0];if(!r._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var s=r.borderwidth,l;a===Pl?l=r.title.font:n.groupTitle?l=n.groupTitle.font:l=r.font;var u=l.size*Mne,c,d;if(o){var h=Fr.bBox(o);c=h.height,d=h.width,a===Pl?Fr.setTranslate(i,s,s+c*.75):Fr.setTranslate(i,0,c*.25)}else{var p=e.select(a===Pl?".legendtitletext":".legendtext"),g=Dl.lineCount(p),m=p.node();if(c=u*g,d=m?Fr.bBox(m).width:0,a===Pl)r.title.side==="left"&&(d+=aa.itemGap*2),Dl.positionText(p,s+aa.titlePad,s+u);else{var b=aa.itemGap*2+r.itemwidth;n.groupTitle&&(b=aa.itemGap,d-=r.itemwidth),Dl.positionText(p,b,-u*((g-1)/2-.3))}}a===Pl?(r._titleWidth=d,r._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=d)}function Pne(e){var t=0,r=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(t=e._titleWidth),a.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Rne(e,t,r,a){var n=e._fullLayout;a||(a=n.legend);var i=n._size,o=tR.isVertical(a),s=tR.isGrouped(a),l=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,d=aa.itemGap,h=a.itemwidth+d*2,p=2*(u+d),g=I0(a),m=a.y<0||a.y===0&&g==="top",b=a.y>1||a.y===1&&g==="bottom",x=a.tracegroupgap,_={};a._maxHeight=Math.max(m||b?n.height/2:i.h,30);var k=0;a._width=0,a._height=0;var w=Pne(a);if(o)r.each(function(re){var ge=re[0].height;Fr.setTranslate(this,u+w[0],u+w[1]+a._height+ge/2+d),a._height+=ge,a._width=Math.max(a._width,re[0].width)}),k=h+a._width,a._width+=d+h+c,a._height+=p,s&&(t.each(function(re,ge){Fr.setTranslate(this,0,ge*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var A=E0(a),L=a.x<0||a.x===0&&A==="right",S=a.x>1||a.x===1&&A==="left",q=b||m,P=n.width/2;a._maxWidth=Math.max(L?q&&A==="left"?i.l+i.w:P:S?q&&A==="right"?i.r+i.w:P:i.w,2*h);var E=0,F=0;r.each(function(re){var ge=Kh(re,a,h);E=Math.max(E,ge),F+=ge}),k=null;var N=0;if(s){var j=0,B=0,W=0;t.each(function(){var re=0,ge=0;tn.select(this).selectAll("g.traces").each(function(Ae){var ke=Kh(Ae,a,h),De=Ae[0].height;Fr.setTranslate(this,w[0],w[1]+u+d+De/2+ge),ge+=De,re=Math.max(re,ke),_[Ae[0].trace.legendgroup]=re});var ee=re+d;B>0&&ee+u+B>a._maxWidth?(N=Math.max(N,B),B=0,W+=j+x,j=ge):j=Math.max(j,ge),Fr.setTranslate(this,B,W),B+=ee}),a._width=Math.max(N,B)+u,a._height=W+j+p}else{var V=r.size(),Y=F+c+(V-1)*d=a._maxWidth&&(N=Math.max(N,te),$=0,ne+=Z,a._height+=Z,Z=0),Fr.setTranslate(this,w[0]+u+$,w[1]+u+ne+ge/2+d),te=$+ee+d,$+=Ae,Z=Math.max(Z,ge)}),Y?(a._width=$+c,a._height=Z+p):(a._width=Math.max(N,te)+c,a._height+=Z+p)}}a._width=Math.ceil(Math.max(a._width+w[0],a._titleWidth+2*(u+aa.titlePad))),a._height=Math.ceil(Math.max(a._height+w[1],a._titleHeight+2*(u+aa.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var de=e._context.edits,be=de.legendText||de.legendPosition;r.each(function(re){var ge=tn.select(this).select(".legendtoggle"),ee=re[0].height,Ae=re[0].trace.legendgroup,ke=Kh(re,a,h);s&&Ae!==""&&(ke=_[Ae]);var De=be?h:k||ke;!o&&!l&&(De+=d/2),Fr.setRect(ge,0,-ee/2,De,ee)})}function Ene(e){var t=e._fullLayout,r=t.legend,a=E0(r),n=I0(r);return D0.autoMargin(e,"legend",{x:r.x,y:r.y,l:r._width*Qh[a],r:r._width*JP[a],b:r._effHeight*JP[n],t:r._effHeight*Qh[n]})}function E0(e){return Sr.isRightAnchor(e)?"right":Sr.isCenterAnchor(e)?"center":"left"}function I0(e){return Sr.isBottomAnchor(e)?"bottom":Sr.isMiddleAnchor(e)?"middle":"top"}});var O0=I(j0=>{"use strict";var vs=Ft(),Li=jt(),iR=Pn(),Cr=Re(),N0=Cr.strTranslate,Ine=Cr.strRotate,zne=tf(),gn=Ga(),Nne=DP(),li=Kt(),Ur=It(),ev=Nn(),so=tr(),Rl=bt(),jn=Mi(),ps=Uu(),Fne=x0(),jne=z0(),oR=ps.YANGLE,F0=Math.PI*oR/180,One=1/Math.sin(F0),Hne=Math.cos(F0),Bne=Math.sin(F0),ur=ps.HOVERARROWSIZE,Ot=ps.HOVERTEXTPAD,sR={box:!0,ohlc:!0,violin:!0,candlestick:!0},Une={scatter:!0,scattergl:!0,splom:!0};j0.hover=function(t,r,a,n){t=Cr.getGraphDiv(t);var i=r.target;Cr.throttle(t._fullLayout._uid+ps.HOVERID,ps.HOVERMINTIME,function(){Gne(t,r,a,n,i)})};j0.loneHover=function(t,r){var a=!0;Array.isArray(t)||(a=!1,t=[t]);var n=r.gd,i=mR(n),o=gR(n),s=t.map(function(m){var b=m._x0||m.x0||m.x||0,x=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,k=m._y1||m.y1||m.y||0,w=m.eventData;if(w){var A=Math.min(b,x),L=Math.max(b,x),S=Math.min(_,k),q=Math.max(_,k),P=m.trace;if(Rl.traceIs(P,"gl3d")){var E=n._fullLayout[P.scene]._scene.container,F=E.offsetLeft,N=E.offsetTop;A+=F,L+=F,S+=N,q+=N}w.bbox={x0:A+o,x1:L+o,y0:S+i,y1:q+i},r.inOut_bbox&&r.inOut_bbox.push(w.bbox)}else w=!1;return{color:m.color||Ur.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:w}}),l=!1,u=uR(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Ur.background,container:vs.select(r.container),outerContainer:r.outerContainer||r.container}),c=5,d=0,h=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var x=m.y0-m.by/2;x-ch[0]._length||re<0||re>p[0]._length)return ev.unhoverRaw(e,t)}if(t.pointerX=be+h[0]._offset,t.pointerY=re+p[0]._offset,"xval"in t?S=jn.flat(i,t.xval):S=jn.p2c(h,be),"yval"in t?q=jn.flat(i,t.yval):q=jn.p2c(p,re),!Li(S[0])||!Li(q[0]))return Cr.warn("Fx.hover failed",t,e),ev.unhoverRaw(e,t)}var Ae=1/0;function ke(Te,Fe){for(E=0;E$&&(A.splice(0,$),Ae=A[0].distance),u&&w!==0&&A.length===0){Z.distance=w,Z.index=!1;var hr=N._module.hoverPoints(Z,V,Y,"closest",{hoverLayer:o._hoverlayer});if(hr&&(hr=hr.filter(function(Aa){return Aa.spikeDistance<=w})),hr&&hr.length){var ca,Qn=hr.filter(function(Aa){return Aa.xa.showspikes&&Aa.xa.spikesnap!=="hovered data"});if(Qn.length){var ia=Qn[0];Li(ia.x0)&&Li(ia.y0)&&(ca=Le(ia),(!ne.vLinePoint||ne.vLinePoint.spikeDistance>ca.spikeDistance)&&(ne.vLinePoint=ca))}var Xa=hr.filter(function(Aa){return Aa.ya.showspikes&&Aa.ya.spikesnap!=="hovered data"});if(Xa.length){var Cn=Xa[0];Li(Cn.x0)&&Li(Cn.y0)&&(ca=Le(Cn),(!ne.hLinePoint||ne.hLinePoint.spikeDistance>ca.spikeDistance)&&(ne.hLinePoint=ca))}}}}}ke();function De(Te,Fe,Et){for(var pr=null,Vr=1/0,Er,hr=0;hr0&&Math.abs(Te.distance)nt-1;ct--)it(A[ct]);A=wt,O()}var Je=e._hoverdata,we=[],Me=mR(e),Ye=gR(e);for(P=0;P1||A.length>1)||_==="closest"&&te&&A.length>1,pt=Ur.combine(o.plot_bgcolor||Ur.background,o.paper_bgcolor),ae=uR(A,{gd:e,hovermode:_,rotateLabels:vt,bgColor:pt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance});if(jn.isUnifiedHover(_)||(Vne(ae,vt?"xa":"ya",o),cR(ae,vt,o._invScaleX,o._invScaleY)),n&&n.tagName){var _e=Rl.getComponentMethod("annotations","hasClickToShow")(e,we);Nne(vs.select(n),_e?"pointer":"")}!n||a||!Zne(e,t,Je)||(Je&&e.emit("plotly_unhover",{event:t,points:Je}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:h,yaxes:p,xvals:S,yvals:q}))}function lR(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 Wne=/([\s\S]*)<\/extra>/;function uR(e,t){var r=t.gd,a=r._fullLayout,n=t.hovermode,i=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||ps.HOVERFONT,d=t.fontSize||ps.HOVERFONTSIZE,h=e[0],p=h.xa,g=h.ya,m=n.charAt(0),b=h[m+"Label"],x=El(r,l),_=x.top,k=x.width,w=x.height,A=b!==void 0&&h.distance<=t.hoverdistance&&(n==="x"||n==="y");if(A){var L=!0,S,q;for(S=0;Sa.width-Je?(Ce=a.width-Je,rt.attr("d","M"+(Je-ur)+",0L"+Je+","+ct+ur+"v"+ct+(Ot*2+se.height)+"H-"+Je+"V"+ct+ur+"H"+(Je-ur*2)+"Z")):rt.attr("d","M0,0L"+ur+","+ct+ur+"H"+(Ot+se.width/2)+"v"+ct+(Ot*2+se.height)+"H-"+(Ot+se.width/2)+"V"+ct+ur+"H-"+ur+"Z")}else{var we,Me,Ye;g.side==="right"?(we="start",Me=1,Ye="",Ce=p._offset+p._length):(we="end",Me=-1,Ye="-",Ce=p._offset),it=g._offset+(h.y0+h.y1)/2,Ue.attr("text-anchor",we),rt.attr("d","M0,0L"+Ye+ur+","+ur+"V"+(Ot+se.height/2)+"h"+Ye+(Ot*2+se.width)+"V-"+(Ot+se.height/2)+"H"+Ye+ur+"V-"+ur+"Z");var je=se.height/2,ze=_-se.top-je,Ge="clip"+a._uid+"commonlabel"+g._id,mt;if(Ce=0?xe=J:O+ge=0?xe=O:oe+ge=0?qe=Se:U+ee=0?qe=U:me+ee=0,(ye.idealAlign==="top"||!Oe)&&st?(ze-=mt/2,ye.anchor="end"):Oe?(ze+=mt/2,ye.anchor="start"):ye.anchor="middle";else if(ye.pos=ze,Oe=je+Ge/2+et<=k,st=je-Ge/2-et>=0,(ye.idealAlign==="left"||!Oe)&&st)je-=Ge/2,ye.anchor="end";else if(Oe)je+=Ge/2,ye.anchor="start";else{ye.anchor="middle";var dt=et/2,vt=je+dt-k,pt=je-dt;vt>0&&(je-=vt),pt<0&&(je+=-pt)}ct.attr("text-anchor",ye.anchor),we&&Je.attr("text-anchor",ye.anchor),rt.attr("transform",N0(je,ze)+(i?Ine(oR):""))}),Pe}function fR(e,t,r,a,n,i){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Cr.templateString(e.name,e.trace._meta)),o=vR(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),i&&s===""&&!e.hovertemplate&&(o===""&&i.remove(),s=o);var c=e.hovertemplate||!1;if(c){var d=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=Cr.hovertemplateString(c,d,a._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Wne,function(h,p){return o=vR(p,e.nameLength),""})}return[s,o]}function Vne(e,t,r){var a=0,n=1,i=e.size(),o=new Array(i),s=0;e.each(function(S){var q=S[t],P=q._id.charAt(0)==="x",E=q.range;s===0&&E&&E[0]>E[1]!==P&&(n=-1),o[s++]=[{datum:S,traceIndex:S.trace.index,dp:0,pos:S.pos,posref:S.posref,size:S.by*(P?One:1)/2,pmin:0,pmax:P?r.width:r.height}]}),o.sort(function(S,q){return S[0].posref-q[0].posref||n*(q[0].traceIndex-S[0].traceIndex)});var l,u,c,d,h,p,g;function m(S){var q=S[0],P=S[S.length-1];if(u=q.pmin-q.pos-q.dp+q.size,c=P.pos+P.dp+P.size-q.pmax,u>.01){for(h=S.length-1;h>=0;h--)S[h].dp+=u;l=!1}if(!(c<.01)){if(u<-.01){for(h=S.length-1;h>=0;h--)S[h].dp-=c;l=!1}if(!!l){var E=0;for(d=0;dq.pmax&&E++;for(d=S.length-1;d>=0&&!(E<=0);d--)p=S[d],p.pos>q.pmax-1&&(p.del=!0,E--);for(d=0;d=0;h--)S[h].dp-=c;for(d=S.length-1;d>=0&&!(E<=0);d--)p=S[d],p.pos+p.dp+p.size>q.pmax&&(p.del=!0,E--)}}}for(;!l&&a<=i;){for(a++,l=!0,d=0;d.01&&_.pmin===k.pmin&&_.pmax===k.pmax){for(h=x.length-1;h>=0;h--)x[h].dp+=u;for(b.push.apply(b,x),o.splice(d+1,1),g=0,h=b.length-1;h>=0;h--)g+=b[h].dp;for(c=g/b.length,h=b.length-1;h>=0;h--)b[h].dp-=c;l=!1}else d++}o.forEach(m)}for(d=o.length-1;d>=0;d--){var w=o[d];for(h=w.length-1;h>=0;h--){var A=w[h],L=A.datum;L.offset=A.dp,L.del=A.del}}}function cR(e,t,r,a){var n=function(o){return o*r},i=function(o){return o*a};e.each(function(o){var s=vs.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,d={start:1,end:-1,middle:0}[u],h=d*(ur+Ot),p=h+d*(o.txwidth+Ot),g=0,m=o.offset,b=u==="middle";b&&(h-=o.tx2width/2,p+=o.txwidth/2+Ot),t&&(m*=-Bne,g=o.offset*Hne),s.select("path").attr("d",b?"M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":"M0,0L"+n(c*ur+g)+","+i(ur+m)+"v"+i(o.by/2-ur)+"h"+n(c*o.bx)+"v-"+i(o.by)+"H"+n(c*ur+g)+"V"+i(m-ur)+"Z");var x=g+h,_=m+o.ty0-o.by/2+Ot,k=o.textAlign||"auto";k!=="auto"&&(k==="left"&&u!=="start"?(l.attr("text-anchor","start"),x=b?-o.bx/2-o.tx2width/2+Ot:-o.bx-Ot):k==="right"&&u!=="end"&&(l.attr("text-anchor","end"),x=b?o.bx/2-o.tx2width/2-Ot:o.bx+Ot)),l.call(gn.positionText,n(x),i(_)),o.tx2width&&(s.select("text.name").call(gn.positionText,n(p+d*Ot+g),i(m+o.ty0-o.by/2+Ot)),s.select("rect").call(li.setRect,n(p+(d-1)*o.tx2width/2+g),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Yne(e,t){var r=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[r]||{};function o(h){return h||Li(h)&&h===0}var s=Array.isArray(r)?function(h,p){var g=Cr.castOption(n,r,h);return o(g)?g:Cr.extractOption({},a,"",p)}:function(h,p){return Cr.extractOption(i,a,h,p)};function l(h,p,g){var m=s(p,g);o(m)&&(e[h]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Cr.constrain(e.x0,0,e.xa._length),e.x1=Cr.constrain(e.x1,0,e.xa._length),e.y0=Cr.constrain(e.y0,0,e.ya._length),e.y1=Cr.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:so.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:so.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=so.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+so.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=so.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+so.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var d=e.hoverinfo||e.trace.hoverinfo;return d&&d!=="all"&&(d=Array.isArray(d)?d:d.split("+"),d.indexOf("x")===-1&&(e.xLabel=void 0),d.indexOf("y")===-1&&(e.yLabel=void 0),d.indexOf("z")===-1&&(e.zLabel=void 0),d.indexOf("text")===-1&&(e.text=void 0),d.indexOf("name")===-1&&(e.name=void 0)),e}function dR(e,t,r){var a=r.container,n=r.fullLayout,i=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(a.selectAll(".spikeline").remove(),!!(l||s)){var d=Ur.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,p,g;u=h&&h.xa,c=h&&h.ya;var m=c.spikesnap;m==="cursor"?(p=o.pointerX,g=o.pointerY):(p=u._offset+h.x,g=c._offset+h.y);var b=iR.readability(h.color,d)<1.5?Ur.contrast(d):h.color,x=c.spikemode,_=c.spikethickness,k=c.spikecolor||b,w=so.getPxPosition(e,c),A,L;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(A=w,L=p),x.indexOf("across")!==-1){var S=c._counterDomainMin,q=c._counterDomainMax;c.anchor==="free"&&(S=Math.min(S,c.position),q=Math.max(q,c.position)),A=i.l+S*i.w,L=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:L,y1:g,y2:g,"stroke-width":_,stroke:k,"stroke-dasharray":li.dashStyle(c.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:L,y1:g,y2:g,"stroke-width":_+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:w+(c.side!=="right"?_:-_),cy:g,r:_,fill:k}).classed("spikeline",!0)}if(l){var P=t.vLinePoint,E,F;u=P&&P.xa,c=P&&P.ya;var N=u.spikesnap;N==="cursor"?(E=o.pointerX,F=o.pointerY):(E=u._offset+P.x,F=c._offset+P.y);var j=iR.readability(P.color,d)<1.5?Ur.contrast(d):P.color,B=u.spikemode,W=u.spikethickness,V=u.spikecolor||j,Y=so.getPxPosition(e,u),Z,$;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(Z=Y,$=F),B.indexOf("across")!==-1){var ne=u._counterDomainMin,te=u._counterDomainMax;u.anchor==="free"&&(ne=Math.min(ne,u.position),te=Math.max(te,u.position)),Z=i.t+(1-te)*i.h,$=i.t+(1-ne)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:Z,y2:$,"stroke-width":W,stroke:V,"stroke-dasharray":li.dashStyle(u.spikedash,W)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:Z,y2:$,"stroke-width":W+2,stroke:d}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?W:-W),r:W,fill:V}).classed("spikeline",!0)}}}function Zne(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var a=r.length-1;a>=0;a--){var n=r[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function hR(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function vR(e,t){return gn.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function Xne(e,t){for(var r=t.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var $ne=Re(),Qne=It(),Kne=Mi().isUnifiedHover;yR.exports=function(t,r,a,n){n=n||{};var i=r.legend;function o(s){n.font[s]||(n.font[s]=i?r.legend.font[s]:r.font[s])}r&&Kne(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),i?(n.bgcolor||(n.bgcolor=Qne.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),$ne.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var xR=I((jxe,bR)=>{"use strict";var Jne=Re(),eie=tv(),tie=al();bR.exports=function(t,r){function a(n,i){return Jne.coerce(t,r,tie,n,i)}eie(t,r,a)}});var TR=I((Oxe,wR)=>{"use strict";var _R=Re(),rie=Nd(),aie=tv();wR.exports=function(t,r,a,n){function i(s,l){return _R.coerce(t,r,rie,s,l)}var o=_R.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),aie(t,r,i,o)}});var H0=I((Hxe,AR)=>{"use strict";var nie=Re(),iie=al();AR.exports=function(t,r){function a(n,i){return r[n]!==void 0?r[n]:nie.coerce(t,r,iie,n,i)}return a("clickmode"),a("hovermode")}});var SR=I((Bxe,MR)=>{"use strict";var kR=Re(),oie=al(),sie=H0(),lie=tv();MR.exports=function(t,r){function a(u,c){return kR.coerce(t,r,oie,u,c)}var n=sie(t,r);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=r._has("mapbox"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),lie(t,r,a),kR.coerceFont(a,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var qR=I((Uxe,LR)=>{"use strict";var B0=Re(),CR=bt();LR.exports=function(t){var r=t.calcdata,a=t._fullLayout;function n(u){return function(c){return B0.coerceHoverinfo({hoverinfo:c},{_module:u._module},a)}}for(var i=0;i{"use strict";var fie=bt(),cie=O0().hover;DR.exports=function(t,r,a){var n=fie.getComponentMethod("annotations","onClick")(t,t._hoverdata);a!==void 0&&cie(t,r,a,!0);function i(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(n&&n.then?n.then(i):i(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var qi=I((Wxe,IR)=>{"use strict";var die=Ft(),rv=Re(),hie=Nn(),Tf=Mi(),RR=al(),ER=O0();IR.exports={moduleType:"component",name:"fx",constants:Uu(),schema:{layout:RR},attributes:Nd(),layoutAttributes:RR,supplyLayoutGlobalDefaults:xR(),supplyDefaults:TR(),supplyLayoutDefaults:SR(),calc:qR(),getDistanceFunction:Tf.getDistanceFunction,getClosest:Tf.getClosest,inbox:Tf.inbox,quadrature:Tf.quadrature,appendArrayPointValue:Tf.appendArrayPointValue,castHoverOption:pie,castHoverinfo:mie,hover:ER.hover,unhover:hie.unhover,loneHover:ER.loneHover,loneUnhover:vie,click:PR()};function vie(e){var t=rv.isD3Selection(e)?e:die.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function pie(e,t,r){return rv.castOption(e,t,"hoverlabel."+r)}function mie(e,t,r){function a(n){return rv.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return rv.castOption(e,r,"hoverinfo",a)}});var Il=I(Di=>{"use strict";Di.selectMode=function(e){return e==="lasso"||e==="select"};Di.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Di.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Di.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Di.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Di.selectingOrDrawing=function(e){return Di.freeMode(e)||Di.rectMode(e)}});var av=I((Yxe,zR)=>{"use strict";zR.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var nv=I((Zxe,NR)=>{"use strict";NR.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ov=I((Xxe,FR)=>{"use strict";var iv=32;FR.exports={CIRCLE_SIDES:iv,i000:0,i090:iv/4,i180:iv/2,i270:iv/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var sv=I(($xe,OR)=>{"use strict";var gie=Re().strTranslate;function jR(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function yie(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function bie(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return jR(e,r[t])}}function xie(e){return gie(e.xaxis._offset,e.yaxis._offset)}OR.exports={p2r:jR,r2p:yie,axValue:bie,getTransform:xie}});var ms=I(Pi=>{"use strict";var _ie=Ay(),HR=ov(),zl=HR.CIRCLE_SIDES,U0=HR.SQRT2,BR=sv(),UR=BR.p2r,GR=BR.r2p,wie=[0,3,4,5,6,1,2],Tie=[0,3,4,1,2];Pi.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",a=0;a0&&l{"use strict";var WR=Il(),Aie=WR.drawMode,kie=WR.openMode,Nl=ov(),VR=Nl.i000,YR=Nl.i090,ZR=Nl.i180,XR=Nl.i270,Mie=Nl.cos45,Sie=Nl.sin45,$R=sv(),uv=$R.p2r,lo=$R.r2p,Cie=ro(),Lie=Cie.clearOutline,fv=ms(),qie=fv.readPaths,Die=fv.writePaths,Pie=fv.ellipseOver,Rie=fv.fixDatesForPaths;QR.exports=function(t,r){if(!!t.length){var a=t[0][0];if(!!a){var n=a.getAttribute("d"),i=r.gd,o=i._fullLayout.newshape,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=!!s.domain||!s.xaxis,d=!!s.domain||!s.yaxis,h=r.isActiveShape,p=r.dragmode,g=(i.layout||{}).shapes||[];if(!Aie(p)&&h!==void 0){var m=i._fullLayout._activeShapeIndex;if(m{"use strict";var Eie=Il(),Iie=Eie.selectMode,zie=ro(),Nie=zie.clearOutline,W0=ms(),Fie=W0.readPaths,jie=W0.writePaths,Oie=W0.fixDatesForPaths;KR.exports=function(t,r){if(!!t.length){var a=t[0][0];if(!!a){var n=a.getAttribute("d"),i=r.gd,o=i._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,d=r.dragmode,h=(i.layout||{}).selections||[];if(!Iie(d)&&c!==void 0){var p=i._fullLayout._activeSelectionIndex;if(p{"use strict";var Hie=Re(),Bie=Hie.strTranslate,JR=Nn(),e6=Il(),Uie=e6.drawMode,t6=e6.selectMode,r6=bt(),a6=It(),cv=ov(),Gie=cv.i000,Wie=cv.i090,Vie=cv.i180,Yie=cv.i270,Zie=ro(),n6=Zie.clearOutlineControllers,Y0=ms(),dv=Y0.pointsOnRectangle,Z0=Y0.pointsOnEllipse,Xie=Y0.writePaths,$ie=G0(),Qie=V0();o6.exports=function e(t,r,a,n){n||(n=0);var i=a.gd;function o(){e(t,r,a,n++),Z0(t[0])&&s({redrawing:!0})}function s(W){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=$ie(r,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Qie(r,a),i._fullLayout._reselect=!0),Object.keys(V).length&&r6.call((W||{}).redrawing?"relayout":"_guiRelayout",i,V)}var l=i._fullLayout,u=l._zoomlayer,c=a.dragmode,d=Uie(c),h=t6(c);(d||h)&&(i._fullLayout._outlining=!0),n6(i),r.attr("d",Xie(t));var p,g,m,b,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Kie([],t);var _=u.append("g").attr("class","outline-controllers");q(_),B()}function k(W){m=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),p[m][b].moveFn=w}function w(W,V){if(!!t.length){var Y=x[m][b][1],Z=x[m][b][2],$=t[m],ne=$.length;if(dv($)){var te=W,de=V;if(a.isActiveSelection){var be=i6($,b);be[1]===$[b][1]?de=0:te=0}for(var re=0;re1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[m]=W,o(),s())}}function S(W,V){if(W===2){m=+V.srcElement.getAttribute("data-i"),b=+V.srcElement.getAttribute("data-j");var Y=t[m];!dv(Y)&&!Z0(Y)&&L()}}function q(W){p=[];for(var V=0;V{"use strict";s6.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ys=I(Xr=>{"use strict";var gs=kf(),l6=Re(),vv=tr();Xr.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Xr.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Xr.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Xr.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Xr.extractPathCoords=function(e,t,r){var a=[],n=e.match(gs.segmentRE);return n.forEach(function(i){var o=t[i.charAt(0)].drawn;if(o!==void 0){var s=i.substr(1).match(gs.paramRE);if(!(!s||s.lengthp&&(m="X"),m});return u>p&&(g=g.replace(/[\s,]*X.*/,""),l6.log("Ignoring extra params in segment "+l)),c+g})}});var J0=I((a_e,y6)=>{"use strict";var u6=bt(),f6=Re(),Fl=tr(),toe=ms().readPaths,roe=hv(),c6=ro().clearOutlineControllers,X0=It(),$0=Kt(),aoe=ar().arrayEditor,d6=Nn(),h6=oo(),bs=kf(),Wa=ys(),Q0=Wa.getPathString;y6.exports={draw:K0,drawOne:v6,eraseActiveShape:ooe};function K0(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove();for(var r in t._plots){var a=t._plots[r].shapelayer;a&&a.selectAll("path").remove()}for(var n=0;no&&xe>s&&!O.shiftKey?d6.getCursor(qe/me,1-Pe/xe):"move";h6(t,ye),de=ye.split("-")[0]}}function ee(O){pv(e)||(l&&(x=V(r.xanchor)),u&&(_=Y(r.yanchor)),r.type==="path"?F=r.path:(p=l?r.x0:V(r.x0),g=u?r.y0:Y(r.y0),m=l?r.x1:V(r.x1),b=u?r.y1:Y(r.y1)),pb?(k=g,S="y0",w=b,q="y1"):(k=b,S="y1",w=g,q="y0"),ge(O),Se(n,r),J(t,r,e),te.moveFn=de==="move"?De:Le,te.altKey=O.altKey)}function Ae(){pv(e)||(h6(t),U(n),p6(t,e,r),u6.call("_guiRelayout",e,i.getUpdateObj()))}function ke(){pv(e)||U(n)}function De(O,oe){if(r.type==="path"){var me=function(Pe){return Pe},xe=me,qe=me;l?h("xanchor",r.xanchor=Z(x+O)):(xe=function(ye){return Z(V(ye)+O)},N&&N.type==="date"&&(xe=Wa.encodeDate(xe))),u?h("yanchor",r.yanchor=$(_+oe)):(qe=function(ye){return $(Y(ye)+oe)},B&&B.type==="date"&&(qe=Wa.encodeDate(qe))),h("path",r.path=m6(F,xe,qe))}else l?h("xanchor",r.xanchor=Z(x+O)):(h("x0",r.x0=Z(p+O)),h("x1",r.x1=Z(m+O))),u?h("yanchor",r.yanchor=$(_+oe)):(h("y0",r.y0=$(g+oe)),h("y1",r.y1=$(b+oe)));t.attr("d",Q0(e,r)),Se(n,r)}function Le(O,oe){if(d){var me=function(we){return we},xe=me,qe=me;l?h("xanchor",r.xanchor=Z(x+O)):(xe=function(Me){return Z(V(Me)+O)},N&&N.type==="date"&&(xe=Wa.encodeDate(xe))),u?h("yanchor",r.yanchor=$(_+oe)):(qe=function(Me){return $(Y(Me)+oe)},B&&B.type==="date"&&(qe=Wa.encodeDate(qe))),h("path",r.path=m6(F,xe,qe))}else if(c){if(de==="resize-over-start-point"){var Pe=p+O,ye=u?g-oe:g+oe;h("x0",r.x0=l?Pe:Z(Pe)),h("y0",r.y0=u?ye:$(ye))}else if(de==="resize-over-end-point"){var rt=m+O,Ue=u?b-oe:b+oe;h("x1",r.x1=l?rt:Z(rt)),h("y1",r.y1=u?Ue:$(Ue))}}else{var nt=function(we){return de.indexOf(we)!==-1},at=nt("n"),ft=nt("s"),wt=nt("w"),se=nt("e"),Ce=at?k+oe:k,it=ft?w+oe:w,ct=wt?A+O:A,Je=se?L+O:L;u&&(at&&(Ce=k-oe),ft&&(it=w-oe)),(!u&&it-Ce>s||u&&Ce-it>s)&&(h(S,r[S]=u?Ce:$(Ce)),h(q,r[q]=u?it:$(it))),Je-ct>o&&(h(P,r[P]=l?ct:Z(ct)),h(E,r[E]=l?Je:Z(Je)))}t.attr("d",Q0(e,r)),Se(n,r)}function Se(O,oe){(l||u)&&me();function me(){var xe=oe.type!=="path",qe=O.selectAll(".visual-cue").data([0]),Pe=1;qe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var ye=V(l?oe.xanchor:f6.midRange(xe?[oe.x0,oe.x1]:Wa.extractPathCoords(oe.path,bs.paramIsX))),rt=Y(u?oe.yanchor:f6.midRange(xe?[oe.y0,oe.y1]:Wa.extractPathCoords(oe.path,bs.paramIsY)));if(ye=Wa.roundPositionForSharpStrokeRendering(ye,Pe),rt=Wa.roundPositionForSharpStrokeRendering(rt,Pe),l&&u){var Ue="M"+(ye-1-Pe)+","+(rt-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";qe.attr("d",Ue)}else if(l){var nt="M"+(ye-1-Pe)+","+(rt-9-Pe)+"v18 h2 v-18 Z";qe.attr("d",nt)}else{var at="M"+(ye-9-Pe)+","+(rt-1-Pe)+"h18 v2 h-18 Z";qe.attr("d",at)}}}function U(O){O.selectAll(".visual-cue").remove()}function J(O,oe,me){var xe=oe.xref,qe=oe.yref,Pe=Fl.getFromId(me,xe),ye=Fl.getFromId(me,qe),rt="";xe!=="paper"&&!Pe.autorange&&(rt+=xe),qe!=="paper"&&!ye.autorange&&(rt+=qe),$0.setClipUrl(O,rt?"clip"+me._fullLayout._uid+rt:null,me)}}function m6(e,t,r){return e.replace(bs.segmentRE,function(a){var n=0,i=a.charAt(0),o=bs.paramIsX[i],s=bs.paramIsY[i],l=bs.numParams[i],u=a.substr(1).replace(bs.paramRE,function(c){return n>=l||(o[n]?c=t(c):s[n]&&(c=r(c)),n++),c});return i+u})}function ioe(e,t){if(!!mv(e)){var r=t.node(),a=+r.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){g6(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=g6,K0(e)}}}function g6(e){if(!!mv(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(c6(e),delete e._fullLayout._activeShapeIndex,K0(e))}}function ooe(e){if(!!mv(e)){c6(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var yn=bt(),b6=Nr(),x6=Hr(),Ut=nv(),soe=J0().eraseActiveShape,jl=Re(),Nt=jl._,Gt=A6.exports={};Gt.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Nt(e,"Download plot as a png"):Nt(e,"Download plot")},icon:Ut.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};jl.notifier(Nt(e,"Taking snapshot - this may take a few seconds"),"long"),r.format!=="svg"&&jl.isIE()&&(jl.notifier(Nt(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach(function(a){a in t&&(r[a]=t[a])}),yn.call("downloadImage",e,r).then(function(a){jl.notifier(Nt(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){jl.notifier(Nt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nt(e,"Edit in Chart Studio")},icon:Ut.disk,click:function(e){b6.sendDataToCloud(e)}};Gt.editInChartStudio={name:"editInChartStudio",title:function(e){return Nt(e,"Edit in Chart Studio")},icon:Ut.pencil,click:function(e){b6.sendDataToCloud(e)}};Gt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ut.zoombox,click:_a};Gt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nt(e,"Pan")},attr:"dragmode",val:"pan",icon:Ut.pan,click:_a};Gt.select2d={name:"select2d",_cat:"select",title:function(e){return Nt(e,"Box Select")},attr:"dragmode",val:"select",icon:Ut.selectbox,click:_a};Gt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ut.lasso,click:_a};Gt.drawclosedpath={name:"drawclosedpath",title:function(e){return Nt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ut.drawclosedpath,click:_a};Gt.drawopenpath={name:"drawopenpath",title:function(e){return Nt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ut.drawopenpath,click:_a};Gt.drawline={name:"drawline",title:function(e){return Nt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ut.drawline,click:_a};Gt.drawrect={name:"drawrect",title:function(e){return Nt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ut.drawrect,click:_a};Gt.drawcircle={name:"drawcircle",title:function(e){return Nt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ut.drawcircle,click:_a};Gt.eraseshape={name:"eraseshape",title:function(e){return Nt(e,"Erase active shape")},icon:Ut.eraseshape,click:soe};Gt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nt(e,"Zoom in")},attr:"zoom",val:"in",icon:Ut.zoom_plus,click:_a};Gt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nt(e,"Zoom out")},attr:"zoom",val:"out",icon:Ut.zoom_minus,click:_a};Gt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ut.autoscale,click:_a};Gt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ut.home,click:_a};Gt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ut.tooltip_basic,gravity:"ne",click:_a};Gt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ut.tooltip_compare,gravity:"ne",click:_a};function _a(e,t){var r=t.currentTarget,a=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,i=e._fullLayout,o={},s=x6.list(e,null,!0),l=i._cartesianSpikesEnabled,u,c;if(a==="zoom"){var d=n==="in"?.5:2,h=(1+d)/2,p=(1-d)/2,g;for(c=0;c{"use strict";var k6=ab(),foe=Object.keys(k6),M6=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],S6=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(M6),Ol=[],coe=function(e){if(S6.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Ol.indexOf(t)===-1&&Ol.push(t),Ol.indexOf(r)===-1&&Ol.push(r)}};foe.forEach(function(e){coe(k6[e])});Ol.sort();C6.exports={DRAW_MODES:M6,backButtons:S6,foreButtons:Ol}});var ib=I((o_e,q6)=>{"use strict";var L6=nb();q6.exports={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 *"+L6.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 *"+L6.foreButtons.join("*, *")+"*."].join(" ")}}});var P6=I((s_e,D6)=>{"use strict";var doe=Re(),Mf=It(),hoe=ar(),voe=ib();D6.exports=function(t,r){var a=t.modebar||{},n=hoe.newContainer(r,"modebar");function i(s,l){return doe.coerce(a,n,voe,s,l)}i("orientation"),i("bgcolor",Mf.addOpacity(r.paper_bgcolor,.5));var o=Mf.contrast(Mf.rgb(r.modebar.bgcolor));i("color",Mf.addOpacity(o,.3)),i("activecolor",Mf.addOpacity(o,.7)),i("uirevision",r.uirevision),i("add"),i("remove")}});var z6=I((l_e,I6)=>{"use strict";var ob=Ft(),poe=jt(),Ri=Re(),R6=nv(),moe=Ad().version,goe=new DOMParser;function E6(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ui=E6.prototype;ui.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var i=a.modebar,o=r.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";Ri.deleteRelatedStyleRule(n),Ri.addRelatedStyleRule(n,o+"#"+n+" .modebar-group","background-color: "+i.bgcolor),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn .icon path","fill: "+i.color),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn:hover .icon path","fill: "+i.activecolor),Ri.addRelatedStyleRule(n,"#"+n+" .modebar-btn.active .icon path","fill: "+i.activecolor);var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton()};ui.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var a=t.createGroup();r.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");t.buttonsNames.push(i);var o=t.createButton(n);t.buttonElements.push(o),a.appendChild(o)}),t.element.appendChild(a)})};ui.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e};ui.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&r.setAttribute("data-title",a),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ob.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||R6.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};ui.createIcon=function(e){var t=poe(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(r,"svg"),a.setAttribute("viewBox",[0,0,e.width,t].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(r,"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=goe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ui.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=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"),o=a.getAttribute("data-toggle")==="true",s=ob.select(a);if(o)i===r&&s.classed("active",!s.classed("active"));else{var l=i===null?i:Ri.nestedProperty(t,i).get();s.classed("active",l===n)}})};ui.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var xoe=Hr(),N6=Ja(),sb=bt(),_oe=Mi().isUnifiedHover,woe=z6(),bv=ab(),Toe=nb().DRAW_MODES,Aoe=Re().extendDeep;F6.exports=function(t){var r=t._fullLayout,a=t._context,n=r._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete r._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,o;Array.isArray(i)&&i.length?o=qoe(i):!a.displayModeBar&&a.watermark?o=[]:o=koe(t),n?n.update(t,o):r._modeBar=woe(t,o)};function koe(e){var t=e._fullLayout,r=e._fullData,a=e._context;function n(Z,$){if(typeof $=="string"){if($.toLowerCase()===Z.toLowerCase())return!0}else{var ne=$.name,te=$._cat||$.name;if(ne===Z||te===Z.toLowerCase())return!0}return!1}var i=t.modebar.add;typeof i=="string"&&(i=[i]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var $=0;$1?(E=["toggleHover"],F=["resetViews"]):d?(P=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],F=["resetGeo"]):c?(E=["hoverClosest3d"],F=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(P=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],F=["resetViewMapbox"]):g?E=["hoverClosestGl2d"]:h?E=["hoverClosestPie"]:k?(E=["hoverClosestCartesian","hoverCompareCartesian"],F=["resetViewSankey"]):E=["toggleHover"],u&&(E=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(Coe(r)||A)&&(E=[]),(u||g)&&!w&&(P=["zoomIn2d","zoomOut2d","autoScale2d"],F[0]!=="resetViews"&&(F=["resetScale2d"])),c?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:(u||g)&&!w||m?N=["zoom2d","pan2d"]:b||d?N=["pan2d"]:x&&(N=["zoom2d"]),Soe(r)&&N.push("select2d","lasso2d");var j=[],B=function(Z){j.indexOf(Z)===-1&&E.indexOf(Z)!==-1&&j.push(Z)};if(Array.isArray(s)){for(var W=[],V=0;V{"use strict";O6.exports={moduleType:"component",name:"modebar",layoutAttributes:ib(),supplyLayoutDefaults:P6(),manage:j6()}});var ub=I((c_e,H6)=>{"use strict";var Doe=qa().FROM_BL;H6.exports=function(t,r,a){a===void 0&&(a=Doe[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],i=n[0]+(n[1]-n[0])*a;t.range=t._input.range=[t.l2r(i+(n[0]-i)*r),t.l2r(i+(n[1]-i)*r)],t.setScale()}});var Cf=I(Sf=>{"use strict";var xs=Re(),fb=mf(),On=Hr().id2name,Poe=ni(),B6=ub(),Roe=Rh(),Eoe=Tr().ALMOST_EQUAL,Ioe=qa().FROM_BL;Sf.handleDefaults=function(e,t,r){var a=r.axIds,n=r.axHasImage,i=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,d,h,p,g;for(s=0;si?r.substr(i):a.substr(n))+o}function Noe(e,t){for(var r=t._size,a=r.h/r.w,n={},i=Object.keys(e),o=0;oEoe*g&&!_)){for(i=0;iN&&neE&&(E=ne);var de=(E-P)/(2*F);d/=de,P=l.l2r(P),E=l.l2r(E),l.range=l._input.range=L{"use strict";var Foe=Ft(),wa=bt(),Hn=Nr(),Ei=Re(),hb=av(),Lf=It(),qf=Kt(),joe=vf(),V6=lb(),Df=tr(),Pf=qa(),Y6=Cf(),Ooe=Y6.enforce,Hoe=Y6.clean,Z6=mf().doAutoRange,X6="start",Boe="middle",$6="end";Gr.layoutStyles=function(e){return Ei.syncOrAsync([Hn.doAutoMargin,Goe],e)};function Uoe(e,t,r){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]t[0])return!0}return!1}function Goe(e){var t=e._fullLayout,r=t._size,a=r.p,n=Df.list(e,"",!0),i,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(qf.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),Gr.drawMainTitle(e),V6.manage(e),!t._has("cartesian"))return Hn.previousPromises(e);function d(Se,U,J){var O=Se._lw/2;if(Se._id.charAt(0)==="x"){if(U){if(J==="top")return U._offset-a-O}else return r.t+r.h*(1-(Se.position||0))+O%1;return U._offset+U._length+a+O}if(U){if(J==="right")return U._offset+U._length+a+O}else return r.l+r.w*(Se.position||0)+O%1;return U._offset-a-O}for(i=0;i{"use strict";var Xoe=ms().readPaths,$oe=hv(),J6=ro().clearOutlineControllers,vb=It(),eE=Kt(),Qoe=ar().arrayEditor,tE=ys(),Koe=tE.getPathString;aE.exports={draw:wv,drawOne:rE,activateLastSelection:tse};function wv(e){var t=e._fullLayout;J6(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var a=t._plots[r].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;b--){var x=o.append("path").attr(l).style("opacity",b?.1:u).call(vb.stroke,d).call(vb.fill,c).call(eE.dashLine,b?"solid":p,b?4+h:h);if(Joe(x,e,a),g){var _=Qoe(e.layout,"selections",a);x.style({cursor:"move"});var k={element:x.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},w=Xoe(s,e);$oe(w,x,k)}else x.style("pointer-events",b?"all":"none");m[b]=x}var A=m[0],L=m[1];L.node().addEventListener("click",function(){return ese(e,A)})}}function Joe(e,t,r){var a=r.xref+r.yref;eE.setClipUrl(e,"clip"+t._fullLayout._uid+a,t)}function ese(e,t){if(!!Tv(e)){var r=t.node(),a=+r.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){pb(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=pb,wv(e)}}}function tse(e){if(!!Tv(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=pb,wv(e)}}function pb(e){if(!!Tv(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(J6(e),delete e._fullLayout._activeSelectionIndex,wv(e))}}});var iE=I((p_e,nE)=>{function rse(){var e,t=0,r=!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 t++},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,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===r?e:(r=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}nE.exports=rse});var sE=I((m_e,oE)=>{function ase(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,a,n){var i=a[0],o=a[1],s=n[0],l=n[1],u=r[0],c=r[1];return(s-i)*(c-o)-(l-o)*(u-i)>=-e},pointBetween:function(r,a,n){var i=r[1]-a[1],o=n[0]-a[0],s=r[0]-a[0],l=n[1]-a[1],u=s*o+i*l;if(u-e)},pointsSameX:function(r,a){return Math.abs(r[0]-a[0])e!=s-i>e&&(o-c)*(i-d)/(s-d)+c-n>e&&(l=!l),o=c,s=d}return l}};return t}oE.exports=ase});var uE=I((g_e,lE)=>{var nse={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var a=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}a=n,n=n.next}a.next=t,t.prev=a,t.next=null},findTransition:function(t){for(var r=e.root,a=e.root.next;a!==null&&!t(a);)r=a,a=a.next;return{before:r===e.root?null:r,after:a,insert:function(n){return n.prev=r,n.next=a,r.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}};lE.exports=nse});var cE=I((y_e,fE)=>{var Rf=uE();function ise(e,t,r){function a(g,m){return{id:r?r.segmentId():-1,start:g,end:m,myFill:{above:null,below:null},otherFill:null}}function n(g,m,b){return{id:r?r.segmentId():-1,start:g,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var i=Rf.create();function o(g,m,b,x,_,k){var w=t.pointsCompare(m,_);return w!==0?w:t.pointsSame(b,k)?0:g!==x?g?1:-1:t.pointAboveOrOnLine(b,x?_:k,x?k:_)?1:-1}function s(g,m){i.insertBefore(g,function(b){var x=o(g.isStart,g.pt,m,b.isStart,b.pt,b.other.pt);return x<0})}function l(g,m){var b=Rf.node({isStart:!0,pt:g.start,seg:g,primary:m,other:null,status:null});return s(b,g.end),b}function u(g,m,b){var x=Rf.node({isStart:!1,pt:m.end,seg:m,primary:b,other:g,status:null});g.other=x,s(x,g.pt)}function c(g,m){var b=l(g,m);return u(b,g,m),b}function d(g,m){r&&r.segmentChop(g.seg,m),g.other.remove(),g.seg.end=m,g.other.pt=m,s(g.other,g.pt)}function h(g,m){var b=n(m,g.seg.end,g.seg);return d(g,m),c(b,g.primary)}function p(g,m){var b=Rf.create();function x(W,V){var Y=W.seg.start,Z=W.seg.end,$=V.seg.start,ne=V.seg.end;return t.pointsCollinear(Y,$,ne)?t.pointsCollinear(Z,$,ne)||t.pointAboveOrOnLine(Z,$,ne)?1:-1:t.pointAboveOrOnLine(Y,$,ne)?1:-1}function _(W){return b.findTransition(function(V){var Y=x(W,V.ev);return Y>0})}function k(W,V){var Y=W.seg,Z=V.seg,$=Y.start,ne=Y.end,te=Z.start,de=Z.end;r&&r.checkIntersection(Y,Z);var be=t.linesIntersect($,ne,te,de);if(be===!1){if(!t.pointsCollinear($,ne,te)||t.pointsSame($,de)||t.pointsSame(ne,te))return!1;var re=t.pointsSame($,te),ge=t.pointsSame(ne,de);if(re&&ge)return V;var ee=!re&&t.pointBetween($,te,de),Ae=!ge&&t.pointBetween(ne,te,de);if(re)return Ae?h(V,ne):h(W,de),V;ee&&(ge||(Ae?h(V,ne):h(W,de)),h(V,$))}else be.alongA===0&&(be.alongB===-1?h(W,te):be.alongB===0?h(W,be.pt):be.alongB===1&&h(W,de)),be.alongB===0&&(be.alongA===-1?h(V,$):be.alongA===0?h(V,be.pt):be.alongA===1&&h(V,ne));return!1}for(var w=[];!i.isEmpty();){var A=i.getHead();if(r&&r.vert(A.pt[0]),A.isStart){let W=function(){if(S){var V=k(A,S);if(V)return V}return q?k(A,q):!1};var B=W;r&&r.segmentNew(A.seg,A.primary);var L=_(A),S=L.before?L.before.ev:null,q=L.after?L.after.ev:null;r&&r.tempStatus(A.seg,S?S.seg:!1,q?q.seg:!1);var P=W();if(P){if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,E&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=A.seg.myFill;r&&r.segmentUpdate(P.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){r&&r.rewind(A.seg);continue}if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=g,E?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var F;q?A.primary===q.primary?F=q.seg.otherFill.above:F=q.seg.myFill.above:F=A.primary?m:g,A.seg.otherFill={above:F,below:F}}r&&r.status(A.seg,S?S.seg:!1,q?q.seg:!1),A.other.status=L.insert(Rf.node({ev:A}))}else{var N=A.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(N.prev)&&b.exists(N.next)&&k(N.prev.ev,N.next.ev),r&&r.statusRemove(N.ev.seg),N.remove(),!A.primary){var j=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=j}w.push(A.seg)}i.getHead().remove()}return r&&r.done(),w}return e?{addRegion:function(g){for(var m,b=g[g.length-1],x=0;x{function ose(e,t,r){var a=[],n=[];return e.forEach(function(i){var o=i.start,s=i.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(i);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function d(B,W,V){return c.index=B,c.matches_head=W,c.matches_pt1=V,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function Ef(e,t,r){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);t[i]!==0&&a.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[i]===1,below:t[i]===2},otherFill:null})}),r&&r.selected(a),a}var sse={union:function(e,t){return Ef(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ef(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ef(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ef(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ef(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};vE.exports=sse});var gE=I((__e,mE)=>{var lse={toPolygon:function(e,t){function r(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(i[0]),l=1;l{var use=iE(),fse=sE(),yE=cE(),cse=hE(),If=pE(),bE=gE(),bn=!1,zf=fse(),Va;Va={buildLog:function(e){return e===!0?bn=use():e===!1&&(bn=!1),bn===!1?!1:bn.list},epsilon:function(e){return zf.epsilon(e)},segments:function(e){var t=yE(!0,zf,bn);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=yE(!1,zf,bn);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:If.union(e.combined,bn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:If.intersect(e.combined,bn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:If.difference(e.combined,bn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:If.differenceRev(e.combined,bn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:If.xor(e.combined,bn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:cse(e.segments,zf,bn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return bE.toPolygon(Va,e)},polygonToGeoJSON:function(e){return bE.fromPolygon(Va,zf,e)},union:function(e,t){return Nf(e,t,Va.selectUnion)},intersect:function(e,t){return Nf(e,t,Va.selectIntersect)},difference:function(e,t){return Nf(e,t,Va.selectDifference)},differenceRev:function(e,t){return Nf(e,t,Va.selectDifferenceRev)},xor:function(e,t){return Nf(e,t,Va.selectXor)}};function Nf(e,t,r){var a=Va.segments(e),n=Va.segments(t),i=Va.combine(a,n),o=r(i);return Va.polygon(o)}typeof window=="object"&&(window.PolyBool=Va);xE.exports=Va});var TE=I((T_e,wE)=>{wE.exports=function(t,r,a,n){var i=t[0],o=t[1],s=!1;a===void 0&&(a=0),n===void 0&&(n=r.length);for(var l=n-a,u=0,c=l-1;uo!=g>o&&i<(p-d)*(o-h)/(g-h)+d;m&&(s=!s)}return s}});var yb=I((A_e,AE)=>{"use strict";var gb=Gd().dot,Av=Tr().BADNUM,kv=AE.exports={};kv.tester=function(t){var r=t.slice(),a=r[0][0],n=a,i=r[0][1],o=i,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||x===Av||xo||m&&u(g))}function d(g,m){var b=g[0],x=g[1];if(b===Av||bn||x===Av||xo)return!1;var _=r.length,k=r[0][0],w=r[0][1],A=0,L,S,q,P,E;for(L=1;L<_;L++)if(S=k,q=w,k=r[L][0],w=r[L][1],P=Math.min(S,k),!(bMath.max(S,k)||x>Math.max(q,w)))if(xs||Math.abs(gb(d,u))>n)return!0;return!1};kv.filter=function(t,r){var a=[t[0]],n=0,i=0;function o(l){t.push(l);var u=a.length,c=n;a.splice(i+1);for(var d=c+1;d1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:a}}});var ME=I((k_e,kE)=>{"use strict";kE.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var ZE=I((M_e,YE)=>{"use strict";var SE=_E(),dse=TE(),Ff=bt(),hse=Kt().dashStyle,jf=It(),vse=qi(),pse=Mi().makeEventData,Of=Il(),mse=Of.freeMode,gse=Of.rectMode,Hf=Of.drawMode,bb=Of.openMode,xb=Of.selectMode,CE=ys(),LE=kf(),qE=hv(),DE=ro().clearOutline,PE=ms(),_b=PE.handleEllipse,yse=PE.readPaths,bse=G0(),xse=V0(),_se=mb().activateLastSelection,Mv=Re(),wse=Mv.sorterAsc,RE=yb(),Bf=th(),xn=Hr().getFromId,Tse=av(),Ase=_v().redrawReglTraces,Sv=ME(),fi=Sv.MINSELECT,kse=RE.filter,wb=RE.tester,Tb=sv(),EE=Tb.p2r,Mse=Tb.axValue,Sse=Tb.getTransform;function Ab(e){return e.subplot!==void 0}function Cse(e,t,r,a,n){var i=!Ab(a),o=mse(n),s=gse(n),l=bb(n),u=Hf(n),c=xb(n),d=n==="drawline",h=n==="drawcircle",p=d||h,g=a.gd,m=g._fullLayout,b=c&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,_=a.element.getBoundingClientRect(),k=a.plotinfo,w=Sse(k),A=t-_.left,L=r-_.top;m._calcInverseTransform(g);var S=Mv.apply3DTransform(m._invTransform)(A,L);A=S[0],L=S[1];var q=m._invScaleX,P=m._invScaleY,E=A,F=L,N="M"+A+","+L,j=a.xaxes[0],B=a.yaxes[0],W=j._length,V=B._length,Y=e.altKey&&!(Hf(n)&&l),Z,$,ne,te,de,be,re;zE(e,g,a),o&&(Z=kse([[A,L]],Sv.BENDPX));var ge=x.selectAll("path.select-outline-"+k.id).data([1]),ee=u?m.newshape:m.newselection,Ae=u&&!l?ee.fillcolor:"rgba(0,0,0,0)",ke=ee.line.color||(i?jf.contrast(g._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+k.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":hse(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(jf.stroke,ke).call(jf.fill,Ae).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",w).attr("d",N+"Z");var De=x.append("path").attr("class","zoombox-corners").style({fill:jf.background,stroke:jf.defaultLine,"stroke-width":1}).attr("transform",w).attr("d","M0,0Z"),Le=m._uid+Sv.SELECTID,Se=[],U=Cv(g,a.xaxes,a.yaxes,a.subplot);b&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(!!i){var O=j._id,oe=B._id;UE(g,O,oe,U);for(var me=(g.layout||{}).selections||[],xe=[],qe=!1,Pe=0;Pe=0){g._fullLayout._deactivateShape(g);return}if(!u){var me=m.clickmode;Bf.done(Le).then(function(){if(Bf.clear(Le),O===2){for(ge.remove(),de=0;de-1&&IE(oe,g,a.xaxes,a.yaxes,a.subplot,a,ge),me==="event"&&Wf(g,void 0);vse.click(g,oe)}).catch(Mv.error)}},a.doneFn=function(){De.remove(),Bf.done(Le).then(function(){Bf.clear(Le),!b&&te&&a.selectionDefs&&(te.subtract=Y,a.selectionDefs.push(te),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ne)),(b||u)&&Uf(a,b),a.doneFnCompleted&&a.doneFnCompleted(Se),c&&Wf(g,re)}).catch(Mv.error)}}function IE(e,t,r,a,n,i,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,d=[],h,p,g,m,b,x,_,k,w,A;if(Rse(s)){zE(e,t,i),h=Cv(t,r,a,n);var L=Ese(s,h),S=L.pointNumbers.length>0;if(S?Ise(h,L):zse(h)&&(_=FE(L))){for(o&&o.remove(),A=0;A=0}function Pse(e){return e._fullLayout._activeSelectionIndex>=0}function Uf(e,t){var r=e.dragmode,a=e.plotinfo,n=e.gd;Dse(n)&&n._fullLayout._deactivateShape(n),Pse(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,s=Hf(r),l=xb(r);if(s||l){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var c;s&&(c=bse(u,e)),c&&Ff.call("_guiRelayout",n,{shapes:c});var d;l&&!Ab(e)&&(d=xse(u,e)),d&&(n._fullLayout._noEmitSelectedAtStart=!0,Ff.call("_guiRelayout",n,{selections:d}).then(function(){t&&_se(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function NE(e){return e._id}function Cv(e,t,r,a){if(!e.calcdata)return[];var n=[],i=t.map(NE),o=r.map(NE),s,l,u;for(u=0;u0,i=n?a[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(i)>-1:!1}function Ise(e,t){var r=[],a,n,i,o;for(o=0;o0&&r.push(a);if(r.length===1&&(i=r[0]===t.searchInfo,i&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=a.selectedpoints.length,t>1)))return!1;return t===1}function Gf(e,t,r){var a;for(a=0;a-1&&t;if(!o&&t){var oe=GE(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var qe=WE(oe),Pe=VE([xn(e,me,"x"),xn(e,xe,"y")]);Pe(U,qe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:O&&Wf(e,U),h._reselect=!1}if(!o&&h._deselect){var ye=h._deselect;s=ye.xref,l=ye.yref,jse(s,l,c)||UE(e,s,l,a),O&&(U.points.length?Wf(e,U):Lb(e)),h._deselect=!1}return{eventData:U,selectionTesters:r}}function Fse(e){var t=e.calcdata;if(!!t)for(var r=0;r{"use strict";XE.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 Vf=I((C_e,$E)=>{"use strict";$E.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Hl=I((L_e,t4)=>{"use strict";var QE=qb(),KE=La(),qv=ga(),Gse=ar().templatedArray,Dv=Vf();function JE(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function e4(e,t,r){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",r,"to",t,"("+t,"to",r+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}t4.exports=Gse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (
), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:KE({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:QE.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:QE.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[e4("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[e4("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",qv.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",Dv.axisRefDescription("x","left","right"),JE("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",qv.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",Dv.axisRefDescription("y","bottom","top"),JE("y")].join(" ")},xref:{valType:"enumerated",values:["paper",qv.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",Dv.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",qv.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",Dv.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:KE({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})});var Yf=I(Db=>{"use strict";var r4=Jg(),Wse=r4.FORMAT_LINK,Vse=r4.DATE_FORMAT_LINK;function a4(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" 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}".`,Wse,"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}".`,Vse,"for details on the date formatting syntax."].join(" ")}function n4(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var a=[],n=0;n` is displayed in the secondary box, for example "{fullData.name}".',"To hide the secondary box completely, use an empty tag ``."].join(" ")};return e.arrayOk!==!1&&(a.arrayOk=!0),a};Db.texttemplateAttrs=function(e,t){e=e||{},t=t||{};var r=n4(t),a={valType:"string",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",a4(),"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",r].join(" ")};return e.arrayOk!==!1&&(a.arrayOk=!0),a}});var Pv=I((D_e,i4)=>{"use strict";i4.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Bl=I((P_e,d4)=>{"use strict";var o4=yh().axisHoverFormat,Yse=Yf().texttemplateAttrs,Zse=Yf().hovertemplateAttrs,s4=cf(),Xse=La(),$se=yi().dash,Qse=yi().pattern,Kse=Kt(),l4=Pv(),Pb=ra().extendFlat;function u4(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M* on the "+e+" axis.","Special values in the form of *M* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function f4(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function c4(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}d4.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:u4("x"),yperiod:u4("y"),xperiod0:f4("x0"),yperiod0:f4("y0"),xperiodalignment:c4("x"),yperiodalignment:c4("y"),xhoverformat:o4("x"),yhoverformat:o4("y"),stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:Yse({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+l4.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:Zse({},{keys:l4.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:Pb({},$se,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},fillpattern:Qse,marker:Pb({symbol:{valType:"enumerated",values:Kse.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:Pb({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},s4("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},s4("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:Xse({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."})}});var Rb=I((R_e,m4)=>{"use strict";var h4=Hl(),v4=Bl().line,Jse=yi().dash,Rv=ra().extendFlat,ele=Ai().overrideAll,tle=ar().templatedArray,p4=Vf();m4.exports=ele(tle("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:Rv({},h4.xref,{description:["Sets the selection's x coordinate axis.",p4.axisRefDescription("x","left","right")].join(" ")}),yref:Rv({},h4.yref,{description:["Sets the selection's x coordinate axis.",p4.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:v4.color,width:Rv({},v4.width,{min:1,dflt:1}),dash:Rv({},Jse,{dflt:"dot"})}}),"arraydraw","from-root")});var x4=I((E_e,b4)=>{"use strict";var g4=Re(),Ev=tr(),rle=In(),ale=Rb(),y4=ys();b4.exports=function(t,r){rle(t,r,{name:"selections",handleItemDefaults:nle});for(var a=r.selections,n=0;n{"use strict";_4.exports=function(t,r,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 Zf=I((z_e,k4)=>{"use strict";var ile=bt(),T4=Re(),A4=Hr();k4.exports=function(t){return function(a,n){var i=a[t];if(!!Array.isArray(i))for(var o=ile.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,c=l.yaxis,d=l.cartesian,h=n._has("cartesian")||n._has("gl2d"),p=0;p{"use strict";var M4=mb(),Xf=ZE();S4.exports={moduleType:"component",name:"selections",layoutAttributes:Rb(),supplyLayoutDefaults:x4(),supplyDrawNewSelectionDefaults:w4(),includeBasePlot:Zf()("selections"),draw:M4.draw,drawOne:M4.drawOne,reselect:Xf.reselect,prepSelect:Xf.prepSelect,clearOutline:Xf.clearOutline,clearSelectionsCache:Xf.clearSelectionsCache,selectOnClick:Xf.selectOnClick}});var Z4=I((F_e,Y4)=>{"use strict";var Eb=Ft(),_n=Re(),C4=_n.numberFormat,ole=Pn(),sle=c0(),Iv=bt(),L4=_n.strTranslate,lle=Ga(),q4=It(),fo=Kt(),ule=qi(),D4=tr(),fle=oo(),cle=Nn(),P4=Il(),zv=P4.selectingOrDrawing,dle=P4.freeMode,hle=qa().FROM_TL,vle=av(),ple=_v().redrawReglTraces,mle=Nr(),Ib=Hr().getFromId,gle=Ul().prepSelect,yle=Ul().clearOutline,ble=Ul().selectOnClick,zb=ub(),Nb=ga(),R4=Nb.MINDRAG,Ra=Nb.MINZOOM,E4=!0;function xle(e,t,r,a,n,i,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,d,h,p,g,m,b,x,_,k,w,A,L,S,q,P,E,F,N,j,B,W,V,Y;function Z(){if(d=t.xaxis,h=t.yaxis,k=d._length,w=h._length,x=d._offset,_=h._offset,p={},p[d._id]=d,g={},g[h._id]=h,o&&s)for(var we=t.overlays,Me=0;Me=0){Ye._fullLayout._deactivateShape(Ye);return}var je=Ye._fullLayout.clickmode;if(jb(Ye),we===2&&!c&&wt(),u)je.indexOf("select")>-1&&ble(Me,Ye,m,b,t.id,te),je.indexOf("event")>-1&&ule.click(Ye,Me,t.id);else if(we===1&&c){var ze=o?h:d,Ge=o==="s"||s==="w"?0:1,mt=ze._name+".range["+Ge+"]",Tt=_le(ze,Ge),ot="left",Ne="middle";if(ze.fixedrange)return;o?(Ne=o==="n"?"top":"bottom",ze.side==="right"&&(ot="right")):s==="e"&&(ot="right"),Ye._context.showAxisRangeEntryBoxes&&Eb.select(ne).call(lle.makeEditable,{gd:Ye,immediate:!0,background:Ye._fullLayout.paper_bgcolor,text:String(Tt),fill:ze.tickfont?ze.tickfont.color:"#444",horizontalAlign:ot,verticalAlign:Ne}).on("edit",function(et){var Oe=ze.d2r(et);Oe!==void 0&&Iv.call("_guiRelayout",Ye,mt,Oe)})}}cle.init(te);var re,ge,ee,Ae,ke,De,Le,Se,U,J;function O(we,Me,Ye){var je=ne.getBoundingClientRect();re=Me-je.left,ge=Ye-je.top,e._fullLayout._calcInverseTransform(e);var ze=_n.apply3DTransform(e._fullLayout._invTransform)(re,ge);re=ze[0],ge=ze[1],ee={l:re,r:re,w:0,t:ge,b:ge,h:0},Ae=e._hmpixcount?e._hmlumcount/e._hmpixcount:ole(e._fullLayout.plot_bgcolor).getLuminance(),ke="M0,0H"+k+"V"+w+"H0V0",De=!1,Le="xy",J=!1,Se=j4(l,Ae,x,_,ke),U=O4(l,x,_)}function oe(we,Me){if(e._transitioningWithDuration)return!1;var Ye=Math.max(0,Math.min(k,V*we+re)),je=Math.max(0,Math.min(w,Y*Me+ge)),ze=Math.abs(Ye-re),Ge=Math.abs(je-ge);ee.l=Math.min(re,Ye),ee.r=Math.max(re,Ye),ee.t=Math.min(ge,je),ee.b=Math.max(ge,je);function mt(){Le="",ee.r=ee.l,ee.t=ee.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)ze>Ra||Ge>Ra?(Le="xy",ze/k>Ge/w?(Ge=ze*w/k,ge>je?ee.t=ge-Ge:ee.b=ge+Ge):(ze=Ge*k/w,re>Ye?ee.l=re-ze:ee.r=re+ze),U.attr("d",Nv(ee))):mt();else if(L.isSubplotConstrained)if(ze>Ra||Ge>Ra){Le="xy";var Tt=Math.min(ee.l/k,(w-ee.b)/w),ot=Math.max(ee.r/k,(w-ee.t)/w);ee.l=Tt*k,ee.r=ot*k,ee.b=(1-Tt)*w,ee.t=(1-ot)*w,U.attr("d",Nv(ee))}else mt();else!q||Ge0){var et;if(L.isSubplotConstrained||!S&&q.length===1){for(et=0;et=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Tle(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function j4(e,t,r,a,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",L4(r,a)).attr("d",n+"Z")}function O4(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:q4.background,stroke:q4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",L4(t,r)).attr("d","M0,0Z")}function H4(e,t,r,a,n,i){e.attr("d",a+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),B4(e,t,n,i)}function B4(e,t,r,a){r||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function jb(e){Eb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function U4(e){E4&&e.data&&e._context.showTips&&(_n.notifier(_n._(e,"Double-click to zoom back out"),"long"),E4=!1)}function Ale(e,t){return"M"+(e.l-.5)+","+(t-Ra-.5)+"h-3v"+(2*Ra+1)+"h3ZM"+(e.r+.5)+","+(t-Ra-.5)+"h3v"+(2*Ra+1)+"h-3Z"}function kle(e,t){return"M"+(t-Ra-.5)+","+(e.t-.5)+"v-3h"+(2*Ra+1)+"v3ZM"+(t-Ra-.5)+","+(e.b+.5)+"v3h"+(2*Ra+1)+"v-3Z"}function Nv(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ra)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function G4(e,t,r,a,n){for(var i=!1,o={},s={},l,u,c,d,h=(n||{}).xaHash,p=(n||{}).yaHash,g=0;g{"use strict";var Mle=Ft(),Fv=qi(),Sle=Nn(),Cle=oo(),Bn=Z4().makeDragBox,Wr=ga().DRAGGERSIZE;jv.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Mle.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var a=Object.keys(r._plots||{}).sort(function(i,o){if((r._plots[i].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=i.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[i].mainplot?1:-1});a.forEach(function(i){var o=r._plots[i],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Bn(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===i&&t._fullLayout._plots[i]&&Fv.hover(t,h,i)},Fv.hover(t,h,i),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=i},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Sle.unhover(t,h))},t._context.showAxisDragHandles&&(Bn(t,o,s._offset-Wr,l._offset-Wr,Wr,Wr,"n","w"),Bn(t,o,s._offset+s._length,l._offset-Wr,Wr,Wr,"n","e"),Bn(t,o,s._offset-Wr,l._offset+l._length,Wr,Wr,"s","w"),Bn(t,o,s._offset+s._length,l._offset+l._length,Wr,Wr,"s","e"))}if(t._context.showAxisDragHandles){if(i===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=Wr),Bn(t,o,s._offset+s._length*.1,c,s._length*.8,Wr,"","ew"),Bn(t,o,s._offset,c,s._length*.1,Wr,"","w"),Bn(t,o,s._offset+s._length*.9,c,s._length*.1,Wr,"","e")}if(i===l._mainSubplot){var d=l._mainLinePosition;l.side!=="right"&&(d-=Wr),Bn(t,o,d,l._offset+l._length*.1,Wr,l._length*.8,"ns",""),Bn(t,o,d,l._offset+l._length*.9,Wr,l._length*.1,"s",""),Bn(t,o,d,l._offset,Wr,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(i){i.target=t._fullLayout._lasthover,Fv.hover(t,i,r._hoversubplot)},n.onclick=function(i){i.target=t._fullLayout._lasthover,Fv.click(t,i)},n.onmousedown=function(i){t._fullLayout._lasthover.onmousedown(i)},jv.updateFx(t)}};jv.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Cle(t._draggers,r)}});var Q4=I((O_e,$4)=>{"use strict";var X4=bt();$4.exports=function(t){for(var r=X4.layoutArrayContainers,a=X4.layoutArrayRegexes,n=t.split("[")[0],i,o,s=0;s{"use strict";var Lle=tl(),Hb=Ud(),$f=Go(),qle=Tg().sorterAsc,Bb=bt();Qf.containerArrayMatch=Q4();var Dle=Qf.isAddVal=function(t){return t==="add"||Lle(t)},K4=Qf.isRemoveVal=function(t){return t===null||t==="remove"};Qf.applyContainerArrayChanges=function(t,r,a,n,i){var o=r.astr,s=Bb.getComponentMethod(o,"supplyLayoutDefaults"),l=Bb.getComponentMethod(o,"draw"),u=Bb.getComponentMethod(o,"drawOne"),c=n.replot||n.recalc||s===Hb||l===Hb,d=t.layout,h=t._fullLayout;if(a[""]){Object.keys(a).length>1&&$f.warn("Full array edits are incompatible with other edits",o);var p=a[""][""];if(K4(p))r.set(null);else if(Array.isArray(p))r.set(p);else return $f.warn("Unrecognized full array edit value",o,p),!0;return c?!1:(s(d,h),l(t),!0)}var g=Object.keys(a).map(Number).sort(qle),m=r.get(),b=m||[],x=i(h,o).get(),_=[],k=-1,w=b.length,A,L,S,q,P,E,F,N;for(A=0;Ab.length-(F?0:1)){$f.warn("index out of range",o,S);continue}if(E!==void 0)P.length>1&&$f.warn("Insertion & removal are incompatible with edits to the same index.",o,S),K4(E)?_.push(S):F?(E==="add"&&(E={}),b.splice(S,0,E),x&&x.splice(S,0,{})):$f.warn("Unrecognized full object edit value",o,S,E),k===-1&&(k=S);else for(L=0;L=0;A--)b.splice(_[A],1),x&&x.splice(_[A],1);if(b.length?m||r.set(b):r.set(null),c)return!1;if(s(d,h),u!==Hb){var j;if(k===-1)j=g;else{for(w=Math.max(b.length,w),j=[],A=0;A=k));A++)j.push(S);for(A=k;A{"use strict";var eI=jt(),Ple=mg(),tI=bt(),Ea=Re(),Kf=Nr(),rI=Hr(),_s=It(),Jf=rI.cleanId,Rle=rI.getFromTrace,ec=tI.traceIs;wn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ea.log("Clearing previous rejected promises from queue."),e._promises=[]};wn.cleanLayout=function(e){var t,r;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=(Kf.subplotsRegistry.cartesian||{}).attrRegex,n=(Kf.subplotsRegistry.polar||{}).attrRegex,i=(Kf.subplotsRegistry.ternary||{}).attrRegex,o=(Kf.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),Ia(e),e.dragmode==="rotate"&&(e.dragmode="orbit"),_s.clean(e),e.template&&e.template.layout&&wn.cleanLayout(e.template.layout),e};function Gl(e,t){var r=e[t],a=t.charAt(0);r&&r!=="paper"&&(e[t]=Jf(r,a,!0))}function Ia(e){e&&((typeof e.title=="string"||typeof e.title=="number")&&(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"));function t(r,a){var n=e[r],i=e.title&&e.title[a];n&&!i&&(e.title||(e.title={}),e.title[a]=e[r],delete e[r])}}wn.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}wn.hasParent=function(e,t){for(var r=iI(t);r;){if(r in e)return!0;r=iI(r)}return!1};var zle=["x","y","z"];wn.clearAxisTypes=function(e,t,r){for(var a=0;a{"use strict";var Hv=Ft(),Nle=jt(),Fle=zg(),Ve=Re(),Jt=Ve.nestedProperty,Ub=tf(),za=HL(),Tn=bt(),Bv=eo(),xt=Nr(),Ta=tr(),Gb=Kt(),jle=It(),Ole=Ob().initInteractions,Hle=Jo(),Ble=Ul().clearOutline,sI=Uo().dfltConfig,Uv=J4(),Dr=oI(),Xt=_v(),co=Ai(),Ule=ga().AX_NAME_PATTERN,Wb=0,lI=5;function Gle(e,t,r,a){var n;if(e=Ve.getGraphDiv(e),Ub.init(e),Ve.isPlainObject(t)){var i=t;t=i.data,r=i.layout,a=i.config,n=i.frames}var o=Ub.triggerHandler(e,"plotly_beforeplot",[t,r,a]);if(o===!1)return Promise.reject();!t&&!r&&!Ve.isPlotDiv(e)&&Ve.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return Ht.addFrames(e,n)}fI(e,a),r||(r={}),Hv.select(e).classed("js-plotly-plot",!0),Gb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Dr.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Dr.cleanLayout(r)),xt.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(due(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Gb.initGradients(e),Gb.initPatterns(e),l&&Ta.saveShowSpikeInitial(e);var d=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;d&&xt.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,a+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function cI(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Wv(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Wv(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Xle(e,t,r){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),a=0;a=0&&c=0&&c-1&&i.indexOf("grouptitlefont")===-1?s(i,i.replace("titlefont","title.font")):i.indexOf("titleposition")>-1?s(i,i.replace("titleposition","title.position")):i.indexOf("titleside")>-1?s(i,i.replace("titleside","title.side")):i.indexOf("titleoffset")>-1&&s(i,i.replace("titleoffset","title.offset"));function s(l,u){e[u]=e[l],delete e[l]}}function rc(e,t,r){e=Ve.getGraphDiv(e),Dr.clearPromiseQueue(e);var a={};if(typeof t=="string")a[t]=r;else if(Ve.isPlainObject(t))a=Ve.extendFlat({},t);else return Ve.warn("Relayout fail.",t,r),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=AI(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[xt.previousPromises];i.layoutReplot?o.push(Xt.layoutReplot):Object.keys(a).length&&(xI(e,i,n)||xt.supplyDefaults(e),i.legend&&o.push(Xt.doLegend),i.layoutstyle&&o.push(Xt.layoutStyles),i.axrange&&Xv(o,n.rangesAltered),i.ticks&&o.push(Xt.doTicksRelayout),i.modebar&&o.push(Xt.doModeBar),i.camera&&o.push(Xt.doCamera),i.colorbars&&o.push(Xt.doColorBars),o.push(tc)),o.push(xt.rehover,xt.redrag,xt.reselect),za.add(e,rc,[e,n.undoit],rc,[e,n.redoit]);var s=Ve.syncOrAsync(o,e);return(!s||!s.then)&&(s=Promise.resolve(e)),s.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function xI(e,t,r){var a=e._fullLayout;if(!t.axrange)return!1;for(var n in t)if(n!=="axrange"&&t[n])return!1;for(var i in r.rangesAltered){var o=Ta.id2name(i),s=e.layout[o],l=a[o];if(l.autorange=s.autorange,s.range&&(l.range=s.range.slice()),l.cleanRange(),l._matchGroup){for(var u in l._matchGroup)if(u!==i){var c=a[Ta.id2name(u)];c.autorange=l.autorange,c.range=l.range.slice(),c._input.range=l.range.slice()}}}return!0}function Xv(e,t){var r=t?function(a){var n=[],i=!0;for(var o in t){var s=Ta.getFromId(a,o);if(n.push(o),(s.ticklabelposition||"").indexOf("inside")!==-1&&s._anchorAxis&&n.push(s._anchorAxis._id),s._matchGroup)for(var l in s._matchGroup)t[l]||n.push(l)}return Ta.draw(a,n,{skipTitle:i})}:function(a){return Ta.draw(a,"redraw")};e.push(Ble,Xt.doAutoRangeAndConstraints,r,Xt.drawData,Xt.finalDraw)}var _I=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,wI=/^[xyz]axis[0-9]*\.autorange$/,TI=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function AI(e,t){var r=e.layout,a=e._fullLayout,n=a._guiEditing,i=Yv(a._preGUI,n),o=Object.keys(t),s=Ta.list(e),l=Ve.extendDeepAll({},t),u={},c,d,h;for(bI(t),o=Object.keys(t),d=0;d0&&typeof q.parts[F]!="string";)F--;var N=q.parts[F],j=q.parts[F-1]+"."+N,B=q.parts.slice(0,F).join("."),W=Jt(e.layout,B).get(),V=Jt(a,B).get(),Y=q.get();if(P!==void 0){x[S]=P,_[S]=N==="reverse"?P:Ii(Y);var Z=Bv.getLayoutValObject(a,q.parts);if(Z&&Z.impliedEdits&&P!==null)for(var $ in Z.impliedEdits)k(Ve.relativeAttr(S,$),Z.impliedEdits[$]);if(["width","height"].indexOf(S)!==-1)if(P){k("autosize",null);var ne=S==="height"?"width":"height";k(ne,a[ne])}else a[S]=e._initialAutoSize[S];else if(S==="autosize")k("width",P?null:a.width),k("height",P?null:a.height);else if(j.match(_I))L(j),Jt(a,B+"._inputRange").set(null);else if(j.match(wI)){L(j),Jt(a,B+"._inputRange").set(null);var te=Jt(a,B).get();te._inputDomain&&(te._input.domain=te._inputDomain.slice())}else j.match(TI)&&Jt(a,B+"._inputDomain").set(null);if(N==="type"){A=W;var de=V.type==="linear"&&P==="log",be=V.type==="log"&&P==="linear";if(de||be){if(!A||!A.range)k(B+".autorange",!0);else if(V.autorange)de&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var re=A.range[0],ge=A.range[1];de?(re<=0&&ge<=0&&k(B+".autorange",!0),re<=0?re=ge/1e6:ge<=0&&(ge=re/1e6),k(B+".range[0]",Math.log(re)/Math.LN10),k(B+".range[1]",Math.log(ge)/Math.LN10)):(k(B+".range[0]",Math.pow(10,re)),k(B+".range[1]",Math.pow(10,ge)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Tn.getComponentMethod("annotations","convertCoords")(e,V,P,k),Tn.getComponentMethod("images","convertCoords")(e,V,P,k)}else k(B+".autorange",!0),k(B+".range",null);Jt(a,B+"._inputRange").set(null)}else if(N.match(Ule)){var ee=Jt(a,S).get(),Ae=(P||{}).type;(!Ae||Ae==="-")&&(Ae="linear"),Tn.getComponentMethod("annotations","convertCoords")(e,ee,Ae,k),Tn.getComponentMethod("images","convertCoords")(e,ee,Ae,k)}var ke=Uv.containerArrayMatch(S);if(ke){c=ke.array,d=ke.index;var De=ke.property,Le=Z||{editType:"calc"};d!==""&&De===""&&(Uv.isAddVal(P)?_[S]=null:Uv.isRemoveVal(P)?_[S]=(Jt(r,c).get()||[])[d]:Ve.warn("unrecognized full object value",t)),co.update(b,Le),u[c]||(u[c]={});var Se=u[c][d];Se||(Se=u[c][d]={}),Se[De]=P,delete t[S]}else N==="reverse"?(W.range?W.range.reverse():(k(B+".autorange",!0),W.range=[1,0]),V.autorange?b.calc=!0:b.plot=!0):(S==="dragmode"&&(P===!1&&Y!==!1||P!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&S==="dragmode"&&(P==="lasso"||P==="select")&&!(Y==="lasso"||Y==="select")||a._has("gl2d")?b.plot=!0:Z?co.update(b,Z):b.calc=!0,q.set(P))}}for(c in u){var U=Uv.applyContainerArrayChanges(e,i(r,c),u[c],b,i);U||(b.plot=!0)}for(var J in w){A=Ta.getFromId(e,J);var O=A&&A._constraintGroup;if(O){b.calc=!0;for(var oe in O)w[oe]||(Ta.getFromId(e,oe)._constraintShrinkable=!0)}}return(kI(e)||t.height||t.width)&&(b.plot=!0),(b.plot||b.calc)&&(b.layoutReplot=!0),{flags:b,rangesAltered:w,undoit:_,redoit:x,eventData:l}}function kI(e){var t=e._fullLayout,r=t.width,a=t.height;return e.layout.autosize&&xt.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==a}function $v(e,t,r,a){e=Ve.getGraphDiv(e),Dr.clearPromiseQueue(e),Ve.isPlainObject(t)||(t={}),Ve.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var n=Dr.coerceTraceIndices(e,a),i=yI(e,Ve.extendFlat({},t),n),o=i.flags,s=AI(e,Ve.extendFlat({},r)),l=s.flags;(o.calc||l.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&Dr.clearAxisTypes(e,n,r);var u=[];l.layoutReplot?u.push(Xt.layoutReplot):o.fullReplot?u.push(Ht._doPlot):(u.push(xt.previousPromises),xI(e,l,s)||xt.supplyDefaults(e),o.style&&u.push(Xt.doTraceStyle),(o.colorbars||l.colorbars)&&u.push(Xt.doColorBars),l.legend&&u.push(Xt.doLegend),l.layoutstyle&&u.push(Xt.layoutStyles),l.axrange&&Xv(u,s.rangesAltered),l.ticks&&u.push(Xt.doTicksRelayout),l.modebar&&u.push(Xt.doModeBar),l.camera&&u.push(Xt.doCamera),u.push(tc)),u.push(xt.rehover,xt.redrag,xt.reselect),za.add(e,$v,[e,i.undoit,s.undoit,i.traces],$v,[e,i.redoit,s.redoit,i.traces]);var c=Ve.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve(e)),c.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:s.eventData}),e})}function Yb(e){return function(r){r._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return r._fullLayout._guiEditing=!1,a}}var Jle=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],eue=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function MI(e,t){for(var r=0;r1;)if(a.pop(),r=Jt(t,a.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function tue(e,t){for(var r=0;r=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function l(u,c){var d=0;return function(){if(u&&++d===c)return u()}}return new Promise(function(u,c){function d(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var j=0;ja._timeToNext&&g()};N()}var b=0;function x(N){return Array.isArray(n)?b>=n.length?N.transitionOpts=n[b]:N.transitionOpts=n[0]:N.transitionOpts=n,b++,N}var _,k,w=[],A=t==null,L=Array.isArray(t),S=!A&&!L&&Ve.isPlainObject(t);if(S)w.push({type:"object",data:x(Ve.extendFlat({},t))});else if(A||["string","number"].indexOf(typeof t)!==-1)for(_=0;_0&&EE)&&F.push(k);w=F}}w.length>0?h(w):(e.emit("plotly_animated"),u())})}function lue(e,t,r){if(e=Ve.getGraphDiv(e),t==null)return Promise.resolve();if(!Ve.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,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],d={};for(a=t.length-1;a>=0;a--)if(!!Ve.isPlainObject(t[a])){var h=t[a].name,p=(l[h]||d[h]||{}).name,g=t[a].name,m=l[p]||d[p];p&&g&&typeof g=="number"&&m&&Wbq.index?-1:S.index=0;a--){if(n=c[a].frame,typeof n.name=="number"&&Ve.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(i=0;i=0;r--)a=t[r],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var s=xt.modifyFrames,l=xt.modifyFrames,u=[e,o],c=[e,i];return za&&za.add(e,s,u,l,c),xt.modifyFrames(e,i)}function fue(e){e=Ve.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return xt.cleanPlot([],{},r,t),xt.purge(e),Ub.purge(e),t._container&&t._container.remove(),delete e._context,e}function cue(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Ve.equalDomRects(r,t._lastBBox)){var a=t._invTransform=Ve.inverseTransformMatrix(Ve.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),t._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),t._lastBBox=r}}function due(e){var t=Hv.select(e),r=e._fullLayout;if(r._calcInverseTransform=cue,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var a={};Hv.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),r._uid=Ve.randstr(a)}r._paperdiv.selectAll(".main-svg").attr(Hle.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var i=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=i.append("g").classed("imagelayer",!0),r._shapeUpperLayer=i.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ht.animate=sue;Ht.addFrames=lue;Ht.deleteFrames=uue;Ht.addTraces=mI;Ht.deleteTraces=gI;Ht.extendTraces=vI;Ht.moveTraces=Vb;Ht.prependTraces=pI;Ht.newPlot=Zle;Ht._doPlot=Gle;Ht.purge=fue;Ht.react=nue;Ht.redraw=Yle;Ht.relayout=rc;Ht.restyle=Vv;Ht.setPlotConfig=Wle;Ht.update=$v;Ht._guiRelayout=Yb(rc);Ht._guiRestyle=Yb(Vv);Ht._guiUpdate=Yb($v);Ht._storeDirectGUIEdit=Kle});var ws=I(Un=>{"use strict";var hue=bt();Un.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0};Un.getRedrawFunc=function(e){return function(){hue.getComponentMethod("colorbar","draw")(e)}};Un.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Un.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var LI=window.URL||window.webkitURL;Un.createObjectURL=function(e){return LI.createObjectURL(e)};Un.revokeObjectURL=function(e){return LI.revokeObjectURL(e)};Un.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=vue(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Un.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function vue(e){for(var t=e.length,r=new ArrayBuffer(t),a=new Uint8Array(r),n=0;n{"use strict";var $b=Ft(),pue=Re(),mue=Kt(),gue=It(),Kv=Jo(),Qb=/"/g,ac="TOBESTRIPPED",yue=new RegExp('("'+ac+")|("+ac+'")',"g");function bue(e){var t=$b.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":t.html(a).text()});return t.remove(),r}function xue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}qI.exports=function(t,r,a){var n=t._fullLayout,i=n._paper,o=n._toppaper,s=n.width,l=n.height,u;i.insert("rect",":first-child").call(mue.setRect,0,0,s,l).call(gue.fill,n.paper_bgcolor);var c=n._basePlotModules||[];for(u=0;u{"use strict";var DI=Re(),_ue=sh().EventEmitter,Wl=ws();function wue(e){var t=e.emitter||new _ue,r=new Promise(function(a,n){var i=window.Image,o=e.svg,s=e.format||"png";if(DI.isIE()&&s!=="svg"){var l=new Error(Wl.MSG_IE_BAD_FORMAT);return n(l),e.promise?r:t.emit("error",l)}var u=e.canvas,c=e.scale||1,d=e.width||300,h=e.height||150,p=c*d,g=c*h,m=u.getContext("2d",{willReadFrequently:!0}),b=new i,x,_;s==="svg"||DI.isSafari()?_=Wl.encodeSVG(o):(x=Wl.createBlob(o,"svg"),_=Wl.createObjectURL(x)),u.width=p,u.height=g,b.onload=function(){var k;switch(x=null,Wl.revokeObjectURL(_),s!=="svg"&&m.drawImage(b,0,0,p,g),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=_;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return t.emit("error",w)}a(k),e.promise||t.emit("success",k)},b.onerror=function(k){if(x=null,Wl.revokeObjectURL(_),n(k),!e.promise)return t.emit("error",k)},b.src=_});return e.promise?r:t}PI.exports=wue});var Jb=I((Y_e,II)=>{"use strict";var RI=jt(),EI=Xb(),Tue=Nr(),ci=Re(),nc=ws(),Aue=Jv(),kue=ep(),Mue=Ad().version,Kb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};function Sue(e,t){t=t||{};var r,a,n,i;ci.isPlainObject(e)?(r=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=ci.getGraphDiv(e),r=ci.extendDeep([],e.data),a=ci.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(L){return!(L in t)||ci.validate(t[L],Kb[L])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+ci.join2(Kb.format.values,", "," or ")+".");var s={};function l(L,S){return ci.coerce(t,s,Kb,L,S)}var u=l("format"),c=l("width"),d=l("height"),h=l("scale"),p=l("setBackground"),g=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=ci.extendFlat({},a);c?b.width=c:t.width===null&&RI(i.width)&&(b.width=i.width),d?b.height=d:t.height===null&&RI(i.height)&&(b.height=i.height);var x=ci.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:p}),_=nc.getRedrawFunc(m);function k(){return new Promise(function(L){setTimeout(L,nc.getDelay(m._fullLayout))})}function w(){return new Promise(function(L,S){var q=Aue(m,u,h),P=m._fullLayout.width,E=m._fullLayout.height;function F(){EI.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=Tue.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=Mue,N=JSON.stringify(N),F(),L(g?N:nc.encodeJSON(N))}if(F(),u==="svg")return L(g?q:nc.encodeSVG(q));var j=document.createElement("canvas");j.id=ci.randstr(),kue({format:u,width:P,height:E,scale:h,canvas:j,svg:q,promise:!0}).then(L).catch(S)})}function A(L){return g?L.replace(nc.IMAGE_URL_PREFIX,""):L}return new Promise(function(L,S){EI.newPlot(m,r,b,x).then(_).then(k).then(w).then(function(q){L(A(q))}).catch(function(q){S(q)})})}II.exports=Sue});var jI=I((Z_e,FI)=>{"use strict";var An=Re(),Cue=Nr(),Lue=eo(),que=Uo().dfltConfig,kn=An.isPlainObject,ho=Array.isArray,zI=An.isArrayOrTypedArray;FI.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var a=Lue.get(),n=[],i={_context:An.extendFlat({},que)},o,s;ho(t)?(i.data=An.extendDeep([],t),o=t):(i.data=[],o=[],n.push(Pr("array","data"))),kn(r)?(i.layout=An.extendDeep({},r),s=r):(i.layout={},s={},arguments.length>1&&n.push(Pr("object","layout"))),Cue.supplyDefaults(i);for(var l=i._fullData,u=o.length,c=0;cd.length&&a.push(Pr("unused",n,u.concat(d.length)));var x=d.length,_=Array.isArray(b);_&&(x=Math.min(x,b.length));var k,w,A,L,S;if(h.dimensions===2)for(w=0;wd[w].length&&a.push(Pr("unused",n,u.concat(w,d[w].length)));var q=d[w].length;for(k=0;k<(_?Math.min(q,b[w].length):q);k++)A=_?b[w][k]:b,L=c[w][k],S=d[w][k],An.validate(L,A)?S!==L&&S!==+L&&a.push(Pr("dynamic",n,u.concat(w,k),L,S)):a.push(Pr("value",n,u.concat(w,k),L))}else a.push(Pr("array",n,u.concat(w),c[w]));else for(w=0;w{"use strict";var OI=Re(),oc=ws();function Nue(e,t,r){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,s){var l,u;if(OI.isIE())return l=oc.createBlob(e,"svg"),window.navigator.msSaveBlob(l,t),l=null,o(t);if(n)return l=oc.createBlob(e,r),u=oc.createObjectURL(l),a.href=u,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),oc.revokeObjectURL(u),l=null,o(t);if(OI.isSafari()){var c=r==="svg"?",":";base64,";return oc.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return i}HI.exports=Nue});var t1=I(($_e,UI)=>{"use strict";var e1=Re(),Fue=Jb(),jue=BI(),Oue=ws();function Hue(e,t){var r;return e1.isPlainObject(e)||(r=e1.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(a,n){r&&r._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),e1.isIE()&&t.format!=="svg"&&n(new Error(Oue.MSG_IE_BAD_FORMAT)),r&&(r._snapshotInProgress=!0);var i=Fue(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),i.then(function(s){return r&&(r._snapshotInProgress=!1),jue(s,o,t.format)}).then(function(s){a(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),n(s)})})}UI.exports=Hue});var ZI=I(r1=>{"use strict";var Ya=Re(),Za=Ya.isPlainObject,GI=eo(),WI=Nr(),Bue=Zi(),VI=ar(),YI=Uo().dfltConfig;r1.makeTemplate=function(e){e=Ya.isPlainObject(e)?e:Ya.getGraphDiv(e),e=Ya.extendDeep({_context:YI},{data:e.data,layout:e.layout}),WI.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var a={data:{},layout:{}};t.forEach(function(p){var g={};sc(p,g,Gue.bind(null,p));var m=Ya.coerce(p,{},Bue,"type"),b=a.data[m];b||(b=a.data[m]=[]),b.push(g)}),sc(r,a.layout,Uue.bind(null,r)),delete a.layout.template;var n=r.template;if(Za(n)){var i=n.layout,o,s,l,u,c,d;Za(i)&&tp(i,a.layout);var h=n.data;if(Za(h)){for(s in a.data)if(l=h[s],Array.isArray(l)){for(c=a.data[s],d=c.length,u=l.length,o=0;ox?o.push({code:"unused",traceType:p,templateCount:b,dataCount:x}):x>b&&o.push({code:"reused",traceType:p,templateCount:b,dataCount:x})}}function _(k,w){for(var A in k)if(A.charAt(0)!=="_"){var L=k[A],S=Mn(k,A,w);Za(L)?(Array.isArray(k)&&L._template===!1&&L.templateitemname&&o.push({code:"missing",path:S,templateitemname:L.templateitemname}),_(L,S)):Array.isArray(L)&&Wue(L)&&_(L,S)}}if(_({data:l,layout:s},""),o.length)return o.map(Vue)};function Wue(e){for(var t=0;t{"use strict";var jr=Xb();cr._doPlot=jr._doPlot;cr.newPlot=jr.newPlot;cr.restyle=jr.restyle;cr.relayout=jr.relayout;cr.redraw=jr.redraw;cr.update=jr.update;cr._guiRestyle=jr._guiRestyle;cr._guiRelayout=jr._guiRelayout;cr._guiUpdate=jr._guiUpdate;cr._storeDirectGUIEdit=jr._storeDirectGUIEdit;cr.react=jr.react;cr.extendTraces=jr.extendTraces;cr.prependTraces=jr.prependTraces;cr.addTraces=jr.addTraces;cr.deleteTraces=jr.deleteTraces;cr.moveTraces=jr.moveTraces;cr.purge=jr.purge;cr.addFrames=jr.addFrames;cr.deleteFrames=jr.deleteFrames;cr.animate=jr.animate;cr.setPlotConfig=jr.setPlotConfig;cr.toImage=Jb();cr.validate=jI();cr.downloadImage=t1();var XI=ZI();cr.makeTemplate=XI.makeTemplate;cr.validateTemplate=XI.validateTemplate});var n1=I((J_e,QI)=>{"use strict";var a1=Re(),Yue=bt();QI.exports=function(t,r,a,n){var i=n("x"),o=n("y"),s,l=Yue.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],a),i){var u=a1.minRowLength(i);o?s=Math.min(u,a1.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=a1.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var i1=I((ewe,ez)=>{"use strict";var KI=Re().dateTick0,Zue=Tr(),Xue=Zue.ONEWEEK;function JI(e,t){return e%Xue==0?KI(t,1):KI(t,0)}ez.exports=function(t,r,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",JI(o,r.xcalendar)),n("xperiodalignment"))}if(i.y){var s=n("yperiod");s&&(n("yperiod0",JI(s,r.ycalendar)),n("yperiodalignment"))}}});var az=I((twe,rz)=>{"use strict";var tz=["orientation","groupnorm","stackgaps"];rz.exports=function(t,r,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=i[s];l||(l=i[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var d={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var nz=It(),iz=hn().hasColorscale,oz=wl(),$ue=Ja();sz.exports=function(t,r,a,n,i,o){var s=$ue.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(a=l),i("marker.symbol"),i("marker.opacity",s?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),iz(t,"marker")&&oz(t,r,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=nz.background:u=nz.defaultLine,i("marker.line.color",u),iz(t,"marker.line")&&oz(t,r,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",s?1:0)),s&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var c=i("marker.gradient.type");c!=="none"&&i("marker.gradient.color")}}});var fz=I((awe,uz)=>{"use strict";var Que=Re().isArrayOrTypedArray,Kue=hn().hasColorscale,Jue=wl();uz.exports=function(t,r,a,n,i,o){o||(o={});var s=(t.marker||{}).color;if(i("line.color",a),Kue(t,"line"))Jue(t,r,n,i,{prefix:"line.",cLetter:"c"});else{var l=(Que(s)?!1:s)||a;i("line.color",l)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var dz=I((nwe,cz)=>{"use strict";cz.exports=function(t,r,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var vz=I((iwe,hz)=>{"use strict";var efe=Re();hz.exports=function(e,t,r,a,n){n=n||{},a("textposition"),efe.coerceFont(a,"textfont",r.font),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var gz=I((owe,mz)=>{"use strict";var tfe=It(),pz=Re().isArrayOrTypedArray;mz.exports=function(t,r,a,n){var i=!1;if(r.marker){var o=r.marker.color,s=(r.marker.line||{}).color;o&&!pz(o)?i=o:s&&!pz(s)&&(i=s)}n("fillcolor",tfe.addOpacity((r.line||{}).color||i||a,.5))}});var _z=I((swe,xz)=>{"use strict";var yz=Re(),rfe=bt(),afe=Bl(),nfe=Pv(),Vl=Ja(),ife=n1(),ofe=i1(),sfe=az(),lfe=lz(),ufe=fz(),bz=dz(),ffe=vz(),cfe=gz(),dfe=Re().coercePattern;xz.exports=function(t,r,a,n){function i(p,g){return yz.coerce(t,r,afe,p,g)}var o=ife(t,r,n,i);if(o||(r.visible=!1),!!r.visible){ofe(t,r,n,i),i("xhoverformat"),i("yhoverformat");var s=sfe(t,r,n,i),l=!s&&o{"use strict";wz.exports=function(t){for(var r=0;r=0;i--){var o=t[i];if(o.type==="scatter"&&o.xaxis===a.xaxis&&o.yaxis===a.yaxis){o.opacity=void 0;break}}}}}});var o1=I((uwe,kz)=>{"use strict";var hfe=jt(),Az=Re(),vfe=Az.dateTime2ms,ap=Az.incrementMonth,pfe=Tr(),mfe=pfe.ONEAVGMONTH;kz.exports=function(t,r,a,n){if(r.type!=="date")return{vals:n};var i=t[a+"periodalignment"];if(!i)return{vals:n};var o=t[a+"period"],s;if(hfe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,c=i==="start",d=i==="end",h=t[a+"period0"],p=vfe(h,u)||0,g=[],m=[],b=[],x=n.length,_=0;_k;)L=ap(L,-s,u);for(;L<=k;)L=ap(L,s,u);A=ap(L,-s,u)}else{for(w=Math.round((k-p)/o),L=p+w*o;L>k;)L-=o;for(;L<=k;)L+=o;A=L-o}g[_]=c?A:d?L:(A+L)/2,m[_]=A,b[_]=L}return{vals:g,starts:m,ends:b}}});var Cz=I((fwe,Sz)=>{"use strict";var s1=hn().hasColorscale,l1=_h(),Mz=Ja();Sz.exports=function(t,r){Mz.hasLines(r)&&s1(r,"line")&&l1(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Mz.hasMarkers(r)&&(s1(r,"marker")&&l1(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),s1(r,"marker.line")&&l1(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var u1=I((cwe,Lz)=>{"use strict";var na=Re();Lz.exports=function(t,r){for(var a=0;a{"use strict";var qz=Re();Dz.exports=function(t,r){qz.isArrayOrTypedArray(r.selectedpoints)&&qz.tagSelected(t,r)}});var p1=I((hwe,Fz)=>{"use strict";var Pz=jt(),c1=Re(),lc=tr(),Rz=o1(),d1=Tr().BADNUM,h1=Ja(),gfe=Cz(),yfe=u1(),bfe=f1();function xfe(e,t){var r=e._fullLayout,a=t._xA=lc.getFromId(e,t.xaxis||"x","x"),n=t._yA=lc.getFromId(e,t.yaxis||"y","y"),i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=Rz(t,a,"x",i),l=Rz(t,n,"y",o),u=s.vals,c=l.vals,d=t._length,h=new Array(d),p=t.ids,g=v1(t,r,a,n),m=!1,b,x,_,k,w,A;zz(r,t);var L="x",S="y",q;if(g)c1.pushUnique(g.traceIndices,t._expandedIndex),b=g.orientation==="v",b?(S="s",q="x"):(L="s",q="y"),w=g.stackgaps==="interpolate";else{var P=Iz(t,d);Ez(e,t,a,n,u,c,P)}var E=!!t.xperiodalignment,F=!!t.yperiodalignment;for(x=0;xx&&h[k].gap;)k--;for(A=h[k].s,_=h.length-1;_>k;_--)h[_].s=A;for(;x{"use strict";var jz=p1();Oz.exports=function(t,r){var a=r.xaxis,n=r.yaxis,i=a._id+n._id,o=t._fullLayout._scatterStackOpts[i];if(!!o){var s=t.calcdata,l,u,c,d,h,p,g,m,b,x,_,k,w,A,L;for(var S in o){x=o[S];var q=x.traceIndices;if(!!q.length){for(_=x.stackgaps==="interpolate",k=x.groupnorm,x.orientation==="v"?(w="x",A="y"):(w="y",A="x"),L=new Array(q.length),l=0;lP[c]&&c{"use strict";var wfe=Kt(),Bz=Tr(),uc=Bz.BADNUM,Uz=Bz.LOG_CLIP,Gz=Uz+.5,Wz=Uz-.5,np=Re(),Tfe=np.segmentsIntersect,Vz=np.constrain,g1=Pv();Yz.exports=function(t,r){var a=r.trace||{},n=r.xaxis,i=r.yaxis,o=n.type==="log",s=i.type==="log",l=n._length,u=i._length,c=r.backoff,d=a.marker,h=r.connectGaps,p=r.baseTolerance,g=r.shape,m=g==="linear",b=a.fill&&a.fill!=="none",x=[],_=g1.minTolerance,k=t.length,w=new Array(k),A=0,L,S,q,P,E,F,N,j,B,W,V,Y,Z,$,ne,te;function de(Ne){var et=t[Ne];if(!et)return!1;var Oe=r.linearized?n.l2p(et.x):n.c2p(et.x),st=r.linearized?i.l2p(et.y):i.c2p(et.y);if(Oe===uc){if(o&&(Oe=n.c2p(et.x,!0)),Oe===uc)return!1;s&&st===uc&&(Oe*=Math.abs(n._m*u*(n._m>0?Gz:Wz)/(i._m*l*(i._m>0?Gz:Wz)))),Oe*=1e3}if(st===uc){if(s&&(st=i.c2p(et.y,!0)),st===uc)return!1;st*=1e3}return[Oe,st]}function be(Ne,et,Oe,st){var dt=Oe-Ne,vt=st-et,pt=.5-Ne,ae=.5-et,_e=dt*dt+vt*vt,Te=dt*pt+vt*ae;if(Te>0&&Te<_e){var Fe=pt*vt-ae*dt;if(Fe*Fe<_e)return!0}}var re,ge;function ee(Ne,et){var Oe=Ne[0]/l,st=Ne[1]/u,dt=Math.max(0,-Oe,Oe-1,-st,st-1);return dt&&re!==void 0&&be(Oe,st,re,ge)&&(dt=0),dt&&et&&be(Oe,st,et[0]/l,et[1]/u)&&(dt=0),(1+g1.toleranceGrowth*dt)*p}function Ae(Ne,et){var Oe=Ne[0]-et[0],st=Ne[1]-et[1];return Math.sqrt(Oe*Oe+st*st)}var ke=g1.maxScreensAway,De=-l*ke,Le=l*(1+ke),Se=-u*ke,U=u*(1+ke),J=[[De,Se,Le,Se],[Le,Se,Le,U],[Le,U,De,U],[De,U,De,Se]],O,oe,me,xe,qe,Pe;function ye(Ne,et){for(var Oe=[],st=0,dt=0;dt<4;dt++){var vt=J[dt],pt=Tfe(Ne[0],Ne[1],et[0],et[1],vt[0],vt[1],vt[2],vt[3]);pt&&(!st||Math.abs(pt.x-Oe[0][0])>1||Math.abs(pt.y-Oe[0][1])>1)&&(pt=[pt.x,pt.y],st&&Ae(pt,Ne)Le||Ne[1]U)return[Vz(Ne[0],De,Le),Vz(Ne[1],Se,U)]}function Ue(Ne,et){if(Ne[0]===et[0]&&(Ne[0]===De||Ne[0]===Le)||Ne[1]===et[1]&&(Ne[1]===Se||Ne[1]===U))return!0}function nt(Ne,et){var Oe=[],st=rt(Ne),dt=rt(et);return st&&dt&&Ue(st,dt)||(st&&Oe.push(st),dt&&Oe.push(dt)),Oe}function at(Ne,et,Oe){return function(st,dt){var vt=rt(st),pt=rt(dt),ae=[];if(vt&&pt&&Ue(vt,pt))return ae;vt&&ae.push(vt),pt&&ae.push(pt);var _e=2*np.constrain((st[Ne]+dt[Ne])/2,et,Oe)-((vt||st)[Ne]+(pt||dt)[Ne]);if(_e){var Te;vt&&pt?Te=_e>0==vt[Ne]>pt[Ne]?vt:pt:Te=vt||pt,Te[Ne]+=_e}return ae}}var ft;g==="linear"||g==="spline"?ft=ye:g==="hv"||g==="vh"?ft=nt:g==="hvh"?ft=at(0,De,Le):g==="vhv"&&(ft=at(1,Se,U));function wt(Ne,et){var Oe=et[0]-Ne[0],st=(et[1]-Ne[1])/Oe,dt=(Ne[1]*et[0]-et[1]*Ne[0])/Oe;return dt>0?[st>0?De:Le,U]:[st>0?Le:De,Se]}function se(Ne){var et=Ne[0],Oe=Ne[1],st=et===w[A-1][0],dt=Oe===w[A-1][1];if(!(st&&dt))if(A>1){var vt=et===w[A-2][0],pt=Oe===w[A-2][1];st&&(et===De||et===Le)&&vt?pt?A--:w[A-1]=Ne:dt&&(Oe===Se||Oe===U)&&pt?vt?A--:w[A-1]=Ne:w[A++]=Ne}else w[A++]=Ne}function Ce(Ne){w[A-1][0]!==Ne[0]&&w[A-1][1]!==Ne[1]&&se([me,xe]),se(Ne),qe=null,me=xe=0}var it=np.isArrayOrTypedArray(d);function ct(Ne){if(Ne&&c&&(Ne.i=L,Ne.d=t,Ne.trace=a,Ne.marker=it?d[Ne.i]:d,Ne.backoff=c),re=Ne[0]/l,ge=Ne[1]/u,O=Ne[0]Le?Le:0,oe=Ne[1]U?U:0,O||oe){if(!A)w[A++]=[O||Ne[0],oe||Ne[1]];else if(qe){var et=ft(qe,Ne);et.length>1&&(Ce(et[0]),w[A++]=et[1])}else Pe=ft(w[A-1],Ne)[0],w[A++]=Pe;var Oe=w[A-1];O&&oe&&(Oe[0]!==O||Oe[1]!==oe)?(qe&&(me!==O&&xe!==oe?se(me&&xe?wt(qe,Ne):[me||O,xe||oe]):me&&xe&&se([me,xe])),se([O,oe])):me-O&&xe-oe&&se([O||me,oe||xe]),qe=Ne,me=O,xe=oe}else qe&&Ce(ft(qe,Ne)[0]),w[A++]=Ne}for(L=0;Lee(F,Je))break;q=F,Z=B[0]*j[0]+B[1]*j[1],Z>V?(V=Z,P=F,N=!1):Z=t.length||!F)break;ct(F),S=F}}qe&&se([me||qe[0],xe||qe[1]]),x.push(w.slice(0,A))}var we=g.slice(g.length-1);if(c&&we!=="h"&&we!=="v"){for(var Me=!1,Ye=-1,je=[],ze=0;ze{"use strict";var Xz={tonextx:1,tonexty:1,tonext:1};$z.exports=function(t,r,a){var n,i,o,s,l,u={},c=!1,d=-1,h=0,p=-1;for(i=0;i=0?l=p:(l=p=h,h++),l{"use strict";var Gn=Ft(),Afe=bt(),fc=Re(),Yl=fc.ensureSingle,Kz=fc.identity,br=Kt(),Zl=Ja(),kfe=Zz(),Mfe=Qz(),Sfe=yb().tester;e8.exports=function(t,r,a,n,i,o){var s,l,u=!i,c=!!i&&i.duration>0,d=Mfe(t,r,a);if(s=n.selectAll("g.trace").data(d,function(p){return p[0].trace.uid}),s.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),s.order(),Cfe(t,s,r),c){o&&(l=o());var h=Gn.transition().duration(i.duration).ease(i.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(p,g){Jz(t,g,r,p,d,this,i)})})}else s.each(function(p,g){Jz(t,g,r,p,d,this,i)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function Cfe(e,t,r){t.each(function(a){var n=Yl(Gn.select(this),"g","fills");br.setClipUrl(n,r.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,Kz);s.enter().append("g"),s.exit().each(function(l){i[l]=null}).remove(),s.order().each(function(l){i[l]=Yl(Gn.select(this),"path","js-fill")})})}function Jz(e,t,r,a,n,i,o){var s;Lfe(e,t,r,a,n);var l=!!o&&o.duration>0;function u(J){return l?J.transition():J}var c=r.xaxis,d=r.yaxis,h=a[0].trace,p=h.line,g=Gn.select(i),m=Yl(g,"g","errorbars"),b=Yl(g,"g","lines"),x=Yl(g,"g","points"),_=Yl(g,"g","text");if(Afe.getComponentMethod("errorbars","plot")(e,m,r,o),h.visible!==!0)return;u(g).style("opacity",h.opacity);var k,w,A=h.fill.charAt(h.fill.length-1);A!=="x"&&A!=="y"&&(A=""),a[0][r.isRangePlot?"nodeRangePlot3":"node3"]=g;var L="",S=[],q=h._prevtrace;q&&(L=q._prevRevpath||"",w=q._nextFill,S=q._polygons);var P,E,F="",N="",j,B,W,V,Y,Z,$,ne=[],te=fc.noop;if(k=h._ownFill,Zl.hasLines(h)||h.fill!=="none"){for(w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(j=br.steps(p.shape),B=br.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?j=B=function(J){var O=J[J.length-1];return J.length>1&&J[0][0]===O[0]&&J[0][1]===O[1]?br.smoothclosed(J.slice(1),p.smoothing):br.smoothopen(J,p.smoothing)}:j=B=function(J){return"M"+J.join("L")},W=function(J){return B(J.reverse())},ne=kfe(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),$=h._polygons=new Array(ne.length),s=0;s1){var oe=Gn.select(this);if(oe.datum(a),J)u(oe.style("opacity",0).attr("d",P).call(br.lineGroupStyle)).style("opacity",1);else{var me=u(oe);me.attr("d",P),br.singleLineStyle(a,me)}}}}}var de=b.selectAll(".js-line").data(ne);u(de.exit()).style("opacity",0).remove(),de.each(te(!1)),de.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(br.lineGroupStyle).each(te(!0)),br.setClipUrl(de,r.layerClipId,e);function be(J){u(J).attr("d","M0,0Z")}ne.length?(k?(k.datum(a),V&&Z&&(A?(A==="y"?V[1]=Z[1]=d.c2p(0,!0):A==="x"&&(V[0]=Z[0]=c.c2p(0,!0)),u(k).attr("d","M"+Z+"L"+V+"L"+F.substr(1)).call(br.singleFillStyle,e)):u(k).attr("d",F+"Z").call(br.singleFillStyle,e))):w&&(h.fill.substr(0,6)==="tonext"&&F&&L?(h.fill==="tonext"?u(w).attr("d",F+"Z"+L+"Z").call(br.singleFillStyle,e):u(w).attr("d",F+"L"+L.substr(1)+"Z").call(br.singleFillStyle,e),h._polygons=h._polygons.concat(S)):(be(w),h._polygons=null)),h._prevRevpath=N,h._prevPolygons=$):(k?be(k):w&&be(w),h._polygons=h._prevRevpath=h._prevPolygons=null);function re(J){return J.filter(function(O){return!O.gap&&O.vis})}function ge(J){return J.filter(function(O){return O.vis})}function ee(J){return J.filter(function(O){return!O.gap})}function Ae(J){return J.id}function ke(J){if(J.ids)return Ae}function De(){return!1}function Le(J,O,oe){var me,xe,qe,Pe=oe[0].trace,ye=Zl.hasMarkers(Pe),rt=Zl.hasText(Pe),Ue=ke(Pe),nt=De,at=De;if(ye||rt){var ft=Kz,wt=Pe.stackgroup,se=wt&&e._fullLayout._scatterStackOpts[c._id+d._id][wt].stackgaps==="infer zero";Pe.marker.maxdisplayed||Pe._needsCull?ft=se?ge:re:wt&&!se&&(ft=ee),ye&&(nt=ft),rt&&(at=ft)}xe=J.selectAll("path.point"),me=xe.data(nt,Ue);var Ce=me.enter().append("path").classed("point",!0);l&&Ce.call(br.pointStyle,Pe,e).call(br.translatePoints,c,d).style("opacity",0).transition().style("opacity",1),me.order();var it;ye&&(it=br.makePointStyleFns(Pe)),me.each(function(ct){var Je=Gn.select(this),we=u(Je);qe=br.translatePoint(ct,we,c,d),qe?(br.singlePointStyle(ct,we,Pe,it,e),r.layerClipId&&br.hideOutsideRangePoint(ct,we,c,d,Pe.xcalendar,Pe.ycalendar),Pe.customdata&&Je.classed("plotly-customdata",ct.data!==null&&ct.data!==void 0)):we.remove()}),l?me.exit().transition().style("opacity",0).remove():me.exit().remove(),xe=O.selectAll("g"),me=xe.data(at,Ue),me.enter().append("g").classed("textpoint",!0).append("text"),me.order(),me.each(function(ct){var Je=Gn.select(this),we=u(Je.select("text"));qe=br.translatePoint(ct,we,c,d),qe?r.layerClipId&&br.hideOutsideRangePoint(ct,Je,c,d,Pe.xcalendar,Pe.ycalendar):Je.remove()}),me.selectAll("text").call(br.textPointStyle,Pe,e).each(function(ct){var Je=c.c2p(ct.x),we=d.c2p(ct.y);Gn.select(this).selectAll("tspan.line").each(function(){u(Gn.select(this)).attr({x:Je,y:we})})}),me.exit().remove()}x.datum(a),_.datum(a),Le(x,_,a);var Se=h.cliponaxis===!1,U=Se?null:r.layerClipId;br.setClipUrl(x,U,e),br.setClipUrl(_,U,e)}function Lfe(e,t,r,a,n){var i=r.xaxis,o=r.yaxis,s=Gn.extent(fc.simpleMap(i.range,i.r2c)),l=Gn.extent(fc.simpleMap(o.range,o.r2c)),u=a[0].trace;if(!!Zl.hasMarkers(u)){var c=u.marker.maxdisplayed;if(c!==0){var d=a.filter(function(m){return m.x>=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),h=Math.ceil(d.length/c),p=0;n.forEach(function(m,b){var x=m[0].trace;Zl.hasMarkers(x)&&x.marker.maxdisplayed>0&&b{"use strict";r8.exports={container:"marker",min:"cmin",max:"cmax"}});var n8=I((bwe,a8)=>{"use strict";var ip=tr();a8.exports=function(t,r,a){var n={},i={_fullLayout:a},o=ip.getFromTrace(i,r,"x"),s=ip.getFromTrace(i,r,"y");return n.xLabel=ip.tickText(o,o.c2l(t.x),!0).text,n.yLabel=ip.tickText(s,s.c2l(t.y),!0).text,n}});var w1=I((xwe,i8)=>{"use strict";var b1=Ft(),Xl=Kt(),qfe=bt();function Dfe(e){var t=b1.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var a=b1.select(this),n=r.trace||r[0].trace;x1(a,n,e)}),t.selectAll("g.text").each(function(r){var a=b1.select(this),n=r.trace||r[0].trace;_1(a,n,e)}),t.selectAll("g.trace path.js-line").call(Xl.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(Xl.fillGroupStyle,e),qfe.getComponentMethod("errorbars","style")(t)}function x1(e,t,r){Xl.pointStyle(e.selectAll("path.point"),t,r)}function _1(e,t,r){Xl.textPointStyle(e.selectAll("text"),t,r)}function Pfe(e,t,r){var a=t[0].trace;a.selectedpoints?(Xl.selectedPointStyle(r.selectAll("path.point"),a),Xl.selectedTextStyle(r.selectAll("text"),a)):(x1(r,a,e),_1(r,a,e))}i8.exports={style:Dfe,stylePoints:x1,styleText:_1,styleOnSelect:Pfe}});var s8=I((_we,o8)=>{"use strict";var $l=It(),Rfe=Ja();o8.exports=function(t,r){var a,n;if(t.mode==="lines")return a=t.line.color,a&&$l.opacity(a)?a:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var i=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=i&&$l.opacity(i)?i:o&&$l.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?$l.opacity(n)<.3?$l.addOpacity(n,.3):n:(a=(t.line||{}).color,a&&$l.opacity(a)&&Rfe.hasLines(t)&&t.line.width?a:t.fillcolor)}});var f8=I((wwe,u8)=>{"use strict";var T1=Re(),l8=qi(),Efe=bt(),Ife=s8(),A1=It(),zfe=T1.fillText;u8.exports=function(t,r,a,n){var i=t.cd,o=i[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(a),d=[u,c],h=o.hoveron||"",p=o.mode.indexOf("markers")!==-1?3:.5,g=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(Le){if(g){var Se=s.c2p(Le.xStart),U=s.c2p(Le.xEnd);return u>=Math.min(Se,U)&&u<=Math.max(Se,U)?0:1/0}var J=Math.max(3,Le.mrc||0),O=1-1/J,oe=Math.abs(s.c2p(Le.x)-u);return oe=Math.min(Se,U)&&c<=Math.max(Se,U)?0:1/0}var J=Math.max(3,Le.mrc||0),O=1-1/J,oe=Math.abs(l.c2p(Le.y)-c);return oeke!=Ae>=ke&&(re=de[ne-1][0],ge=de[ne][0],Ae-ee&&(be=re+(ge-re)*(ke-ee)/(Ae-ee),W=Math.min(W,be),V=Math.max(V,be)));W=Math.max(W,0),V=Math.min(V,s._length);var De=A1.defaultLine;return A1.opacity(o.fillcolor)?De=o.fillcolor:A1.opacity((o.line||{}).color)&&(De=o.line.color),T1.extendFlat(t,{distance:t.maxHoverDistance,x0:W,x1:V,y0:ke,y1:ke,color:De,hovertemplate:!1}),delete t.index,o.text&&!Array.isArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var h8=I((Twe,d8)=>{"use strict";var c8=Ja();d8.exports=function(t,r){var a=t.cd,n=t.xaxis,i=t.yaxis,o=[],s=a[0].trace,l,u,c,d,h=!c8.hasMarkers(s)&&!c8.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";v8.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}});var b8=I((kwe,y8)=>{"use strict";var cc=bt().traceIs,k1=Oy();y8.exports=function(t,r,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nfe(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function Nfe(e,t){if(e.type==="-"){var r=e._id,a=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=a);var i=Ffe(t,r,a);if(!!i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",s=i[o],l={noMultiCategory:!cc(i,"cartesian")||cc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,g8(i,a)){var u=m8(i),c=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(g8(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function m8(e){return{v:"x",h:"y"}[e.orientation||"v"]}function g8(e,t){var r=m8(e),a=cc(e,"box-violin"),n=cc(e._fullInput||{},"candlestick");return a&&!n&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var _8=I((Mwe,x8)=>{"use strict";function jfe(e,t){var r=t.dataAttr||e._id.charAt(0),a={},n,i,o;if(t.axData)n=t.axData;else for(n=[],i=0;i0,s;o&&(s="array");var l=a("categoryorder",s),u;l==="array"&&(u=a("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=jfe(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var A8=I((Swe,T8)=>{"use strict";var w8=Pn().mix,Ofe=gi(),Hfe=Re();T8.exports=function(t,r,a,n){n=n||{};var i=n.dfltColor;function o(S,q){return Hfe.coerce2(t,r,n.attributes,S,q)}var s=o("linecolor",i),l=o("linewidth"),u=a("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=w8(i,n.bgColor,n.blend||Ofe.lightFraction).toRgbString(),d=o("gridcolor",c),h=o("gridwidth"),p=o("griddash"),g=a("showgrid",n.showGrid||!!d||!!h||!!p);if(g||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var m=w8(r.gridcolor,n.bgColor,67).toRgbString(),b=o("minor.gridcolor",m),x=o("minor.gridwidth",r.gridwidth||1),_=o("minor.griddash",r.griddash||"solid"),k=a("minor.showgrid",!!b||!!x||!!_);k||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var w=o("zerolinecolor",i),A=o("zerolinewidth"),L=a("zeroline",n.showGrid||!!w||!!A);L||(delete r.zerolinecolor,delete r.zerolinewidth)}}});var S1=I((Cwe,q8)=>{"use strict";var k8=jt(),Bfe=bt(),dc=Re(),Ufe=ar(),Gfe=In(),M1=ni(),M8=dy(),S8=vy(),Wfe=my(),Vfe=gy(),Yfe=_8(),Zfe=A8(),C8=Rh(),op=ga().WEEKDAY_PATTERN,Xfe=ga().HOUR_PATTERN;q8.exports=function(t,r,a,n,i){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=a("visible",!n.visibleDflt),c=r._template||{},d=r.type||c.type||"-",h;if(d==="date"){var p=Bfe.getComponentMethod("calendars","handleDefaults");p(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}var g="";(!n.noTicklabelposition||d==="multicategory")&&(g=dc.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="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",g.indexOf("inside")!==-1?"hide past domain":d==="category"||d==="multicategory"?"allow":"hide past div"),C8(r,i);var m=!r.isValidRange(t.range);m&&n.reverseDflt&&(m="reversed");var b=a("autorange",m);b&&(d==="linear"||d==="-")&&a("rangemode"),a("range"),r.cleanRange(),Yfe(t,r,a,n),d!=="category"&&!n.noHover&&a("hoverformat");var x=a("color"),_=x!==M1.color.dflt?x:s.color,k=l.label||i._dfltTitle[o];if(Vfe(t,r,a,d,n),!u)return r;a("title.text",k),dc.coerceFont(a,"title.font",{family:s.family,size:dc.bigFont(s.size),color:_}),M8(t,r,a,d);var w=n.hasMinor;if(w&&(Ufe.newContainer(r,"minor"),M8(t,r,a,d,{isMinor:!0})),Wfe(t,r,a,d,n),S8(t,r,a,n),w){var A=n.isMinor;n.isMinor=!0,S8(t,r,a,n),n.isMinor=A}Zfe(t,r,a,{dfltColor:x,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:M1}),w&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&a("mirror"),n.automargin&&a("automargin");var L=d==="multicategory";if(!n.noTickson&&(d==="category"||L)&&(r.ticks||r.showgrid)){var S;L&&(S="boundaries");var q=a("tickson",S);q==="boundaries"&&delete r.ticklabelposition}if(L){var P=a("showdividers");P&&(a("dividercolor"),a("dividerwidth"))}if(d==="date")if(Gfe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:$fe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var E=0;E=2){var o="",s,l;if(i.length===2){for(s=0;s<2;s++)if(l=L8(i[s]),l){o=op;break}}var u=a("pattern",o);if(u===op)for(s=0;s<2;s++)l=L8(i[s]),l&&(t.bounds[s]=i[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=i[s],u){case op:if(!k8(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=i[s]=l;break;case Xfe:if(!k8(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=i[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(i[0]>c[0]&&i[1]{"use strict";var Kfe=jt(),sp=Re();D8.exports=function(t,r,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u,c,d,h;l&&(c=l._domains[s][l._axisMap[r._id]],u=l._anchors[r._id],c&&(d=l[s+"side"].split(" ")[0],h=l.domain[s][d==="right"||d==="top"?1:0])),c=c||[0,1],u=u||(Kfe(t.position)?"free":i[0]||"free"),d=d||(s==="x"?"bottom":"left"),h=h||0;var p=sp.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor");p==="free"&&a("position",h),sp.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");var g=!1;if(o.length&&(g=sp.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!g){var m=a("domain",c);m[0]>m[1]-1/4096&&(r.domain=c),sp.noneOrAll(t.domain,r.domain,c)}return a("layer"),r}});var O8=I((qwe,j8)=>{"use strict";var As=Re(),P8=It(),Jfe=Mi().isUnifiedHover,ece=H0(),R8=ar(),tce=sl(),E8=ni(),rce=b8(),I8=S1(),ace=Cf(),z8=C1(),L1=Hr(),vo=L1.id2name,N8=L1.name2id,nce=ga().AX_ID_PATTERN,F8=bt(),hc=F8.traceIs,q1=F8.getComponentMethod;function lp(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}j8.exports=function(t,r,a){var n=r.autotypenumbers,i={},o={},s={},l={},u={},c={},d={},h={},p={},g={},m,b;for(m=0;m{"use strict";var ice=Ft(),H8=bt(),up=Re(),rn=Kt(),fp=tr();B8.exports=function(t,r,a,n){var i=t._fullLayout;if(r.length===0){fp.redrawComponents(t);return}function o(b){var x=b.xaxis,_=b.yaxis;i._defs.select("#"+b.clipId+"> rect").call(rn.setTranslate,0,0).call(rn.setScale,1,1),b.plot.call(rn.setTranslate,x._offset,_._offset).call(rn.setScale,1,1);var k=b.plot.selectAll(".scatterlayer .trace");k.selectAll(".point").call(rn.setPointGroupScale,1,1),k.selectAll(".textpoint").call(rn.setTextPointsScale,1,1),k.call(rn.hideOutsideRangePoints,b)}function s(b,x){var _=b.plotinfo,k=_.xaxis,w=_.yaxis,A=k._length,L=w._length,S=!!b.xr1,q=!!b.yr1,P=[];if(S){var E=up.simpleMap(b.xr0,k.r2l),F=up.simpleMap(b.xr1,k.r2l),N=E[1]-E[0],j=F[1]-F[0];P[0]=(E[0]*(1-x)+x*F[0]-E[0])/(E[1]-E[0])*A,P[2]=A*(1-x+x*j/N),k.range[0]=k.l2r(E[0]*(1-x)+x*F[0]),k.range[1]=k.l2r(E[1]*(1-x)+x*F[1])}else P[0]=0,P[2]=A;if(q){var B=up.simpleMap(b.yr0,w.r2l),W=up.simpleMap(b.yr1,w.r2l),V=B[1]-B[0],Y=W[1]-W[0];P[1]=(B[1]*(1-x)+x*W[1]-B[1])/(B[0]-B[1])*L,P[3]=L*(1-x+x*Y/V),w.range[0]=k.l2r(B[0]*(1-x)+x*W[0]),w.range[1]=w.l2r(B[1]*(1-x)+x*W[1])}else P[1]=0,P[3]=L;fp.drawOne(t,k,{skipTitle:!0}),fp.drawOne(t,w,{skipTitle:!0}),fp.redrawComponents(t,[k._id,w._id]);var Z=S?A/P[2]:1,$=q?L/P[3]:1,ne=S?P[0]:0,te=q?P[1]:0,de=S?P[0]/P[2]*A:0,be=q?P[1]/P[3]*L:0,re=k._offset-de,ge=w._offset-be;_.clipRect.call(rn.setTranslate,ne,te).call(rn.setScale,1/Z,1/$),_.plot.call(rn.setTranslate,re,ge).call(rn.setScale,Z,$),rn.setPointGroupScale(_.zoomScalePts,1/Z,1/$),rn.setTextPointsScale(_.zoomScaleTxt,1/Z,1/$)}var l;n&&(l=n());function u(){for(var b={},x=0;xa.duration?(u(),p=window.cancelAnimationFrame(m)):p=window.requestAnimationFrame(m)}return d=Date.now(),p=window.requestAnimationFrame(m),Promise.resolve()}});var vp=I(fa=>{"use strict";var cp=Ft(),G8=bt(),dp=Re(),oce=Nr(),sce=Kt(),W8=Wg().getModuleCalcData,po=Hr(),di=ga(),lce=Jo(),Qt=dp.ensureSingle;function hp(e,t,r){return dp.ensureSingle(e,t,r,function(a){a.datum(r)})}fa.name="cartesian";fa.attr=["xaxis","yaxis"];fa.idRoot=["x","y"];fa.idRegex=di.idRegex;fa.attrRegex=di.attrRegex;fa.attributes=p8();fa.layoutAttributes=ni();fa.supplyLayoutDefaults=O8();fa.transitionAxes=U8();fa.finalizeSubplots=function(e,t){var r=t._subplots,a=r.xaxis,n=r.yaxis,i=r.cartesian,o=i.concat(r.gl2d||[]),s={},l={},u,c,d;for(u=0;u{"use strict";var pp=Ja();$8.exports={hasLines:pp.hasLines,hasMarkers:pp.hasMarkers,hasText:pp.hasText,isBubble:pp.isBubble,attributes:Bl(),supplyDefaults:_z(),crossTraceDefaults:Tz(),calc:p1().calc,crossTraceCalc:Hz(),arraysToCalcdata:u1(),plot:t8(),colorbar:y1(),formatLabels:n8(),style:w1().style,styleOnSelect:w1().styleOnSelect,hoverPoints:f8(),selectPoints:h8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vp(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}});var J8=I((Ewe,K8)=>{"use strict";K8.exports={moduleType:"component",name:"legend",layoutAttributes:g0(),supplyLayoutDefaults:x0(),draw:z0(),style:q0()}});var rN=I((Iwe,tN)=>{"use strict";var fce=Ft(),cce=It(),eN=qb(),D1=Re(),dce=D1.strScale,hce=D1.strRotate,vce=D1.strTranslate;tN.exports=function(t,r,a){var n=t.node(),i=eN[a.arrowhead||0],o=eN[a.startarrowhead||0],s=(a.arrowwidth||1)*(a.arrowsize||1),l=(a.arrowwidth||1)*(a.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,d=i.backoff*s+a.standoff,h=o.backoff*l+a.startstandoff,p,g,m,b;if(n.nodeName==="line"){p={x:+t.attr("x1"),y:+t.attr("y1")},g={x:+t.attr("x2"),y:+t.attr("y2")};var x=p.x-g.x,_=p.y-g.y;if(m=Math.atan2(_,x),b=m+Math.PI,d&&h&&d+h>Math.sqrt(x*x+_*_)){B();return}if(d){if(d*d>x*x+_*_){B();return}var k=d*Math.cos(m),w=d*Math.sin(m);g.x+=k,g.y+=w,t.attr({x2:g.x,y2:g.y})}if(h){if(h*h>x*x+_*_){B();return}var A=h*Math.cos(m),L=h*Math.sin(m);p.x-=A,p.y-=L,t.attr({x1:p.x,y1:p.y})}}else if(n.nodeName==="path"){var S=n.getTotalLength(),q="";if(S{"use strict";var aN=Ft(),P1=bt(),pce=Nr(),mo=Re(),R1=mo.strTranslate,vc=tr(),ks=It(),zi=Kt(),nN=qi(),E1=Ga(),I1=oo(),pc=Nn(),mce=ar().arrayEditor,gce=rN();sN.exports={draw:yce,drawOne:iN,drawRaw:oN};function yce(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?dt="right":dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dt]}for(var Se=!1,U=["x","y"],J=0;J1)&&(me===oe?(Je=xe.r2fraction(t["a"+O]),(Je<0||Je>1)&&(Se=!0)):Se=!0),ft=xe._offset+xe.r2p(t[O]),Ce=.5}else{var we=ct==="domain";O==="x"?(se=t[O],ft=we?xe._offset+xe._length*se:ft=s.l+s.w*se):(se=1-t[O],ft=we?xe._offset+xe._length*se:ft=s.t+s.h*se),Ce=t.showarrow?.5:se}if(t.showarrow){at.head=ft;var Me=t["a"+O];if(it=Pe*Le(.5,t.xanchor)-ye*Le(.5,t.yanchor),me===oe){var Ye=vc.getRefType(me);Ye==="domain"?(O==="y"&&(Me=1-Me),at.tail=xe._offset+xe._length*Me):Ye==="paper"?O==="y"?(Me=1-Me,at.tail=s.t+s.h*Me):at.tail=s.l+s.w*Me:at.tail=xe._offset+xe.r2p(Me),wt=it}else at.tail=ft+Me,wt=it+Me;at.text=at.tail+it;var je=o[O==="x"?"width":"height"];if(oe==="paper"&&(at.head=mo.constrain(at.head,1,je-1)),me==="pixel"){var ze=-Math.max(at.tail-3,at.text),Ge=Math.min(at.tail+3,at.text)-je;ze>0?(at.tail+=ze,at.text+=ze):Ge>0&&(at.tail-=Ge,at.text-=Ge)}at.tail+=nt,at.head+=nt}else it=rt*Le(Ce,Ue),wt=it,at.text=ft+it;at.text+=nt,it+=nt,wt+=nt,t["_"+O+"padplus"]=rt/2+wt,t["_"+O+"padminus"]=rt/2-wt,t["_"+O+"size"]=rt,t["_"+O+"shift"]=it}if(Se){S.remove();return}var mt=0,Tt=0;if(t.align!=="left"&&(mt=(ee-re)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Tt=(Ae-ge)*(t.valign==="middle"?.5:1)),de)te.select("svg").attr({x:E+mt-1,y:E+Tt}).call(zi.setClipUrl,N?m:null,e);else{var ot=E+Tt-be.top,Ne=E+mt-be.left;V.call(E1.positionText,Ne,ot).call(zi.setClipUrl,N?m:null,e)}j.select("rect").call(zi.setRect,E,E,ee,Ae),F.call(zi.setRect,q/2,q/2,ke-q,De-q),S.call(zi.setTranslate,Math.round(b.x.text-ke/2),Math.round(b.y.text-De/2)),k.attr({transform:"rotate("+x+","+b.x.text+","+b.y.text+")"});var et=function(st,dt){_.selectAll(".annotation-arrow-g").remove();var vt=b.x.head,pt=b.y.head,ae=b.x.tail+st,_e=b.y.tail+dt,Te=b.x.text+st,Fe=b.y.text+dt,Et=mo.rotationXYMatrix(x,Te,Fe),pr=mo.apply2DTransform(Et),Vr=mo.apply2DTransform2(Et),Er=+F.attr("width"),hr=+F.attr("height"),ca=Te-.5*Er,Qn=ca+Er,ia=Fe-.5*hr,Xa=ia+hr,Cn=[[ca,ia,ca,Xa],[ca,Xa,Qn,Xa],[Qn,Xa,Qn,ia],[Qn,ia,ca,ia]].map(Vr);if(!Cn.reduce(function(mr,Qr){return mr^!!mo.segmentsIntersect(vt,pt,vt+1e6,pt+1e6,Qr[0],Qr[1],Qr[2],Qr[3])},!1)){Cn.forEach(function(mr){var Qr=mo.segmentsIntersect(ae,_e,vt,pt,mr[0],mr[1],mr[2],mr[3]);Qr&&(ae=Qr.x,_e=Qr.y)});var Aa=t.arrowwidth,hi=t.arrowcolor,Co=t.arrowside,$a=_.append("g").style({opacity:ks.opacity(hi)}).classed("annotation-arrow-g",!0),ka=$a.append("path").attr("d","M"+ae+","+_e+"L"+vt+","+pt).style("stroke-width",Aa+"px").call(ks.stroke,ks.rgb(hi));if(gce(ka,Co,t),l.annotationPosition&&ka.node().parentNode&&!a){var Ma=vt,Sa=pt;if(t.standoff){var da=Math.sqrt(Math.pow(vt-ae,2)+Math.pow(pt-_e,2));Ma+=t.standoff*(ae-vt)/da,Sa+=t.standoff*(_e-pt)/da}var Fa=$a.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ae-Ma)+","+(_e-Sa),transform:R1(Ma,Sa)}).style("stroke-width",Aa+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),vi,Yr;pc.init({element:Fa.node(),gd:e,prepFn:function(){var mr=zi.getTranslate(S);vi=mr.x,Yr=mr.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(mr,Qr){var Lo=pr(vi,Yr),qo=Lo[0]+mr,Hi=Lo[1]+Qr;S.call(zi.setTranslate,qo,Hi),p("x",go(n,mr,"x",s,t)),p("y",go(i,Qr,"y",s,t)),t.axref===t.xref&&p("ax",go(n,mr,"ax",s,t)),t.ayref===t.yref&&p("ay",go(i,Qr,"ay",s,t)),$a.attr("transform",R1(mr,Qr)),k.attr({transform:"rotate("+x+","+qo+","+Hi+")"})},doneFn:function(){P1.call("_guiRelayout",e,g());var mr=document.querySelector(".js-notes-box-panel");mr&&mr.redraw(mr.selectedObj)}})}}};if(t.showarrow&&et(0,0),w){var Oe;pc.init({element:S.node(),gd:e,prepFn:function(){Oe=k.attr("transform")},moveFn:function(st,dt){var vt="pointer";if(t.showarrow)t.axref===t.xref?p("ax",go(n,st,"ax",s,t)):p("ax",t.ax+st),t.ayref===t.yref?p("ay",go(i,dt,"ay",s.w,t)):p("ay",t.ay+dt),et(st,dt);else{if(a)return;var pt,ae;if(n)pt=go(n,st,"x",s,t);else{var _e=t._xsize/s.w,Te=t.x+(t._xshift-t.xshift)/s.w-_e/2;pt=pc.align(Te+st/s.w,_e,0,1,t.xanchor)}if(i)ae=go(i,dt,"y",s,t);else{var Fe=t._ysize/s.h,Et=t.y-(t._yshift+t.yshift)/s.h-Fe/2;ae=pc.align(Et-dt/s.h,Fe,0,1,t.yanchor)}p("x",pt),p("y",ae),(!n||!i)&&(vt=pc.getCursor(n?.5:pt,i?.5:ae,t.xanchor,t.yanchor))}k.attr({transform:R1(st,dt)+Oe}),I1(S,vt)},clickFn:function(st,dt){t.captureevents&&e.emit("plotly_clickannotation",L(dt))},doneFn:function(){I1(S),P1.call("_guiRelayout",e,g());var st=document.querySelector(".js-notes-box-panel");st&&st.redraw(st.selectedObj)}})}}l.annotationText?V.call(E1.makeEditable,{delegate:S,gd:e}).call(Y).on("edit",function($){t.text=$,this.call(Y),p("text",$),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),P1.call("_guiRelayout",e,g())}):V.call(Y)}});var hN=I((Nwe,dN)=>{"use strict";var lN=Re(),bce=bt(),uN=ar().arrayEditor;dN.exports={hasClickToShow:xce,onClick:_ce};function xce(e,t){var r=fN(e,t);return r.on.length>0||r.explicitOff.length>0}function _ce(e,t){var r=fN(e,t),a=r.on,n=r.off.concat(r.explicitOff),i={},o=e._fullLayout.annotations,s,l;if(!!(a.length||n.length)){for(s=0;s{"use strict";var vN=Re(),Ql=It();pN.exports=function(t,r,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),s=Ql.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),vN.coerceFont(n,"font",a.font),n("width"),n("align");var c=n("height");if(c&&n("valign"),u){var d=n("arrowside"),h,p;d.indexOf("end")!==-1&&(h=n("arrowhead"),p=n("arrowsize")),d.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",p)),n("arrowcolor",s?r.bordercolor:Ql.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var g=n("hovertext"),m=a.hoverlabel||{};if(g){var b=n("hoverlabel.bgcolor",m.bgcolor||(Ql.opacity(i)?Ql.rgb(i):Ql.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Ql.contrast(b));vN.coerceFont(n,"hoverlabel.font",{family:m.font.family,size:m.font.size,color:m.font.color||x})}n("captureevents",!!g)}});var gN=I((jwe,mN)=>{"use strict";var N1=Re(),Ms=tr(),wce=In(),Tce=z1(),Ace=Hl();mN.exports=function(t,r){wce(t,r,{name:"annotations",handleItemDefaults:kce})};function kce(e,t,r){function a(k,w){return N1.coerce(e,t,Ace,k,w)}var n=a("visible"),i=a("clicktoshow");if(!!(n||i)){Tce(e,t,r,a);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var d=s[c],h=Ms.coerceRef(e,t,u,d,"","paper");if(h!=="paper"){var p=Ms.getFromId(u,h);p._annIndices.push(t._index)}if(Ms.coercePosition(t,u,a,h,d,.5),o){var g="a"+d,m=Ms.coerceRef(e,t,u,g,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=t[g]="pixel");var b=m==="pixel"?l[c]:.4;Ms.coercePosition(t,u,a,m,g,b)}a(d+"anchor"),a(d+"shift")}if(N1.noneOrAll(e,t,["x","y"]),o&&N1.noneOrAll(e,t,["ax","ay"]),i){var x=a("xclick"),_=a("yclick");t._xclick=x===void 0?t.x:Ms.cleanPosition(x,u,t.xref),t._yclick=_===void 0?t.y:Ms.cleanPosition(_,u,t.yref)}}}});var xN=I((Owe,bN)=>{"use strict";var F1=Re(),Ss=tr(),Mce=mp().draw;bN.exports=function(t){var r=t._fullLayout,a=F1.filterVisible(r.annotations);if(a.length&&t._fullData.length)return F1.syncOrAsync([Mce,Sce],t)};function Sce(e){var t=e._fullLayout;F1.filterVisible(t.annotations).forEach(function(r){var a=Ss.getFromId(e,r.xref),n=Ss.getFromId(e,r.yref),i=Ss.getRefType(r.xref),o=Ss.getRefType(r.yref);r._extremes={},i==="range"&&yN(r,a),o==="range"&&yN(r,n)})}function yN(e,t){var r=t._id,a=r.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],s=e["a"+a+"ref"],l=e["_"+a+"padplus"],u=e["_"+a+"padminus"],c={x:1,y:-1}[a]*e[a+"shift"],d=3*e.arrowsize*e.arrowwidth||0,h=d+c,p=d-c,g=3*e.startarrowsize*e.arrowwidth||0,m=g+c,b=g-c,x;if(s===o){var _=Ss.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:p}),k=Ss.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,b)});x={min:[_.min[0],k.min[0]],max:[_.max[0],k.max[0]]}}else m=i?m+i:m,b=i?b-i:b,x=Ss.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,m),ppadminus:Math.max(u,p,b)});e._extremes[r]=x}});var wN=I((Hwe,_N)=>{"use strict";var Cce=jt(),Lce=Rd();_N.exports=function(t,r,a,n){r=r||{};var i=a==="log"&&r.type==="linear",o=a==="linear"&&r.type==="log";if(!(i||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function d(p){var g=u[p],m=null;i?m=Lce(g,r.range):m=Math.pow(10,g),Cce(m)||(m=null),n(c+p,m)}for(var h=0;h{"use strict";var j1=mp(),TN=hN();AN.exports={moduleType:"component",name:"annotations",layoutAttributes:Hl(),supplyLayoutDefaults:gN(),includeBasePlot:Zf()("annotations"),calcAutorange:xN(),draw:j1.draw,drawOne:j1.drawOne,drawRaw:j1.drawRaw,hasClickToShow:TN.hasClickToShow,onClick:TN.onClick,convertCoords:wN()}});var gp=I((Uwe,MN)=>{"use strict";var rr=Hl(),qce=Ai().overrideAll,Dce=ar().templatedArray;MN.exports=qce(Dce("annotation",{visible:rr.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:rr.xanchor,xshift:rr.xshift,yanchor:rr.yanchor,yshift:rr.yshift,text:rr.text,textangle:rr.textangle,font:rr.font,width:rr.width,height:rr.height,opacity:rr.opacity,align:rr.align,valign:rr.valign,bgcolor:rr.bgcolor,bordercolor:rr.bordercolor,borderpad:rr.borderpad,borderwidth:rr.borderwidth,showarrow:rr.showarrow,arrowcolor:rr.arrowcolor,arrowhead:rr.arrowhead,startarrowhead:rr.startarrowhead,arrowside:rr.arrowside,arrowsize:rr.arrowsize,startarrowsize:rr.startarrowsize,arrowwidth:rr.arrowwidth,standoff:rr.standoff,startstandoff:rr.startstandoff,hovertext:rr.hovertext,hoverlabel:rr.hoverlabel,captureevents:rr.captureevents}),"calc","from-root")});var CN=I((Gwe,SN)=>{"use strict";var O1=Re(),Pce=tr(),Rce=In(),Ece=z1(),Ice=gp();SN.exports=function(t,r,a){Rce(t,r,{name:"annotations",handleItemDefaults:zce,fullLayout:a.fullLayout})};function zce(e,t,r,a){function n(s,l){return O1.coerce(e,t,Ice,s,l)}function i(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],Pce.coercePosition(t,u,n,s,s,.5)}var o=n("visible");!o||(Ece(e,t,a.fullLayout,n),i("x"),i("y"),i("z"),O1.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),O1.noneOrAll(e,t,["ax","ay"])))}});var PN=I((Wwe,DN)=>{"use strict";var LN=Re(),qN=tr();DN.exports=function(t){for(var r=t.fullSceneLayout,a=r.annotations,n=0;n{"use strict";function H1(e,t){var r=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)r[n]+=e[4*a+n]*t[a];return r}function Fce(e,t){var r=H1(e.projection,H1(e.view,H1(e.model,[t[0],t[1],t[2],1])));return r}RN.exports=Fce});var zN=I((Ywe,IN)=>{"use strict";var jce=mp().drawRaw,Oce=EN(),Hce=["x","y","z"];IN.exports=function(t){for(var r=t.fullSceneLayout,a=t.dataScale,n=r.annotations,i=0;i1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+i+'"]').remove():(o._pdata=Oce(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*a[0],r.yaxis.r2l(o.y)*a[1],r.zaxis.r2l(o.z)*a[2]]),jce(t.graphDiv,o,i,t.id,o._xa,o._ya))}}});var jN=I((Zwe,FN)=>{"use strict";var Bce=bt(),NN=Re();FN.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:gp()}}},layoutAttributes:gp(),handleDefaults:CN(),includeBasePlot:Uce,convert:PN(),draw:zN()};function Uce(e,t){var r=Bce.subplotsRegistry.gl3d;if(!!r)for(var a=r.attrRegex,n=Object.keys(e),i=0;i{"use strict";var ON=Hl(),HN=Bl().line,Gce=yi().dash,mc=ra().extendFlat,Wce=ar().templatedArray,BN=Vf();UN.exports=Wce("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:mc({},ON.xref,{description:["Sets the shape's x coordinate axis.",BN.axisRefDescription("x","left","right")].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:mc({},ON.yref,{description:["Sets the shape's y coordinate axis.",BN.axisRefDescription("y","bottom","top")].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:mc({},HN.color,{editType:"arraydraw"}),width:mc({},HN.width,{editType:"calc+arraydraw"}),dash:mc({},Gce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},editType:"arraydraw"})});var VN=I(($we,WN)=>{"use strict";var U1=Re(),Kl=tr(),Vce=In(),Yce=B1(),GN=ys();WN.exports=function(t,r){Vce(t,r,{name:"shapes",handleItemDefaults:Zce})};function Zce(e,t,r){function a(B,W){return U1.coerce(e,t,Yce,B,W)}var n=a("visible");if(!!n){var i=a("path"),o=i?"path":"rect",s=a("type",o),l=s!=="path";l&&delete t.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),d=a("ysizemode"),h=["x","y"],p=0;p<2;p++){var g=h[p],m=g+"anchor",b=g==="x"?c:d,x={_fullLayout:r},_,k,w,A=Kl.coerceRef(e,t,x,g,void 0,"paper"),L=Kl.getRefType(A);if(L==="range"?(_=Kl.getFromId(x,A),_._shapeIndices.push(t._index),w=GN.rangeToShapePosition(_),k=GN.shapePositionToRange(_)):k=w=U1.identity,l){var S=.25,q=.75,P=g+"0",E=g+"1",F=e[P],N=e[E];e[P]=k(e[P],!0),e[E]=k(e[E],!0),b==="pixel"?(a(P,0),a(E,10)):(Kl.coercePosition(t,x,a,A,P,S),Kl.coercePosition(t,x,a,A,E,q)),t[P]=w(t[P]),t[E]=w(t[E]),e[P]=F,e[E]=N}if(b==="pixel"){var j=e[m];e[m]=k(e[m],!0),Kl.coercePosition(t,x,a,A,m,.25),t[m]=w(t[m]),e[m]=j}}l&&U1.noneOrAll(e,t,["x0","x1","y0","y1"])}}});var ZN=I((Qwe,YN)=>{"use strict";var Xce=It();YN.exports=function(t,r,a){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=(t||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Xce.contrast(i)),a("newshape.line.dash")}a("activeshape.fillcolor"),a("activeshape.opacity")}});var JN=I((Kwe,KN)=>{"use strict";var G1=Re(),Jl=tr(),eu=kf(),XN=ys();KN.exports=function(t){var r=t._fullLayout,a=G1.filterVisible(r.shapes);if(!(!a.length||!t._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:s?d:h,ppadminus:s?h:d}}else return{ppad:o}}function QN(e,t,r,a,n){var i=e.type==="category"||e.type==="multicategory"?e.r2c:e.d2c;if(t!==void 0)return[i(t),i(r)];if(!!a){var o=1/0,s=-1/0,l=a.match(eu.segmentRE),u,c,d,h,p;for(e.type==="date"&&(i=XN.decodeDate(i)),u=0;us&&(s=p)));if(s>=o)return[o,s]}}});var rF=I((Jwe,tF)=>{"use strict";var eF=J0();tF.exports={moduleType:"component",name:"shapes",layoutAttributes:B1(),supplyLayoutDefaults:VN(),supplyDrawNewShapeDefaults:ZN(),includeBasePlot:Zf()("shapes"),calcAutorange:JN(),draw:eF.draw,drawOne:eF.drawOne}});var W1=I((e2e,iF)=>{"use strict";var aF=ga(),Kce=ar().templatedArray,nF=Vf();iF.exports=Kce("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",aF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",nF.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",aF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",nF.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})});var sF=I((t2e,oF)=>{"use strict";var Jce=Re(),V1=tr(),ede=In(),tde=W1(),rde="images";oF.exports=function(t,r){var a={name:rde,handleItemDefaults:ade};ede(t,r,a)};function ade(e,t,r){function a(h,p){return Jce.coerce(e,t,tde,h,p)}var n=a("source"),i=a("visible",!!n);if(!i)return t;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=V1.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var d=V1.getFromId(o,c);d._imgIndices.push(t._index)}V1.coercePosition(t,o,a,c,u,0)}return t}});var cF=I((r2e,fF)=>{"use strict";var lF=Ft(),nde=Kt(),tu=tr(),uF=Hr(),ide=Jo();fF.exports=function(t){var r=t._fullLayout,a=[],n={},i=[],o,s;for(s=0;s{"use strict";var dF=jt(),ode=Rd();hF.exports=function(t,r,a,n){r=r||{};var i=a==="log"&&r.type==="linear",o=a==="linear"&&r.type==="log";if(!!(i||o)){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,d=0;d{"use strict";pF.exports={moduleType:"component",name:"images",layoutAttributes:W1(),supplyLayoutDefaults:sF(),includeBasePlot:Zf()("images"),draw:cF(),convertCoords:vF()}});var yp=I((i2e,gF)=>{"use strict";gF.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 Y1=I((o2e,bF)=>{"use strict";var sde=La(),lde=gi(),ude=ra().extendFlat,fde=Ai().overrideAll,cde=Vd(),yF=ar().templatedArray,dde=yF("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});bF.exports=fde(yF("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:dde,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:ude(cde({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:sde({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:lde.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")});var TF=I((s2e,wF)=>{"use strict";var bp=Re(),xF=In(),_F=Y1(),hde=yp(),vde=hde.name,pde=_F.buttons;wF.exports=function(t,r){var a={name:vde,handleItemDefaults:mde};xF(t,r,a)};function mde(e,t,r){function a(o,s){return bp.coerce(e,t,_F,o,s)}var n=xF(e,t,{name:"buttons",handleItemDefaults:gde}),i=a("visible",n.length>0);!i||(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),bp.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),bp.coerceFont(a,"font",r.font),a("bgcolor",r.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function gde(e,t){function r(n,i){return bp.coerce(e,t,pde,n,i)}var a=r("visible",e.method==="skip"||Array.isArray(e.args));a&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var MF=I((l2e,kF)=>{"use strict";kF.exports=vr;var Wn=Ft(),AF=It(),ru=Kt(),xp=Re();function vr(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}vr.barWidth=2;vr.barLength=20;vr.barRadius=2;vr.barPad=1;vr.barColor="#808BA4";vr.prototype.enable=function(t,r,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,d=this.position.direction,h=d==="down",p=d==="left",g=d==="right",m=d==="up",b=l,x=c,_,k,w,A;!h&&!p&&!g&&!m&&(this.position.direction="down",h=!0);var L=h||m;L?(_=s,k=_+b,h?(w=u,A=Math.min(w+x,o),x=A-w):(A=u+x,w=Math.max(A-x,0),x=A-w)):(w=u,A=w+x,p?(k=s+b,_=Math.max(k-b,0),b=k-_):(_=s,k=Math.min(_+b,i),b=k-_)),this._box={l:_,t:w,w:b,h:x};var S=l>b,q=vr.barLength+2*vr.barPad,P=vr.barWidth+2*vr.barPad,E=s,F=u+c;F+P>o&&(F=o-P);var N=this.container.selectAll("rect.scrollbar-horizontal").data(S?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(AF.fill,vr.barColor),S?(this.hbar=N.attr({rx:vr.barRadius,ry:vr.barRadius,x:E,y:F,width:q,height:P}),this._hbarXMin=E+q/2,this._hbarTranslateMax=b-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var j=c>x,B=vr.barWidth+2*vr.barPad,W=vr.barLength+2*vr.barPad,V=s+l,Y=u;V+B>i&&(V=i-B);var Z=this.container.selectAll("rect.scrollbar-vertical").data(j?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(AF.fill,vr.barColor),j?(this.vbar=Z.attr({rx:vr.barRadius,ry:vr.barRadius,x:V,y:Y,width:B,height:W}),this._vbarYMin=Y+W/2,this._vbarTranslateMax=x-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var $=this.id,ne=_-.5,te=j?k+B+.5:k+.5,de=w-.5,be=S?A+P+.5:A+.5,re=n._topdefs.selectAll("#"+$).data(S||j?[0]:[]);if(re.exit().remove(),re.enter().append("clipPath").attr("id",$).append("rect"),S||j?(this._clipRect=re.select("rect").attr({x:Math.floor(ne),y:Math.floor(de),width:Math.ceil(te)-Math.floor(ne),height:Math.ceil(be)-Math.floor(de)}),this.container.call(ru.setClipUrl,$,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ru.setClipUrl,null),delete this._clipRect),S||j){var ge=Wn.behavior.drag().on("dragstart",function(){Wn.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ge);var ee=Wn.behavior.drag().on("dragstart",function(){Wn.event.sourceEvent.preventDefault(),Wn.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));S&&this.hbar.on(".drag",null).call(ee),j&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(r,a)};vr.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ru.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)};vr.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Wn.event.dx),this.vbar&&(r-=Wn.event.dy),this.setTranslate(t,r)};vr.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Wn.event.deltaY),this.vbar&&(r+=Wn.event.deltaY),this.setTranslate(t,r)};vr.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var a=t+this._hbarXMin,n=a+this._hbarTranslateMax,i=xp.constrain(Wn.event.x,a,n),o=(i-a)/(n-a),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=xp.constrain(Wn.event.y,l,u),d=(c-l)/(u-l),h=this.position.h-this._box.h;r=d*h}this.setTranslate(t,r)};vr.prototype.setTranslate=function(t,r){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=xp.constrain(t||0,0,a),r=xp.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(ru.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var i=t/a;this.hbar.call(ru.setTranslate,t+i*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(ru.setTranslate,t,r+o*this._vbarTranslateMax)}}});var zF=I((u2e,IF)=>{"use strict";var au=Ft(),gc=Nr(),yc=It(),nu=Kt(),an=Re(),_p=Ga(),yde=ar().arrayEditor,SF=qa().LINE_SPACING,_t=yp(),bde=MF();IF.exports=function(t){var r=t._fullLayout,a=an.filterVisible(r[_t.name]);function n(h){gc.autoMargin(t,RF(h))}var i=r._menulayer.selectAll("g."+_t.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_t.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){au.select(this).selectAll("g."+_t.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+_t.headerGroupClassName).data(a,xde);o.enter().append("g").classed(_t.headerGroupClassName,!0);for(var s=an.ensureSingle(i,"g",_t.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var Sde=yp();NF.exports={moduleType:"component",name:Sde.name,layoutAttributes:Y1(),supplyLayoutDefaults:TF(),draw:zF()}});var xc=I((c2e,jF)=>{"use strict";jF.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 Q1=I((d2e,BF)=>{"use strict";var OF=La(),Cde=Vd(),Lde=ra().extendDeepAll,qde=Ai().overrideAll,Dde=Zu(),HF=ar().templatedArray,Cs=xc(),Pde=HF("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});BF.exports=qde(HF("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:Pde,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:Lde(Cde({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:Dde.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:OF({description:"Sets the font of the current value label text."})},font:OF({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:Cs.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:Cs.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:Cs.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:Cs.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:Cs.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:Cs.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:Cs.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")});var VF=I((h2e,WF)=>{"use strict";var iu=Re(),UF=In(),GF=Q1(),Rde=xc(),Ede=Rde.name,Ide=GF.steps;WF.exports=function(t,r){UF(t,r,{name:Ede,handleItemDefaults:zde})};function zde(e,t,r){function a(d,h){return iu.coerce(e,t,GF,d,h)}for(var n=UF(e,t,{name:"steps",handleItemDefaults:Nde}),i=0,o=0;o{"use strict";var Vn=Ft(),wp=Nr(),yo=It(),Yn=Kt(),nn=Re(),Fde=nn.strTranslate,_c=Ga(),jde=ar().arrayEditor,Rt=xc(),K1=qa(),YF=K1.LINE_SPACING,J1=K1.FROM_TL,ex=K1.FROM_BR;t7.exports=function(t){var r=t._fullLayout,a=Ode(r,t),n=r._infolayer.selectAll("g."+Rt.containerClassName).data(a.length>0?[0]:[]);n.enter().append("g").classed(Rt.containerClassName,!0).style("cursor","ew-resize");function i(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),wp.autoMargin(t,ZF(u))}if(n.exit().each(function(){Vn.select(this).selectAll("g."+Rt.groupClassName).each(i)}).remove(),a.length!==0){var o=n.selectAll("g."+Rt.groupClassName).data(a,Hde);o.enter().append("g").classed(Rt.groupClassName,!0),o.exit().each(i).remove();for(var s=0;s0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Fde(o-Rt.gripWidth*.5,t._dims.currentValueTotalHeight))}}function tx(e,t){var r=e._dims;return r.inputAreaStart+Rt.stepInset+(r.inputAreaLength-2*Rt.stepInset)*Math.min(1,Math.max(0,t))}function e7(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Rt.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Rt.stepInset-2*r.inputAreaStart)))}function Zde(e,t,r){var a=r._dims,n=nn.ensureSingle(e,"rect",Rt.railTouchRectClass,function(i){i.call(KF,t,e,r).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Rt.tickOffset+r.ticklen+a.labelHeight)}).call(yo.fill,r.bgcolor).attr("opacity",0),Yn.setTranslate(n,0,a.currentValueTotalHeight)}function Xde(e,t){var r=t._dims,a=r.inputAreaLength-Rt.railInset*2,n=nn.ensureSingle(e,"rect",Rt.railRectClass);n.attr({width:a,height:Rt.railWidth,rx:Rt.railRadius,ry:Rt.railRadius,"shape-rendering":"crispEdges"}).call(yo.stroke,t.bordercolor).call(yo.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Yn.setTranslate(n,Rt.railInset,(r.inputAreaWidth-Rt.railWidth)*.5+r.currentValueTotalHeight)}});var n7=I((p2e,a7)=>{"use strict";var $de=xc();a7.exports={moduleType:"component",name:$de.name,layoutAttributes:Q1(),supplyLayoutDefaults:VF(),draw:r7()}});var Ap=I((m2e,o7)=>{"use strict";var i7=gi();o7.exports={bgcolor:{valType:"color",dflt:i7.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:i7.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}});var rx=I((g2e,s7)=>{"use strict";s7.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}});var kp=I((y2e,l7)=>{"use strict";l7.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 c7=I(Sp=>{"use strict";var Qde=Hr(),Kde=Ga(),u7=kp(),Jde=qa().LINE_SPACING,Mp=u7.name;function f7(e){var t=e&&e[Mp];return t&&t.visible}Sp.isVisible=f7;Sp.makeData=function(e){var t=Qde.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var n=0;n{"use strict";var Cp=Re(),d7=ar(),h7=Hr(),ehe=Ap(),the=rx();v7.exports=function(t,r,a){var n=t[a],i=r[a];if(!(n.rangeslider||r._requestRangeslider[i._id]))return;Cp.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=d7.newContainer(i,"rangeslider");function l(A,L){return Cp.coerce(o,s,ehe,A,L)}var u,c;function d(A,L){return Cp.coerce(u,c,the,A,L)}var h=l("visible");if(!!h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!i.isValidRange(o.range)),l("range");var p=r._subplots;if(p)for(var g=p.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===h7.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),m=Cp.simpleMap(g,h7.id2name),b=0;b{"use strict";var rhe=Hr().list,ahe=mf().getAutoRange,nhe=kp();m7.exports=function(t){for(var r=rhe(t,"x",!0),a=0;a{"use strict";var Lp=Ft(),ihe=bt(),ohe=Nr(),xr=Re(),qp=xr.strTranslate,y7=Kt(),bo=It(),she=vf(),lhe=vp(),ax=Hr(),uhe=Nn(),fhe=oo(),zt=kp();b7.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,a=0;a=Z.max)V=F[Y+1];else if(W=Z.pmax)V=F[Y+1];else if(W{"use strict";var _he=Re(),whe=Ap(),The=rx(),nx=c7();_7.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:_he.extendFlat({},whe,{yaxis:The})}}},layoutAttributes:Ap(),handleDefaults:p7(),calcAutorange:g7(),draw:x7(),isVisible:nx.isVisible,makeData:nx.makeData,autoMarginOpts:nx.autoMarginOpts}});var Dp=I((A2e,A7)=>{"use strict";var Ahe=La(),T7=gi(),khe=ar().templatedArray,Mhe=khe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});A7.exports={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:Mhe,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:Ahe({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:T7.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:T7.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}});var ix=I((k2e,k7)=>{"use strict";k7.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var C7=I((M2e,S7)=>{"use strict";var Pp=Re(),She=It(),Che=ar(),Lhe=In(),M7=Dp(),ox=ix();S7.exports=function(t,r,a,n,i){var o=t.rangeselector||{},s=Che.newContainer(r,"rangeselector");function l(p,g){return Pp.coerce(o,s,M7,p,g)}var u=Lhe(o,s,{name:"buttons",handleItemDefaults:qhe,calendar:i}),c=l("visible",u.length>0);if(c){var d=Dhe(r,a,n);l("x",d[0]),l("y",d[1]),Pp.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),Pp.coerceFont(l,"font",a.font);var h=l("bgcolor");l("activecolor",She.contrast(h,ox.lightAmount,ox.darkAmount)),l("bordercolor"),l("borderwidth")}};function qhe(e,t,r,a){var n=a.calendar;function i(l,u){return Pp.coerce(e,t,M7.buttons,l,u)}var o=i("visible");if(o){var s=i("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Dhe(e,t,r){for(var a=r.filter(function(s){return t[s].anchor===e._id}),n=0,i=0;i{"use strict";var Phe=tg(),Rhe=Re().titleCase;L7.exports=function(t,r){var a=t._name,n={};if(r.step==="all")n[a+".autorange"]=!0;else{var i=Ehe(t,r);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Ehe(e,t){var r=e.range,a=new Date(e.r2l(r[1])),n=t.step,i=Phe["utc"+Rhe(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+i.offset(a,-o));break;case"todate":var l=i.offset(a,-o);s=e.l2r(+i.ceil(l));break}var u=r[1];return[s,u]}});var F7=I((C2e,N7)=>{"use strict";var Rp=Ft(),Ihe=bt(),zhe=Nr(),D7=It(),P7=Kt(),Ni=Re(),R7=Ni.strTranslate,Ep=Ga(),Nhe=Hr(),sx=qa(),E7=sx.LINE_SPACING,I7=sx.FROM_TL,z7=sx.FROM_BR,lx=ix(),Fhe=q7();N7.exports=function(t){var r=t._fullLayout,a=r._infolayer.selectAll(".rangeselector").data(jhe(t),Ohe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Rp.select(this),o=n,s=o.rangeselector,l=i.selectAll("g.button").data(Ni.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=Rp.select(this),d=Fhe(o,u);u._isActive=Hhe(o,u,d),c.call(ux,s,u),c.call(Uhe,s,u,t),c.on("click",function(){t._dragged||Ihe.call("_guiRelayout",t,d)}),c.on("mouseover",function(){u._isHovered=!0,c.call(ux,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(ux,s,u)})}),Whe(t,l,s,o._name,i)})};function jhe(e){for(var t=Nhe.list(e,"x",!0),r=[],a=0;a{"use strict";j7.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Dp()}}},layoutAttributes:Dp(),handleDefaults:C7(),draw:F7()}});var B7=I(fx=>{"use strict";var H7=ra().extendFlat;fx.attributes=function(e,t){e=e||{},t=t||{};var r={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=t.description?" "+t.description:"",o={x:H7({},r,{description:["Sets the horizontal domain of this ",a,n,"(in plot fraction).",i].join("")}),y:H7({},r,{description:["Sets the vertical domain of this ",a,n,"(in plot fraction).",i].join("")}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",a,n,".",i].join("")},o.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",a,n,".",i].join("")}),o};fx.defaults=function(e,t,r,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Vhe=Re(),Yhe=nl().counter,Zhe=B7().attributes,U7=ga().idRegex,Xhe=ar(),cx={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Yhe("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U7.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U7.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:Zhe({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function Ip(e,t,r){var a=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(a))return a;if(n.length)return n}function $he(e,t){var r=e.grid||{},a=Ip(t,r,"x"),n=Ip(t,r,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(a),s=Array.isArray(n),l=o&&a!==r.xaxes&&s&&n!==r.yaxes,u,c;i?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=n.length),o&&(c=a.length));var d=Xhe.newContainer(t,"grid");function h(L,S){return Vhe.coerce(r,d,cx,L,S)}var p=h("rows",u),g=h("columns",c);if(!(p*g>1)){delete t.grid;return}if(!i&&!o&&!s){var m=h("pattern")==="independent";m&&(i=!0)}d._hasSubplotGrid=i;var b=h("roworder"),x=b==="top to bottom",_=i?.2:.1,k=i?.3:.1,w,A;l&&t._splomGridDflt&&(w=t._splomGridDflt.xside,A=t._splomGridDflt.yside),d._domains={x:G7("x",h,_,w,g),y:G7("y",h,k,A,p,x)}}function G7(e,t,r,a,n,i){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",a);for(var l=new Array(n),u=s[0],c=(s[1]-u)/(n-o),d=c*(1-o),h=0;h{"use strict";Z7.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,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",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}});var Q7=I((R2e,$7)=>{"use strict";var X7=jt(),Khe=bt(),Jhe=Re(),eve=ar(),tve=dx();$7.exports=function(e,t,r,a){var n="error_"+a.axis,i=eve.newContainer(t,n),o=e[n]||{};function s(g,m){return Jhe.coerce(o,i,tve,g,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),d=!0;c!=="sqrt"&&(d=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),d||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),d||s("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var p=t["error_"+a.inherit];(p||{}).visible&&s(h,!(o.color||X7(o.thickness)||X7(o.width)))}(!a.inherit||!i[h])&&(s("color",r),s("thickness"),s("width",Khe.traceIs(t,"gl3d")?0:4))}}});var hx=I((E2e,J7)=>{"use strict";J7.exports=function(t){var r=t.type,a=t.symmetric;if(r==="data"){var n=t.array||[];if(a)return function(u,c){var d=+n[c];return[d,d]};var i=t.arrayminus||[];return function(u,c){var d=+n[c],h=+i[c];return!isNaN(d)||!isNaN(h)?[h||0,d||0]:[NaN,NaN]}}else{var o=K7(r,t.value),s=K7(r,t.valueminus);return a||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function K7(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var r9=I((I2e,t9)=>{"use strict";var vx=jt(),rve=bt(),px=tr(),ave=Re(),nve=hx();t9.exports=function(t){for(var r=t.calcdata,a=0;a{"use strict";var a9=Ft(),xo=jt(),ive=Kt(),ove=Ja();n9.exports=function(t,r,a,n){var i,o=a.xaxis,s=a.yaxis,l=n&&n.duration>0;r.each(function(u){var c=u[0].trace,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(x){return x.id});var g=ove.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(u=[]);var m=a9.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){d.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);l&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),ive.setClipUrl(m,a.layerClipId,t),m.each(function(x){var _=a9.select(this),k=sve(x,o,s);if(!(g&&!x.vis)){var w,A=_.select("path.yerror");if(h.visible&&xo(k.x)&&xo(k.yh)&&xo(k.ys)){var L=h.width;w="M"+(k.x-L)+","+k.yh+"h"+2*L+"m-"+L+",0V"+k.ys,k.noYS||(w+="m-"+L+",0h"+2*L),i=!A.size(),i?A=_.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):l&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",w)}else A.remove();var S=_.select("path.xerror");if(d.visible&&xo(k.y)&&xo(k.xh)&&xo(k.xs)){var q=(d.copy_ystyle?h:d).width;w="M"+k.xh+","+(k.y-q)+"v"+2*q+"m0,-"+q+"H"+k.xs,k.noXS||(w+="m0,-"+q+"v"+2*q),i=!S.size(),i?S=_.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",w)}else S.remove()}})}})};function sve(e,t,r){var a={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(a.yh=r.c2p(e.yh),a.ys=r.c2p(e.ys),xo(a.ys)||(a.noYS=!0,a.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),xo(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0))),a}});var l9=I((N2e,s9)=>{"use strict";var lve=Ft(),o9=It();s9.exports=function(t){t.each(function(r){var a=r[0].trace,n=a.error_y||{},i=a.error_x||{},o=lve.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(o9.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(o9.stroke,i.color)})}});var c9=I((F2e,f9)=>{"use strict";var wc=Re(),u9=Ai().overrideAll,Tc=dx(),Ls={error_x:wc.extendFlat({},Tc),error_y:wc.extendFlat({},Tc)};delete Ls.error_x.copy_zstyle;delete Ls.error_y.copy_zstyle;delete Ls.error_y.copy_ystyle;var Ac={error_x:wc.extendFlat({},Tc),error_y:wc.extendFlat({},Tc),error_z:wc.extendFlat({},Tc)};delete Ac.error_x.copy_ystyle;delete Ac.error_y.copy_ystyle;delete Ac.error_z.copy_ystyle;delete Ac.error_z.copy_zstyle;f9.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ls,bar:Ls,histogram:Ls,scatter3d:u9(Ac,"calc","nested"),scattergl:u9(Ls,"calc","nested")}},supplyDefaults:Q7(),calc:r9(),makeComputeError:hx(),plot:i9(),style:l9(),hoverInfo:uve};function uve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var h9=I((j2e,d9)=>{"use strict";d9.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 x9=I((O2e,b9)=>{"use strict";var _o=Ft(),mx=Pn(),zp=Nr(),v9=bt(),Fi=tr(),Np=Nn(),Sn=Re(),Zn=Sn.strTranslate,p9=ra().extendFlat,gx=oo(),Xn=Kt(),yx=It(),fve=vf(),cve=Ga(),dve=hn().flipScale,hve=S1(),vve=C1(),pve=ni(),bx=qa(),m9=bx.LINE_SPACING,g9=bx.FROM_TL,y9=bx.FROM_BR,dr=h9().cn;function mve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+dr.colorbar).data(gve(e),function(a){return a._id});r.enter().append("g").attr("class",function(a){return a._id}).classed(dr.colorbar,!0),r.each(function(a){var n=_o.select(this);Sn.ensureSingle(n,"rect",dr.cbbg),Sn.ensureSingle(n,"g",dr.cbfills),Sn.ensureSingle(n,"g",dr.cblines),Sn.ensureSingle(n,"g",dr.cbaxis,function(o){o.classed(dr.crisp,!0)}),Sn.ensureSingle(n,"g",dr.cbtitleunshift,function(o){o.append("g").classed(dr.cbtitle,!0)}),Sn.ensureSingle(n,"rect",dr.cboutline);var i=yve(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&bve(n,a,e)}),r.exit().each(function(a){zp.autoMargin(e,a._id)}).remove(),r.order()}function gve(e){var t=e._fullLayout,r=e.calcdata,a=[],n,i,o,s;function l(k){return p9(k,{_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 s.calc=="function"?s.calc(e,o,n):(n._fillgradient=i.reversescale?dve(i.colorscale):i.colorscale,n._zrange=[i[s.min],i[s.max]])}for(var c=0;c1){var De=Math.pow(10,Math.floor(Math.log(ke)/Math.LN10));ee*=De*Sn.roundUp(ke/De,[2,5,10]),(Math.abs(E.start)/E.size+1e-6)%1<2e-6&&(re.tick0=0)}re.dtick=ee}re.domain=a?[de+g/_.h,de+Y-g/_.h]:[de+p/_.w,de+Y-p/_.w],re.setScale(),e.attr("transform",Zn(Math.round(_.l),Math.round(_.t)));var Le=e.select("."+dr.cbtitleunshift).attr("transform",Zn(-Math.round(_.l),-Math.round(_.t))),Se=re.ticklabelposition,U=re.title.font.size,J=e.select("."+dr.cbaxis),O,oe=0,me=0;function xe(Ue,nt){var at={propContainer:re,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+dr.cbtitle)},ft=Ue.charAt(0)==="h"?Ue.substr(1):"h"+Ue;e.selectAll("."+ft+",."+ft+"-math-group").remove(),fve.draw(r,Ue,p9(at,nt||{}))}function qe(){if(a&&ge||!a&&!ge){var Ue,nt;L==="top"&&(Ue=p+_.l+_.w*m,nt=g+_.t+_.h*(1-de-Y)+3+U*.75),L==="bottom"&&(Ue=p+_.l+_.w*m,nt=g+_.t+_.h*(1-de)-3-U*.25),L==="right"&&(nt=g+_.t+_.h*b+3+U*.75,Ue=p+_.l+_.w*de),xe(re._id+"title",{attributes:{x:Ue,y:nt,"text-anchor":a?"start":"middle"}})}}function Pe(){if(a&&!ge||!a&&ge){var Ue=re.position||0,nt=re._offset+re._length/2,at,ft;if(L==="right")ft=nt,at=_.l+_.w*Ue+10+U*(re.showticklabels?1:.5);else if(at=nt,L==="bottom"&&(ft=_.t+_.h*Ue+10+(Se.indexOf("inside")===-1?re.tickfont.size:0)+(re.ticks!=="intside"&&t.ticklen||0)),L==="top"){var wt=A.text.split("
").length;ft=_.t+_.h*Ue+10-B-m9*U*wt}xe((a?"h":"v")+re._id+"title",{avoid:{selection:_o.select(r).selectAll("g."+re._id+"tick"),side:L,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:at,y:ft,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function ye(){if(!a&&!ge||a&&ge){var Ue=e.select("."+dr.cbtitle),nt=Ue.select("text"),at=[-l/2,l/2],ft=Ue.select(".h"+re._id+"title-math-group").node(),wt=15.6;nt.node()&&(wt=parseInt(nt.node().style.fontSize,10)*m9);var se;if(ft?(se=Xn.bBox(ft),me=se.width,oe=se.height,oe>wt&&(at[1]-=(oe-wt)/2)):nt.node()&&!nt.classed(dr.jsPlaceholder)&&(se=Xn.bBox(nt.node()),me=se.width,oe=se.height),a){if(oe){if(oe+=5,L==="top")re.domain[1]-=oe/_.h,at[1]*=-1;else{re.domain[0]+=oe/_.h;var Ce=cve.lineCount(nt);at[1]+=(1-Ce)*wt}Ue.attr("transform",Zn(at[0],at[1])),re.setScale()}}else me&&(L==="right"&&(re.domain[0]+=(me+U/2)/_.w),Ue.attr("transform",Zn(at[0],at[1])),re.setScale())}e.selectAll("."+dr.cbfills+",."+dr.cblines).attr("transform",a?Zn(0,Math.round(_.h*(1-re.domain[1]))):Zn(Math.round(_.w*re.domain[0]),0)),J.attr("transform",a?Zn(0,Math.round(-_.t)):Zn(Math.round(-_.l),0));var it=e.select("."+dr.cbfills).selectAll("rect."+dr.cbfill).attr("style","").data(N);it.enter().append("rect").classed(dr.cbfill,!0).style("stroke","none"),it.exit().remove();var ct=S.map(re.c2p).map(Math.round).sort(function(je,ze){return je-ze});it.each(function(je,ze){var Ge=[ze===0?S[0]:(N[ze]+N[ze-1])/2,ze===N.length-1?S[1]:(N[ze]+N[ze+1])/2].map(re.c2p).map(Math.round);a&&(Ge[1]=Sn.constrain(Ge[1]+(Ge[1]>Ge[0])?1:-1,ct[0],ct[1]));var mt=_o.select(this).attr(a?"x":"y",Z).attr(a?"y":"x",_o.min(Ge)).attr(a?"width":"height",Math.max(B,2)).attr(a?"height":"width",Math.max(_o.max(Ge)-_o.min(Ge),2));if(t._fillgradient)Xn.gradient(mt,r,t._id,a?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Tt=P(je).replace("e-","");mt.attr("fill",mx(Tt).toHexString())}});var Je=e.select("."+dr.cblines).selectAll("path."+dr.cbline).data(w.color&&w.width?j:[]);Je.enter().append("path").classed(dr.cbline,!0),Je.exit().remove(),Je.each(function(je){var ze=Z,Ge=Math.round(re.c2p(je))+w.width/2%1;_o.select(this).attr("d","M"+(a?ze+","+Ge:Ge+","+ze)+(a?"h":"v")+B).call(Xn.lineGroupStyle,w.width,q(je),w.dash)}),J.selectAll("g."+re._id+"tick,path").remove();var we=Z+B+(l||0)/2-(t.ticks==="outside"?1:0),Me=Fi.calcTicks(re),Ye=Fi.getTickSigns(re)[2];return Fi.drawTicks(r,re,{vals:re.ticks==="inside"?Fi.clipEnds(re,Me):Me,layer:J,path:Fi.makeTickPath(re,we,Ye),transFn:Fi.makeTransTickFn(re)}),Fi.drawLabels(r,re,{vals:Me,layer:J,transFn:Fi.makeTransTickLabelFn(re),labelFns:Fi.makeLabelFns(re,we)})}function rt(){var Ue,nt=B+l/2;Se.indexOf("inside")===-1&&(Ue=Xn.bBox(J.node()),nt+=a?Ue.width:Ue.height),O=Le.select("text");var at=0,ft=a&&L==="top",wt=!a&&L==="right",se=0;if(O.node()&&!O.classed(dr.jsPlaceholder)){var Ce,it=Le.select(".h"+re._id+"title-math-group").node();it&&(a&&ge||!a&&!ge)?(Ue=Xn.bBox(it),at=Ue.width,Ce=Ue.height):(Ue=Xn.bBox(Le.node()),at=Ue.right-_.l-(a?Z:be),Ce=Ue.bottom-_.t-(a?be:Z),!a&&L==="top"&&(nt+=Ue.height,se=Ue.height)),wt&&(O.attr("transform",Zn(at/2+U/2,0)),at*=2),nt=Math.max(nt,a?at:Ce)}var ct=(a?p:g)*2+nt+u+l/2,Je=0;!a&&A.text&&h==="bottom"&&b<=0&&(Je=ct/2,ct+=Je,se+=Je),x._hColorbarMoveTitle=Je,x._hColorbarMoveCBTitle=se;var we=u+l;e.select("."+dr.cbbg).attr("x",(a?Z:be)-we/2-(a?p:0)).attr("y",(a?be:Z)-(a?V:g+se-Je)).attr(a?"width":"height",Math.max(ct-Je,2)).attr(a?"height":"width",Math.max(V+we,2)).call(yx.fill,c).call(yx.stroke,t.bordercolor).style("stroke-width",u);var Me=wt?Math.max(at-10,0):0;if(e.selectAll("."+dr.cboutline).attr("x",(a?Z:be+p)+Me).attr("y",(a?be+g-V:Z)+(ft?oe:0)).attr(a?"width":"height",Math.max(B,2)).attr(a?"height":"width",Math.max(V-(a?2*g+oe:2*p+Me),2)).call(yx.stroke,t.outlinecolor).style({fill:"none","stroke-width":l}),e.attr("transform",Zn(_.l-(a?$*ct:0),_.t-(a?0:(1-ne)*ct-se))),!a&&(u||mx(c).getAlpha()&&!mx.equals(x.paper_bgcolor,c))){var Ye=J.selectAll("text"),je=Ye[0].length,ze=e.select("."+dr.cbbg).node(),Ge=Xn.bBox(ze),mt=Xn.getTranslate(e),Tt=2;Ye.each(function(vt,pt){var ae=0,_e=je-1;if(pt===ae||pt===_e){var Te=Xn.bBox(this),Fe=Xn.getTranslate(this),Et;if(pt===_e){var pr=Te.right+Fe.x,Vr=Ge.right+mt.x+be-u-Tt+m;Et=Vr-pr,Et>0&&(Et=0)}else if(pt===ae){var Er=Te.left+Fe.x,hr=Ge.left+mt.x+be+u+Tt;Et=hr-Er,Et<0&&(Et=0)}Et&&(je<3?this.setAttribute("transform","translate("+Et+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ot={},Ne=g9[d],et=y9[d],Oe=g9[h],st=y9[h],dt=ct-B;a?(i==="pixels"?(ot.y=b,ot.t=V*Oe,ot.b=V*st):(ot.t=ot.b=0,ot.yt=b+n*Oe,ot.yb=b-n*st),s==="pixels"?(ot.x=m,ot.l=ct*Ne,ot.r=ct*et):(ot.l=dt*Ne,ot.r=dt*et,ot.xl=m-o*Ne,ot.xr=m+o*et)):(i==="pixels"?(ot.x=m,ot.l=V*Ne,ot.r=V*et):(ot.l=ot.r=0,ot.xl=m+n*Ne,ot.xr=m-n*et),s==="pixels"?(ot.y=1-b,ot.t=ct*Oe,ot.b=ct*st):(ot.t=dt*Oe,ot.b=dt*st,ot.yt=b-o*Oe,ot.yb=b+o*st)),zp.autoMargin(r,t._id,ot)}return Sn.syncOrAsync([zp.previousPromises,qe,ye,Pe,zp.previousPromises,rt],r)}function bve(e,t,r){var a=t.orientation==="v",n=r._fullLayout,i=n._size,o,s,l;Np.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),gx(e)},moveFn:function(u,c){e.attr("transform",o+Zn(u,c)),s=Np.align((a?t._uFrac:t._vFrac)+u/i.w,a?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=Np.align((a?t._vFrac:1-t._uFrac)-c/i.h,a?t._lenFrac:t._thickFrac,0,1,t.yanchor);var d=Np.getCursor(s,l,t.xanchor,t.yanchor);gx(e,d)},doneFn:function(){if(gx(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?v9.call("_guiRestyle",r,u,t._traceIndex):v9.call("_guiRelayout",r,u)}}})}function xve(e,t,r){var a=t._levels,n=[],i=[],o,s,l=a.end+a.size/100,u=a.size,c=1.001*r[0]-.001*r[1],d=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=a.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";_9.exports={moduleType:"component",name:"colorbar",attributes:bh(),supplyDefaults:yy(),draw:x9().draw,hasColorbar:ly()}});var A9=I((B2e,T9)=>{"use strict";T9.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 M9=I((U2e,k9)=>{"use strict";k9.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var _x=I((G2e,q9)=>{"use strict";var wve=bt(),S9=Re(),xx=S9.extendFlat,C9=S9.extendDeep;function L9(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Tve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}q9.exports=function(t,r){var a,n=t.data,i=t.layout,o=C9([],n),s=C9({},i,L9(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(a=0;a{"use strict";var Ave=sh().EventEmitter,kve=bt(),Mve=Re(),D9=ws(),Sve=_x(),Cve=Jv(),Lve=ep();function qve(e,t){var r=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 s=D9.getDelay(n._fullLayout);setTimeout(function(){var l=Cve(n),u=document.createElement("canvas");u.id=Mve.randstr(),r=Lve({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=D9.getRedrawFunc(n);return kve.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(s){r.emit("error",s)}),r}P9.exports=qve});var z9=I((V2e,I9)=>{"use strict";var E9=ws(),Dve={getDelay:E9.getDelay,getRedrawFunc:E9.getRedrawFunc,clone:_x(),toSVG:Jv(),svgToImg:ep(),toImage:R9(),downloadImage:t1()};I9.exports=Dve});var F9=I(ji=>{"use strict";ji.version=Ad().version;eS();kL();var Pve=bt(),kc=ji.register=Pve.register,wx=$I(),N9=Object.keys(wx);for(Fp=0;Fp{"use strict";j9.exports=F9()});var Ax=I((X2e,H9)=>{"use strict";H9.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Mc=I(($2e,W9)=>{"use strict";var Rr=Bl(),B9=yh().axisHoverFormat,Rve=Yf().hovertemplateAttrs,Eve=Yf().texttemplateAttrs,U9=cf(),Ive=La(),G9=Ax(),zve=yi().pattern,qs=ra().extendFlat,kx=Ive({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),Nve=Rr.marker,Fve=Nve.line,jve=qs({},Fve.width,{dflt:0}),Ove=qs({width:jve,editType:"calc"},U9("marker.line")),Hve=qs({line:Ove,editType:"calc"},U9("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:zve});W9.exports={x:Rr.x,x0:Rr.x0,dx:Rr.dx,y:Rr.y,y0:Rr.y0,dy:Rr.dy,xperiod:Rr.xperiod,yperiod:Rr.yperiod,xperiod0:Rr.xperiod0,yperiod0:Rr.yperiod0,xperiodalignment:Rr.xperiodalignment,yperiodalignment:Rr.yperiodalignment,xhoverformat:B9("x"),yhoverformat:B9("y"),text:Rr.text,texttemplate:Eve({editType:"plot"},{keys:G9.eventDataKeys}),hovertext:Rr.hovertext,hovertemplate:Rve({},{keys:G9.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:qs({},kx,{description:"Sets the font used for `text`."}),insidetextfont:qs({},kx,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:qs({},kx,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:qs({},Rr.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:Hve,offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},selected:{marker:{opacity:Rr.selected.marker.opacity,color:Rr.selected.marker.color,editType:"style"},textfont:Rr.selected.textfont,editType:"style"},unselected:{marker:{opacity:Rr.unselected.marker.opacity,color:Rr.unselected.marker.color,editType:"style"},textfont:Rr.unselected.textfont,editType:"style"},_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}});var Mx=I((Q2e,V9)=>{"use strict";V9.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}});var $9=I((K2e,X9)=>{"use strict";var Bve=It(),Y9=hn().hasColorscale,Z9=wl(),Uve=Re().coercePattern;X9.exports=function(t,r,a,n,i){var o=a("marker.color",n),s=Y9(t,"marker");s&&Z9(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Bve.defaultLine),Y9(t,"marker.line")&&Z9(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Uve(a,"marker.pattern",o,s),a("selected.marker.color"),a("unselected.marker.color")}});var Sx=I((J2e,tj)=>{"use strict";var su=Re(),Q9=It(),Gve=bt(),Wve=n1(),Vve=i1(),Yve=$9(),Zve=Cf().getAxisGroup,K9=Mc(),Op=su.coerceFont;function Xve(e,t,r,a){function n(u,c){return su.coerce(e,t,K9,u,c)}var i=Wve(e,t,a,n);if(!i){t.visible=!1;return}Vve(e,t,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");ej(e,t,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Yve(e,t,n,r,a);var s=(t.marker.line||{}).color,l=Gve.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||Q9.defaultLine,{axis:"y"}),l(e,t,s||Q9.defaultLine,{axis:"x",inherit:"y"}),su.coerceSelectionMarkerOpacity(t,n)}function J9(e,t,r,a){var n=t.orientation,i=t[{v:"x",h:"y"}[n]+"axis"],o=Zve(r,i)+n,s=r._alignmentOpts||{},l=a("alignmentgroup"),u=s[o];u||(u=s[o]={});var c=u[l];c?c.traces.push(t):c=u[l]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var d=a("offsetgroup"),h=c.offsetGroups,p=h[d];d&&(p||(p=h[d]={offsetIndex:Object.keys(h).length}),t._offsetIndex=p.offsetIndex)}function $ve(e,t){var r,a;function n(o){return su.coerce(a._input,a,K9,o)}if(t.barmode==="group")for(var i=0;i{"use strict";var Qve=bt(),Kve=tr(),Jve=Re(),epe=Mx();rj.exports=function(e,t,r){function a(p,g){return Jve.coerce(e,t,epe,p,g)}for(var n=!1,i=!1,o=!1,s={},l=a("barmode"),u=0;u{"use strict";var lu=Re();nj.exports=function(t,r){for(var a=0;a{"use strict";var ij=tr(),oj=o1(),sj=hn().hasColorscale,lj=_h(),tpe=Cx(),rpe=f1();uj.exports=function(t,r){var a=ij.getFromId(t,r.xaxis||"x"),n=ij.getFromId(t,r.yaxis||"y"),i,o,s,l,u,c,d={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(i=a.makeCalcdata(r,"x",d),s=n.makeCalcdata(r,"y"),l=oj(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(i=n.makeCalcdata(r,"y",d),s=a.makeCalcdata(r,"x"),l=oj(r,a,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,i.length),p=new Array(h),g=0;g{"use strict";cj.exports=Hp;var ape=Re().distinctVals,npe=Tr().BADNUM;function Hp(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=[],n=0;n{"use strict";var wo=jt(),Lx=Re().isArrayOrTypedArray,uu=Tr().BADNUM,ipe=bt(),Sc=tr(),ope=Cf().getAxisGroup,Bp=dj();function spe(e,t){for(var r=t.xaxis,a=t.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!wo(s))}for(var c=0;c{"use strict";var ppe=Ft(),mpe=Re();function gpe(e,t,r){var a=e._fullLayout,n=a["_"+r+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=i&&l.hide?0:n/l.fontSize;var u=ppe.select(this).select("text");mpe.setTransormAndDisplay(u,l)}})}}function ype(e,t,r){if(r.uniformtext.mode){var a=_j(e),n=r.uniformtext.minsize,i=t.scale*t.fontSize;t.hide=i{"use strict";var xpe=jt(),_pe=Pn(),wpe=Re().isArrayOrTypedArray;Ds.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};Ds.coerceNumber=function(e,t,r){if(xpe(t)){t=+t;var a=e.min,n=e.max,i=a!==void 0&&tn;if(!i)return t}return r!==void 0?r:e.dflt};Ds.coerceColor=function(e,t,r){return _pe(t).isValid()?t:r!==void 0?r:e.dflt};Ds.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};Ds.getValue=function(e,t){var r;return Array.isArray(e)?t{"use strict";var Lc=Ft(),Tpe=It(),qc=Kt(),Tj=Re(),Aj=bt(),kj=Rx().resizeText,Ex=Mc(),Ape=Ex.textfont,kpe=Ex.insidetextfont,Mpe=Ex.outsidetextfont,fu=Up();function Spe(e){var t=Lc.select(e).selectAll("g.barlayer").selectAll("g.trace");kj(e,t,"bar");var r=t.size(),a=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&r>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Lc.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var i=Lc.select(this),o=n[0].trace;Mj(i,o,e)}),Aj.getComponentMethod("errorbars","style")(t)}function Mj(e,t,r){qc.pointStyle(e.selectAll("path"),t,r),Sj(e,t,r)}function Sj(e,t,r){e.selectAll("text").each(function(a){var n=Lc.select(this),i=Tj.ensureUniformFontSize(r,Cj(n,a,t,r));qc.font(n,i)})}function Cpe(e,t,r){var a=t[0].trace;a.selectedpoints?Lpe(r,a,e):(Mj(r,a,e),Aj.getComponentMethod("errorbars","style")(r))}function Lpe(e,t,r){qc.selectedPointStyle(e.selectAll("path"),t),qpe(e.selectAll("text"),t,r)}function qpe(e,t,r){e.each(function(a){var n=Lc.select(this),i;if(a.selected){i=Tj.ensureUniformFontSize(r,Cj(n,a,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(i.color=o),qc.font(n,i)}else qc.selectedTextStyle(n,t)})}function Cj(e,t,r,a){var n=a._fullLayout.font,i=r.textfont;if(e.classed("bartext-inside")){var o=Pj(t,r);i=qj(r,t.i,n,o)}else e.classed("bartext-outside")&&(i=Dj(r,t.i,n));return i}function Lj(e,t,r){return Ix(Ape,e.textfont,t,r)}function qj(e,t,r,a){var n=Lj(e,t,r),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return i&&(n={color:Tpe.contrast(a),family:n.family,size:n.size}),Ix(kpe,e.insidetextfont,t,n)}function Dj(e,t,r){var a=Lj(e,t,r);return Ix(Mpe,e.outsidetextfont,t,a)}function Ix(e,t,r,a){t=t||{};var n=fu.getValue(t.family,r),i=fu.getValue(t.size,r),o=fu.getValue(t.color,r);return{family:fu.coerceString(e.family,n,a.family),size:fu.coerceNumber(e.size,i,a.size),color:fu.coerceColor(e.color,o,a.color)}}function Pj(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Rj.exports={style:Spe,styleTextPoints:Sj,styleOnSelect:Cpe,getInsideTextFont:qj,getOutsideTextFont:Dj,getBarColor:Pj,resizeText:kj}});var Bj=I((lTe,Hj)=>{"use strict";var Wp=Ft(),Vp=jt(),$r=Re(),Dpe=Ga(),Ppe=It(),To=Kt(),Rpe=bt(),Yp=tr().tickText,Ej=Rx(),Epe=Ej.recordMinTextSize,Ipe=Ej.clearMinTextSize,zx=Gp(),cu=Up(),zpe=Ax(),Ij=Mc(),Npe=Ij.text,Fpe=Ij.textposition,jpe=Mi().appendArrayPointValue,$n=zpe.TEXTPAD;function Ope(e){return e.id}function Hpe(e){if(e.ids)return Ope}function Ao(e,t){return e0}function Upe(e,t,r,a,n,i){var o=t.xaxis,s=t.yaxis,l=e._fullLayout;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},Ipe("bar",l));var u=$r.makeTraceGroups(a,r,"trace bars").each(function(c){var d=Wp.select(this),h=c[0].trace,p=h.type==="waterfall",g=h.type==="funnel",m=h.type==="bar",b=m||g,x=0;p&&h.connector.visible&&h.connector.mode==="between"&&(x=h.connector.line.width/2);var _=h.orientation==="h",k=Nj(n),w=$r.ensureSingle(d,"g","points"),A=Hpe(h),L=w.selectAll("g.point").data($r.identity,A);L.enter().append("g").classed("point",!0),L.exit().remove(),L.each(function(q,P){var E=Wp.select(this),F=Bpe(q,o,s,_),N=F[0][0],j=F[0][1],B=F[1][0],W=F[1][1],V=(_?j-N:W-B)==0;V&&b&&cu.getLineWidth(h,q)&&(V=!1),V||(V=!Vp(N)||!Vp(j)||!Vp(B)||!Vp(W)),q.isBlank=V,V&&(_?j=N:W=B),x&&!V&&(_?(N-=Ao(N,j)*x,j+=Ao(N,j)*x):(B-=Ao(B,W)*x,W+=Ao(B,W)*x));var Y,Z;if(h.type==="waterfall"){if(!V){var $=h[q.dir].marker;Y=$.line.width,Z=$.color}}else Y=cu.getLineWidth(h,q),Z=q.mc||h.marker.color;function ne(ee){var Ae=Wp.round(Y/2%1,2);return n.gap===0&&n.groupgap===0?Wp.round(Math.round(ee)-Ae,2):ee}function te(ee,Ae,ke){return ke&&ee===Ae?ee:Math.abs(ee-Ae)>=2?ne(ee):ee>Ae?Math.ceil(ee):Math.floor(ee)}if(!e._context.staticPlot){var de=Ppe.opacity(Z),be=de<1||Y>.01?ne:te;N=be(N,j,_),j=be(j,N,_),B=be(B,W,!_),W=be(W,B,!_)}var re=zj($r.ensureSingle(E,"path"),l,n,i);if(re.style("vector-effect","non-scaling-stroke").attr("d",isNaN((j-N)*(W-B))||V&&e._context.staticPlot?"M0,0Z":"M"+N+","+B+"V"+W+"H"+j+"V"+B+"Z").call(To.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&k){var ge=To.makePointStyleFns(h);To.singlePointStyle(q,re,h,ge,e)}Gpe(e,t,E,c,P,N,j,B,W,n,i),t.layerClipId&&To.hideOutsideRangePoint(q,E.select("text"),o,s,h.xcalendar,h.ycalendar)});var S=h.cliponaxis===!1;To.setClipUrl(d,S?null:t.layerClipId,e)});Rpe.getComponentMethod("errorbars","plot")(e,u,t,n)}function Gpe(e,t,r,a,n,i,o,s,l,u,c){var d=t.xaxis,h=t.yaxis,p=e._fullLayout,g;function m(Ae,ke,De){var Le=$r.ensureSingle(Ae,"text").text(ke).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(To.font,De).call(Dpe.convertToTspans,e);return Le}var b=a[0].trace,x=b.orientation==="h",_=Vpe(p,a,n,d,h);g=Ype(b,n);var k=u.mode==="stack"||u.mode==="relative",w=a[n],A=!k||w._outmost;if(!_||g==="none"||(w.isBlank||i===o||s===l)&&(g==="auto"||g==="inside")){r.select("text").remove();return}var L=p.font,S=zx.getBarColor(a[n],b),q=zx.getInsideTextFont(b,n,L,S),P=zx.getOutsideTextFont(b,n,L),E=r.datum();x?d.type==="log"&&E.s0<=0&&(d.range[0]0&&V>0,$=W<=F&&V<=N,ne=W<=N&&V<=F,te=x?F>=W*(N/V):N>=V*(F/W);Z&&($||ne||te)?g="inside":(g="outside",j.remove(),j=null)}else g="inside";if(!j){Y=$r.ensureUniformFontSize(e,g==="outside"?P:q),j=m(r,_,Y);var de=j.attr("transform");if(j.attr("transform",""),B=To.bBox(j.node()),W=B.width,V=B.height,j.attr("transform",de),W<=0||V<=0){j.remove();return}}var be=b.textangle,re,ge;g==="outside"?(ge=b.constraintext==="both"||b.constraintext==="outside",re=Wpe(i,o,s,l,B,{isHorizontal:x,constrained:ge,angle:be})):(ge=b.constraintext==="both"||b.constraintext==="inside",re=Oj(i,o,s,l,B,{isHorizontal:x,constrained:ge,angle:be,anchor:b.insidetextanchor})),re.fontSize=Y.size,Epe(b.type==="histogram"?"bar":b.type,re,p),w.transform=re;var ee=zj(j,p,u,c);$r.setTransormAndDisplay(ee,re)}function Fj(e){return e==="auto"?0:e}function jj(e,t){var r=Math.PI/180*t,a=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function Oj(e,t,r,a,n,i){var o=!!i.isHorizontal,s=!!i.constrained,l=i.angle||0,u=i.anchor||"end",c=u==="end",d=u==="start",h=i.leftToRight||0,p=(h+1)/2,g=1-p,m=n.width,b=n.height,x=Math.abs(t-e),_=Math.abs(a-r),k=x>2*$n&&_>2*$n?$n:0;x-=2*k,_-=2*k;var w=Fj(l);l==="auto"&&!(m<=x&&b<=_)&&(m>x||b>_)&&(!(m>_||b>x)||m2*$n?$n:0:p=d>2*$n?$n:0;var g=1;s&&(g=o?Math.min(1,h/c):Math.min(1,d/u));var m=Fj(l),b=jj(n,m),x=(o?b.x:b.y)/2,_=(n.left+n.right)/2,k=(n.top+n.bottom)/2,w=(e+t)/2,A=(r+a)/2,L=0,S=0,q=o?Ao(t,e):Ao(r,a);return o?(w=t-q*p,L=q*x):(A=a+q*p,S=-q*x),{textX:_,textY:k,targetX:w,targetY:A,anchorX:L,anchorY:S,scale:g,rotate:m}}function Vpe(e,t,r,a,n){var i=t[0].trace,o=i.texttemplate,s;return o?s=Zpe(e,t,r,a,n):i.textinfo?s=Xpe(t,r,a,n):s=cu.getValue(i.text,r),cu.coerceString(Npe,s)}function Ype(e,t){var r=cu.getValue(e.textposition,t);return cu.coerceEnumerated(Fpe,r)}function Zpe(e,t,r,a,n){var i=t[0].trace,o=$r.castOption(i,r,"texttemplate");if(!o)return"";var s=i.type==="histogram",l=i.type==="waterfall",u=i.type==="funnel",c=i.orientation==="h",d,h,p,g;c?(d="y",h=n,p="x",g=a):(d="x",h=a,p="y",g=n);function m(L){return Yp(h,h.c2l(L),!0).text}function b(L){return Yp(g,g.c2l(L),!0).text}var x=t[r],_={};_.label=x.p,_.labelLabel=_[d+"Label"]=m(x.p);var k=$r.castOption(i,x.i,"text");(k===0||k)&&(_.text=k),_.value=x.s,_.valueLabel=_[p+"Label"]=b(x.s);var w={};jpe(w,i,x.i),(s||w.x===void 0)&&(w.x=c?_.value:_.label),(s||w.y===void 0)&&(w.y=c?_.label:_.value),(s||w.xLabel===void 0)&&(w.xLabel=c?_.valueLabel:_.labelLabel),(s||w.yLabel===void 0)&&(w.yLabel=c?_.labelLabel:_.valueLabel),l&&(_.delta=+x.rawS||x.s,_.deltaLabel=b(_.delta),_.final=x.v,_.finalLabel=b(_.final),_.initial=_.final-_.delta,_.initialLabel=b(_.initial)),u&&(_.value=x.s,_.valueLabel=b(_.value),_.percentInitial=x.begR,_.percentInitialLabel=$r.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=$r.formatPercent(x.difR),_.percentTotal=x.sumR,_.percenTotalLabel=$r.formatPercent(x.sumR));var A=$r.castOption(i,x.i,"customdata");return A&&(_.customdata=A),$r.texttemplateString(o,_,e._d3locale,w,_,i._meta||{})}function Xpe(e,t,r,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(A){var L=i?a:r;return Yp(L,A,!0).text}function u(A){var L=i?r:a;return Yp(L,+A,!0).text}var c=n.textinfo,d=e[t],h=c.split("+"),p=[],g,m=function(A){return h.indexOf(A)!==-1};if(m("label")&&p.push(l(e[t].p)),m("text")&&(g=$r.castOption(n,d.i,"text"),(g===0||g)&&p.push(g)),o){var b=+d.rawS||d.s,x=d.v,_=x-b;m("initial")&&p.push(u(_)),m("delta")&&p.push(u(b)),m("final")&&p.push(u(x))}if(s){m("value")&&p.push(u(d.s));var k=0;m("percent initial")&&k++,m("percent previous")&&k++,m("percent total")&&k++;var w=k>1;m("percent initial")&&(g=$r.formatPercent(d.begR),w&&(g+=" of initial"),p.push(g)),m("percent previous")&&(g=$r.formatPercent(d.difR),w&&(g+=" of previous"),p.push(g)),m("percent total")&&(g=$r.formatPercent(d.sumR),w&&(g+=" of total"),p.push(g))}return p.join("
")}Hj.exports={plot:Upe,toMoveInsideBar:Oj}});var Yj=I((uTe,Vj)=>{"use strict";var Dc=qi(),$pe=bt(),Uj=It(),Qpe=Re().fillText,Kpe=Up().getLineWidth,Nx=tr().hoverLabelText,Jpe=Tr().BADNUM;function eme(e,t,r,a,n){var i=Gj(e,t,r,a,n);if(i){var o=i.cd,s=o[0].trace,l=o[i.index];return i.color=Wj(s,l),$pe.getComponentMethod("errorbars","hoverInfo")(l,s,i),[i]}}function Gj(e,t,r,a,n){var i=e.cd,o=i[0].trace,s=i[0].t,l=a==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,d=e.maxSpikeDistance,h,p,g,m,b,x,_;o.orientation==="h"?(h=r,p=t,g="y",m="x",b=W,x=N):(h=t,p=r,g="x",m="y",x=W,b=N);var k=o[g+"period"],w=l||k;function A(ee){return S(ee,-1)}function L(ee){return S(ee,1)}function S(ee,Ae){var ke=ee.w;return ee[g]+Ae*ke/2}function q(ee){return ee[g+"End"]-ee[g+"Start"]}var P=l?A:k?function(ee){return ee.p-q(ee)/2}:function(ee){return Math.min(A(ee),ee.p-s.bardelta/2)},E=l?L:k?function(ee){return ee.p+q(ee)/2}:function(ee){return Math.max(L(ee),ee.p+s.bardelta/2)};function F(ee,Ae,ke){return n.finiteRange&&(ke=0),Dc.inbox(ee-h,Ae-h,ke+Math.min(1,Math.abs(Ae-ee)/_)-1)}function N(ee){return F(P(ee),E(ee),c)}function j(ee){return F(A(ee),L(ee),d)}function B(ee){var Ae=ee[m];if(u){var ke=Math.abs(ee.rawS)||0;p>0?Ae+=ke:p<0&&(Ae-=ke)}return Ae}function W(ee){var Ae=p,ke=ee.b,De=B(ee);return Dc.inbox(ke-Ae,De-Ae,c+(De-Ae)/(De-ke)-1)}function V(ee){var Ae=p,ke=ee.b,De=B(ee);return Dc.inbox(ke-Ae,De-Ae,d+(De-Ae)/(De-ke)-1)}var Y=e[g+"a"],Z=e[m+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function $(ee){return(b(ee)+x(ee))/2}var ne=Dc.getDistanceFunction(a,b,x,$);if(Dc.getClosest(i,ne,e),e.index!==!1&&i[e.index].p!==Jpe){w||(P=function(ee){return Math.min(A(ee),ee.p-s.bargroupwidth/2)},E=function(ee){return Math.max(L(ee),ee.p+s.bargroupwidth/2)});var te=e.index,de=i[te],be=o.base?de.b+de.s:de.s;e[m+"0"]=e[m+"1"]=Z.c2p(de[m],!0),e[m+"LabelVal"]=be;var re=s.extents[s.extents.round(de.p)];e[g+"0"]=Y.c2p(l?P(de):re[0],!0),e[g+"1"]=Y.c2p(l?E(de):re[1],!0);var ge=de.orig_p!==void 0;return e[g+"LabelVal"]=ge?de.orig_p:de.p,e.labelLabel=Nx(Y,e[g+"LabelVal"],o[g+"hoverformat"]),e.valueLabel=Nx(Z,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=Nx(Z,de.b,o[m+"hoverformat"]),e.spikeDistance=(V(de)+j(de))/2,e[g+"Spike"]=Y.c2p(de.p,!0),Qpe(de,o,e),e.hovertemplate=o.hovertemplate,e}}function Wj(e,t){var r=t.mcc||e.marker.color,a=t.mlcc||e.marker.line.color,n=Kpe(e,t);if(Uj.opacity(r))return r;if(Uj.opacity(a)&&n)return a}Vj.exports={hoverPoints:eme,hoverOnBars:Gj,getTraceColor:Wj}});var Xj=I((fTe,Zj)=>{"use strict";Zj.exports=function(t,r,a){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),a.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var Qj=I((cTe,$j)=>{"use strict";$j.exports=function(t,r){var a=t.cd,n=t.xaxis,i=t.yaxis,o=a[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";Kj.exports={attributes:Mc(),layoutAttributes:Mx(),supplyDefaults:Sx().supplyDefaults,crossTraceDefaults:Sx().crossTraceDefaults,supplyLayoutDefaults:aj(),calc:fj(),crossTraceCalc:xj().crossTraceCalc,colorbar:y1(),arraysToCalcdata:Cx(),plot:Bj().plot,style:Gp().style,styleOnSelect:Gp().styleOnSelect,hoverPoints:Yj().hoverPoints,eventData:Xj(),selectPoints:Qj(),moduleType:"trace",name:"bar",basePlotModule:vp(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}});var tO=I((hTe,eO)=>{"use strict";eO.exports=Jj()});var Pc=I(rO=>{"use strict";rO.pointsAccessorFunction=function(e,t){for(var r,a,n=0;n{"use strict";var rme=tr(),du=Re(),ame=eo(),nme=Pc().pointsAccessorFunction,_r=Tr().BADNUM;hu.moduleType="transform";hu.name="aggregate";var aO=hu.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregate transform is enabled or disabled."].join(" ")},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the grouping target to which the aggregation is applied.","Data points with matching group values will be coalesced into","one point, using the supplied aggregation functions to reduce data","in other data arrays.","If a string, `groups` is assumed to be a reference to a data array","in the parent trace object.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","about the marker color array.","If an array, `groups` is itself the data array by which we aggregate."].join(" ")},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc",description:["A reference to the data array in the parent trace to aggregate.","To aggregate by nested variables, use *.* to access them.","For example, set `groups` to *marker.color* to aggregate","over the marker color array.","The referenced array must already exist, unless `func` is *count*,","and each array may only be referenced once."].join(" ")},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc",description:["Sets the aggregation function.","All values from the linked `target`, corresponding to the same value","in the `groups` array, are collected and reduced by this function.","*count* is simply the number of values in the `groups` array, so does","not even require the linked array to exist. *first* (*last*) is just","the first (last) linked value.","Invalid values are ignored, so for example in *avg* they do not","contribute to either the numerator or the denominator.","Any data type (numeric, date, category) may be aggregated with any","function, even though in certain cases it is unlikely to make sense,","for example a sum of dates or average of categories.","*median* will return the average of the two central values if there is","an even count. *mode* will return the first value to reach the maximum","count, in case of a tie.","*change* will return the difference between the first and last linked values.","*range* will return the difference between the min and max linked values."].join(" ")},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc",description:["*stddev* supports two formula variants: *sample* (normalize by N-1)","and *population* (normalize by N)."].join(" ")},enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this aggregation function is enabled or disabled."].join(" ")},editType:"calc"},editType:"calc"},nO=aO.aggregations;hu.supplyDefaults=function(e,t){var r={},a;function n(b,x){return du.coerce(e,r,aO,b,x)}var i=n("enabled");if(!i)return r;var o=ame.findArrayAttributes(t),s={};for(a=0;al&&(l=h,u=d)}}return l?n(u):_r};case"rms":return function(i,o){for(var s=0,l=0,u=0;u{"use strict";sO.exports=oO()});var fO=I((gTe,uO)=>{"use strict";uO.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var cO=I(Rs=>{"use strict";var Ps=Re(),ume=bt(),fme=tr(),cme=Pc().pointsAccessorFunction,Fx=fO(),jx=Fx.COMPARISON_OPS,Ox=Fx.INTERVAL_OPS,Hx=Fx.SET_OPS;Rs.moduleType="transform";Rs.name="filter";Rs.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this filter transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the filter target by which the filter is applied.","If a string, `target` is assumed to be a reference to a data array","in the parent trace object.","To filter about nested variables, use *.* to access them.","For example, set `target` to *marker.color* to filter","about the marker color array.","If an array, `target` is then the data array by which the filter is applied."].join(" ")},operation:{valType:"enumerated",values:[].concat(jx).concat(Ox).concat(Hx),dflt:"=",editType:"calc",description:["Sets the filter operation.","*=* keeps items equal to `value`","*!=* keeps items not equal to `value`","*<* keeps items less than `value`","*<=* keeps items less than or equal to `value`","*>* keeps items greater than `value`","*>=* keeps items greater than or equal to `value`","*[]* keeps items inside `value[0]` to `value[1]` including both bounds","*()* keeps items inside `value[0]` to `value[1]` excluding both bounds","*[)* keeps items inside `value[0]` to `value[1]` including `value[0]` but excluding `value[1]","*(]* keeps items inside `value[0]` to `value[1]` excluding `value[0]` but including `value[1]","*][* keeps items outside `value[0]` to `value[1]` and equal to both bounds","*)(* keeps items outside `value[0]` to `value[1]`","*](* keeps items outside `value[0]` to `value[1]` and equal to `value[0]`","*)[* keeps items outside `value[0]` to `value[1]` and equal to `value[1]`","*{}* keeps items present in a set of values","*}{* keeps items not present in a set of values"].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values by which to filter.","Values are expected to be in the same type as the data linked","to `target`.","When `operation` is set to one of","the comparison values ("+jx+")","`value` is expected to be a number or a string.","When `operation` is set to one of the interval values","("+Ox+")","`value` is expected to be 2-item array where the first item","is the lower bound and the second item is the upper bound.","When `operation`, is set to one of the set values","("+Hx+")","`value` is expected to be an array with as many items as","the desired set elements."].join(" ")},preservegaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps in data arrays produced by the filter operation","are preserved.","Setting this to *true* might be useful when plotting a line chart","with `connectgaps` set to *false*."].join(" ")},editType:"calc"};Rs.supplyDefaults=function(e){var t={};function r(o,s){return Ps.coerce(e,t,Rs.attributes,o,s)}var a=r("enabled");if(a){var n=r("target");if(Ps.isArrayOrTypedArray(n)&&n.length===0)return t.enabled=!1,t;r("preservegaps"),r("operation"),r("value");var i=ume.getComponentMethod("calendars","handleDefaults");i(e,t,"valuecalendar",null),i(e,t,"targetcalendar",null)}return t};Rs.calcTransform=function(e,t,r){if(!r.enabled)return;var a=Ps.getTargetArray(t,r);if(!a)return;var n=r.target,i=a.length;t._length&&(i=Math.min(i,t._length));var o=r.targetcalendar,s=t._arrayAttrs,l=r.preservegaps;if(typeof n=="string"){var u=Ps.nestedProperty(t,n+"calendar").get();u&&(o=u)}var c=fme.getDataToCoordFunc(e,t,n,a),d=dme(r,c,o),h={},p={},g=0;function m(A,L){for(var S=0;S":return function(c){return l(c)>u};case">=":return function(c){return l(c)>=u};case"[]":return function(c){var d=l(c);return d>=u[0]&&d<=u[1]};case"()":return function(c){var d=l(c);return d>u[0]&&d=u[0]&&du[0]&&d<=u[1]};case"][":return function(c){var d=l(c);return d<=u[0]||d>=u[1]};case")(":return function(c){var d=l(c);return du[1]};case"](":return function(c){var d=l(c);return d<=u[0]||d>u[1]};case")[":return function(c){var d=l(c);return d=u[1]};case"{}":return function(c){return u.indexOf(l(c))!==-1};case"}{":return function(c){return u.indexOf(l(c))===-1}}}});var hO=I((bTe,dO)=>{"use strict";dO.exports=cO()});var vO=I(Oi=>{"use strict";var Na=Re(),hme=eo(),vme=Nr(),pme=Pc().pointsAccessorFunction;Oi.moduleType="transform";Oi.name="groupby";Oi.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this group-by transform is enabled or disabled."].join(" ")},groups:{valType:"data_array",dflt:[],editType:"calc",description:["Sets the groups in which the trace data will be split.","For example, with `x` set to *[1, 2, 3, 4]* and","`groups` set to *['a', 'b', 'a', 'b']*,","the groupby transform with split in one trace","with `x` [1, 3] and one trace with `x` [2, 4]."].join(" ")},nameformat:{valType:"string",editType:"calc",description:["Pattern by which grouped traces are named. If only one trace is present,",'defaults to the group name (`"%{group}"`), otherwise defaults to the group name','with trace name (`"%{group} (%{trace})"`). Available escape sequences are `%{group}`, which',"inserts the group name, and `%{trace}`, which inserts the trace name. If grouping","GDP data by country when more than one trace is present, for example, the",'default "%{group} (%{trace})" would return "Monaco (GDP per capita)".'].join(" ")},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc",description:["The group value which receives these styles."].join(" ")},value:{valType:"any",dflt:{},editType:"calc",description:["Sets each group styles.","For example, with `groups` set to *['a', 'b', 'a', 'b']*","and `styles` set to *[{target: 'a', value: { marker: { color: 'red' } }}]","marker points in group *'a'* will be drawn in red."].join(" "),_compareAsJSON:!0},editType:"calc"},editType:"calc"};Oi.supplyDefaults=function(e,t,r){var a,n={};function i(d,h){return Na.coerce(e,n,Oi.attributes,d,h)}var o=i("enabled");if(!o)return n;i("groups"),i("nameformat",r._dataLength>1?"%{group} (%{trace})":"%{group}");var s=e.styles,l=n.styles=[];if(s)for(a=0;a{"use strict";pO.exports=vO()});var gO=I(Es=>{"use strict";var Bx=Re(),gme=tr(),yme=Pc().pointsAccessorFunction,Zp=Tr().BADNUM;Es.moduleType="transform";Es.name="sort";Es.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this sort transform is enabled or disabled."].join(" ")},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc",description:["Sets the target by which the sort transform is applied.","If a string, *target* is assumed to be a reference to a data array","in the parent trace object.","To sort about nested variables, use *.* to access them.","For example, set `target` to *marker.size* to sort","about the marker size array.","If an array, *target* is then the data array by which","the sort transform is applied."].join(" ")},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc",description:["Sets the sort transform order."].join(" ")},editType:"calc"};Es.supplyDefaults=function(e){var t={};function r(n,i){return Bx.coerce(e,t,Es.attributes,n,i)}var a=r("enabled");return a&&(r("target"),r("order")),t};Es.calcTransform=function(e,t,r){if(!!r.enabled){var a=Bx.getTargetArray(t,r);if(!!a){var n=r.target,i=a.length;t._length&&(i=Math.min(i,t._length));var o=t._arrayAttrs,s=gme.getDataToCoordFunc(e,t,n,a),l=bme(r,a,s,i),u=yme(t.transforms,r),c={},d,h;for(d=0;d{"use strict";yO.exports=gO()});var Zt=Mm(Om()),qO=Mm(XM());var $M="1.7.5";function UQ(e){return Boolean(e)}var GQ=e=>{let t=Array.from(document.querySelectorAll('style[id^="plotly.js"]')).map(r=>r.sheet).filter(UQ).flatMap(r=>Array.from(r.cssRules)).map(r=>r.cssText).join(` `);e.innerHTML+=` .js-plotly-plot .plotly .modebar-btn { fill: rgb(136,136,136); @@ -56,7 +56,7 @@
- `,this.msgEl=t.querySelector("#msg"),this.cardEl=t.querySelector("ha-card"),this.contentEl=t.querySelector("div#plotly"),this.resetButtonEl=t.querySelector("button#reset"),this.titleEl=t.querySelector("ha-card > #title"),this.resetButtonEl.addEventListener("click",this.exitBrowsingMode),QM(t.querySelector("style")),this.contentEl.style.visibility="hidden",this.withoutRelayout(()=>Rc.newPlot(this.contentEl,[],{}))}disconnectedCallback(){this.handles.resizeObserver.disconnect(),this.handles.relayoutListener.off("plotly_relayout",this.onRelayout),this.handles.restyleListener.off("plotly_restyle",this.onRestyle),clearTimeout(this.handles.refreshTimeout)}get hass(){return this._hass}set hass(t){var r,a;if(!!t){if(((r=this.parsed_config)==null?void 0:r.refresh_interval)==="auto"){let n=!1,i=!1;for(let o of this.parsed_config.entities){let s=t.states[o.entity],l=(a=this._hass)==null?void 0:a.states[o.entity];if(s&&l!==s){let u=+new Date((l==null?void 0:l.last_updated)||s.last_updated),c=+new Date(s.last_updated),d=[u,c],h;Mo(o)?h=s.attributes[o.attribute]:ko(o)?h=s.state:So(o)&&(i=!0),h!==void 0&&(this.cache.add(o,[{...s,timestamp:c,value:h}],d),n=!0)}}i&&this.fetch(),n&&(this.isBrowsing||this.cache.removeOutsideRange(this.getAutoFetchRange()),this.plot())}this._hass=t}}connectedCallback(){this.setupListeners(),this.fetch().then(()=>this.contentEl.style.visibility="")}async withoutRelayout(t){this.isInternalRelayout++,await t(),this.isInternalRelayout--}setupListeners(){let t=async()=>{let r=this.cardEl.offsetWidth;this.contentEl.style.position="absolute";let a=this.cardEl.offsetHeight;this.contentEl.style.position="",this.size={width:r},a>100&&(this.size.height=a-this.titleEl.offsetHeight),this.withoutRelayout(async()=>{let n=this.getLayout();await Rc.relayout(this.contentEl,{width:n.width,height:n.height})})};this.handles.resizeObserver=new ResizeObserver(t),this.handles.resizeObserver.observe(this.cardEl),t(),this.handles.relayoutListener=this.contentEl.on("plotly_relayout",this.onRelayout),this.handles.restyleListener=this.contentEl.on("plotly_restyle",this.onRestyle)}getAutoFetchRange(){let t=this.parsed_config.hours_to_show*60*60*1e3;return[+new Date-t,+new Date]}getAutoFetchRangeWithValueMargins(){let[t,r]=this.getAutoFetchRange(),a=Math.max(...this.parsed_config.entities.map(({show_value:o})=>o===!1?0/100:o===!0?10/100:o.right_margin/100)),i=this.parsed_config.hours_to_show*1e3*60*60/(1-a)*a;return[t,r+i]}getVisibleRange(){return console.log(this.contentEl.layout.xaxis.range),this.contentEl.layout.xaxis.range.map(t=>Number.isFinite(t)?t:t.startsWith("-")?2*+vu("0000-01-01 00:00:00.000")-+vu(t.slice(1)):+vu(t))}async enterBrowsingMode(){this.isBrowsing=!0,this.resetButtonEl.classList.remove("hidden")}async setConfig(t){try{return this.msgEl.innerText="",await this._setConfig(t)}catch(r){console.error(r),clearTimeout(this.handles.refreshTimeout),typeof r.message=="string"?this.msgEl.innerText=r.message:this.msgEl.innerText=JSON.stringify(r.message||"").replace(/\\"/g,'"')}}async _setConfig(t){var s,l,u,c,d,h,p,g,m,b,x,_,k,w,A,L,S,q,P,E,F,N,j,B,W,V,Y,Z,$,ne,te,de,be,re,ge,ee,Ae;t=JSON.parse(JSON.stringify(t)),this.config=t;let r=(s=t.color_scheme)!=null?s:"category10",a=SO(r)?r:Ec[r]||Ec[Object.keys(Ec)[r]]||null;if(a===null)throw new Error(`color_scheme: "${t.color_scheme}" is not valid. Valid are an array of colors (see readme) or ${Object.keys(Ec)}`);if(typeof t.refresh_interval!="number"&&t.refresh_interval!==void 0&&t.refresh_interval!=="auto")throw new Error(`refresh_interval: "${t.refresh_interval}" is not valid. Must be either "auto" or a number (in seconds). `);let n={title:t.title,hours_to_show:(l=t.hours_to_show)!=null?l:1,refresh_interval:(u=t.refresh_interval)!=null?u:"auto",entities:t.entities.map((ke,De)=>{var J;typeof ke=="string"&&(ke={entity:ke});let Le=(0,Zt.default)({hovertemplate:"%{customdata.name}
%{x}
%{y}%{customdata.unit_of_measurement}",mode:"lines",show_value:!1,line:{width:1,shape:"hv",color:a[De%a.length]}},(J=t.defaults)==null?void 0:J.entity,ke);if(Le.lambda&&(Le.lambda=window.eval(Le.lambda)),"statistic"in Le||"period"in Le){let O=Jx.includes(Le.statistic);if(Le.statistic===void 0)Le.statistic="mean";else if(!O)throw new Error(`statistic: "${Le.statistic}" is not valid. Use ${Jx}`);if(Le.period==="auto"&&(Le.period={"0":"5minute","1d":"hour","7d":"day","12M":"month"},Le.period=void 0),MO(Le.period)){Le.autoPeriod=Le.period,Le.period=void 0;let me=-1;for(let xe in Le.autoPeriod){let qe=Le.autoPeriod[xe],Pe=e_(xe);if(!zc.includes(qe))throw new Error(`Error parsing automatic period config: "${qe}" not expected. Must be ${zc}`);if(Pe<=me)throw new Error(`Error parsing automatic period config: ranges must be sorted in ascending order, "${xe}" not expected`);me=Pe}}let oe=zc.includes(Le.period);if(Le.period===void 0)Le.period="hour";else if(!oe)throw new Error(`period: "${Le.period}" is not valid. Use ${zc}`)}let[Se,U]=Le.entity.split("::");return U&&(Le.entity=Se,Le.attribute=U),Le}),layout:(0,Zt.default)({yaxis:(0,Zt.default)({},(c=t.defaults)==null?void 0:c.yaxes),yaxis2:(0,Zt.default)({},(d=t.defaults)==null?void 0:d.yaxes),yaxis3:(0,Zt.default)({},(h=t.defaults)==null?void 0:h.yaxes),yaxis4:(0,Zt.default)({},(p=t.defaults)==null?void 0:p.yaxes),yaxis5:(0,Zt.default)({},(g=t.defaults)==null?void 0:g.yaxes),yaxis6:(0,Zt.default)({},(m=t.defaults)==null?void 0:m.yaxes),yaxis7:(0,Zt.default)({},(b=t.defaults)==null?void 0:b.yaxes),yaxis8:(0,Zt.default)({},(x=t.defaults)==null?void 0:x.yaxes),yaxis9:(0,Zt.default)({},(_=t.defaults)==null?void 0:_.yaxes),yaxis10:(0,Zt.default)({},(k=t.defaults)==null?void 0:k.yaxes),yaxis11:(0,Zt.default)({},(w=t.defaults)==null?void 0:w.yaxes),yaxis12:(0,Zt.default)({},(A=t.defaults)==null?void 0:A.yaxes),yaxis13:(0,Zt.default)({},(L=t.defaults)==null?void 0:L.yaxes),yaxis14:(0,Zt.default)({},(S=t.defaults)==null?void 0:S.yaxes),yaxis15:(0,Zt.default)({},(q=t.defaults)==null?void 0:q.yaxes),yaxis16:(0,Zt.default)({},(P=t.defaults)==null?void 0:P.yaxes),yaxis17:(0,Zt.default)({},(E=t.defaults)==null?void 0:E.yaxes),yaxis18:(0,Zt.default)({},(F=t.defaults)==null?void 0:F.yaxes),yaxis19:(0,Zt.default)({},(N=t.defaults)==null?void 0:N.yaxes),yaxis20:(0,Zt.default)({},(j=t.defaults)==null?void 0:j.yaxes),yaxis21:(0,Zt.default)({},(B=t.defaults)==null?void 0:B.yaxes),yaxis22:(0,Zt.default)({},(W=t.defaults)==null?void 0:W.yaxes),yaxis23:(0,Zt.default)({},(V=t.defaults)==null?void 0:V.yaxes),yaxis24:(0,Zt.default)({},(Y=t.defaults)==null?void 0:Y.yaxes),yaxis25:(0,Zt.default)({},(Z=t.defaults)==null?void 0:Z.yaxes),yaxis26:(0,Zt.default)({},($=t.defaults)==null?void 0:$.yaxes),yaxis27:(0,Zt.default)({},(ne=t.defaults)==null?void 0:ne.yaxes),yaxis28:(0,Zt.default)({},(te=t.defaults)==null?void 0:te.yaxes),yaxis29:(0,Zt.default)({},(de=t.defaults)==null?void 0:de.yaxes),yaxis30:(0,Zt.default)({},(be=t.defaults)==null?void 0:be.yaxes)},t.layout),config:{...t.config},no_theme:(re=t.no_theme)!=null?re:!1,no_default_layout:(ge=t.no_default_layout)!=null?ge:!1,significant_changes_only:(ee=t.significant_changes_only)!=null?ee:!1,minimal_response:(Ae=t.minimal_response)!=null?Ae:!0},i=this.parsed_config;this.parsed_config=n;let o=this.parsed_config;!this.contentEl||(o.hours_to_show!==(i==null?void 0:i.hours_to_show)&&this.exitBrowsingMode(),await this.fetch())}getAllUnitsOfMeasurement(){let t=this.parsed_config.entities.map(r=>this.getUnitOfMeasurement(r));return Array.from(new Set(t))}getUnitOfMeasurement(t){var r,a,n;return t.unit_of_measurement||((n=(a=(r=this.hass)==null?void 0:r.states[t.entity])==null?void 0:a.attributes)==null?void 0:n.unit_of_measurement)||""}getThemedLayout(){let t=window.getComputedStyle(this.contentEl),r={"--card-background-color":"red","--primary-background-color":"red","--primary-color":"red","--primary-text-color":"red","--secondary-text-color":"red"};return r=(0,qO.default)(r,(a,n)=>t.getPropertyValue(n)),Wx(r,this.parsed_config.no_theme,this.parsed_config.no_default_layout)}getData(){let t=this.parsed_config.entities,r=this.getAllUnitsOfMeasurement(),a=[],n=[];return t.forEach((i,o)=>{var w,A,L;let s=i.entity,l=this.cache.getHistory(i),u=((A=(w=this.hass)==null?void 0:w.states[s])==null?void 0:A.attributes)||{},c=this.getUnitOfMeasurement(i),d=r.indexOf(c),h=i.name||u.friendly_name||s;Mo(i)&&(h+=` (${i.attribute}) `),So(i)&&(h+=` (${i.statistic}) `);let p=l.map(({timestamp:S})=>new Date(S)),g=l.map(({value:S})=>S),m=p,b=g;if(Qme(m,b),i.lambda)try{let S=i.lambda(g,p,l);Array.isArray(S)?b=S:(S.x&&(m=S.x),S.y&&(b=S.y))}catch(S){console.error(S)}$me(m,b),m.length===0&&b.length===0&&(m=[null],b=[null]);let x={unit_of_measurement:c,name:h,attributes:u},_=m.map(()=>x),k=(0,Zt.default)({name:h,customdata:_,x:m,y:b,yaxis:"y"+(d==0?"":d+1)},i);n.push(k),k.show_value&&((L=k.legendgroup)!=null||(k.legendgroup="group"+o),a.push({texttemplate:"%{y:.2~f}%{customdata.unit_of_measurement}",...k,mode:"text+markers",showlegend:!1,hoverinfo:"skip",textposition:"middle right",marker:{color:k.line.color},textfont:{color:k.line.color},x:k.x.slice(-1),y:k.y.slice(-1)}))}),[...n,...a]}getLayout(){let t=this.getAllUnitsOfMeasurement(),r=Object.fromEntries(t.map((n,i)=>["yaxis"+(i==0?"":i+1),{title:n}]));return(0,Zt.default)({uirevision:!0},{xaxis:{range:this.isBrowsing?this.getVisibleRange():this.getAutoFetchRangeWithValueMargins()}},this.parsed_config.no_default_layout?{}:r,this.getThemedLayout(),this.size,this.parsed_config.layout)}getPlotlyConfig(){return{displaylogo:!1,scrollZoom:!0,modeBarButtonsToRemove:["resetScale2d","toImage","lasso2d","select2d"],...this.parsed_config.config}}async plot(){if(!this.parsed_config||!this.hass||!this.isConnected)return;this.titleEl.innerText=this.parsed_config.title||"";let t=this.parsed_config.refresh_interval;clearTimeout(this.handles.refreshTimeout),t!=="auto"&&t>0&&(this.handles.refreshTimeout=window.setTimeout(()=>this.fetch(),t*1e3));let r=this.getLayout();r.paper_bgcolor&&(this.titleEl.style.background=r.paper_bgcolor),await this.withoutRelayout(()=>Rc.react(this.contentEl,this.getData(),r,this.getPlotlyConfig()))}getCardSize(){return 3}static getStubConfig(){return{entities:[{entity:"sun.sun"}],hours_to_show:24,refresh_interval:10}}static async getConfigElement(){let{createCardElement:t}=await window.loadCardHelpers(),r=t({type:"history-graph",...this.getStubConfig()});for(;!r.constructor.getConfigElement;)await Yx(100);return r.constructor.getConfigElement()}};window.customCards=window.customCards||[];window.customCards.push({type:t_,name:"Plotly Graph Card",preview:!0,description:"Plotly in HA"});customElements.define(t_,DO);})(); + `,this.msgEl=t.querySelector("#msg"),this.cardEl=t.querySelector("ha-card"),this.contentEl=t.querySelector("div#plotly"),this.resetButtonEl=t.querySelector("button#reset"),this.titleEl=t.querySelector("ha-card > #title"),this.resetButtonEl.addEventListener("click",this.exitBrowsingMode),QM(t.querySelector("style")),this.contentEl.style.visibility="hidden",this.withoutRelayout(()=>Rc.newPlot(this.contentEl,[],{}))}disconnectedCallback(){this.handles.resizeObserver.disconnect(),this.handles.relayoutListener.off("plotly_relayout",this.onRelayout),this.handles.restyleListener.off("plotly_restyle",this.onRestyle),clearTimeout(this.handles.refreshTimeout)}get hass(){return this._hass}set hass(t){var r,a;if(!!t){if(((r=this.parsed_config)==null?void 0:r.refresh_interval)==="auto"){let n=!1,i=!1;for(let o of this.parsed_config.entities){let s=t.states[o.entity],l=(a=this._hass)==null?void 0:a.states[o.entity];if(s&&l!==s){let u=+new Date((l==null?void 0:l.last_updated)||s.last_updated),c=+new Date(s.last_updated),d=[u,c],h;Mo(o)?h=s.attributes[o.attribute]:ko(o)?h=s.state:So(o)&&(i=!0),h!==void 0&&(this.cache.add(o,[{...s,timestamp:c,value:h}],d),n=!0)}}i&&this.fetch(),n&&(this.isBrowsing||this.cache.removeOutsideRange(this.getAutoFetchRange()),this.plot())}this._hass=t}}connectedCallback(){this.setupListeners(),this.fetch().then(()=>this.contentEl.style.visibility="")}async withoutRelayout(t){this.isInternalRelayout++,await t(),this.isInternalRelayout--}setupListeners(){let t=async()=>{let r=this.cardEl.offsetWidth;this.contentEl.style.position="absolute";let a=this.cardEl.offsetHeight;this.contentEl.style.position="",this.size={width:r},a>100&&(this.size.height=a-this.titleEl.offsetHeight),this.withoutRelayout(async()=>{let n=this.getLayout();await Rc.relayout(this.contentEl,{width:n.width,height:n.height})})};this.handles.resizeObserver=new ResizeObserver(t),this.handles.resizeObserver.observe(this.cardEl),t(),this.handles.relayoutListener=this.contentEl.on("plotly_relayout",this.onRelayout),this.handles.restyleListener=this.contentEl.on("plotly_restyle",this.onRestyle)}getAutoFetchRange(){let t=this.parsed_config.hours_to_show*60*60*1e3;return[+new Date-t,+new Date]}getAutoFetchRangeWithValueMargins(){let[t,r]=this.getAutoFetchRange(),a=Math.max(...this.parsed_config.entities.map(({show_value:o})=>o===!1?0/100:o===!0?10/100:o.right_margin/100)),i=this.parsed_config.hours_to_show*1e3*60*60/(1-a)*a;return[t,r+i]}getVisibleRange(){return this.contentEl.layout.xaxis.range.map(t=>Number.isFinite(t)?t:t.startsWith("-")?2*+vu("0000-01-01 00:00:00.000")-+vu(t.slice(1)):+vu(t))}async enterBrowsingMode(){this.isBrowsing=!0,this.resetButtonEl.classList.remove("hidden")}async setConfig(t){try{return this.msgEl.innerText="",await this._setConfig(t)}catch(r){console.error(r),clearTimeout(this.handles.refreshTimeout),typeof r.message=="string"?this.msgEl.innerText=r.message:this.msgEl.innerText=JSON.stringify(r.message||"").replace(/\\"/g,'"')}}async _setConfig(t){var s,l,u,c,d,h,p,g,m,b,x,_,k,w,A,L,S,q,P,E,F,N,j,B,W,V,Y,Z,$,ne,te,de,be,re,ge,ee,Ae;t=JSON.parse(JSON.stringify(t)),this.config=t;let r=(s=t.color_scheme)!=null?s:"category10",a=SO(r)?r:Ec[r]||Ec[Object.keys(Ec)[r]]||null;if(a===null)throw new Error(`color_scheme: "${t.color_scheme}" is not valid. Valid are an array of colors (see readme) or ${Object.keys(Ec)}`);if(typeof t.refresh_interval!="number"&&t.refresh_interval!==void 0&&t.refresh_interval!=="auto")throw new Error(`refresh_interval: "${t.refresh_interval}" is not valid. Must be either "auto" or a number (in seconds). `);let n={title:t.title,hours_to_show:(l=t.hours_to_show)!=null?l:1,refresh_interval:(u=t.refresh_interval)!=null?u:"auto",entities:t.entities.map((ke,De)=>{var J;typeof ke=="string"&&(ke={entity:ke});let Le=(0,Zt.default)({hovertemplate:"%{customdata.name}
%{x}
%{y}%{customdata.unit_of_measurement}",mode:"lines",show_value:!1,line:{width:1,shape:"hv",color:a[De%a.length]}},(J=t.defaults)==null?void 0:J.entity,ke);if(Le.lambda&&(Le.lambda=window.eval(Le.lambda)),"statistic"in Le||"period"in Le){let O=Jx.includes(Le.statistic);if(Le.statistic===void 0)Le.statistic="mean";else if(!O)throw new Error(`statistic: "${Le.statistic}" is not valid. Use ${Jx}`);if(Le.period==="auto"&&(Le.period={"0s":"5minute","1d":"hour","7d":"day","28d":"week","12M":"month"}),MO(Le.period)){Le.autoPeriod=Le.period,Le.period=void 0;let me=-1;for(let xe in Le.autoPeriod){let qe=Le.autoPeriod[xe],Pe=e_(xe);if(!zc.includes(qe))throw new Error(`Error parsing automatic period config: "${qe}" not expected. Must be ${zc}`);if(Pe<=me)throw new Error(`Error parsing automatic period config: ranges must be sorted in ascending order, "${xe}" not expected`);me=Pe}}let oe=zc.includes(Le.period);if(Le.period===void 0)Le.period="hour";else if(!oe)throw new Error(`period: "${Le.period}" is not valid. Use ${zc}`)}let[Se,U]=Le.entity.split("::");return U&&(Le.entity=Se,Le.attribute=U),Le}),layout:(0,Zt.default)({yaxis:(0,Zt.default)({},(c=t.defaults)==null?void 0:c.yaxes),yaxis2:(0,Zt.default)({},(d=t.defaults)==null?void 0:d.yaxes),yaxis3:(0,Zt.default)({},(h=t.defaults)==null?void 0:h.yaxes),yaxis4:(0,Zt.default)({},(p=t.defaults)==null?void 0:p.yaxes),yaxis5:(0,Zt.default)({},(g=t.defaults)==null?void 0:g.yaxes),yaxis6:(0,Zt.default)({},(m=t.defaults)==null?void 0:m.yaxes),yaxis7:(0,Zt.default)({},(b=t.defaults)==null?void 0:b.yaxes),yaxis8:(0,Zt.default)({},(x=t.defaults)==null?void 0:x.yaxes),yaxis9:(0,Zt.default)({},(_=t.defaults)==null?void 0:_.yaxes),yaxis10:(0,Zt.default)({},(k=t.defaults)==null?void 0:k.yaxes),yaxis11:(0,Zt.default)({},(w=t.defaults)==null?void 0:w.yaxes),yaxis12:(0,Zt.default)({},(A=t.defaults)==null?void 0:A.yaxes),yaxis13:(0,Zt.default)({},(L=t.defaults)==null?void 0:L.yaxes),yaxis14:(0,Zt.default)({},(S=t.defaults)==null?void 0:S.yaxes),yaxis15:(0,Zt.default)({},(q=t.defaults)==null?void 0:q.yaxes),yaxis16:(0,Zt.default)({},(P=t.defaults)==null?void 0:P.yaxes),yaxis17:(0,Zt.default)({},(E=t.defaults)==null?void 0:E.yaxes),yaxis18:(0,Zt.default)({},(F=t.defaults)==null?void 0:F.yaxes),yaxis19:(0,Zt.default)({},(N=t.defaults)==null?void 0:N.yaxes),yaxis20:(0,Zt.default)({},(j=t.defaults)==null?void 0:j.yaxes),yaxis21:(0,Zt.default)({},(B=t.defaults)==null?void 0:B.yaxes),yaxis22:(0,Zt.default)({},(W=t.defaults)==null?void 0:W.yaxes),yaxis23:(0,Zt.default)({},(V=t.defaults)==null?void 0:V.yaxes),yaxis24:(0,Zt.default)({},(Y=t.defaults)==null?void 0:Y.yaxes),yaxis25:(0,Zt.default)({},(Z=t.defaults)==null?void 0:Z.yaxes),yaxis26:(0,Zt.default)({},($=t.defaults)==null?void 0:$.yaxes),yaxis27:(0,Zt.default)({},(ne=t.defaults)==null?void 0:ne.yaxes),yaxis28:(0,Zt.default)({},(te=t.defaults)==null?void 0:te.yaxes),yaxis29:(0,Zt.default)({},(de=t.defaults)==null?void 0:de.yaxes),yaxis30:(0,Zt.default)({},(be=t.defaults)==null?void 0:be.yaxes)},t.layout),config:{...t.config},no_theme:(re=t.no_theme)!=null?re:!1,no_default_layout:(ge=t.no_default_layout)!=null?ge:!1,significant_changes_only:(ee=t.significant_changes_only)!=null?ee:!1,minimal_response:(Ae=t.minimal_response)!=null?Ae:!0},i=this.parsed_config;this.parsed_config=n;let o=this.parsed_config;!this.contentEl||(o.hours_to_show!==(i==null?void 0:i.hours_to_show)&&this.exitBrowsingMode(),await this.fetch())}getAllUnitsOfMeasurement(){let t=this.parsed_config.entities.map(r=>this.getUnitOfMeasurement(r));return Array.from(new Set(t))}getUnitOfMeasurement(t){var r,a,n;return t.unit_of_measurement||((n=(a=(r=this.hass)==null?void 0:r.states[t.entity])==null?void 0:a.attributes)==null?void 0:n.unit_of_measurement)||""}getThemedLayout(){let t=window.getComputedStyle(this.contentEl),r={"--card-background-color":"red","--primary-background-color":"red","--primary-color":"red","--primary-text-color":"red","--secondary-text-color":"red"};return r=(0,qO.default)(r,(a,n)=>t.getPropertyValue(n)),Wx(r,this.parsed_config.no_theme,this.parsed_config.no_default_layout)}getData(){let t=this.parsed_config.entities,r=this.getAllUnitsOfMeasurement(),a=[],n=[];return t.forEach((i,o)=>{var w,A,L;let s=i.entity,l=this.cache.getHistory(i),u=((A=(w=this.hass)==null?void 0:w.states[s])==null?void 0:A.attributes)||{},c=this.getUnitOfMeasurement(i),d=r.indexOf(c),h=i.name||u.friendly_name||s;Mo(i)&&(h+=` (${i.attribute}) `),So(i)&&(h+=` (${i.statistic}) `);let p=l.map(({timestamp:S})=>new Date(S)),g=l.map(({value:S})=>S),m=p,b=g;if(Qme(m,b),i.lambda)try{let S=i.lambda(g,p,l);Array.isArray(S)?b=S:(S.x&&(m=S.x),S.y&&(b=S.y))}catch(S){console.error(S)}$me(m,b),m.length===0&&b.length===0&&(m=[null],b=[null]);let x={unit_of_measurement:c,name:h,attributes:u},_=m.map(()=>x),k=(0,Zt.default)({name:h,customdata:_,x:m,y:b,yaxis:"y"+(d==0?"":d+1)},i);n.push(k),k.show_value&&((L=k.legendgroup)!=null||(k.legendgroup="group"+o),a.push({texttemplate:"%{y:.2~f}%{customdata.unit_of_measurement}",...k,mode:"text+markers",showlegend:!1,hoverinfo:"skip",textposition:"middle right",marker:{color:k.line.color},textfont:{color:k.line.color},x:k.x.slice(-1),y:k.y.slice(-1)}))}),[...n,...a]}getLayout(){let t=this.getAllUnitsOfMeasurement(),r=Object.fromEntries(t.map((n,i)=>["yaxis"+(i==0?"":i+1),{title:n}]));return(0,Zt.default)({uirevision:!0},{xaxis:{range:this.isBrowsing?this.getVisibleRange():this.getAutoFetchRangeWithValueMargins()}},this.parsed_config.no_default_layout?{}:r,this.getThemedLayout(),this.size,this.parsed_config.layout)}getPlotlyConfig(){return{displaylogo:!1,scrollZoom:!0,modeBarButtonsToRemove:["resetScale2d","toImage","lasso2d","select2d"],...this.parsed_config.config}}async plot(){if(!this.parsed_config||!this.hass||!this.isConnected)return;this.titleEl.innerText=this.parsed_config.title||"";let t=this.parsed_config.refresh_interval;clearTimeout(this.handles.refreshTimeout),t!=="auto"&&t>0&&(this.handles.refreshTimeout=window.setTimeout(()=>this.fetch(),t*1e3));let r=this.getLayout();r.paper_bgcolor&&(this.titleEl.style.background=r.paper_bgcolor),await this.withoutRelayout(()=>Rc.react(this.contentEl,this.getData(),r,this.getPlotlyConfig()))}getCardSize(){return 3}static getStubConfig(){return{entities:[{entity:"sun.sun"}],hours_to_show:24,refresh_interval:10}}static async getConfigElement(){let{createCardElement:t}=await window.loadCardHelpers(),r=t({type:"history-graph",...this.getStubConfig()});for(;!r.constructor.getConfigElement;)await Yx(100);return r.constructor.getConfigElement()}};window.customCards=window.customCards||[];window.customCards.push({type:t_,name:"Plotly Graph Card",preview:!0,description:"Plotly in HA"});customElements.define(t_,DO);})(); /* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT diff --git a/package-lock.json b/package-lock.json index c8a1513..f83a022 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly-graph-card", - "version": "1.7.4", + "version": "1.7.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "plotly-graph-card", - "version": "1.7.4", + "version": "1.7.5", "license": "ISC", "dependencies": { "custom-card-helpers": "^1.8.0", diff --git a/package.json b/package.json index 234aa2f..02edfcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly-graph-card", - "version": "1.7.4", + "version": "1.7.5", "description": "", "main": "index.js", "scripts": {