MCPcopy Index your code
hub / github.com/plotly/plotly.py / qc

Function qc

plotly/package_data/widgetbundle.js:1994–1994  ·  view source on GitHub ↗
(Qt,br,aa)

Source from the content-addressed store, hash-verified

1992`),fe=le.length,V=Math.round(P*O),Y=O,ee=O*2,q=0,oe=fe*V+ee;z.height<oe&&(z.height=oe),F.fillStyle="#000",F.fillRect(0,0,z.width,z.height),F.fillStyle="#fff";var ae,j,Q,re,ce,be=0,Ae="";function De(){if(Ae!==""){var he=F.measureText(Ae).width;F.fillText(Ae,Y+Q,ee+re),Q+=he}}function ze(){return""+Math.round(ce)+"px "}function Ze(he,Oe){var tt=""+F.font;if(U.subscripts===!0){var ot=he.indexOf(M),Qe=Oe.indexOf(M),Pt=ot>-1?parseInt(he[1+ot]):0,It=Qe>-1?parseInt(Oe[1+Qe]):0;Pt!==It&&(tt=tt.replace(ze(),"?px "),ce*=Math.pow(.75,It-Pt),tt=tt.replace("?px ",ze())),re+=.25*V*(It-Pt)}if(U.superscripts===!0){var qt=he.indexOf(_),Wt=Oe.indexOf(_),kr=qt>-1?parseInt(he[1+qt]):0,mr=Wt>-1?parseInt(Oe[1+Wt]):0;kr!==mr&&(tt=tt.replace(ze(),"?px "),ce*=Math.pow(.75,mr-kr),tt=tt.replace("?px ",ze())),re-=.25*V*(mr-kr)}if(U.bolds===!0){var qr=he.indexOf(m)>-1,Sr=Oe.indexOf(m)>-1;!qr&&Sr&&(Rr?tt=tt.replace("italic ","italic bold "):tt="bold "+tt),qr&&!Sr&&(tt=tt.replace("bold ",""))}if(U.italics===!0){var Rr=he.indexOf(T)>-1,wt=Oe.indexOf(T)>-1;!Rr&&wt&&(tt="italic "+tt),Rr&&!wt&&(tt=tt.replace("italic ",""))}F.font=tt}for(ae=0;ae<fe;++ae){var at=le[ae]+`
1993`;for(Q=0,re=ae*V,ce=O,Ae="",j=0;j<at.length;++j){var nt=j+be<$.length?$[j+be]:$[$.length-1];B===nt?Ae+=at[j]:(De(),Ae=at[j],nt!==void 0&&(Ze(B,nt),B=nt))}De(),be+=at.length;var rt=Math.round(Q+2*Y)|0;q<rt&&(q=rt)}var st=q,Me=ee+V*fe,ye=a(F.getImageData(0,0,st,Me).data,[Me,st,4]);return ye.pick(-1,-1,0).transpose(1,0)}function y(z,F){var N=o(z,128);return F?n(N.cells,N.positions,.25):{edges:N.cells,positions:N.positions}}function f(z,F,N,O){var P=y(z,O),U=d(P.positions,F,N),B=P.edges,X=F.orientation==="ccw";if(i(U,B),F.polygons||F.polygon||F.polyline){for(var $=h(B,U),se=new Array($.length),le=0;le<$.length;++le){for(var fe=$[le],V=new Array(fe.length),Y=0;Y<fe.length;++Y){for(var ee=fe[Y],q=new Array(ee.length),oe=0;oe<ee.length;++oe)q[oe]=U[ee[oe]].slice();X&&q.reverse(),V[Y]=q}se[le]=V}return se}else return F.triangles||F.triangulate||F.triangle?{cells:s(U,B,{delaunay:!1,exterior:!1,interior:!0}),positions:U}:{edges:B,positions:U}}function R(z,F,N){try{return f(z,F,N,!0)}catch{}try{return f(z,F,N,!1)}catch{}return F.polygons||F.polyline||F.polygon?[]:F.triangles||F.triangulate||F.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function L(z,F,N,O){var P=64,U=1.25,B={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};O&&(O.size&&O.size>0&&(P=O.size),O.lineSpacing&&O.lineSpacing>0&&(U=O.lineSpacing),O.styletags&&O.styletags.breaklines&&(B.breaklines=!!O.styletags.breaklines),O.styletags&&O.styletags.bolds&&(B.bolds=!!O.styletags.bolds),O.styletags&&O.styletags.italics&&(B.italics=!!O.styletags.italics),O.styletags&&O.styletags.subscripts&&(B.subscripts=!!O.styletags.subscripts),O.styletags&&O.styletags.superscripts&&(B.superscripts=!!O.styletags.superscripts)),N.font=[O.fontStyle,O.fontVariant,O.fontWeight,P+"px",O.font].filter(function($){return $}).join(" "),N.textAlign="start",N.textBaseline="alphabetic",N.direction="ltr";var X=u(F,N,z,P,U,B);return R(X,O,P)}},7721:function(e,t,r){"use strict";var o=r(5716);e.exports=a;function a(n){return o(n[0])*o(n[1])}},7765:function(e,t,r){"use strict";e.exports=l;var o=r(9618),a=r(1888),n=r(446),i=r(1570);function s(_){for(var w=_.length,A=0,M=0;M<w;++M)A=Math.max(A,_[M].length)|0;return A-1}function h(_,w){for(var A=_.length,M=a.mallocUint8(A),g=0;g<A;++g)M[g]=_[g]<w|0;return M}function c(_,w){for(var A=_.length,M=w*(w+1)/2*A|0,g=a.mallocUint32(M*2),b=0,d=0;d<A;++d)for(var u=_[d],w=u.length,y=0;y<w;++y)for(var f=0;f<y;++f){var R=u[f],L=u[y];g[b++]=Math.min(R,L)|0,g[b++]=Math.max(R,L)|0}var z=b/2|0;n(o(g,[z,2]));for(var F=2,d=2;d<b;d+=2)g[d-2]===g[d]&&g[d-1]===g[d+1]||(g[F++]=g[d],g[F++]=g[d+1]);return o(g,[F/2|0,2])}function m(_,w,A,M){for(var g=_.data,b=_.shape[0],d=a.mallocDouble(b),u=0,y=0;y<b;++y){var f=g[2*y],R=g[2*y+1];if(A[f]!==A[R]){var L=w[f],z=w[R];g[2*u]=f,g[2*u+1]=R,d[u++]=(z-M)/(z-L)}}return _.shape[0]=u,o(d,[u])}function p(_,w){var A=a.mallocInt32(w*2),M=_.shape[0],g=_.data;A[0]=0;for(var b=0,d=0;d<M;++d){var u=g[2*d];if(u!==b){for(A[2*b+1]=d;++b<u;)A[2*b]=d,A[2*b+1]=d;A[2*b]=d}}for(A[2*b+1]=M;++b<w;)A[2*b]=A[2*b+1]=M;return A}function T(_){for(var w=_.shape[0]|0,A=_.data,M=new Array(w),g=0;g<w;++g)M[g]=[A[2*g],A[2*g+1]];return M}function l(_,w,A,M){A=A||0,typeof M>"u"&&(M=s(_));var g=_.length;if(g===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var b=h(w,+A),d=c(_,M),u=m(d,w,b,+A),y=p(d,w.length|0),f=i(M)(_,d.data,y,b),R=T(d),L=[].slice.call(u.data,0,u.shape[0]);return a.free(b),a.free(d.data),a.free(u.data),a.free(y),{cells:f,vertexIds:R,vertexWeights:L}}},7766:function(e,t,r){"use strict";var o=r(9618),a=r(5298),n=r(1888);e.exports=u;var i=null,s=null,h=null;function c(y){i=[y.LINEAR,y.NEAREST_MIPMAP_LINEAR,y.LINEAR_MIPMAP_NEAREST,y.LINEAR_MIPMAP_NEAREST],s=[y.NEAREST,y.LINEAR,y.NEAREST_MIPMAP_NEAREST,y.NEAREST_MIPMAP_LINEAR,y.LINEAR_MIPMAP_NEAREST,y.LINEAR_MIPMAP_LINEAR],h=[y.REPEAT,y.CLAMP_TO_EDGE,y.MIRRORED_REPEAT]}function m(y){return typeof HTMLCanvasElement<"u"&&y instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&y instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&y instanceof HTMLVideoElement||typeof ImageData<"u"&&y instanceof ImageData}var p=function(y,f){a.muls(y,f,255)};function T(y,f,R){var L=y.gl,z=L.getParameter(L.MAX_TEXTURE_SIZE);if(f<0||f>z||R<0||R>z)throw new Error("gl-texture2d: Invalid texture size");return y._shape=[f,R],y.bind(),L.texImage2D(L.TEXTURE_2D,0,y.format,f,R,0,y.format,y.type,null),y._mipLevels=[0],y}function l(y,f,R,L,z,F){this.gl=y,this.handle=f,this.format=z,this.type=F,this._shape=[R,L],this._mipLevels=[0],this._magFilter=y.NEAREST,this._minFilter=y.NEAREST,this._wrapS=y.CLAMP_TO_EDGE,this._wrapT=y.CLAMP_TO_EDGE,this._anisoSamples=1;var N=this,O=[this._wrapS,this._wrapT];Object.defineProperties(O,[{get:function(){return N._wrapS},set:function(U){return N.wrapS=U}},{get:function(){return N._wrapT},set:function(U){return N.wrapT=U}}]),this._wrapVector=O;var P=[this._shape[0],this._shape[1]];Object.defineProperties(P,[{get:function(){return N._shape[0]},set:function(U){return N.width=U}},{get:function(){return N._shape[1]},set:function(U){return N.height=U}}]),this._shapeVector=P}var _=l.prototype;Object.defineProperties(_,{minFilter:{get:function(){return this._minFilter},set:function(y){this.bind();var f=this.gl;if(this.type===f.FLOAT&&i.indexOf(y)>=0&&(f.getExtension("OES_texture_float_linear")||(y=f.NEAREST)),s.indexOf(y)<0)throw new Error("gl-texture2d: Unknown filter mode "+y);return f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,y),this._minFilter=y}},magFilter:{get:function(){return this._magFilter},set:function(y){this.bind();var f=this.gl;if(this.type===f.FLOAT&&i.indexOf(y)>=0&&(f.getExtension("OES_texture_float_linear")||(y=f.NEAREST)),s.indexOf(y)<0)throw new Error("gl-texture2d: Unknown filter mode "+y);return f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,y),this._magFilter=y}},mipSamples:{get:function(){return this._anisoSamples},set:function(y){var f=this._anisoSamples;if(this._anisoSamples=Math.max(y,1)|0,f!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(y){if(this.bind(),h.indexOf(y)<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,y),this._wrapS=y}},wrapT:{get:function(){return this._wrapT},set:function(y){if(this.bind(),h.indexOf(y)<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,y),this._wrapT=y}},wrap:{get:function(){return this._wrapVector},set:function(y){if(Array.isArray(y)||(y=[y,y]),y.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var f=0;f<2;++f)if(h.indexOf(y[f])<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);this._wrapS=y[0],this._wrapT=y[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),y}},shape:{get:function(){return this._shapeVector},set:function(y){if(!Array.isArray(y))y=[y|0,y|0];else if(y.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,y[0]|0,y[1]|0),[y[0]|0,y[1]|0]}},width:{get:function(){return this._shape[0]},set:function(y){return y=y|0,T(this,y,this._shape[1]),y}},height:{get:function(){return this._shape[1]},set:function(y){return y=y|0,T(this,this._shape[0],y),y}}}),_.bind=function(y){var f=this.gl;return y!==void 0&&f.activeTexture(f.TEXTURE0+(y|0)),f.bindTexture(f.TEXTURE_2D,this.handle),y!==void 0?y|0:f.getParameter(f.ACTIVE_TEXTURE)-f.TEXTURE0},_.dispose=function(){this.gl.deleteTexture(this.handle)},_.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var y=Math.min(this._shape[0],this._shape[1]),f=0;y>0;++f,y>>>=1)this._mipLevels.indexOf(f)<0&&this._mipLevels.push(f)},_.setPixels=function(y,f,R,L){var z=this.gl;this.bind(),Array.isArray(f)?(L=R,R=f[1]|0,f=f[0]|0):(f=f||0,R=R||0),L=L||0;var F=m(y)?y:y.raw;if(F){var N=this._mipLevels.indexOf(L)<0;N?(z.texImage2D(z.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(L)):z.texSubImage2D(z.TEXTURE_2D,L,f,R,this.format,this.type,F)}else if(y.shape&&y.stride&&y.data){if(y.shape.length<2||f+y.shape[1]>this._shape[1]>>>L||R+y.shape[0]>this._shape[0]>>>L||f<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(z,f,R,L,this.format,this.type,this._mipLevels,y)}else throw new Error("gl-texture2d: Unsupported data type")};function w(y,f){return y.length===3?f[2]===1&&f[1]===y[0]*y[2]&&f[0]===y[2]:f[0]===1&&f[1]===y[0]}function A(y,f,R,L,z,F,N,O){var P=O.dtype,U=O.shape.slice();if(U.length<2||U.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,X=0,$=w(U,O.stride.slice());P==="float32"?B=y.FLOAT:P==="float64"?(B=y.FLOAT,$=!1,P="float32"):P==="uint8"?B=y.UNSIGNED_BYTE:(B=y.UNSIGNED_BYTE,$=!1,P="uint8");var se=1;if(U.length===2)X=y.LUMINANCE,U=[U[0],U[1],1],O=o(O.data,U,[O.stride[0],O.stride[1],1],O.offset);else if(U.length===3){if(U[2]===1)X=y.ALPHA;else if(U[2]===2)X=y.LUMINANCE_ALPHA;else if(U[2]===3)X=y.RGB;else if(U[2]===4)X=y.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");se=U[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((X===y.LUMINANCE||X===y.ALPHA)&&(z===y.LUMINANCE||z===y.ALPHA)&&(X=z),X!==z)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var le=O.size,fe=N.indexOf(L)<0;if(fe&&N.push(L),B===F&&$)O.offset===0&&O.data.length===le?fe?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,O.data):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,O.data):fe?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,O.data.subarray(O.offset,O.offset+le)):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,O.data.subarray(O.offset,O.offset+le));else{var V;F===y.FLOAT?V=n.mallocFloat32(le):V=n.mallocUint8(le);var Y=o(V,U,[U[2],U[2]*U[0],1]);B===y.FLOAT&&F===y.UNSIGNED_BYTE?p(Y,O):a.assign(Y,O),fe?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,V.subarray(0,le)):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,V.subarray(0,le)),F===y.FLOAT?n.freeFloat32(V):n.freeUint8(V)}}function M(y){var f=y.createTexture();return y.bindTexture(y.TEXTURE_2D,f),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,y.NEAREST),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,y.NEAREST),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_S,y.CLAMP_TO_EDGE),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_T,y.CLAMP_TO_EDGE),f}function g(y,f,R,L,z){var F=y.getParameter(y.MAX_TEXTURE_SIZE);if(f<0||f>F||R<0||R>F)throw new Error("gl-texture2d: Invalid texture shape");if(z===y.FLOAT&&!y.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var N=M(y);return y.texImage2D(y.TEXTURE_2D,0,L,f,R,0,L,z,null),new l(y,N,f,R,L,z)}function b(y,f,R,L,z,F){var N=M(y);return y.texImage2D(y.TEXTURE_2D,0,z,z,F,f),new l(y,N,R,L,z,F)}function d(y,f){var R=f.dtype,L=f.shape.slice(),z=y.getParameter(y.MAX_TEXTURE_SIZE);if(L[0]<0||L[0]>z||L[1]<0||L[1]>z)throw new Error("gl-texture2d: Invalid texture size");var F=w(L,f.stride.slice()),N=0;R==="float32"?N=y.FLOAT:R==="float64"?(N=y.FLOAT,F=!1,R="float32"):R==="uint8"?N=y.UNSIGNED_BYTE:(N=y.UNSIGNED_BYTE,F=!1,R="uint8");var O=0;if(L.length===2)O=y.LUMINANCE,L=[L[0],L[1],1],f=o(f.data,L,[f.stride[0],f.stride[1],1],f.offset);else if(L.length===3)if(L[2]===1)O=y.ALPHA;else if(L[2]===2)O=y.LUMINANCE_ALPHA;else if(L[2]===3)O=y.RGB;else if(L[2]===4)O=y.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");N===y.FLOAT&&!y.getExtension("OES_texture_float")&&(N=y.UNSIGNED_BYTE,F=!1);var P,U,B=f.size;if(F)f.offset===0&&f.data.length===B?P=f.data:P=f.data.subarray(f.offset,f.offset+B);else{var X=[L[2],L[2]*L[0],1];U=n.malloc(B,R);var $=o(U,L,X,0);(R==="float32"||R==="float64")&&N===y.UNSIGNED_BYTE?p($,f):a.assign($,f),P=U.subarray(0,B)}var se=M(y);return y.texImage2D(y.TEXTURE_2D,0,O,L[0],L[1],0,O,N,P),F||n.free(U),new l(y,se,L[0],L[1],O,N)}function u(y){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(i||c(y),typeof arguments[1]=="number")return g(y,arguments[1],arguments[2],arguments[3]||y.RGBA,arguments[4]||y.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return g(y,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||y.RGBA,arguments[3]||y.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var f=arguments[1],R=m(f)?f:f.raw;if(R)return b(y,R,f.width|0,f.height|0,arguments[2]||y.RGBA,arguments[3]||y.UNSIGNED_BYTE);if(f.shape&&f.data&&f.stride)return d(y,f)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},7790:function(){},7815:function(e,t,r){"use strict";var o=r(2931),a=r(9970),n=["xyz","xzy","yxz","yzx","zxy","zyx"],i=function(A,M,g,b){for(var d=A.points,u=A.velocities,y=A.divergences,f=[],R=[],L=[],z=[],F=[],N=[],O=0,P=0,U=a.create(),B=a.create(),X=8,$=0;$<d.length;$++){var se=d[$],le=u[$],fe=y[$];M===0&&(fe=g*.05),P=o.length(le)/b,U=a.create(),o.copy(U,le),U[3]=fe;for(var V=0;V<X;V++)F[V]=[se[0],se[1],se[2],V];if(z.length>0)for(var V=0;V<X;V++){var Y=(V+1)%X;f.push(z[V],F[V],F[Y],F[Y],z[Y],z[V]),L.push(B,U,U,U,B,B),N.push(O,P,P,P,O,O);var ee=f.length;R.push([ee-6,ee-5,ee-4],[ee-3,ee-2,ee-1])}var q=z;z=F,F=q;var oe=B;B=U,U=oe;var ae=O;O=P,P=ae}return{positions:f,cells:R,vectors:L,vertexIntensity:N}},s=function(A,M,g,b){for(var d=0,u=0;u<A.length;u++)for(var y=A[u].velocities,f=0;f<y.length;f++)d=Math.max(d,o.length(y[f]));for(var R=A.map(function($){return i($,g,b,d)}),L=[],z=[],F=[],N=[],u=0;u<R.length;u++){var O=R[u],P=L.length;L=L.concat(O.positions),F=F.concat(O.vectors),N=N.concat(O.vertexIntensity);for(var f=0;f<O.cells.length;f++){var U=O.cells[f],B=[];z.push(B);for(var X=0;X<U.length;X++)B.push(U[X]+P)}}return{positions:L,cells:z,vectors:F,vertexIntensity:N,colormap:M}},h=function(A,M){var g=A.length,b;for(b=0;b<g;b++){var d=A[b];if(d===M)return b;if(d>M)return b-1}return b},c=function(A,M,g){return A<M?M:A>g?g:A},m=function(A,M,g){var b=M.vectors,d=M.meshgrid,u=A[0],y=A[1],f=A[2],R=d[0].length,L=d[1].length,z=d[2].length,F=h(d[0],u),N=h(d[1],y),O=h(d[2],f),P=F+1,U=N+1,B=O+1;if(F=c(F,0,R-1),P=c(P,0,R-1),N=c(N,0,L-1),U=c(U,0,L-1),O=c(O,0,z-1),B=c(B,0,z-1),F<0||N<0||O<0||P>R-1||U>L-1||B>z-1)return o.create();var X=d[0][F],$=d[0][P],se=d[1][N],le=d[1][U],fe=d[2][O],V=d[2][B],Y=(u-X)/($-X),ee=(y-se)/(le-se),q=(f-fe)/(V-fe);isFinite(Y)||(Y=.5),isFinite(ee)||(ee=.5),isFinite(q)||(q=.5);var oe,ae,j,Q,re,ce;switch(g.reversedX&&(F=R-1-F,P=R-1-P),g.reversedY&&(N=L-1-N,U=L-1-U),g.reversedZ&&(O=z-1-O,B=z-1-B),g.filled){case 5:re=O,ce=B,j=N*z,Q=U*z,oe=F*z*L,ae=P*z*L;break;case 4:re=O,ce=B,oe=F*z,ae=P*z,j=N*z*R,Q=U*z*R;break;case 3:j=N,Q=U,re=O*L,ce=B*L,oe=F*L*z,ae=P*L*z;break;case 2:j=N,Q=U,oe=F*L,ae=P*L,re=O*L*R,ce=B*L*R;break;case 1:oe=F,ae=P,re=O*R,ce=B*R,j=N*R*z,Q=U*R*z;break;default:oe=F,ae=P,j=N*R,Q=U*R,re=O*R*L,ce=B*R*L;break}var be=b[oe+j+re],Ae=b[oe+j+ce],De=b[oe+Q+re],ze=b[oe+Q+ce],Ze=b[ae+j+re],at=b[ae+j+ce],nt=b[ae+Q+re],rt=b[ae+Q+ce],st=o.create(),Me=o.create(),ye=o.create(),he=o.create();o.lerp(st,be,Ze,Y),o.lerp(Me,Ae,at,Y),o.lerp(ye,De,nt,Y),o.lerp(he,ze,rt,Y);var Oe=o.create(),tt=o.create();o.lerp(Oe,st,ye,ee),o.lerp(tt,Me,he,ee);var ot=o.create();return o.lerp(ot,Oe,tt,q),ot},p=function(A,M){var g=M[0],b=M[1],d=M[2];return A[0]=g<0?-g:g,A[1]=b<0?-b:b,A[2]=d<0?-d:d,A},T=function(A){var M=1/0;A.sort(function(u,y){return u-y});for(var g=A.length,b=1;b<g;b++){var d=Math.abs(A[b]-A[b-1]);d<M&&(M=d)}return M},l=function(A){for(var M=[],g=[],b=[],d={},u={},y={},f=A.length,R=0;R<f;R++){var L=A[R],z=L[0],F=L[1],N=L[2];d[z]||(M.push(z),d[z]=!0),u[F]||(g.push(F),u[F]=!0),y[N]||(b.push(N),y[N]=!0)}var O=T(M),P=T(g),U=T(b),B=Math.min(O,P,U);return isFinite(B)?B:1};e.exports=function(A,M){var g=A.startingPositions,b=A.maxLength||1e3,d=A.tubeSize||1,u=A.absoluteTubeSize,y=A.gridFill||"+x+y+z",f={};y.indexOf("-x")!==-1&&(f.reversedX=!0),y.indexOf("-y")!==-1&&(f.reversedY=!0),y.indexOf("-z")!==-1&&(f.reversedZ=!0),f.filled=n.indexOf(y.replace(/-/g,"").replace(/\+/g,""));var R=A.getVelocity||function(at){return m(at,A,f)},L=A.getDivergence||function(at,nt){var rt=o.create(),st=1e-4;o.add(rt,at,[st,0,0]);var Me=R(rt);o.subtract(Me,Me,nt),o.scale(Me,Me,1/st),o.add(rt,at,[0,st,0]);var ye=R(rt);o.subtract(ye,ye,nt),o.scale(ye,ye,1/st),o.add(rt,at,[0,0,st]);var he=R(rt);return o.subtract(he,he,nt),o.scale(he,he,1/st),o.add(rt,Me,ye),o.add(rt,rt,he),rt},z=[],F=M[0][0],N=M[0][1],O=M[0][2],P=M[1][0],U=M[1][1],B=M[1][2],X=function(at){var nt=at[0],rt=at[1],st=at[2];return!(nt<F||nt>P||rt<N||rt>U||st<O||st>B)},$=o.distance(M[0],M[1]),se=10*$/b,le=se*se,fe=1,V=0,Y=g.length;Y>1&&(fe=l(g));for(var ee=0;ee<Y;ee++){var q=o.create();o.copy(q,g[ee]);var oe=[q],ae=[],j=R(q),Q=q;ae.push(j);var re=[],ce=L(q,j),be=o.length(ce);isFinite(be)&&be>V&&(V=be),re.push(be),z.push({points:oe,velocities:ae,divergences:re});for(var Ae=0;Ae<b*100&&oe.length<b&&X(q);){Ae++;var De=o.clone(j),ze=o.squaredLength(De);if(ze===0)break;if(ze>le&&o.scale(De,De,se/Math.sqrt(ze)),o.add(De,De,q),j=R(De),o.squaredDistance(Q,De)-le>-1e-4*le){oe.push(De),Q=De,ae.push(j);var ce=L(De,j),be=o.length(ce);isFinite(be)&&be>V&&(V=be),re.push(be)}q=De}}var Ze=s(z,A.colormap,V,fe);return u?Ze.tubeScale=u:(V===0&&(V=1),Ze.tubeScale=d*.5*fe/V),Ze};var _=r(6740),w=r(6405).createMesh;e.exports.createTubeMesh=function(A,M){return w(A,M,{shaders:_,traceType:"streamtube"})}},7827:function(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},7842:function(e,t,r){"use strict";var o=r(6330),a=r(1533),n=r(2651),i=r(6768),s=r(869),h=r(8697);e.exports=c;function c(m,p){if(o(m))return p?h(m,c(p)):[m[0].clone(),m[1].clone()];var T=0,l,_;if(a(m))l=m.clone();else if(typeof m=="string")l=i(m);else{if(m===0)return[n(0),n(1)];if(m===Math.floor(m))l=n(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),T-=256;l=n(m)}}if(o(p))l.mul(p[1]),_=p[0].clone();else if(a(p))_=p.clone();else if(typeof p=="string")_=i(p);else if(!p)_=n(1);else if(p===Math.floor(p))_=n(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),T+=256;_=n(p)}return T>0?l=l.ushln(T):T<0&&(_=_.ushln(-T)),s(l,_)}},7894:function(e){e.exports=t;function t(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7932:function(e,t,r){var o=r(620);e.exports=o.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},7960:function(e){e.exports=t;function t(r,o){var a=o[0]-r[0],n=o[1]-r[1],i=o[2]-r[2],s=o[3]-r[3];return a*a+n*n+i*i+s*s}},8105:function(e){"use strict";e.exports=r;var t={"lo===p0":o,"lo<p0":a,"lo<=p0":n,"hi<=p0":i,"lo<p0&&p0<=hi":h,"lo<=p0&&p0<=hi":s,"!(lo>=p0)&&!(p1>=hi)":c};function r(m){return t[m]}function o(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+u];if(R===A)if(d===f)d+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[d],w[d++]=F}}return d}function a(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+u];if(R<A)if(d===f)d+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[d],w[d++]=F}}return d}function n(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+y];if(R<=A)if(d===f)d+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[d],w[d++]=F}}return d}function i(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+y];if(R<=A)if(d===f)d+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[d],w[d++]=F}}return d}function s(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+u],L=_[g+y];if(R<=A&&A<=L)if(d===f)d+=1,b+=M;else{for(var z=0;M>z;++z){var F=_[g+z];_[g+z]=_[b],_[b++]=F}var N=w[f];w[f]=w[d],w[d++]=N}}return d}function h(m,p,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,d=T,u=p,y=m+p,f=T;l>f;++f,g+=M){var R=_[g+u],L=_[g+y];if(R<A&&A<=L)if(d===f)d+=1,b+=M;else{for(var z=0;M>z;++z){var F=_[g+z];_[g+z]=_[b],_[b++]=F}var N=w[f];w[f]=w[d],w[d++]=N}}return d}function c(m,p,T,l,_,w,A,M){for(var g=2*m,b=g*T,d=b,u=T,y=p,f=m+p,R=T;l>R;++R,b+=g){var L=_[b+y],z=_[b+f];if(!(L>=A)&&!(M>=z))if(u===R)u+=1,d+=g;else{for(var F=0;g>F;++F){var N=_[b+F];_[b+F]=_[d],_[d++]=N}var O=w[R];w[R]=w[u],w[u++]=O}}return u}},8107:function(e){e.exports=t;function t(r,o,a){return r[0]=Math.min(o[0],a[0]),r[1]=Math.min(o[1],a[1]),r[2]=Math.min(o[2],a[2]),r}},8116:function(e,t,r){"use strict";var o=r(7518),a=r(870);function n(s){this.bindVertexArrayOES=s.bindVertexArray.bind(s),this.createVertexArrayOES=s.createVertexArray.bind(s),this.deleteVertexArrayOES=s.deleteVertexArray.bind(s)}function i(s,h,c,m){var p=s.createVertexArray?new n(s):s.getExtension("OES_vertex_array_object"),T;return p?T=o(s,p):T=a(s),T.update(h,c,m),T}e.exports=i},8192:function(e,t,r){e.exports=i;var o=r(2825),a=r(3536),n=r(244);function i(s,h){var c=o(s[0],s[1],s[2]),m=o(h[0],h[1],h[2]);a(c,c),a(m,m);var p=n(c,m);return p>1?0:Math.acos(p)}},8210:function(e){"use strict";e.exports=r;function t(o,a){var n=o+a,i=n-o,s=n-i,h=a-i,c=o-s,m=c+h;return m?[m,n]:[n]}function r(o,a){var n=o.length|0,i=a.length|0;if(n===1&&i===1)return t(o[0],a[0]);var s=n+i,h=new Array(s),c=0,m=0,p=0,T=Math.abs,l=o[m],_=T(l),w=a[p],A=T(w),M,g;_<A?(g=l,m+=1,m<n&&(l=o[m],_=T(l))):(g=w,p+=1,p<i&&(w=a[p],A=T(w))),m<n&&_<A||p>=i?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,p+=1,p<i&&(w=a[p],A=T(w)));for(var b=M+g,d=b-M,u=g-d,y=u,f=b,R,L,z,F,N;m<n&&p<i;)_<A?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,p+=1,p<i&&(w=a[p],A=T(w))),g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R;for(;m<n;)M=l,g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,m+=1,m<n&&(l=o[m]);for(;p<i;)M=w,g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,p+=1,p<i&&(w=a[p]);return y&&(h[c++]=y),f&&(h[c++]=f),c||(h[c++]=0),h.length=c,h}},8277:function(e){"use strict";function t(){return function(s,h,c,m,p){var T=s[0],l=s[1],_=s[2],w=c[0],A=c[1],M=c[2],g=[0,0,0];m|=0;var b=0,d=0,u=0,y=M,f=A-_*M,R=w-l*A;for(u=0;u<T;++u){for(d=0;d<l;++d){for(b=0;b<_;++b){{var L=p,z;for(z=0;z<g.length-1;++z)L=L[g[z]];h[m]=L[g[g.length-1]]}m+=y,++g[2]}m+=f,g[2]-=_,++g[1]}m+=R,g[1]-=l,++g[0]}}}function r(){return t()}var o=r;function a(s){var h={};return function(m,p){var T=m.dtype,l=m.order,_=[T,l.join()].join(),w=h[_];return w||(h[_]=w=s([T,l])),w(m.shape.slice(0),m.data,m.stride,m.offset|0,p)}}function n(s){return a(o.bind(void 0,s))}function i(s){return n({funcName:s.funcName})}e.exports=i({funcName:"convert"})},8284:function(e){e.exports=t;function t(r,o){var a={identity:o},n=r.valueOf;return Object.defineProperty(r,"valueOf",{value:function(i){return i!==o?n.apply(this,arguments):a},writable:!0}),a}},8406:function(e,t){var r=1e-6,o=1e-6;t.vertexNormals=function(a,n,i){for(var s=n.length,h=new Array(s),c=i===void 0?r:i,m=0;m<s;++m)h[m]=[0,0,0];for(var m=0;m<a.length;++m)for(var p=a[m],T=0,l=p[p.length-1],_=p[0],w=0;w<p.length;++w){T=l,l=_,_=p[(w+1)%p.length];for(var A=n[T],M=n[l],g=n[_],b=new Array(3),d=0,u=new Array(3),y=0,f=0;f<3;++f)b[f]=A[f]-M[f],d+=b[f]*b[f],u[f]=g[f]-M[f],y+=u[f]*u[f];if(d*y>c)for(var R=h[l],L=1/Math.sqrt(d*y),f=0;f<3;++f){var z=(f+1)%3,F=(f+2)%3;R[f]+=L*(u[z]*b[F]-u[F]*b[z])}}for(var m=0;m<s;++m){for(var R=h[m],N=0,f=0;f<3;++f)N+=R[f]*R[f];if(N>c)for(var L=1/Math.sqrt(N),f=0;f<3;++f)R[f]*=L;else for(var f=0;f<3;++f)R[f]=0}return h},t.faceNormals=function(a,n,i){for(var s=a.length,h=new Array(s),c=i===void 0?o:i,m=0;m<s;++m){for(var p=a[m],T=new Array(3),l=0;l<3;++l)T[l]=n[p[l]];for(var _=new Array(3),w=new Array(3),l=0;l<3;++l)_[l]=T[1][l]-T[0][l],w[l]=T[2][l]-T[0][l];for(var A=new Array(3),M=0,l=0;l<3;++l){var g=(l+1)%3,b=(l+2)%3;A[l]=_[g]*w[b]-_[b]*w[g],M+=A[l]*A[l]}M>c?M=1/Math.sqrt(M):M=0;for(var l=0;l<3;++l)A[l]*=M;h[m]=A}return h}},8418:function(e,t,r){"use strict";var o=r(5219),a=r(2762),n=r(8116),i=r(1888),s=r(6760),h=r(1283),c=r(9366),m=r(5964),p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,l=DataView;function _(q){return T.isView(q)&&!(q instanceof l)}function w(q){return Array.isArray(q)||_(q)}e.exports=ee;function A(q,oe){var ae=q[0],j=q[1],Q=q[2],re=q[3];return q[0]=oe[0]*ae+oe[4]*j+oe[8]*Q+oe[12]*re,q[1]=oe[1]*ae+oe[5]*j+oe[9]*Q+oe[13]*re,q[2]=oe[2]*ae+oe[6]*j+oe[10]*Q+oe[14]*re,q[3]=oe[3]*ae+oe[7]*j+oe[11]*Q+oe[15]*re,q}function M(q,oe,ae,j){return A(j,j,ae),A(j,j,oe),A(j,j,q)}function g(q,oe){this.index=q,this.dataCoordinate=this.position=oe}function b(q){return q===!0||q>1?1:q}function d(q,oe,ae,j,Q,re,ce,be,Ae,De,ze,Ze){this.gl=q,this.pixelRatio=1,this.shader=oe,this.orthoShader=ae,this.projectShader=j,this.pointBuffer=Q,this.colorBuffer=re,this.glyphBuffer=ce,this.idBuffer=be,this.vao=Ae,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=De,this.pickOrthoShader=ze,this.pickProjectShader=Ze,this.points=[],this._selectResult=new g(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var u=d.prototype;u.pickSlots=1,u.setPickBase=function(q){this.pickId=q},u.isTransparent=function(){if(this.hasAlpha)return!0;for(var q=0;q<3;++q)if(this.axesProject[q]&&this.projectHasAlpha)return!0;return!1},u.isOpaque=function(){if(!this.hasAlpha)return!0;for(var q=0;q<3;++q)if(this.axesProject[q]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],f=[0,0,0],R=[0,0,0],L=[0,0,0,1],z=[0,0,0,1],F=p.slice(),N=[0,0,0],O=[[0,0,0],[0,0,0]];function P(q){return q[0]=q[1]=q[2]=0,q}function U(q,oe){return q[0]=oe[0],q[1]=oe[1],q[2]=oe[2],q[3]=1,q}function B(q,oe,ae,j){return q[0]=oe[0],q[1]=oe[1],q[2]=oe[2],q[ae]=j,q}function X(q){for(var oe=O,ae=0;ae<2;++ae)for(var j=0;j<3;++j)oe[ae][j]=Math.max(Math.min(q[ae][j],1e8),-1e8);return oe}function $(q,oe,ae,j){var Q=oe.axesProject,re=oe.gl,ce=q.uniforms,be=ae.model||p,Ae=ae.view||p,De=ae.projection||p,ze=oe.axesBounds,Ze=X(oe.clipBounds),at;oe.axes&&oe.axes.lastCubeProps?at=oe.axes.lastCubeProps.axis:at=[1,1,1],y[0]=2/re.drawingBufferWidth,y[1]=2/re.drawingBufferHeight,q.bind(),ce.view=Ae,ce.projection=De,ce.screenSize=y,ce.highlightId=oe.highlightId,ce.highlightScale=oe.highlightScale,ce.clipBounds=Ze,ce.pickGroup=oe.pickId/255,ce.pixelRatio=j;for(var nt=0;nt<3;++nt)if(Q[nt]){ce.scale=oe.projectScale[nt],ce.opacity=oe.projectOpacity[nt];for(var rt=F,st=0;st<16;++st)rt[st]=0;for(var st=0;st<4;++st)rt[5*st]=1;rt[5*nt]=0,at[nt]<0?rt[12+nt]=ze[0][nt]:rt[12+nt]=ze[1][nt],s(rt,be,rt),ce.model=rt;var Me=(nt+1)%3,ye=(nt+2)%3,he=P(f),Oe=P(R);he[Me]=1,Oe[ye]=1;var tt=M(De,Ae,be,U(L,he)),ot=M(De,Ae,be,U(z,Oe));if(Math.abs(tt[1])>Math.abs(ot[1])){var Qe=tt;tt=ot,ot=Qe,Qe=he,he=Oe,Oe=Qe;var Pt=Me;Me=ye,ye=Pt}tt[0]<0&&(he[Me]=-1),ot[1]>0&&(Oe[ye]=-1);for(var It=0,qt=0,st=0;st<4;++st)It+=Math.pow(be[4*Me+st],2),qt+=Math.pow(be[4*ye+st],2);he[Me]/=Math.sqrt(It),Oe[ye]/=Math.sqrt(qt),ce.axes[0]=he,ce.axes[1]=Oe,ce.fragClipBounds[0]=B(N,Ze[0],nt,-1e8),ce.fragClipBounds[1]=B(N,Ze[1],nt,1e8),oe.vao.bind(),oe.vao.draw(re.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(re.lineWidth(oe.lineWidth*j),oe.vao.draw(re.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}var se=[-1e8,-1e8,-1e8],le=[1e8,1e8,1e8],fe=[se,le];function V(q,oe,ae,j,Q,re,ce){var be=ae.gl;if((re===ae.projectHasAlpha||ce)&&$(oe,ae,j,Q),re===ae.hasAlpha||ce){q.bind();var Ae=q.uniforms;Ae.model=j.model||p,Ae.view=j.view||p,Ae.projection=j.projection||p,y[0]=2/be.drawingBufferWidth,y[1]=2/be.drawingBufferHeight,Ae.screenSize=y,Ae.highlightId=ae.highlightId,Ae.highlightScale=ae.highlightScale,Ae.fragClipBounds=fe,Ae.clipBounds=ae.axes.bounds,Ae.opacity=ae.opacity,Ae.pickGroup=ae.pickId/255,Ae.pixelRatio=Q,ae.vao.bind(),ae.vao.draw(be.TRIANGLES,ae.vertexCount),ae.lineWidth>0&&(be.lineWidth(ae.lineWidth*Q),ae.vao.draw(be.LINES,ae.lineVertexCount,ae.vertexCount)),ae.vao.unbind()}}u.draw=function(q){var oe=this.useOrtho?this.orthoShader:this.shader;V(oe,this.projectShader,this,q,this.pixelRatio,!1,!1)},u.drawTransparent=function(q){var oe=this.useOrtho?this.orthoShader:this.shader;V(oe,this.projectShader,this,q,this.pixelRatio,!0,!1)},u.drawPick=function(q){var oe=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;V(oe,this.pickProjectShader,this,q,1,!0,!0)},u.pick=function(q){if(!q||q.id!==this.pickId)return null;var oe=q.value[2]+(q.value[1]<<8)+(q.value[0]<<16);if(oe>=this.pointCount||oe<0)return null;var ae=this.points[oe],j=this._selectResult;j.index=oe;for(var Q=0;Q<3;++Q)j.position[Q]=j.dataCoordinate[Q]=ae[Q];return j},u.highlight=function(q){if(!q)this.highlightId=[1,1,1,1];else{var oe=q.index,ae=oe&255,j=oe>>8&255,Q=oe>>16&255;this.highlightId=[ae/255,j/255,Q/255,0]}};function Y(q,oe,ae,j){var Q;w(q)?oe<q.length?Q=q[oe]:Q=void 0:Q=q,Q=m(Q);var re=!0;o(Q)&&(Q="\u25BC",re=!1),ae||(ae={});var ce=ae.family;w(ce)&&(ce=ce[oe]),ce||(ce="normal");var be=ae.weight;w(be)&&(be=be[oe]),be||(be="normal");var Ae=ae.style;w(Ae)&&(Ae=Ae[oe]),Ae||(Ae="normal");var De=ae.variant;w(De)&&(De=De[oe]),De||(De="normal");var ze=c(Q,{family:ce,weight:be,style:Ae,variant:De},j),ze=c(Q,ae,j);return{mesh:ze[0],lines:ze[1],bounds:ze[2],visible:re}}u.update=function(q){if(q=q||{},"perspective"in q&&(this.useOrtho=!q.perspective),"orthographic"in q&&(this.useOrtho=!!q.orthographic),"lineWidth"in q&&(this.lineWidth=q.lineWidth),"project"in q)if(w(q.project))this.axesProject=q.project;else{var oe=!!q.project;this.axesProject=[oe,oe,oe]}if("projectScale"in q)if(w(q.projectScale))this.projectScale=q.projectScale.slice();else{var ae=+q.projectScale;this.projectScale=[ae,ae,ae]}if(this.projectHasAlpha=!1,"projectOpacity"in q){if(w(q.projectOpacity))this.projectOpacity=q.projectOpacity.slice();else{var ae=+q.projectOpacity;this.projectOpacity=[ae,ae,ae]}for(var j=0;j<3;++j)this.projectOpacity[j]=b(this.projectOpacity[j]),this.projectOpacity[j]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in q&&(this.opacity=b(q.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var Q=q.position,re={family:q.font||"normal",style:q.fontStyle||"normal",weight:q.fontWeight||"normal",variant:q.fontVariant||"normal"},ce=q.alignment||[0,0],be,Ae;if(ce.length===2)be=ce[0],Ae=ce[1];else{be=[],Ae=[];for(var j=0;j<ce.length;++j)be[j]=ce[j][0],Ae[j]=ce[j][1]}var De=[1/0,1/0,1/0],ze=[-1/0,-1/0,-1/0],Ze=q.glyph,at=q.color,nt=q.size,rt=q.angle,st=q.lineColor,Me=-1,ye=0,he=0,Oe=0;if(Q.length){Oe=Q.length;e:for(var j=0;j<Oe;++j){for(var tt=Q[j],ot=0;ot<3;++ot)if(isNaN(tt[ot])||!isFinite(tt[ot]))continue e;var Qe=Y(Ze,j,re,this.pixelRatio),Pt=Qe.mesh,It=Qe.lines,qt=Qe.bounds;ye+=Pt.cells.length*3,he+=It.edges.length*2}}var Wt=ye+he,kr=i.mallocFloat(3*Wt),mr=i.mallocFloat(4*Wt),qr=i.mallocFloat(2*Wt),Sr=i.mallocUint32(Wt);if(Wt>0){var Rr=0,wt=ye,Ne=[0,0,0,1],Ke=[0,0,0,1],Te=w(at)&&w(at[0]),Ie=w(st)&&w(st[0]);e:for(var j=0;j<Oe;++j){Me+=1;for(var tt=Q[j],ot=0;ot<3;++ot){if(isNaN(tt[ot])||!isFinite(tt[ot]))continue e;ze[ot]=Math.max(ze[ot],tt[ot]),De[ot]=Math.min(De[ot],tt[ot])}var Qe=Y(Ze,j,re,this.pixelRatio),Pt=Qe.mesh,It=Qe.lines,qt=Qe.bounds,Ve=Qe.visible;if(!Ve)Ne=[1,1,1,0];else if(w(at)){var Ce;if(Te?j<at.length?Ce=at[j]:Ce=[0,0,0,0]:Ce=at,Ce.length===3){for(var ot=0;ot<3;++ot)Ne[ot]=Ce[ot];Ne[3]=1}else if(Ce.length===4){for(var ot=0;ot<4;++ot)Ne[ot]=Ce[ot];!this.hasAlpha&&Ce[3]<1&&(this.hasAlpha=!0)}}else Ne[0]=Ne[1]=Ne[2]=0,Ne[3]=1;if(!Ve)Ke=[1,1,1,0];else if(w(st)){var Ce;if(Ie?j<st.length?Ce=st[j]:Ce=[0,0,0,0]:Ce=st,Ce.length===3){for(var ot=0;ot<3;++ot)Ke[ot]=Ce[ot];Ke[ot]=1}else if(Ce.length===4){for(var ot=0;ot<4;++ot)Ke[ot]=Ce[ot];!this.hasAlpha&&Ce[3]<1&&(this.hasAlpha=!0)}}else Ke[0]=Ke[1]=Ke[2]=0,Ke[3]=1;var Ee=.5;Ve?w(nt)?j<nt.length?Ee=+nt[j]:Ee=12:nt?Ee=+nt:this.useOrtho&&(Ee=12):Ee=0;var Pe=0;w(rt)?j<rt.length?Pe=+rt[j]:Pe=0:rt&&(Pe=+rt);for(var ft=Math.cos(Pe),ct=Math.sin(Pe),tt=Q[j],ot=0;ot<3;++ot)ze[ot]=Math.max(ze[ot],tt[ot]),De[ot]=Math.min(De[ot],tt[ot]);var _t=be,Ct=Ae,_t=0;w(be)?j<be.length?_t=be[j]:_t=0:be&&(_t=be);var Ct=0;w(Ae)?j<Ae.length?Ct=Ae[j]:Ct=0:Ae&&(Ct=Ae),_t*=_t>0?1-qt[0][0]:_t<0?1+qt[1][0]:1,Ct*=Ct>0?1-qt[0][1]:Ct<0?1+qt[1][1]:1;for(var ir=[_t,Ct],Da=Pt.cells||[],Ia=Pt.positions||[],ot=0;ot<Da.length;++ot)for(var rr=Da[ot],er=0;er<3;++er){for(var Lr=0;Lr<3;++Lr)kr[3*Rr+Lr]=tt[Lr];for(var Lr=0;Lr<4;++Lr)mr[4*Rr+Lr]=Ne[Lr];Sr[Rr]=Me;var fa=Ia[rr[er]];qr[2*Rr]=Ee*(ft*fa[0]-ct*fa[1]+ir[0]),qr[2*Rr+1]=Ee*(ct*fa[0]+ft*fa[1]+ir[1]),Rr+=1}for(var Da=It.edges,Ia=It.positions,ot=0;ot<Da.length;++ot)for(var rr=Da[ot],er=0;er<2;++er){for(var Lr=0;Lr<3;++Lr)kr[3*wt+Lr]=tt[Lr];for(var Lr=0;Lr<4;++Lr)mr[4*wt+Lr]=Ke[Lr];Sr[wt]=Me;var fa=Ia[rr[er]];qr[2*wt]=Ee*(ft*fa[0]-ct*fa[1]+ir[0]),qr[2*wt+1]=Ee*(ct*fa[0]+ft*fa[1]+ir[1]),wt+=1}}}this.bounds=[De,ze],this.points=Q,this.pointCount=Q.length,this.vertexCount=ye,this.lineVertexCount=he,this.pointBuffer.update(kr),this.colorBuffer.update(mr),this.glyphBuffer.update(qr),this.idBuffer.update(Sr),i.free(kr),i.free(mr),i.free(qr),i.free(Sr)},u.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function ee(q){var oe=q.gl,ae=h.createPerspective(oe),j=h.createOrtho(oe),Q=h.createProject(oe),re=h.createPickPerspective(oe),ce=h.createPickOrtho(oe),be=h.createPickProject(oe),Ae=a(oe),De=a(oe),ze=a(oe),Ze=a(oe),at=n(oe,[{buffer:Ae,size:3,type:oe.FLOAT},{buffer:De,size:4,type:oe.FLOAT},{buffer:ze,size:2,type:oe.FLOAT},{buffer:Ze,size:4,type:oe.UNSIGNED_BYTE,normalized:!0}]),nt=new d(oe,ae,j,Q,Ae,De,ze,Ze,at,re,ce,be);return nt.update(q),nt}},8489:function(e){e.exports=t;function t(r,o,a,n){return r[0]=o[0]+a[0]*n,r[1]=o[1]+a[1]*n,r[2]=o[2]+a[2]*n,r}},8507:function(e){e.exports=o;var t=Math.min;function r(a,n){return a-n}function o(a,n){var i=a.length,s=a.length-n.length;if(s)return s;switch(i){case 0:return 0;case 1:return a[0]-n[0];case 2:return a[0]+a[1]-n[0]-n[1]||t(a[0],a[1])-t(n[0],n[1]);case 3:var h=a[0]+a[1],c=n[0]+n[1];if(s=h+a[2]-(c+n[2]),s)return s;var m=t(a[0],a[1]),p=t(n[0],n[1]);return t(m,a[2])-t(p,n[2])||t(m+a[2],h)-t(p+n[2],c);case 4:var T=a[0],l=a[1],_=a[2],w=a[3],A=n[0],M=n[1],g=n[2],b=n[3];return T+l+_+w-(A+M+g+b)||t(T,l,_,w)-t(A,M,g,b,A)||t(T+l,T+_,T+w,l+_,l+w,_+w)-t(A+M,A+g,A+b,M+g,M+b,g+b)||t(T+l+_,T+l+w,T+_+w,l+_+w)-t(A+M+g,A+M+b,A+g+b,M+g+b);default:for(var d=a.slice().sort(r),u=n.slice().sort(r),y=0;y<i;++y)if(s=d[y]-u[y],s)return s;return 0}}},8512:function(e,t,r){"use strict";var o=r(665);e.exports=a;function a(n,i,s){typeof n=="function"&&(s=!!i,i=n,n=window);var h=o("ex",n),c=function(m){s&&m.preventDefault();var p=m.deltaX||0,T=m.deltaY||0,l=m.deltaZ||0,_=m.deltaMode,w=1;switch(_){case 1:w=h;break;case 2:w=window.innerHeight;break}if(p*=w,T*=w,l*=w,p||T||l)return i(p,T,l,m)};return n.addEventListener("wheel",c),c}},8545:function(e){"use strict";e.exports=r;function t(o,a){var n=o+a,i=n-o,s=n-i,h=a-i,c=o-s,m=c+h;return m?[m,n]:[n]}function r(o,a){var n=o.length|0,i=a.length|0;if(n===1&&i===1)return t(o[0],-a[0]);var s=n+i,h=new Array(s),c=0,m=0,p=0,T=Math.abs,l=o[m],_=T(l),w=-a[p],A=T(w),M,g;_<A?(g=l,m+=1,m<n&&(l=o[m],_=T(l))):(g=w,p+=1,p<i&&(w=-a[p],A=T(w))),m<n&&_<A||p>=i?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,p+=1,p<i&&(w=-a[p],A=T(w)));for(var b=M+g,d=b-M,u=g-d,y=u,f=b,R,L,z,F,N;m<n&&p<i;)_<A?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,p+=1,p<i&&(w=-a[p],A=T(w))),g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R;for(;m<n;)M=l,g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,m+=1,m<n&&(l=o[m]);for(;p<i;)M=w,g=y,b=M+g,d=b-M,u=g-d,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,p+=1,p<i&&(w=-a[p]);return y&&(h[c++]=y),f&&(h[c++]=f),c||(h[c++]=0),h.length=c,h}},8572:function(e){"use strict";e.exports=function(r){return r<0?-1:r>0?1:0}},8648:function(e,t,r){e.exports=r(783)},8692:function(e){e.exports=t;function t(r,o,a,n){var i=a[0],s=a[1],h=o[0]-i,c=o[1]-s,m=Math.sin(n),p=Math.cos(n);return r[0]=i+h*p-c*m,r[1]=s+h*m+c*p,r[2]=o[2],r}},8697:function(e,t,r){"use strict";var o=r(869);e.exports=a;function a(n,i){return o(n[0].mul(i[1]),n[1].mul(i[0]))}},8731:function(e,t,r){"use strict";e.exports=c;var o=r(8866);function a(m,p,T,l,_,w){this._gl=m,this._wrapper=p,this._index=T,this._locations=l,this._dimension=_,this._constFunc=w}var n=a.prototype;n.pointer=function(p,T,l,_){var w=this,A=w._gl,M=w._locations[w._index];A.vertexAttribPointer(M,w._dimension,p||A.FLOAT,!!T,l||0,_||0),A.enableVertexAttribArray(M)},n.set=function(m,p,T,l){return this._constFunc(this._locations[this._index],m,p,T,l)},Object.defineProperty(n,"location",{get:function(){return this._locations[this._index]},set:function(m){return m!==this._locations[this._index]&&(this._locations[this._index]=m|0,this._wrapper.program=null),m|0}});var i=[function(m,p,T){return T.length===void 0?m.vertexAttrib1f(p,T):m.vertexAttrib1fv(p,T)},function(m,p,T,l){return T.length===void 0?m.vertexAttrib2f(p,T,l):m.vertexAttrib2fv(p,T)},function(m,p,T,l,_){return T.length===void 0?m.vertexAttrib3f(p,T,l,_):m.vertexAttrib3fv(p,T)},function(m,p,T,l,_,w){return T.length===void 0?m.vertexAttrib4f(p,T,l,_,w):m.vertexAttrib4fv(p,T)}];function s(m,p,T,l,_,w,A){var M=i[_],g=new a(m,p,T,l,_,M);Object.defineProperty(w,A,{set:function(b){return m.disableVertexAttribArray(l[T]),M(m,l[T],b),b},get:function(){return g},enumerable:!0})}function h(m,p,T,l,_,w,A){for(var M=new Array(_),g=new Array(_),b=0;b<_;++b)s(m,p,T[b],l,_,M,b),g[b]=M[b];Object.defineProperty(M,"location",{set:function(y){if(Array.isArray(y))for(var f=0;f<_;++f)g[f].location=y[f];else for(var f=0;f<_;++f)g[f].location=y+f;return y},get:function(){for(var y=new Array(_),f=0;f<_;++f)y[f]=l[T[f]];return y},enumerable:!0}),M.pointer=function(y,f,R,L){y=y||m.FLOAT,f=!!f,R=R||_*_,L=L||0;for(var z=0;z<_;++z){var F=l[T[z]];m.vertexAttribPointer(F,_,y,f,R,L+z*_),m.enableVertexAttribArray(F)}};var d=new Array(_),u=m["vertexAttrib"+_+"fv"];Object.defineProperty(w,A,{set:function(y){for(var f=0;f<_;++f){var R=l[T[f]];if(m.disableVertexAttribArray(R),Array.isArray(y[0]))u.call(m,R,y[f]);else{for(var L=0;L<_;++L)d[L]=y[_*f+L];u.call(m,R,d)}}return y},get:function(){return M},enumerable:!0})}function c(m,p,T,l){for(var _={},w=0,A=T.length;w<A;++w){var M=T[w],g=M.name,b=M.type,d=M.locations;switch(b){case"bool":case"int":case"float":s(m,p,d[0],l,1,_,g);break;default:if(b.indexOf("vec")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new o("","Invalid data type for attribute "+g+": "+b);s(m,p,d[0],l,u,_,g)}else if(b.indexOf("mat")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new o("","Invalid data type for attribute "+g+": "+b);h(m,p,d,l,u,_,g)}else throw new o("","Unknown data type for attribute "+g+": "+b);break}}return _}},8828:function(e,t){"use strict";"use restrict";var r=32;t.INT_BITS=r,t.INT_MAX=2147483647,t.INT_MIN=-1<<r-1,t.sign=function(n){return(n>0)-(n<0)},t.abs=function(n){var i=n>>r-1;return(n^i)-i},t.min=function(n,i){return i^(n^i)&-(n<i)},t.max=function(n,i){return n^(n^i)&-(n<i)},t.isPow2=function(n){return!(n&n-1)&&!!n},t.log2=function(n){var i,s;return i=(n>65535)<<4,n>>>=i,s=(n>255)<<3,n>>>=s,i|=s,s=(n>15)<<2,n>>>=s,i|=s,s=(n>3)<<1,n>>>=s,i|=s,i|n>>1},t.log10=function(n){return n>=1e9?9:n>=1e8?8:n>=1e7?7:n>=1e6?6:n>=1e5?5:n>=1e4?4:n>=1e3?3:n>=100?2:n>=10?1:0},t.popCount=function(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),(n+(n>>>4)&252645135)*16843009>>>24};function o(n){var i=32;return n&=-n,n&&i--,n&65535&&(i-=16),n&16711935&&(i-=8),n&252645135&&(i-=4),n&858993459&&(i-=2),n&1431655765&&(i-=1),i}t.countTrailingZeros=o,t.nextPow2=function(n){return n+=n===0,--n,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n+1},t.prevPow2=function(n){return n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n-(n>>>1)},t.parity=function(n){return n^=n>>>16,n^=n>>>8,n^=n>>>4,n&=15,27030>>>n&1};var a=new Array(256);(function(n){for(var i=0;i<256;++i){var s=i,h=i,c=7;for(s>>>=1;s;s>>>=1)h<<=1,h|=s&1,--c;n[i]=h<<c&255}})(a),t.reverse=function(n){return a[n&255]<<24|a[n>>>8&255]<<16|a[n>>>16&255]<<8|a[n>>>24&255]},t.interleave2=function(n,i){return n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,n|i<<1},t.deinterleave2=function(n,i){return n=n>>>i&1431655765,n=(n|n>>>1)&858993459,n=(n|n>>>2)&252645135,n=(n|n>>>4)&16711935,n=(n|n>>>16)&65535,n<<16>>16},t.interleave3=function(n,i,s){return n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,n|=i<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,n|s<<2},t.deinterleave3=function(n,i){return n=n>>>i&1227133513,n=(n|n>>>2)&3272356035,n=(n|n>>>4)&251719695,n=(n|n>>>8)&4278190335,n=(n|n>>>16)&1023,n<<22>>22},t.nextCombination=function(n){var i=n|n-1;return i+1|(~i&-~i)-1>>>o(n)+1}},8866:function(e){function t(r,o,a){this.shortMessage=o||"",this.longMessage=a||"",this.rawError=r||"",this.message="gl-shader: "+(o||r||"")+(a?`
1994`+a:""),this.stack=new Error().stack}t.prototype=new Error,t.prototype.name="GLError",t.prototype.constructor=t,e.exports=t},8902:function(e,t,r){"use strict";var o=r(2478),a=r(3250)[3],n=0,i=1,s=2;e.exports=A;function h(M,g,b,d,u){this.a=M,this.b=g,this.idx=b,this.lowerIds=d,this.upperIds=u}function c(M,g,b,d){this.a=M,this.b=g,this.type=b,this.idx=d}function m(M,g){var b=M.a[0]-g.a[0]||M.a[1]-g.a[1]||M.type-g.type;return b||M.type!==n&&(b=a(M.a,M.b,g.b),b)?b:M.idx-g.idx}function p(M,g){return a(M.a,M.b,g)}function T(M,g,b,d,u){for(var y=o.lt(g,d,p),f=o.gt(g,d,p),R=y;R<f;++R){for(var L=g[R],z=L.lowerIds,N=z.length;N>1&&a(b[z[N-2]],b[z[N-1]],d)>0;)M.push([z[N-1],z[N-2],u]),N-=1;z.length=N,z.push(u);for(var F=L.upperIds,N=F.length;N>1&&a(b[F[N-2]],b[F[N-1]],d)<0;)M.push([F[N-2],F[N-1],u]),N-=1;F.length=N,F.push(u)}}function l(M,g){var b;return M.a[0]<g.a[0]?b=a(M.a,M.b,g.a):b=a(g.b,g.a,M.a),b||(g.b[0]<M.b[0]?b=a(M.a,M.b,g.b):b=a(g.b,g.a,M.b),b||M.idx-g.idx)}function _(M,g,b){var d=o.le(M,b,l),u=M[d],y=u.upperIds,f=y[y.length-1];u.upperIds=[f],M.splice(d+1,0,new h(b.a,b.b,b.idx,[f],y))}function w(M,g,b){var d=b.a;b.a=b.b,b.b=d;var u=o.eq(M,b,l),y=M[u],f=M[u-1];f.upperIds=y.upperIds,M.splice(u,1)}function A(M,g){for(var b=M.length,d=g.length,u=[],y=0;y<b;++y)u.push(new c(M[y],null,n,y));for(var y=0;y<d;++y){var f=g[y],R=M[f[0]],L=M[f[1]];R[0]<L[0]?u.push(new c(R,L,s,y),new c(L,R,i,y)):R[0]>L[0]&&u.push(new c(L,R,s,y),new c(R,L,i,y))}u.sort(m);for(var z=u[0].a[0]-(1+Math.abs(u[0].a[0]))*Math.pow(2,-52),F=[new h([z,1],[z,0],-1,[],[],[],[])],N=[],y=0,O=u.length;y<O;++y){var P=u[y],U=P.type;U===n?T(N,F,M,P.a,P.idx):U===s?_(F,M,P):w(F,M,P)}return N}},8954:function(e,t,r){"use strict";e.exports=l;var o=r(3250),a=r(6803).Fw;function n(_,w,A){this.vertices=_,this.adjacent=w,this.boundary=A,this.lastVisited=-1}n.prototype.flip=function(){var _=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=_;var w=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=w};function i(_,w,A){this.vertices=_,this.cell=w,this.index=A}function s(_,w){return a(_.vertices,w.vertices)}function h(_){return function(){var w=this.tuple;return _.apply(this,w)}}function c(_){var w=o[_+1];return w||(w=o),h(w)}var m=[];function p(_,w,A){this.dimension=_,this.vertices=w,this.simplices=A,this.interior=A.filter(function(b){return!b.boundary}),this.tuple=new Array(_+1);for(var M=0;M<=_;++M)this.tuple[M]=this.vertices[M];var g=m[_];g||(g=m[_]=c(_)),this.orient=g}var T=p.prototype;T.handleBoundaryDegeneracy=function(_,w){var A=this.dimension,M=this.vertices.length-1,g=this.tuple,b=this.vertices,d=[_];for(_.lastVisited=-M;d.length>0;){_=d.pop();for(var u=_.adjacent,y=0;y<=A;++y){var f=u[y];if(!(!f.boundary||f.lastVisited<=-M)){for(var R=f.vertices,L=0;L<=A;++L){var z=R[L];z<0?g[L]=w:g[L]=b[z]}var F=this.orient();if(F>0)return f;f.lastVisited=-M,F===0&&d.push(f)}}}return null},T.walk=function(_,w){var A=this.vertices.length-1,M=this.dimension,g=this.vertices,b=this.tuple,d=w?this.interior.length*Math.random()|0:this.interior.length-1,u=this.interior[d];e:for(;!u.boundary;){for(var y=u.vertices,f=u.adjacent,R=0;R<=M;++R)b[R]=g[y[R]];u.lastVisited=A;for(var R=0;R<=M;++R){var L=f[R];if(!(L.lastVisited>=A)){var z=b[R];b[R]=_;var F=this.orient();if(b[R]=z,F<0){u=L;continue e}else L.boundary?L.lastVisited=-A:L.lastVisited=A}}return}return u},T.addPeaks=function(_,w){var A=this.vertices.length-1,M=this.dimension,g=this.vertices,b=this.tuple,d=this.interior,u=this.simplices,y=[w];w.lastVisited=A,w.vertices[w.vertices.indexOf(-1)]=A,w.boundary=!1,d.push(w);for(var f=[];y.length>0;){var w=y.pop(),R=w.vertices,L=w.adjacent,z=R.indexOf(A);if(!(z<0)){for(var F=0;F<=M;++F)if(F!==z){var N=L[F];if(!(!N.boundary||N.lastVisited>=A)){var O=N.vertices;if(N.lastVisited!==-A){for(var P=0,U=0;U<=M;++U)O[U]<0?(P=U,b[U]=_):b[U]=g[O[U]];var B=this.orient();if(B>0){O[P]=A,N.boundary=!1,d.push(N),y.push(N),N.lastVisited=A;continue}else N.lastVisited=-A}var X=N.adjacent,$=R.slice(),se=L.slice(),le=new n($,se,!0);u.push(le);var fe=X.indexOf(w);if(!(fe<0)){X[fe]=le,se[z]=N,$[F]=-1,se[F]=w,L[F]=le,le.flip();for(var U=0;U<=M;++U){var V=$[U];if(!(V<0||V===A)){for(var Y=new Array(M-1),ee=0,q=0;q<=M;++q){var oe=$[q];oe<0||q===U||(Y[ee++]=oe)}f.push(new i(Y,le,U))}}}}}}}f.sort(s);for(var F=0;F+1<f.length;F+=2){var ae=f[F],j=f[F+1],Q=ae.index,re=j.index;Q<0||re<0||(ae.cell.adjacent[ae.index]=j.cell,j.cell.adjacent[j.index]=ae.cell)}},T.insert=function(_,w){var A=this.vertices;A.push(_);var M=this.walk(_,w);if(M){for(var g=this.dimension,b=this.tuple,d=0;d<=g;++d){var u=M.vertices[d];u<0?b[d]=_:b[d]=A[u]}var y=this.orient(b);y<0||y===0&&(M=this.handleBoundaryDegeneracy(M,_),!M)||this.addPeaks(_,M)}},T.boundary=function(){for(var _=this.dimension,w=[],A=this.simplices,M=A.length,g=0;g<M;++g){var b=A[g];if(b.boundary){for(var d=new Array(_),u=b.vertices,y=0,f=0,R=0;R<=_;++R)u[R]>=0?d[y++]=u[R]:f=R&1;if(f===(_&1)){var L=d[0];d[0]=d[1],d[1]=L}w.push(d)}}return w};function l(_,w){var A=_.length;if(A===0)throw new Error("Must have at least d+1 points");var M=_[0].length;if(A<=M)throw new Error("Must input at least d+1 points");var g=_.slice(0,M+1),b=o.apply(void 0,g);if(b===0)throw new Error("Input not in general position");for(var d=new Array(M+1),u=0;u<=M;++u)d[u]=u;b<0&&(d[0]=1,d[1]=0);for(var y=new n(d,new Array(M+1),!1),f=y.adjacent,R=new Array(M+2),u=0;u<=M;++u){for(var L=d.slice(),z=0;z<=M;++z)z===u&&(L[z]=-1);var F=L[0];L[0]=L[1],L[1]=F;var N=new n(L,new Array(M+1),!0);f[u]=N,R[u]=N}R[M+1]=y;for(var u=0;u<=M;++u)for(var L=f[u].vertices,O=f[u].adjacent,z=0;z<=M;++z){var P=L[z];if(P<0){O[z]=y;continue}for(var U=0;U<=M;++U)f[U].vertices.indexOf(P)<0&&(O[z]=f[U])}for(var B=new p(M,g,R),X=!!w,u=M+1;u<A;++u)B.insert(_[u],X);return B.boundary()}},8987:function(e,t,r){"use strict";var o=r(7842),a=r(6504);e.exports=n;function n(i,s){for(var h=o(s),c=i.length,m=new Array(c),p=0;p<c;++p)m[p]=a(i[p],h);return m}},9060:function(e,t,r){"use strict";var o=r(9405),a=r(2762),n=r(8116),i=r(7766),s=r(6760),h=r(7608),c=r(9618),m=r(6729),p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(b,d,u,y,f,R,L,z,F,N,O){this.gl=b,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=d,this.dirty=!0,this.triShader=u,this.pickShader=y,this.trianglePositions=f,this.triangleVectors=R,this.triangleColors=z,this.triangleUVs=F,this.triangleIds=L,this.triangleVAO=N,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=O,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=p,this._view=p,this._projection=p,this._resolution=[1,1]}var l=T.prototype;l.isOpaque=function(){return this.opacity>=1},l.isTransparent=function(){return this.opacity<1},l.pickSlots=1,l.setPickBase=function(b){this.pickId=b};function _(b){for(var d=m({colormap:b,nshades:256,format:"rgba"}),u=new Uint8Array(256*4),y=0;y<256;++y){for(var f=d[y],R=0;R<3;++R)u[4*y+R]=f[R];u[4*y+3]=f[3]*255}return c(u,[256,256,4],[4,0,1])}function w(b){for(var d=b.length,u=new Array(d),y=0;y<d;++y)u[y]=b[y][2];return u}l.update=function(b){b=b||{};var d=this.gl;this.dirty=!0,"lightPosition"in b&&(this.lightPosition=b.lightPosition),"opacity"in b&&(this.opacity=b.opacity),"ambient"in b&&(this.ambientLight=b.ambient),"diffuse"in b&&(this.diffuseLight=b.diffuse),"specular"in b&&(this.specularLight=b.specular),"roughness"in b&&(this.roughness=b.roughness),"fresnel"in b&&(this.fresnel=b.fresnel),b.tubeScale!==void 0&&(this.tubeScale=b.tubeScale),b.vectorScale!==void 0&&(this.vectorScale=b.vectorScale),b.coneScale!==void 0&&(this.coneScale=b.coneScale),b.coneOffset!==void 0&&(this.coneOffset=b.coneOffset),b.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=d.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=d.LINEAR,this.texture.setPixels(_(b.colormap)),this.texture.generateMipmap());var u=b.cells,y=b.positions,f=b.vectors;if(!(!y||!u||!f)){var R=[],L=[],z=[],F=[],N=[];this.cells=u,this.positions=y,this.vectors=f;var O=b.meshColor||[1,1,1,1],P=b.vertexIntensity,U=1/0,B=-1/0;if(P)if(b.vertexIntensityBounds)U=+b.vertexIntensityBounds[0],B=+b.vertexIntensityBounds[1];else for(var X=0;X<P.length;++X){var $=P[X];U=Math.min(U,$),B=Math.max(B,$)}else for(var X=0;X<y.length;++X){var $=y[X][2];U=Math.min(U,$),B=Math.max(B,$)}P?this.intensity=P:this.intensity=w(y),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var X=0;X<y.length;++X)for(var se=y[X],le=0;le<3;++le)isNaN(se[le])||!isFinite(se[le])||(this.bounds[0][le]=Math.min(this.bounds[0][le],se[le]),this.bounds[1][le]=Math.max(this.bounds[1][le],se[le]));var fe=0;e:for(var X=0;X<u.length;++X){var V=u[X];switch(V.length){case 3:for(var le=0;le<3;++le)for(var Y=V[le],se=y[Y],ee=0;ee<3;++ee)if(isNaN(se[ee])||!isFinite(se[ee]))continue e;for(var le=0;le<3;++le){var Y=V[2-le],se=y[Y];R.push(se[0],se[1],se[2],se[3]);var q=f[Y];L.push(q[0],q[1],q[2],q[3]||0);var oe=O;oe.length===3?z.push(oe[0],oe[1],oe[2],1):z.push(oe[0],oe[1],oe[2],oe[3]);var ae;P?ae=[(P[Y]-U)/(B-U),0]:ae=[(se[2]-U)/(B-U),0],F.push(ae[0],ae[1]),N.push(X)}fe+=1;break;default:break}}this.triangleCount=fe,this.trianglePositions.update(R),this.triangleVectors.update(L),this.triangleColors.update(z),this.triangleUVs.update(F),this.triangleIds.update(new Uint32Array(N))}},l.drawTransparent=l.draw=function(b){b=b||{};for(var d=this.gl,u=b.model||p,y=b.view||p,f=b.projection||p,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],L=0;L<3;++L)R[0][L]=Math.max(R[0][L],this.clipBounds[0][L]),R[1][L]=Math.min(R[1][L],this.clipBounds[1][L]);var z={model:u,view:y,projection:f,inverseModel:p.slice(),clipBounds:R,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};z.inverseModel=h(z.inverseModel,z.model),d.disable(d.CULL_FACE),this.texture.bind(0);var F=new Array(16);s(F,z.view,z.model),s(F,z.projection,F),h(F,F);for(var L=0;L<3;++L)z.eyePosition[L]=F[12+L]/F[15];for(var N=F[15],L=0;L<3;++L)N+=this.lightPosition[L]*F[4*L+3];for(var L=0;L<3;++L){for(var O=F[12+L],P=0;P<3;++P)O+=F[4*P+L]*this.lightPosition[P];z.lightPosition[L]=O/N}if(this.triangleCount>0){var U=this.triShader;U.bind(),U.uniforms=z,this.triangleVAO.bind(),d.drawArrays(d.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},l.drawPick=function(b){b=b||{};for(var d=this.gl,u=b.model||p,y=b.view||p,f=b.projection||p,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],L=0;L<3;++L)R[0][L]=Math.max(R[0][L],this.clipBounds[0][L]),R[1][L]=Math.min(R[1][L],this.clipBounds[1][L]);this._model=[].slice.call(u),this._view=[].slice.call(y),this._projection=[].slice.call(f),this._resolution=[d.drawingBufferWidth,d.drawingBufferHeight];var z={model:u,view:y,projection:f,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=z,this.triangleCount>0&&(this.triangleVAO.bind(),d.drawArrays(d.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},l.pick=function(b){if(!b||b.id!==this.pickId)return null;var d=b.value[0]+256*b.value[1]+65536*b.value[2],u=this.cells[d],y=this.positions[u[1]].slice(0,3),f={position:y,dataCoordinate:y,index:Math.floor(u[1]/48)};return this.traceType==="cone"?f.index=Math.floor(u[1]/48):this.traceType==="streamtube"&&(f.intensity=this.intensity[u[1]],f.velocity=this.vectors[u[1]].slice(0,3),f.divergence=this.vectors[u[1]][3],f.index=d),f},l.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(b,d){var u=o(b,d.meshShader.vertex,d.meshShader.fragment,null,d.meshShader.attributes);return u.attributes.position.location=0,u.attributes.color.location=2,u.attributes.uv.location=3,u.attributes.vector.location=4,u}function M(b,d){var u=o(b,d.pickShader.vertex,d.pickShader.fragment,null,d.pickShader.attributes);return u.attributes.position.location=0,u.attributes.id.location=1,u.attributes.vector.location=4,u}function g(b,d,u){var y=u.shaders;arguments.length===1&&(d=b,b=d.gl);var f=A(b,y),R=M(b,y),L=i(b,c(new Uint8Array([255,255,255,255]),[1,1,4]));L.generateMipmap(),L.minFilter=b.LINEAR_MIPMAP_LINEAR,L.magFilter=b.LINEAR;var z=a(b),F=a(b),N=a(b),O=a(b),P=a(b),U=n(b,[{buffer:z,type:b.FLOAT,size:4},{buffer:P,type:b.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:N,type:b.FLOAT,size:4},{buffer:O,type:b.FLOAT,size:2},{buffer:F,type:b.FLOAT,size:4}]),B=new T(b,L,f,R,z,F,P,N,O,U,u.traceType||"cone");return B.update(d),B}e.exports=g},9127:function(e,t,r){"use strict";e.exports=n;var o=r(6204),a=r(5771);function n(i){return a(o(i))}},9131:function(e,t,r){var o=r(5177),a=r(9288);e.exports=n;function n(i,s){return s=s||1,i[0]=Math.random(),i[1]=Math.random(),i[2]=Math.random(),i[3]=Math.random(),o(i,i),a(i,i,s),i}},9165:function(e,t,r){"use strict";e.exports=T;var o=r(2762),a=r(8116),n=r(3436),i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(l,_,w,A){this.gl=l,this.shader=A,this.buffer=_,this.vao=w,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=s.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(l){var _=this.gl,w=this.shader.uniforms;this.shader.bind();var A=w.view=l.view||i,M=w.projection=l.projection||i;w.model=l.model||i,w.clipBounds=this.clipBounds,w.opacity=this.opacity;var g=A[12],b=A[13],d=A[14],u=A[15],y=l._ortho||!1,f=y?2:1,R=f*this.pixelRatio*(M[3]*g+M[7]*b+M[11]*d+M[15]*u)/_.drawingBufferHeight;this.vao.bind();for(var L=0;L<3;++L)_.lineWidth(this.lineWidth[L]*this.pixelRatio),w.capSize=this.capSize[L]*R,this.lineCount[L]&&_.drawArrays(_.LINES,this.lineOffset[L],this.lineCount[L]);this.vao.unbind()};function c(l,_){for(var w=0;w<3;++w)l[0][w]=Math.min(l[0][w],_[w]),l[1][w]=Math.max(l[1][w],_[w])}var m=function(){for(var l=new Array(3),_=0;_<3;++_){for(var w=[],A=1;A<=2;++A)for(var M=-1;M<=1;M+=2){var g=(A+_)%3,b=[0,0,0];b[g]=M,w.push(b)}l[_]=w}return l}();function p(l,_,w,A){for(var M=m[A],g=0;g<M.length;++g){var b=M[g];l.push(_[0],_[1],_[2],w[0],w[1],w[2],w[3],b[0],b[1],b[2])}return M.length}h.update=function(l){l=l||{},"lineWidth"in l&&(this.lineWidth=l.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in l&&(this.capSize=l.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in l&&(this.opacity=+l.opacity,this.opacity<1&&(this.hasAlpha=!0));var _=l.color||[[0,0,0],[0,0,0],[0,0,0]],w=l.position,A=l.error;if(Array.isArray(_[0])||(_=[_,_,_]),w&&A){var M=[],g=w.length,b=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var d=0;d<3;++d){this.lineOffset[d]=b;e:for(var u=0;u<g;++u){for(var y=w[u],f=0;f<3;++f)if(isNaN(y[f])||!isFinite(y[f]))continue e;var R=A[u],L=_[d];if(Array.isArray(L[0])&&(L=_[u]),L.length===3?L=[L[0],L[1],L[2],1]:L.length===4&&(L=[L[0],L[1],L[2],L[3]],!this.hasAlpha&&L[3]<1&&(this.hasAlpha=!0)),!(isNaN(R[0][d])||isNaN(R[1][d]))){if(R[0][d]<0){var z=y.slice();z[d]+=R[0][d],M.push(y[0],y[1],y[2],L[0],L[1],L[2],L[3],0,0,0,z[0],z[1],z[2],L[0],L[1],L[2],L[3],0,0,0),c(this.bounds,z),b+=2+p(M,z,L,d)}if(R[1][d]>0){var z=y.slice();z[d]+=R[1][d],M.push(y[0],y[1],y[2],L[0],L[1],L[2],L[3],0,0,0,z[0],z[1],z[2],L[0],L[1],L[2],L[3],0,0,0),c(this.bounds,z),b+=2+p(M,z,L,d)}}}this.lineCount[d]=b-this.lineOffset[d]}this.buffer.update(M)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(l){var _=l.gl,w=o(_),A=a(_,[{buffer:w,type:_.FLOAT,size:3,offset:0,stride:40},{buffer:w,type:_.FLOAT,size:4,offset:12,stride:40},{buffer:w,type:_.FLOAT,size:3,offset:28,stride:40}]),M=n(_);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var g=new s(_,w,A,M);return g.update(l),g}},9215:function(e,t,r){"use strict";e.exports=c;var o=r(4769),a=r(2478);function n(m,p,T){return Math.min(p,Math.max(m,T))}function i(m,p,T){this.dimension=m.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var l=0;l<this.dimension;++l)this.bounds[0][l]=-1/0,this.bounds[1][l]=1/0;this._state=m.slice().reverse(),this._velocity=p.slice().reverse(),this._time=[T],this._scratch=[m.slice(),m.slice(),m.slice(),m.slice(),m.slice()]}var s=i.prototype;s.flush=function(m){var p=a.gt(this._time,m)-1;p<=0||(this._time.splice(0,p),this._state.splice(0,p*this.dimension),this._velocity.splice(0,p*this.dimension))},s.curve=function(m){var p=this._time,T=p.length,l=a.le(p,m),_=this._scratch[0],w=this._state,A=this._velocity,M=this.dimension,g=this.bounds;if(l<0)for(var b=M-1,d=0;d<M;++d,--b)_[d]=w[b];else if(l>=T-1)for(var b=w.length-1,u=m-p[T-1],d=0;d<M;++d,--b)_[d]=w[b]+u*A[b];else{for(var b=M*(l+1)-1,y=p[l],f=p[l+1],R=f-y||1,L=this._scratch[1],z=this._scratch[2],F=this._scratch[3],N=this._scratch[4],O=!0,d=0;d<M;++d,--b)L[d]=w[b],F[d]=A[b]*R,z[d]=w[b+M],N[d]=A[b+M]*R,O=O&&L[d]===z[d]&&F[d]===N[d]&&F[d]===0;if(O)for(var d=0;d<M;++d)_[d]=L[d];else o(L,F,z,N,(m-y)/R,_)}for(var P=g[0],U=g[1],d=0;d<M;++d)_[d]=n(P[d],U[d],_[d]);return _},s.dcurve=function(m){var p=this._time,T=p.length,l=a.le(p,m),_=this._scratch[0],w=this._state,A=this._velocity,M=this.dimension;if(l>=T-1)for(var g=w.length-1,b=m-p[T-1],d=0;d<M;++d,--g)_[d]=A[g];else{for(var g=M*(l+1)-1,u=p[l],y=p[l+1],f=y-u||1,R=this._scratch[1],L=this._scratch[2],z=this._scratch[3],F=this._scratch[4],N=!0,d=0;d<M;++d,--g)R[d]=w[g],z[d]=A[g]*f,L[d]=w[g+M],F[d]=A[g+M]*f,N=N&&R[d]===L[d]&&z[d]===F[d]&&z[d]===0;if(N)for(var d=0;d<M;++d)_[d]=0;else{o.derivative(R,z,L,F,(m-u)/f,_);for(var d=0;d<M;++d)_[d]/=f}}return _},s.lastT=function(){var m=this._time;return m[m.length-1]},s.stable=function(){for(var m=this._velocity,p=m.length,T=this.dimension-1;T>=0;--T)if(m[--p])return!1;return!0},s.jump=function(m){var p=this.lastT(),T=this.dimension;if(!(m<p||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=this.bounds,M=A[0],g=A[1];this._time.push(p,m);for(var b=0;b<2;++b)for(var d=0;d<T;++d)l.push(l[w++]),_.push(0);this._time.push(m);for(var d=T;d>0;--d)l.push(n(M[d-1],g[d-1],arguments[d])),_.push(0)}},s.push=function(m){var p=this.lastT(),T=this.dimension;if(!(m<p||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=m-p,M=this.bounds,g=M[0],b=M[1],d=A>1e-6?1/A:0;this._time.push(m);for(var u=T;u>0;--u){var y=n(g[u-1],b[u-1],arguments[u]);l.push(y),_.push((y-l[w++])*d)}}},s.set=function(m){var p=this.dimension;if(!(m<this.lastT()||arguments.length!==p+1)){var T=this._state,l=this._velocity,_=this.bounds,w=_[0],A=_[1];this._time.push(m);for(var M=p;M>0;--M)T.push(n(w[M-1],A[M-1],arguments[M])),l.push(0)}},s.move=function(m){var p=this.lastT(),T=this.dimension;if(!(m<=p||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=this.bounds,M=A[0],g=A[1],b=m-p,d=b>1e-6?1/b:0;this._time.push(m);for(var u=T;u>0;--u){var y=arguments[u];l.push(n(M[u-1],g[u-1],l[w++]+y)),_.push(y*d)}}},s.idle=function(m){var p=this.lastT();if(!(m<p)){var T=this.dimension,l=this._state,_=this._velocity,w=l.length-T,A=this.bounds,M=A[0],g=A[1],b=m-p;this._time.push(m);for(var d=T-1;d>=0;--d)l.push(n(M[d],g[d],l[w]+b*_[w])),_.push(0),w+=1}};function h(m){for(var p=new Array(m),T=0;T<m;++T)p[T]=0;return p}function c(m,p,T){switch(arguments.length){case 0:return new i([0],[0],0);case 1:if(typeof m=="number"){var l=h(m);return new i(l,l,0)}else return new i(m,h(m.length),0);case 2:if(typeof p=="number"){var l=h(m.length);return new i(m,l,+p)}else T=0;case 3:if(m.length!==p.length)throw new Error("state and velocity lengths must match");return new i(m,p,T)}}},9216:function(e){"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,o=/android|ipad|playbook|silk/i;function a(n){n||(n={});var i=n.ua;if(!i&&typeof navigator<"u"&&(i=navigator.userAgent),i&&i.headers&&typeof i.headers["user-agent"]=="string"&&(i=i.headers["user-agent"]),typeof i!="string")return!1;var s=t.test(i)&&!r.test(i)||!!n.tablet&&o.test(i);return!s&&n.tablet&&n.featureDetect&&navigator&&navigator.maxTouchPoints>1&&i.indexOf("Macintosh")!==-1&&i.indexOf("Safari")!==-1&&(s=!0),s}},9226:function(e){e.exports=t;function t(r,o){return r[0]=Math.ceil(o[0]),r[1]=Math.ceil(o[1]),r[2]=Math.ceil(o[2]),r}},9265:function(e){e.exports=t;function t(r,o){return r[0]===o[0]&&r[1]===o[1]&&r[2]===o[2]}},9288:function(e){e.exports=t;function t(r,o,a){return r[0]=o[0]*a,r[1]=o[1]*a,r[2]=o[2]*a,r[3]=o[3]*a,r}},9346:function(e){"use strict";var t=new Float64Array(4),r=new Float64Array(4),o=new Float64Array(4);function a(n,i,s,h,c){t.length<h.length&&(t=new Float64Array(h.length),r=new Float64Array(h.length),o=new Float64Array(h.length));for(var m=0;m<h.length;++m)t[m]=n[m]-h[m],r[m]=i[m]-n[m],o[m]=s[m]-n[m];for(var p=0,T=0,l=0,_=0,w=0,A=0,m=0;m<h.length;++m){var M=r[m],g=o[m],b=t[m];p+=M*M,T+=M*g,l+=g*g,_+=b*M,w+=b*g,A+=b*b}var d=Math.abs(p*l-T*T),u=T*w-l*_,y=T*_-p*w,f;if(u+y<=d)if(u<0)y<0&&_<0?(y=0,-_>=p?(u=1,f=p+2*_+A):(u=-_/p,f=_*u+A)):(u=0,w>=0?(y=0,f=A):-w>=l?(y=1,f=l+2*w+A):(y=-w/l,f=w*y+A));else if(y<0)y=0,_>=0?(u=0,f=A):-_>=p?(u=1,f=p+2*_+A):(u=-_/p,f=_*u+A);else{var R=1/d;u*=R,y*=R,f=u*(p*u+T*y+2*_)+y*(T*u+l*y+2*w)+A}else{var L,z,F,N;u<0?(L=T+_,z=l+w,z>L?(F=z-L,N=p-2*T+l,F>=N?(u=1,y=0,f=p+2*_+A):(u=F/N,y=1-u,f=u*(p*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)):(u=0,z<=0?(y=1,f=l+2*w+A):w>=0?(y=0,f=A):(y=-w/l,f=w*y+A))):y<0?(L=T+w,z=p+_,z>L?(F=z-L,N=p-2*T+l,F>=N?(y=1,u=0,f=l+2*w+A):(y=F/N,u=1-y,f=u*(p*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)):(y=0,z<=0?(u=1,f=p+2*_+A):_>=0?(u=0,f=A):(u=-_/p,f=_*u+A))):(F=l+w-T-_,F<=0?(u=0,y=1,f=l+2*w+A):(N=p-2*T+l,F>=N?(u=1,y=0,f=p+2*_+A):(u=F/N,y=1-u,f=u*(p*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)))}for(var O=1-u-y,m=0;m<h.length;++m)c[m]=O*n[m]+u*i[m]+y*s[m];return f<0?0:f}e.exports=a},9362:function(e){"use strict";e.exports=t;function t(r,o,a){var n=r+o,i=n-r,s=n-i,h=o-i,c=r-s;return a?(a[0]=c+h,a[1]=n,a):[c+h,n]}},9366:function(e,t,r){"use strict";var o=r(4359);e.exports=n;var a={};function n(i,s,h){var c=[s.style,s.weight,s.variant,s.family].join("_"),m=a[c];if(m||(m=a[c]={}),i in m)return m[i];var p={textAlign:"center",textBaseline:"middle",lineHeight:1,font:s.family,fontStyle:s.style,fontWeight:s.weight,fontVariant:s.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};p.triangles=!0;var T=o(i,p);p.triangles=!1;var l=o(i,p),_,w;if(h&&h!==1){for(_=0;_<T.positions.length;++_)for(w=0;w<T.positions[_].length;++w)T.positions[_][w]/=h;for(_=0;_<l.positions.length;++_)for(w=0;w<l.positions[_].length;++w)l.positions[_][w]/=h}var A=[[1/0,1/0],[-1/0,-1/0]],M=l.positions.length;for(_=0;_<M;++_){var g=l.positions[_];for(w=0;w<2;++w)A[0][w]=Math.min(A[0][w],g[w]),A[1][w]=Math.max(A[1][w],g[w])}return m[i]=[T,l,A]}},9405:function(e,t,r){"use strict";var o=r(3327),a=r(8731),n=r(216),i=r(5091),s=r(2145),h=r(8866);function c(l){this.gl=l,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var m=c.prototype;m.bind=function(){this.program||this._relink();var l,_=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),w=this.gl.lastAttribCount;if(_>w)for(l=w;l<_;l++)this.gl.enableVertexAttribArray(l);else if(w>_)for(l=_;l<w;l++)this.gl.disableVertexAttribArray(l);this.gl.lastAttribCount=_,this.gl.useProgram(this.program)},m.dispose=function(){for(var l=this.gl.lastAttribCount,_=0;_<l;_++)this.gl.disableVertexAttribArray(_);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null};function p(l,_){return l.name<_.name?-1:1}m.update=function(l,_,w,A){if(!_||arguments.length===1){var M=l;l=M.vertex,_=M.fragment,w=M.uniforms,A=M.attributes}var g=this,b=g.gl,d=g._vref;g._vref=i.shader(b,b.VERTEX_SHADER,l),d&&d.dispose(),g.vertShader=g._vref.shader;var u=this._fref;if(g._fref=i.shader(b,b.FRAGMENT_SHADER,_),u&&u.dispose(),g.fragShader=g._fref.shader,!w||!A){var y=b.createProgram();if(b.attachShader(y,g.fragShader),b.attachShader(y,g.vertShader),b.linkProgram(y),!b.getProgramParameter(y,b.LINK_STATUS)){var f=b.getProgramInfoLog(y);throw new h(f,"Error linking program:"+f)}w=w||s.uniforms(b,y),A=A||s.attributes(b,y),b.deleteProgram(y)}A=A.slice(),A.sort(p);var R=[],L=[],z=[],F;for(F=0;F<A.length;++F){var N=A[F];if(N.type.indexOf("mat")>=0){for(var O=N.type.charAt(N.type.length-1)|0,P=new Array(O),U=0;U<O;++U)P[U]=z.length,L.push(N.name+"["+U+"]"),typeof N.location=="number"?z.push(N.location+U):Array.isArray(N.location)&&N.location.length===O&&typeof N.location[U]=="number"?z.push(N.location[U]|0):z.push(-1);R.push({name:N.name,type:N.type,locations:P})}else R.push({name:N.name,type:N.type,locations:[z.length]}),L.push(N.name),typeof N.location=="number"?z.push(N.location|0):z.push(-1)}var B=0;for(F=0;F<z.length;++F)if(z[F]<0){for(;z.indexOf(B)>=0;)B+=1;z[F]=B}var X=new Array(w.length);function $(){g.program=i.program(b,g._vref,g._fref,L,z);for(var se=0;se<w.length;++se)X[se]=b.getUniformLocation(g.program,w[se].name)}$(),g._relink=$,g.types={uniforms:n(w),attributes:n(A)},g.attributes=a(b,g,R,z),Object.defineProperty(g,"uniforms",o(b,g,w,X))};function T(l,_,w,A,M){var g=new c(l);return g.update(_,w,A,M),g}e.exports=T},9499:function(e,t,r){"use strict";e.exports=oe;var o=r(8828),a=r(2762),n=r(8116),i=r(7766),s=r(1888),h=r(6729),c=r(5298),m=r(9994),p=r(9618),T=r(3711),l=r(6760),_=r(7608),w=r(2478),A=r(6199),M=r(990),g=M.createShader,b=M.createContourShader,d=M.createPickShader,u=M.createPickContourShader,y=4*10,f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],L=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ae=0;ae<3;++ae){var j=L[ae],Q=(ae+1)%3,re=(ae+2)%3;j[Q+0]=1,j[re+3]=1,j[ae+6]=1}})();function z(ae,j,Q,re,ce){this.position=ae,this.index=j,this.uv=Q,this.level=re,this.dataCoordinate=ce}var F=256;function N(ae,j,Q,re,ce,be,Ae,De,ze,Ze,at,nt,rt,st,Me){this.gl=ae,this.shape=j,this.bounds=Q,this.objectOffset=Me,this.intensityBounds=[],this._shader=re,this._pickShader=ce,this._coordinateBuffer=be,this._vao=Ae,this._colorMap=De,this._contourShader=ze,this._contourPickShader=Ze,this._contourBuffer=at,this._contourVAO=nt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new z([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=rt,this._dynamicVAO=st,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[p(s.mallocFloat(1024),[0,0]),p(s.mallocFloat(1024),[0,0]),p(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var O=N.prototype;O.genColormap=function(ae,j){var Q=!1,re=m([h({colormap:ae,nshades:F,format:"rgba"}).map(function(ce,be){var Ae=j?P(be/255,j):ce[3];return Ae<1&&(Q=!0),[ce[0],ce[1],ce[2],255*Ae]})]);return c.divseq(re,255),this.hasAlphaScale=Q,re},O.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},O.isOpaque=function(){return!this.isTransparent()},O.pickSlots=1,O.setPickBase=function(ae){this.pickId=ae};function P(ae,j){if(!j||!j.length)return 1;for(var Q=0;Q<j.length;++Q){if(j.length<2)return 1;if(j[Q][0]===ae)return j[Q][1];if(j[Q][0]>ae&&Q>0){var re=(j[Q][0]-ae)/(j[Q][0]-j[Q-1][0]);return j[Q][1]*(1-re)+re*j[Q-1][1]}}return 1}var U=[0,0,0],B={showSurface:!1,showContour:!1,projections:[f.slice(),f.slice(),f.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function X(ae,j){var Q,re,ce,be=j.axes&&j.axes.lastCubeProps.axis||U,Ae=j.showSurface,De=j.showContour;for(Q=0;Q<3;++Q)for(Ae=Ae||j.surfaceProject[Q],re=0;re<3;++re)De=De||j.contourProject[Q][re];for(Q=0;Q<3;++Q){var ze=B.projections[Q];for(re=0;re<16;++re)ze[re]=0;for(re=0;re<4;++re)ze[5*re]=1;ze[5*Q]=0,ze[12+Q]=j.axesBounds[+(be[Q]>0)][Q],l(ze,ae.model,ze);var Ze=B.clipBounds[Q];for(ce=0;ce<2;++ce)for(re=0;re<3;++re)Ze[ce][re]=ae.clipBounds[ce][re];Ze[0][Q]=-1e8,Ze[1][Q]=1e8}return B.showSurface=Ae,B.showContour=De,B}var $={model:f,view:f,projection:f,inverseModel:f.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},se=f.slice(),le=[1,0,0,0,1,0,0,0,1];function fe(ae,j){ae=ae||{};var Q=this.gl;Q.disable(Q.CULL_FACE),this._colorMap.bind(0);var re=$;re.model=ae.model||f,re.view=ae.view||f,re.projection=ae.projection||f,re.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],re.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],re.objectOffset=this.objectOffset,re.contourColor=this.contourColor[0],re.inverseModel=_(re.inverseModel,re.model);for(var ce=0;ce<2;++ce)for(var be=re.clipBounds[ce],Ae=0;Ae<3;++Ae)be[Ae]=Math.min(Math.max(this.clipBounds[ce][Ae],-1e8),1e8);re.kambient=this.ambientLight,re.kdiffuse=this.diffuseLight,re.kspecular=this.specularLight,re.roughness=this.roughness,re.fresnel=this.fresnel,re.opacity=this.opacity,re.height=0,re.permutation=le,re.vertexColor=this.vertexColor;var De=se;for(l(De,re.view,re.model),l(De,re.projection,De),_(De,De),ce=0;ce<3;++ce)re.eyePosition[ce]=De[12+ce]/De[15];var ze=De[15];for(ce=0;ce<3;++ce)ze+=this.lightPosition[ce]*De[4*ce+3];for(ce=0;ce<3;++ce){var Ze=De[12+ce];for(Ae=0;Ae<3;++Ae)Ze+=De[4*Ae+ce]*this.lightPosition[Ae];re.lightPosition[ce]=Ze/ze}var at=X(re,this);if(at.showSurface){for(this._shader.bind(),this._shader.uniforms=re,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Q.TRIANGLES,this._vertexCount),ce=0;ce<3;++ce)!this.surfaceProject[ce]||!this.vertexCount||(this._shader.uniforms.model=at.projections[ce],this._shader.uniforms.clipBounds=at.clipBounds[ce],this._vao.draw(Q.TRIANGLES,this._vertexCount));this._vao.unbind()}if(at.showContour){var nt=this._contourShader;re.kambient=1,re.kdiffuse=0,re.kspecular=0,re.opacity=1,nt.bind(),nt.uniforms=re;var rt=this._contourVAO;for(rt.bind(),ce=0;ce<3;++ce)for(nt.uniforms.permutation=L[ce],Q.lineWidth(this.contourWidth[ce]*this.pixelRatio),Ae=0;Ae<this.contourLevels[ce].length;++Ae)Ae===this.highlightLevel[ce]?(nt.uniforms.contourColor=this.highlightColor[ce],nt.uniforms.contourTint=this.highlightTint[ce]):(Ae===0||Ae-1===this.highlightLevel[ce])&&(nt.uniforms.contourColor=this.contourColor[ce],nt.uniforms.contourTint=this.contourTint[ce]),this._contourCounts[ce][Ae]&&(nt.uniforms.height=this.contourLevels[ce][Ae],rt.draw(Q.LINES,this._contourCounts[ce][Ae],this._contourOffsets[ce][Ae]));for(ce=0;ce<3;++ce)for(nt.uniforms.model=at.projections[ce],nt.uniforms.clipBounds=at.clipBounds[ce],Ae=0;Ae<3;++Ae)if(this.contourProject[ce][Ae]){nt.uniforms.permutation=L[Ae],Q.lineWidth(this.contourWidth[Ae]*this.pixelRatio);for(var st=0;st<this.contourLevels[Ae].length;++st)st===this.highlightLevel[Ae]?(nt.uniforms.contourColor=this.highlightColor[Ae],nt.uniforms.contourTint=this.highlightTint[Ae]):(st===0||st-1===this.highlightLevel[Ae])&&(nt.uniforms.contourColor=this.contourColor[Ae],nt.uniforms.contourTint=this.contourTint[Ae]),this._contourCounts[Ae][st]&&(nt.uniforms.height=this.contourLevels[Ae][st],rt.draw(Q.LINES,this._contourCounts[Ae][st],this._contourOffsets[Ae][st]))}for(rt.unbind(),rt=this._dynamicVAO,rt.bind(),ce=0;ce<3;++ce)if(this._dynamicCounts[ce]!==0)for(nt.uniforms.model=re.model,nt.uniforms.clipBounds=re.clipBounds,nt.uniforms.permutation=L[ce],Q.lineWidth(this.dynamicWidth[ce]*this.pixelRatio),nt.uniforms.contourColor=this.dynamicColor[ce],nt.uniforms.contourTint=this.dynamicTint[ce],nt.uniforms.height=this.dynamicLevel[ce],rt.draw(Q.LINES,this._dynamicCounts[ce],this._dynamicOffsets[ce]),Ae=0;Ae<3;++Ae)this.contourProject[Ae][ce]&&(nt.uniforms.model=at.projections[Ae],nt.uniforms.clipBounds=at.clipBounds[Ae],rt.draw(Q.LINES,this._dynamicCounts[ce],this._dynamicOffsets[ce]));rt.unbind()}}O.draw=function(ae){return fe.call(this,ae,!1)},O.drawTransparent=function(ae){return fe.call(this,ae,!0)};var V={model:f,view:f,projection:f,inverseModel:f,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};O.drawPick=function(ae){ae=ae||{};var j=this.gl;j.disable(j.CULL_FACE);var Q=V;Q.model=ae.model||f,Q.view=ae.view||f,Q.projection=ae.projection||f,Q.shape=this._field[2].shape,Q.pickId=this.pickId/255,Q.lowerBound=this.bounds[0],Q.upperBound=this.bounds[1],Q.objectOffset=this.objectOffset,Q.permutation=le;for(var re=0;re<2;++re)for(var ce=Q.clipBounds[re],be=0;be<3;++be)ce[be]=Math.min(Math.max(this.clipBounds[re][be],-1e8),1e8);var Ae=X(Q,this);if(Ae.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=Q,this._vao.bind(),this._vao.draw(j.TRIANGLES,this._vertexCount),re=0;re<3;++re)this.surfaceProject[re]&&(this._pickShader.uniforms.model=Ae.projections[re],this._pickShader.uniforms.clipBounds=Ae.clipBounds[re],this._vao.draw(j.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ae.showContour){var De=this._contourPickShader;De.bind(),De.uniforms=Q;var ze=this._contourVAO;for(ze.bind(),be=0;be<3;++be)for(j.lineWidth(this.contourWidth[be]*this.pixelRatio),De.uniforms.permutation=L[be],re=0;re<this.contourLevels[be].length;++re)this._contourCounts[be][re]&&(De.uniforms.height=this.contourLevels[be][re],ze.draw(j.LINES,this._contourCounts[be][re],this._contourOffsets[be][re]));for(re=0;re<3;++re)for(De.uniforms.model=Ae.projections[re],De.uniforms.clipBounds=Ae.clipBounds[re],be=0;be<3;++be)if(this.contourProject[re][be]){De.uniforms.permutation=L[be],j.lineWidth(this.contourWidth[be]*this.pixelRatio);for(var Ze=0;Ze<this.contourLevels[be].length;++Ze)this._contourCounts[be][Ze]&&(De.uniforms.height=this.contourLevels[be][Ze],ze.draw(j.LINES,this._contourCounts[be][Ze],this._contourOffsets[be][Ze]))}ze.unbind()}},O.pick=function(ae){if(!ae||ae.id!==this.pickId)return null;var j=this._field[2].shape,Q=this._pickResult,re=j[0]*(ae.value[0]+(ae.value[2]>>4)/16)/255,ce=Math.floor(re),be=re-ce,Ae=j[1]*(ae.value[1]+(ae.value[2]&15)/16)/255,De=Math.floor(Ae),ze=Ae-De;ce+=1,De+=1;var Ze=Q.position;Ze[0]=Ze[1]=Ze[2]=0;for(var at=0;at<2;++at)for(var nt=at?be:1-be,rt=0;rt<2;++rt)for(var st=rt?ze:1-ze,Me=ce+at,ye=De+rt,he=nt*st,Oe=0;Oe<3;++Oe)Ze[Oe]+=this._field[Oe].get(Me,ye)*he;for(var tt=this._pickResult.level,ot=0;ot<3;++ot)if(tt[ot]=w.le(this.contourLevels[ot],Ze[ot]),tt[ot]<0)this.contourLevels[ot].length>0&&(tt[ot]=0);else if(tt[ot]<this.contourLevels[ot].length-1){var Qe=this.contourLevels[ot][tt[ot]],Pt=this.contourLevels[ot][tt[ot]+1];Math.abs(Qe-Ze[ot])>Math.abs(Pt-Ze[ot])&&(tt[ot]+=1)}for(Q.index[0]=be<.5?ce:ce+1,Q.index[1]=ze<.5?De:De+1,Q.uv[0]=re/j[0],Q.uv[1]=Ae/j[1],Oe=0;Oe<3;++Oe)Q.dataCoordinate[Oe]=this._field[Oe].get(Q.index[0],Q.index[1]);return Q},O.padField=function(ae,j){var Q=j.shape.slice(),re=ae.shape.slice();c.assign(ae.lo(1,1).hi(Q[0],Q[1]),j),c.assign(ae.lo(1).hi(Q[0],1),j.hi(Q[0],1)),c.assign(ae.lo(1,re[1]-1).hi(Q[0],1),j.lo(0,Q[1]-1).hi(Q[0],1)),c.assign(ae.lo(0,1).hi(1,Q[1]),j.hi(1)),c.assign(ae.lo(re[0]-1,1).hi(1,Q[1]),j.lo(Q[0]-1)),ae.set(0,0,j.get(0,0)),ae.set(0,re[1]-1,j.get(0,Q[1]-1)),ae.set(re[0]-1,0,j.get(Q[0]-1,0)),ae.set(re[0]-1,re[1]-1,j.get(Q[0]-1,Q[1]-1))};function Y(ae,j){return Array.isArray(ae)?[j(ae[0]),j(ae[1]),j(ae[2])]:[j(ae),j(ae),j(ae)]}function ee(ae){return Array.isArray(ae)?ae.length===3?[ae[0],ae[1],ae[2],1]:[ae[0],ae[1],ae[2],ae[3]]:[0,0,0,1]}function q(ae){if(Array.isArray(ae)){if(Array.isArray(ae))return[ee(ae[0]),ee(ae[1]),ee(ae[2])];var j=ee(ae);return[j.slice(),j.slice(),j.slice()]}}O.update=function(ae){ae=ae||{},this.objectOffset=ae.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ae&&(this.contourWidth=Y(ae.contourWidth,Number)),"showContour"in ae&&(this.showContour=Y(ae.showContour,Boolean)),"showSurface"in ae&&(this.showSurface=!!ae.showSurface),"contourTint"in ae&&(this.contourTint=Y(ae.contourTint,Boolean)),"contourColor"in ae&&(this.contourColor=q(ae.contourColor)),"contourProject"in ae&&(this.contourProject=Y(ae.contourProject,function(pi){return Y(pi,Boolean)})),"surfaceProject"in ae&&(this.surfaceProject=ae.surfaceProject),"dynamicColor"in ae&&(this.dynamicColor=q(ae.dynamicColor)),"dynamicTint"in ae&&(this.dynamicTint=Y(ae.dynamicTint,Number)),"dynamicWidth"in ae&&(this.dynamicWidth=Y(ae.dynamicWidth,Number)),"opacity"in ae&&(this.opacity=ae.opacity),"opacityscale"in ae&&(this.opacityscale=ae.opacityscale),"colorBounds"in ae&&(this.colorBounds=ae.colorBounds),"vertexColor"in ae&&(this.vertexColor=ae.vertexColor?1:0),"colormap"in ae&&this._colorMap.setPixels(this.genColormap(ae.colormap,this.opacityscale));var j=ae.field||ae.coords&&ae.coords[2]||null,Q=!1;if(j||(this._field[2].shape[0]||this._field[2].shape[2]?j=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):j=this._field[2].hi(0,0)),"field"in ae||"coords"in ae){var re=(j.shape[0]+2)*(j.shape[1]+2);re>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(o.nextPow2(re))),this._field[2]=p(this._field[2].data,[j.shape[0]+2,j.shape[1]+2]),this.padField(this._field[2],j),this.shape=j.shape.slice();for(var ce=this.shape,be=0;be<2;++be)this._field[2].size>this._field[be].data.length&&(s.freeFloat(this._field[be].data),this._field[be].data=s.mallocFloat(this._field[2].size)),this._field[be]=p(this._field[be].data,[ce[0]+2,ce[1]+2]);if(ae.coords){var Ae=ae.coords;if(!Array.isArray(Ae)||Ae.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(be=0;be<2;++be){var De=Ae[be];for(rt=0;rt<2;++rt)if(De.shape[rt]!==ce[rt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[be],De)}}else if(ae.ticks){var ze=ae.ticks;if(!Array.isArray(ze)||ze.length!==2)throw new Error("gl-surface: invalid ticks");for(be=0;be<2;++be){var Ze=ze[be];if((Array.isArray(Ze)||Ze.length)&&(Ze=p(Ze)),Ze.shape[0]!==ce[be])throw new Error("gl-surface: invalid tick length");var at=p(Ze.data,ce);at.stride[be]=Ze.stride[0],at.stride[be^1]=0,this.padField(this._field[be],at)}}else{for(be=0;be<2;++be){var nt=[0,0];nt[be]=1,this._field[be]=p(this._field[be].data,[ce[0]+2,ce[1]+2],nt,0)}this._field[0].set(0,0,0);for(var rt=0;rt<ce[0];++rt)this._field[0].set(rt+1,0,rt);for(this._field[0].set(ce[0]+1,0,ce[0]-1),this._field[1].set(0,0,0),rt=0;rt<ce[1];++rt)this._field[1].set(0,rt+1,rt);this._field[1].set(0,ce[1]+1,ce[1]-1)}var st=this._field,Me=p(s.mallocFloat(st[2].size*3*2),[3,ce[0]+2,ce[1]+2,2]);for(be=0;be<3;++be)A(Me.pick(be),st[be],"mirror");var ye=p(s.mallocFloat(st[2].size*3),[ce[0]+2,ce[1]+2,3]);for(be=0;be<ce[0]+2;++be)for(rt=0;rt<ce[1]+2;++rt){var he=Me.get(0,be,rt,0),Oe=Me.get(0,be,rt,1),tt=Me.get(1,be,rt,0),ot=Me.get(1,be,rt,1),Qe=Me.get(2,be,rt,0),Pt=Me.get(2,be,rt,1),It=tt*Pt-ot*Qe,qt=Qe*Oe-Pt*he,Wt=he*ot-Oe*tt,kr=Math.sqrt(It*It+qt*qt+Wt*Wt);kr<1e-8?(kr=Math.max(Math.abs(It),Math.abs(qt),Math.abs(Wt)),kr<1e-8?(Wt=1,qt=It=0,kr=1):kr=1/kr):kr=1/Math.sqrt(kr),ye.set(be,rt,0,It*kr),ye.set(be,rt,1,qt*kr),ye.set(be,rt,2,Wt*kr)}s.free(Me.data);var mr=[1/0,1/0,1/0],qr=[-1/0,-1/0,-1/0],Sr=1/0,Rr=-1/0,wt=(ce[0]-1)*(ce[1]-1)*6,Ne=s.mallocFloat(o.nextPow2(10*wt)),Ke=0,Te=0;for(be=0;be<ce[0]-1;++be)e:for(rt=0;rt<ce[1]-1;++rt){for(var Ie=0;Ie<2;++Ie)for(var Ve=0;Ve<2;++Ve)for(var Ce=0;Ce<3;++Ce){var Ee=this._field[Ce].get(1+be+Ie,1+rt+Ve);if(isNaN(Ee)||!isFinite(Ee))continue e}for(Ce=0;Ce<6;++Ce){var Pe=be+R[Ce][0],ft=rt+R[Ce][1],ct=this._field[0].get(Pe+1,ft+1),_t=this._field[1].get(Pe+1,ft+1);Ee=this._field[2].get(Pe+1,ft+1),It=ye.get(Pe+1,ft+1,0),qt=ye.get(Pe+1,ft+1,1),Wt=ye.get(Pe+1,ft+1,2),ae.intensity&&(Ct=ae.intensity.get(Pe,ft));var Ct=ae.intensity?ae.intensity.get(Pe,ft):Ee+this.objectOffset[2];Ne[Ke++]=Pe,Ne[Ke++]=ft,Ne[Ke++]=ct,Ne[Ke++]=_t,Ne[Ke++]=Ee,Ne[Ke++]=0,Ne[Ke++]=Ct,Ne[Ke++]=It,Ne[Ke++]=qt,Ne[Ke++]=Wt,mr[0]=Math.min(mr[0],ct+this.objectOffset[0]),mr[1]=Math.min(mr[1],_t+this.objectOffset[1]),mr[2]=Math.min(mr[2],Ee+this.objectOffset[2]),Sr=Math.min(Sr,Ct),qr[0]=Math.max(qr[0],ct+this.objectOffset[0]),qr[1]=Math.max(qr[1],_t+this.objectOffset[1]),qr[2]=Math.max(qr[2],Ee+this.objectOffset[2]),Rr=Math.max(Rr,Ct),Te+=1}}for(ae.intensityBounds&&(Sr=+ae.intensityBounds[0],Rr=+ae.intensityBounds[1]),be=6;be<Ke;be+=10)Ne[be]=(Ne[be]-Sr)/(Rr-Sr);this._vertexCount=Te,this._coordinateBuffer.update(Ne.subarray(0,Ke)),s.freeFloat(Ne),s.free(ye.data),this.bounds=[mr,qr],this.intensity=ae.intensity||this._field[2],(this.intensityBounds[0]!==Sr||this.intensityBounds[1]!==Rr)&&(Q=!0),this.intensityBounds=[Sr,Rr]}if("levels"in ae){var ir=ae.levels;for(Array.isArray(ir[0])?ir=ir.slice():ir=[[],[],ir],be=0;be<3;++be)ir[be]=ir[be].slice(),ir[be].sort(function(pi,Ra){return pi-Ra});for(be=0;be<3;++be)for(rt=0;rt<ir[be].length;++rt)ir[be][rt]-=this.objectOffset[be];e:for(be=0;be<3;++be){if(ir[be].length!==this.contourLevels[be].length){Q=!0;break}for(rt=0;rt<ir[be].length;++rt)if(ir[be][rt]!==this.contourLevels[be][rt]){Q=!0;break e}}this.contourLevels=ir}if(Q){st=this._field,ce=this.shape;for(var rr=[],er=0;er<3;++er){var Lr=this.contourLevels[er],fa=[],Da=[],Ia=[0,0,0];for(be=0;be<Lr.length;++be){var qa=T(this._field[er],Lr[be]);fa.push(rr.length/5|0),Te=0;e:for(rt=0;rt<qa.cells.length;++rt){var Wa=qa.cells[rt];for(Ce=0;Ce<2;++Ce){var Ca=qa.positions[Wa[Ce]],hi=Ca[0],wi=Math.floor(hi)|0,Kt=hi-wi,Ft=Ca[1],Yt=Math.floor(Ft)|0,Jt=Ft-Yt,Fr=!1;t:for(var ta=0;ta<3;++ta){Ia[ta]=0;var ra=(er+ta+1)%3;for(Ie=0;Ie<2;++Ie){var ca=Ie?Kt:1-Kt;for(Pe=Math.min(Math.max(wi+Ie,0),ce[0])|0,Ve=0;Ve<2;++Ve){var Ba=Ve?Jt:1-Jt;if(ft=Math.min(Math.max(Yt+Ve,0),ce[1])|0,ta<2?Ee=this._field[ra].get(Pe,ft):Ee=(this.intensity.get(Pe,ft)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Ee)||isNaN(Ee)){Fr=!0;break t}var $a=ca*Ba;Ia[ta]+=$a*Ee}}}if(!Fr)rr.push(Ia[0],Ia[1],Ca[0],Ca[1],Ia[2]),Te+=1;else{if(Ce>0){for(var Za=0;Za<5;++Za)rr.pop();Te-=1}continue e}}}Da.push(Te)}this._contourOffsets[er]=fa,this._contourCounts[er]=Da}var ri=s.mallocFloat(rr.length);for(be=0;be<rr.length;++be)ri[be]=rr[be];this._contourBuffer.update(ri),s.freeFloat(ri)}},O.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var ae=0;ae<3;++ae)s.freeFloat(this._field[ae].data)},O.highlight=function(ae){var j;if(!ae){this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],this.highlightLevel=[-1,-1,-1];return}for(j=0;j<3;++j)this.enableHighlight[j]?this.highlightLevel[j]=ae.level[j]:this.highlightLevel[j]=-1;var Q;for(this.snapToData?Q=ae.dataCoordinate:Q=ae.position,j=0;j<3;++j)Q[j]-=this.objectOffset[j];if(!((!this.enableDynamic[0]||Q[0]===this.dynamicLevel[0])&&(!this.enableDynamic[1]||Q[1]===this.dynamicLevel[1])&&(!this.enableDynamic[2]||Q[2]===this.dynamicLevel[2]))){for(var re=0,ce=this.shape,be=s.mallocFloat(12*ce[0]*ce[1]),Ae=0;Ae<3;++Ae){if(!this.enableDynamic[Ae]){this.dynamicLevel[Ae]=NaN,this._dynamicCounts[Ae]=0;continue}this.dynamicLevel[Ae]=Q[Ae];var De=(Ae+1)%3,ze=(Ae+2)%3,Ze=this._field[Ae],at=this._field[De],nt=this._field[ze],rt=T(Ze,Q[Ae]),st=rt.cells,Me=rt.positions;for(this._dynamicOffsets[Ae]=re,j=0;j<st.length;++j)for(var ye=st[j],he=0;he<2;++he){var Oe=Me[ye[he]],tt=+Oe[0],ot=tt|0,Qe=Math.min(ot+1,ce[0])|0,Pt=tt-ot,It=1-Pt,qt=+Oe[1],Wt=qt|0,kr=Math.min(Wt+1,ce[1])|0,mr=qt-Wt,qr=1-mr,Sr=It*qr,Rr=It*mr,wt=Pt*qr,Ne=Pt*mr,Ke=Sr*at.get(ot,Wt)+Rr*at.get(ot,kr)+wt*at.get(Qe,Wt)+Ne*at.get(Qe,kr),Te=Sr*nt.get(ot,Wt)+Rr*nt.get(ot,kr)+wt*nt.get(Qe,Wt)+Ne*nt.get(Qe,kr);if(isNaN(Ke)||isNaN(Te)){he&&(re-=1);break}be[2*re+0]=Ke,be[2*re+1]=Te,re+=1}this._dynamicCounts[Ae]=re-this._dynamicOffsets[Ae]}this._dynamicBuffer.update(be.subarray(0,2*re)),s.freeFloat(be)}};function oe(ae){var j=ae.gl,Q=g(j),re=d(j),ce=b(j),be=u(j),Ae=a(j),De=n(j,[{buffer:Ae,size:4,stride:y,offset:0},{buffer:Ae,size:3,stride:y,offset:16},{buffer:Ae,size:3,stride:y,offset:28}]),ze=a(j),Ze=n(j,[{buffer:ze,size:4,stride:20,offset:0},{buffer:ze,size:1,stride:20,offset:16}]),at=a(j),nt=n(j,[{buffer:at,size:2,type:j.FLOAT}]),rt=i(j,1,F,j.RGBA,j.UNSIGNED_BYTE);rt.minFilter=j.LINEAR,rt.magFilter=j.LINEAR;var st=new N(j,[0,0],[[0,0,0],[0,0,0]],Q,re,Ae,De,rt,ce,be,ze,Ze,at,nt,[0,0,0]),Me={levels:[[],[],[]]};for(var ye in ae)Me[ye]=ae[ye];return Me.colormap=Me.colormap||"jet",st.update(Me),st}},9507:function(e){e.exports=!0},9618:function(e,t,r){var o=r(7163),a=typeof Float64Array<"u";function n(T,l){return T[0]-l[0]}function i(){var T=this.stride,l=new Array(T.length),_;for(_=0;_<l.length;++_)l[_]=[Math.abs(T[_]),_];l.sort(n);var w=new Array(l.length);for(_=0;_<w.length;++_)w[_]=l[_][1];return w}var s={T:function(T){function l(w){this.data=w}var _=l.prototype;return _.dtype=T,_.index=function(){return-1},_.size=0,_.dimension=-1,_.shape=_.stride=_.order=[],_.lo=_.hi=_.transpose=_.step=function(){return new l(this.data)},_.get=_.set=function(){},_.pick=function(){return null},function(A){return new l(A)}},0:function(T,l){function _(A,M){this.data=A,this.offset=M}var w=_.prototype;return w.dtype=T,w.index=function(){return this.offset},w.dimension=0,w.size=1,w.shape=w.stride=w.order=[],w.lo=w.hi=w.transpose=w.step=function(){return new _(this.data,this.offset)},w.pick=function(){return l(this.data)},w.valueOf=w.get=function(){return T==="generic"?this.data.get(this.offset):this.data[this.offset]},w.set=function(M){return T==="generic"?this.data.set(this.offset,M):this.data[this.offset]=M},function(M,g,b,d){return new _(M,d)}},1:function(T,l,_){function w(M,g,b,d){this.data=M,this.shape=[g],this.stride=[b],this.offset=d|0}var A=w.prototype;return A.dtype=T,A.dimension=1,Object.defineProperty(A,"size",{get:function(){return this.shape[0]}}),A.order=[0],A.set=function(g,b){return T==="generic"?this.data.set(this.offset+this.stride[0]*g,b):this.data[this.offset+this.stride[0]*g]=b},A.get=function(g){return T==="generic"?this.data.get(this.offset+this.stride[0]*g):this.data[this.offset+this.stride[0]*g]},A.index=function(g){return this.offset+this.stride[0]*g},A.hi=function(g){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,this.stride[0],this.offset)},A.lo=function(g){var b=this.offset,d=0,u=this.shape[0],y=this.stride[0];return typeof g=="number"&&g>=0&&(d=g|0,b+=y*d,u-=d),new w(this.data,u,y,b)},A.step=function(g){var b=this.shape[0],d=this.stride[0],u=this.offset,y=0,f=Math.ceil;return typeof g=="number"&&(y=g|0,y<0?(u+=d*(b-1),b=f(-b/y)):b=f(b/y),d*=y),new w(this.data,b,d,u)},A.transpose=function(g){g=g===void 0?0:g|0;var b=this.shape,d=this.stride;return new w(this.data,b[g],d[g],this.offset)},A.pick=function(g){var b=[],d=[],u=this.offset;typeof g=="number"&&g>=0?u=u+this.stride[0]*g|0:(b.push(this.shape[0]),d.push(this.stride[0]));var y=l[b.length+1];return y(this.data,b,d,u)},function(g,b,d,u){return new w(g,b[0],d[0],u)}},2:function(T,l,_){function w(M,g,b,d,u,y){this.data=M,this.shape=[g,b],this.stride=[d,u],this.offset=y|0}var A=w.prototype;return A.dtype=T,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(g,b,d){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b,d):this.data[this.offset+this.stride[0]*g+this.stride[1]*b]=d},A.get=function(g,b){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b):this.data[this.offset+this.stride[0]*g+this.stride[1]*b]},A.index=function(g,b){return this.offset+this.stride[0]*g+this.stride[1]*b},A.hi=function(g,b){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(g,b){var d=this.offset,u=0,y=this.shape[0],f=this.shape[1],R=this.stride[0],L=this.stride[1];return typeof g=="number"&&g>=0&&(u=g|0,d+=R*u,y-=u),typeof b=="number"&&b>=0&&(u=b|0,d+=L*u,f-=u),new w(this.data,y,f,R,L,d)},A.step=function(g,b){var d=this.shape[0],u=this.shape[1],y=this.stride[0],f=this.stride[1],R=this.offset,L=0,z=Math.ceil;return typeof g=="number"&&(L=g|0,L<0?(R+=y*(d-1),d=z(-d/L)):d=z(d/L),y*=L),typeof b=="number"&&(L=b|0,L<0?(R+=f*(u-1),u=z(-u/L)):u=z(u/L),f*=L),new w(this.data,d,u,y,f,R)},A.transpose=function(g,b){g=g===void 0?0:g|0,b=b===void 0?1:b|0;var d=this.shape,u=this.stride;return new w(this.data,d[g],d[b],u[g],u[b],this.offset)},A.pick=function(g,b){var d=[],u=[],y=this.offset;typeof g=="number"&&g>=0?y=y+this.stride[0]*g|0:(d.push(this.shape[0]),u.push(this.stride[0])),typeof b=="number"&&b>=0?y=y+this.stride[1]*b|0:(d.push(this.shape[1]),u.push(this.stride[1]));var f=l[d.length+1];return f(this.data,d,u,y)},function(g,b,d,u){return new w(g,b[0],b[1],d[0],d[1],u)}},3:function(T,l,_){function w(M,g,b,d,u,y,f,R){this.data=M,this.shape=[g,b,d],this.stride=[u,y,f],this.offset=R|0}var A=w.prototype;return A.dtype=T,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var g=Math.abs(this.stride[0]),b=Math.abs(this.stride[1]),d=Math.abs(this.stride[2]);return g>b?b>d?[2,1,0]:g>d?[1,2,0]:[1,0,2]:g>d?[2,0,1]:d>b?[0,1,2]:[0,2,1]}}),A.set=function(g,b,d,u){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d,u):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d]=u},A.get=function(g,b,d){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d]},A.index=function(g,b,d){return this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d},A.hi=function(g,b,d){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof d!="number"||d<0?this.shape[2]:d|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(g,b,d){var u=this.offset,y=0,f=this.shape[0],R=this.shape[1],L=this.shape[2],z=this.stride[0],F=this.stride[1],N=this.stride[2];return typeof g=="number"&&g>=0&&(y=g|0,u+=z*y,f-=y),typeof b=="number"&&b>=0&&(y=b|0,u+=F*y,R-=y),typeof d=="number"&&d>=0&&(y=d|0,u+=N*y,L-=y),new w(this.data,f,R,L,z,F,N,u)},A.step=function(g,b,d){var u=this.shape[0],y=this.shape[1],f=this.shape[2],R=this.stride[0],L=this.stride[1],z=this.stride[2],F=this.offset,N=0,O=Math.ceil;return typeof g=="number"&&(N=g|0,N<0?(F+=R*(u-1),u=O(-u/N)):u=O(u/N),R*=N),typeof b=="number"&&(N=b|0,N<0?(F+=L*(y-1),y=O(-y/N)):y=O(y/N),L*=N),typeof d=="number"&&(N=d|0,N<0?(F+=z*(f-1),f=O(-f/N)):f=O(f/N),z*=N),new w(this.data,u,y,f,R,L,z,F)},A.transpose=function(g,b,d){g=g===void 0?0:g|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0;var u=this.shape,y=this.stride;return new w(this.data,u[g],u[b],u[d],y[g],y[b],y[d],this.offset)},A.pick=function(g,b,d){var u=[],y=[],f=this.offset;typeof g=="number"&&g>=0?f=f+this.stride[0]*g|0:(u.push(this.shape[0]),y.push(this.stride[0])),typeof b=="number"&&b>=0?f=f+this.stride[1]*b|0:(u.push(this.shape[1]),y.push(this.stride[1])),typeof d=="number"&&d>=0?f=f+this.stride[2]*d|0:(u.push(this.shape[2]),y.push(this.stride[2]));var R=l[u.length+1];return R(this.data,u,y,f)},function(g,b,d,u){return new w(g,b[0],b[1],b[2],d[0],d[1],d[2],u)}},4:function(T,l,_){function w(M,g,b,d,u,y,f,R,L,z){this.data=M,this.shape=[g,b,d,u],this.stride=[y,f,R,L],this.offset=z|0}var A=w.prototype;return A.dtype=T,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:_}),A.set=function(g,b,d,u,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u,y):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]=y},A.get=function(g,b,d,u){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]},A.index=function(g,b,d,u){return this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u},A.hi=function(g,b,d,u){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof d!="number"||d<0?this.shape[2]:d|0,typeof u!="number"||u<0?this.shape[3]:u|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(g,b,d,u){var y=this.offset,f=0,R=this.shape[0],L=this.shape[1],z=this.shape[2],F=this.shape[3],N=this.stride[0],O=this.stride[1],P=this.stride[2],U=this.stride[3];return typeof g=="number"&&g>=0&&(f=g|0,y+=N*f,R-=f),typeof b=="number"&&b>=0&&(f=b|0,y+=O*f,L-=f),typeof d=="number"&&d>=0&&(f=d|0,y+=P*f,z-=f),typeof u=="number"&&u>=0&&(f=u|0,y+=U*f,F-=f),new w(this.data,R,L,z,F,N,O,P,U,y)},A.step=function(g,b,d,u){var y=this.shape[0],f=this.shape[1],R=this.shape[2],L=this.shape[3],z=this.stride[0],F=this.stride[1],N=this.stride[2],O=this.stride[3],P=this.offset,U=0,B=Math.ceil;return typeof g=="number"&&(U=g|0,U<0?(P+=z*(y-1),y=B(-y/U)):y=B(y/U),z*=U),typeof b=="number"&&(U=b|0,U<0?(P+=F*(f-1),f=B(-f/U)):f=B(f/U),F*=U),typeof d=="number"&&(U=d|0,U<0?(P+=N*(R-1),R=B(-R/U)):R=B(R/U),N*=U),typeof u=="number"&&(U=u|0,U<0?(P+=O*(L-1),L=B(-L/U)):L=B(L/U),O*=U),new w(this.data,y,f,R,L,z,F,N,O,P)},A.transpose=function(g,b,d,u){g=g===void 0?0:g|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0,u=u===void 0?3:u|0;var y=this.shape,f=this.stride;return new w(this.data,y[g],y[b],y[d],y[u],f[g],f[b],f[d],f[u],this.offset)},A.pick=function(g,b,d,u){var y=[],f=[],R=this.offset;typeof g=="number"&&g>=0?R=R+this.stride[0]*g|0:(y.push(this.shape[0]),f.push(this.stride[0])),typeof b=="number"&&b>=0?R=R+this.stride[1]*b|0:(y.push(this.shape[1]),f.push(this.stride[1])),typeof d=="number"&&d>=0?R=R+this.stride[2]*d|0:(y.push(this.shape[2]),f.push(this.stride[2])),typeof u=="number"&&u>=0?R=R+this.stride[3]*u|0:(y.push(this.shape[3]),f.push(this.stride[3]));var L=l[y.length+1];return L(this.data,y,f,R)},function(g,b,d,u){return new w(g,b[0],b[1],b[2],b[3],d[0],d[1],d[2],d[3],u)}},5:function(l,_,w){function A(g,b,d,u,y,f,R,L,z,F,N,O){this.data=g,this.shape=[b,d,u,y,f],this.stride=[R,L,z,F,N],this.offset=O|0}var M=A.prototype;return M.dtype=l,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:w}),M.set=function(b,d,u,y,f,R){return l==="generic"?this.data.set(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f,R):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f]=R},M.get=function(b,d,u,y,f){return l==="generic"?this.data.get(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f]},M.index=function(b,d,u,y,f){return this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f},M.hi=function(b,d,u,y,f){return new A(this.data,typeof b!="number"||b<0?this.shape[0]:b|0,typeof d!="number"||d<0?this.shape[1]:d|0,typeof u!="number"||u<0?this.shape[2]:u|0,typeof y!="number"||y<0?this.shape[3]:y|0,typeof f!="number"||f<0?this.shape[4]:f|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(b,d,u,y,f){var R=this.offset,L=0,z=this.shape[0],F=this.shape[1],N=this.shape[2],O=this.shape[3],P=this.shape[4],U=this.stride[0],B=this.stride[1],X=this.stride[2],$=this.stride[3],se=this.stride[4];return typeof b=="number"&&b>=0&&(L=b|0,R+=U*L,z-=L),typeof d=="number"&&d>=0&&(L=d|0,R+=B*L,F-=L),typeof u=="number"&&u>=0&&(L=u|0,R+=X*L,N-=L),typeof y=="number"&&y>=0&&(L=y|0,R+=$*L,O-=L),typeof f=="number"&&f>=0&&(L=f|0,R+=se*L,P-=L),new A(this.data,z,F,N,O,P,U,B,X,$,se,R)},M.step=function(b,d,u,y,f){var R=this.shape[0],L=this.shape[1],z=this.shape[2],F=this.shape[3],N=this.shape[4],O=this.stride[0],P=this.stride[1],U=this.stride[2],B=this.stride[3],X=this.stride[4],$=this.offset,se=0,le=Math.ceil;return typeof b=="number"&&(se=b|0,se<0?($+=O*(R-1),R=le(-R/se)):R=le(R/se),O*=se),typeof d=="number"&&(se=d|0,se<0?($+=P*(L-1),L=le(-L/se)):L=le(L/se),P*=se),typeof u=="number"&&(se=u|0,se<0?($+=U*(z-1),z=le(-z/se)):z=le(z/se),U*=se),typeof y=="number"&&(se=y|0,se<0?($+=B*(F-1),F=le(-F/se)):F=le(F/se),B*=se),typeof f=="number"&&(se=f|0,se<0?($+=X*(N-1),N=le(-N/se)):N=le(N/se),X*=se),new A(this.data,R,L,z,F,N,O,P,U,B,X,$)},M.transpose=function(b,d,u,y,f){b=b===void 0?0:b|0,d=d===void 0?1:d|0,u=u===void 0?2:u|0,y=y===void 0?3:y|0,f=f===void 0?4:f|0;var R=this.shape,L=this.stride;return new A(this.data,R[b],R[d],R[u],R[y],R[f],L[b],L[d],L[u],L[y],L[f],this.offset)},M.pick=function(b,d,u,y,f){var R=[],L=[],z=this.offset;typeof b=="number"&&b>=0?z=z+this.stride[0]*b|0:(R.push(this.shape[0]),L.push(this.stride[0])),typeof d=="number"&&d>=0?z=z+this.stride[1]*d|0:(R.push(this.shape[1]),L.push(this.stride[1])),typeof u=="number"&&u>=0?z=z+this.stride[2]*u|0:(R.push(this.shape[2]),L.push(this.stride[2])),typeof y=="number"&&y>=0?z=z+this.stride[3]*y|0:(R.push(this.shape[3]),L.push(this.stride[3])),typeof f=="number"&&f>=0?z=z+this.stride[4]*f|0:(R.push(this.shape[4]),L.push(this.stride[4]));var F=_[R.length+1];return F(this.data,R,L,z)},function(b,d,u,y){return new A(b,d[0],d[1],d[2],d[3],d[4],u[0],u[1],u[2],u[3],u[4],y)}}};function h(T,l){var _=l===-1?"T":String(l),w=s[_];return l===-1?w(T):l===0?w(T,m[T][0]):w(T,m[T],i)}function c(T){if(o(T))return"buffer";if(a)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function p(T,l,_,w){if(T===void 0){var u=m.array[0];return u([])}else typeof T=="number"&&(T=[T]);l===void 0&&(l=[T.length]);var A=l.length;if(_===void 0){_=new Array(A);for(var M=A-1,g=1;M>=0;--M)_[M]=g,g*=l[M]}if(w===void 0){w=0;for(var M=0;M<A;++M)_[M]<0&&(w-=(l[M]-1)*_[M])}for(var b=c(T),d=m[b];d.length<=A+1;)d.push(h(b,d.length-1));var u=d[A+1];return u(T,l,_,w)}e.exports=p},9921:function(e){e.exports=t;function t(r){var o=r[0],a=r[1],n=r[2],i=r[3],s=r[4],h=r[5],c=r[6],m=r[7],p=r[8],T=r[9],l=r[10],_=r[11],w=r[12],A=r[13],M=r[14],g=r[15],b=o*h-a*s,d=o*c-n*s,u=o*m-i*s,y=a*c-n*h,f=a*m-i*h,R=n*m-i*c,L=p*A-T*w,z=p*M-l*w,F=p*g-_*w,N=T*M-l*A,O=T*g-_*A,P=l*g-_*M;return b*P-d*O+u*N+y*F-f*z+R*L}},9922:function(e,t,r){e.exports=a;var o=r(2613);function a(n,i){var s=n[0],h=n[1],c=n[2],m=i[0],p=i[1],T=i[2];return Math.abs(s-m)<=o*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(h-p)<=o*Math.max(1,Math.abs(h),Math.abs(p))&&Math.abs(c-T)<=o*Math.max(1,Math.abs(c),Math.abs(T))}},9970:function(e,t,r){e.exports={create:r(7536),clone:r(2335),fromValues:r(3390),copy:r(2933),set:r(4578),add:r(4361),subtract:r(6860),multiply:r(3576),divide:r(1373),min:r(2334),max:r(160),scale:r(9288),scaleAndAdd:r(4844),distance:r(4691),squaredDistance:r(7960),length:r(6808),squaredLength:r(483),negate:r(1498),inverse:r(4494),normalize:r(5177),dot:r(3750),lerp:r(2573),random:r(9131),transformMat4:r(5352),transformQuat:r(4041)}},9977:function(e,t,r){"use strict";e.exports=l;var o=r(9215),a=r(6582),n=r(7399),i=r(7608),s=r(4081);function h(_,w,A){return Math.sqrt(Math.pow(_,2)+Math.pow(w,2)+Math.pow(A,2))}function c(_,w,A,M){return Math.sqrt(Math.pow(_,2)+Math.pow(w,2)+Math.pow(A,2)+Math.pow(M,2))}function m(_,w){var A=w[0],M=w[1],g=w[2],b=w[3],d=c(A,M,g,b);d>1e-6?(_[0]=A/d,_[1]=M/d,_[2]=g/d,_[3]=b/d):(_[0]=_[1]=_[2]=0,_[3]=1)}function p(_,w,A){this.radius=o([A]),this.center=o(w),this.rotation=o(_),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=p.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(_){this.radius.curve(_),this.center.curve(_),this.rotation.curve(_);var w=this.computedRotation;m(w,w);var A=this.computedMatrix;n(A,w);var M=this.computedCenter,g=this.computedEye,b=this.computedUp,d=Math.exp(this.computedRadius[0]);g[0]=M[0]+d*A[2],g[1]=M[1]+d*A[6],g[2]=M[2]+d*A[10],b[0]=A[1],b[1]=A[5],b[2]=A[9];for(var u=0;u<3;++u){for(var y=0,f=0;f<3;++f)y+=A[u+4*f]*g[f];A[12+u]=-y}},T.getMatrix=function(_,w){this.recalcMatrix(_);var A=this.computedMatrix;if(w){for(var M=0;M<16;++M)w[M]=A[M];return w}return A},T.idle=function(_){this.center.idle(_),this.radius.idle(_),this.rotation.idle(_)},T.flush=function(_){this.center.flush(_),this.radius.flush(_),this.rotation.flush(_)},T.pan=function(_,w,A,M){w=w||0,A=A||0,M=M||0,this.recalcMatrix(_);var g=this.computedMatrix,b=g[1],d=g[5],u=g[9],y=h(b,d,u);b/=y,d/=y,u/=y;var f=g[0],R=g[4],L=g[8],z=f*b+R*d+L*u;f-=b*z,R-=d*z,L-=u*z;var F=h(f,R,L);f/=F,R/=F,L/=F;var N=g[2],O=g[6],P=g[10],U=N*b+O*d+P*u,B=N*f+O*R+P*L;N-=U*b+B*f,O-=U*d+B*R,P-=U*u+B*L;var X=h(N,O,P);N/=X,O/=X,P/=X;var $=f*w+b*A,se=R*w+d*A,le=L*w+u*A;this.center.move(_,$,se,le);var fe=Math.exp(this.computedRadius[0]);fe=Math.max(1e-4,fe+M),this.radius.set(_,Math.log(fe))},T.rotate=function(_,w,A,M){this.recalcMatrix(_),w=w||0,A=A||0;var g=this.computedMatrix,b=g[0],d=g[4],u=g[8],y=g[1],f=g[5],R=g[9],L=g[2],z=g[6],F=g[10],N=w*b+A*y,O=w*d+A*f,P=w*u+A*R,U=-(z*P-F*O),B=-(F*N-L*P),X=-(L*O-z*N),$=Math.sqrt(Math.max(0,1-Math.pow(U,2)-Math.pow(B,2)-Math.pow(X,2))),se=c(U,B,X,$);se>1e-6?(U/=se,B/=se,X/=se,$/=se):(U=B=X=0,$=1);var le=this.computedRotation,fe=le[0],V=le[1],Y=le[2],ee=le[3],q=fe*$+ee*U+V*X-Y*B,oe=V*$+ee*B+Y*U-fe*X,ae=Y*$+ee*X+fe*B-V*U,j=ee*$-fe*U-V*B-Y*X;if(M){U=L,B=z,X=F;var Q=Math.sin(M)/h(U,B,X);U*=Q,B*=Q,X*=Q,$=Math.cos(w),q=q*$+j*U+oe*X-ae*B,oe=oe*$+j*B+ae*U-q*X,ae=ae*$+j*X+q*B-oe*U,j=j*$-q*U-oe*B-ae*X}var re=c(q,oe,ae,j);re>1e-6?(q/=re,oe/=re,ae/=re,j/=re):(q=oe=ae=0,j=1),this.rotation.set(_,q,oe,ae,j)},T.lookAt=function(_,w,A,M){this.recalcMatrix(_),A=A||this.computedCenter,w=w||this.computedEye,M=M||this.computedUp;var g=this.computedMatrix;a(g,w,A,M);var b=this.computedRotation;s(b,g[0],g[1],g[2],g[4],g[5],g[6],g[8],g[9],g[10]),m(b,b),this.rotation.set(_,b[0],b[1],b[2],b[3]);for(var d=0,u=0;u<3;++u)d+=Math.pow(A[u]-w[u],2);this.radius.set(_,.5*Math.log(Math.max(d,1e-6))),this.center.set(_,A[0],A[1],A[2])},T.translate=function(_,w,A,M){this.center.move(_,w||0,A||0,M||0)},T.setMatrix=function(_,w){var A=this.computedRotation;s(A,w[0],w[1],w[2],w[4],w[5],w[6],w[8],w[9],w[10]),m(A,A),this.rotation.set(_,A[0],A[1],A[2],A[3]);var M=this.computedMatrix;i(M,w);var g=M[15];if(Math.abs(g)>1e-6){var b=M[12]/g,d=M[13]/g,u=M[14]/g;this.recalcMatrix(_);var y=Math.exp(this.computedRadius[0]);this.center.set(_,b-M[2]*y,d-M[6]*y,u-M[10]*y),this.radius.idle(_)}else this.center.idle(_),this.radius.idle(_)},T.setDistance=function(_,w){w>0&&this.radius.set(_,Math.log(w))},T.setDistanceLimits=function(_,w){_>0?_=Math.log(_):_=-1/0,w>0?w=Math.log(w):w=1/0,w=Math.max(w,_),this.radius.bounds[0][0]=_,this.radius.bounds[1][0]=w},T.getDistanceLimits=function(_){var w=this.radius.bounds;return _?(_[0]=Math.exp(w[0][0]),_[1]=Math.exp(w[1][0]),_):[Math.exp(w[0][0]),Math.exp(w[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(_){var w=this.lastT(),A=_.center;A&&this.center.set(w,A[0],A[1],A[2]);var M=_.rotation;M&&this.rotation.set(w,M[0],M[1],M[2],M[3]);var g=_.distance;g&&g>0&&this.radius.set(w,Math.log(g)),this.setDistanceLimits(_.zoomMin,_.zoomMax)};function l(_){_=_||{};var w=_.center||[0,0,0],A=_.rotation||[0,0,0,1],M=_.radius||1;w=[].slice.call(w,0,3),A=[].slice.call(A,0,4),m(A,A);var g=new p(A,w,Math.log(M));return g.setDistanceLimits(_.zoomMin,_.zoomMax),("eye"in _||"up"in _)&&g.lookAt(0,_.eye,_.center,_.up),g}},9994:function(e,t,r){"use strict";var o=r(9618),a=r(8277);e.exports=function(i,s){for(var h=[],c=i,m=1;Array.isArray(c);)h.push(c.length),m*=c.length,c=c[0];return h.length===0?o():(s||(s=o(new Float64Array(m),h)),a(s,i),s)}}},x={};function S(e){var t=x[e];if(t!==void 0)return t.exports;var r=x[e]={id:e,loaded:!1,exports:{}};return v[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}(function(){S.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){S.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}();var E=S(1964);G.exports=E})()}}),xE=Xe({"node_modules/color-name/index.js"(Z,G){"use strict";G.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),GN=Xe({"node_modules/color-normalize/node_modules/color-parse/index.js"(Z,G){"use strict";var v=xE();G.exports=S;var x={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function S(E){var e,t=[],r=1,o;if(typeof E=="string")if(E=E.toLowerCase(),v[E])t=v[E].slice(),o="rgb";else if(E==="transparent")r=0,o="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(E)){var a=E.slice(1),n=a.length,i=n<=4;r=1,i?(t=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],n===4&&(r=parseInt(a[3]+a[3],16)/255)):(t=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],n===8&&(r=parseInt(a[6]+a[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),o="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(E)){var s=e[1],h=s==="rgb",a=s.replace(/a$/,"");o=a;var n=a==="cmyk"?4:a==="gray"?1:3;t=e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,T){if(/%$/.test(p))return T===n?parseFloat(p)/100:a==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(a[T]==="h"){if(/deg$/.test(p))return parseFloat(p);if(x[p]!==void 0)return x[p]}return parseFloat(p)}),s===a&&t.push(1),r=h||t[n]===void 0?1:t[n],t=t.slice(0,n)}else E.length>10&&/[0-9](?:\s|\/)/.test(E)&&(t=E.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),o=E.match(/([a-z])/ig).join("").toLowerCase());else isNaN(E)?Array.isArray(E)||E.length?(t=[E[0],E[1],E[2]],o="rgb",r=E.length===4?E[3]:1):E instanceof Object&&(E.r!=null||E.red!=null||E.R!=null?(o="rgb",t=[E.r||E.red||E.R||0,E.g||E.green||E.G||0,E.b||E.blue||E.B||0]):(o="hsl",t=[E.h||E.hue||E.H||0,E.s||E.saturation||E.S||0,E.l||E.lightness||E.L||E.b||E.brightness]),r=E.a||E.alpha||E.opacity||1,E.opacity!=null&&(r/=100)):(o="rgb",t=[E>>>16,(E&65280)>>>8,E&255]);return{space:o,values:t,alpha:r}}}}),HN=Xe({"node_modules/color-normalize/node_modules/color-rgba/index.js"(Z,G){"use strict";var v=GN();G.exports=function(E){Array.isArray(E)&&E.raw&&(E=String.raw.apply(null,arguments));var e,t,r,o=v(E);if(!o.space)return[];var a=[0,0,0],n=o.space[0]==="h"?[360,100,100]:[255,255,255];return e=Array(3),e[0]=Math.min(Math.max(o.values[0],a[0]),n[0]),e[1]=Math.min(Math.max(o.values[1],a[1]),n[1]),e[2]=Math.min(Math.max(o.values[2],a[2]),n[2]),o.space[0]==="h"&&(e=x(e)),e.push(Math.min(Math.max(o.alpha,0),1)),e};function x(S){var E=S[0]/360,e=S[1]/100,t=S[2]/100,r,o,a,n,i,s=0;if(e===0)return i=t*255,[i,i,i];for(o=t<.5?t*(1+e):t+e-t*e,r=2*t-o,n=[0,0,0];s<3;)a=E+1/3*-(s-1),a<0?a++:a>1&&a--,i=6*a<1?r+(o-r)*6*a:2*a<1?o:3*a<2?r+(o-r)*(2/3-a)*6:r,n[s++]=i*255;return n}}}),mx=Xe({"node_modules/clamp/index.js"(Z,G){G.exports=v;function v(x,S,E){return S<E?x<S?S:x>E?E:x:x<E?E:x>S?S:x}}}),Q3=Xe({"node_modules/dtype/index.js"(Z,G){G.exports=function(v){switch(v){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}}}),d0=Xe({"node_modules/color-normalize/index.js"(Z,G){"use strict";var v=HN(),x=mx(),S=Q3();G.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var o=S(r),a=new o(4),n=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=v(t),t[0]/=255,t[1]/=255,t[2]/=255),E(t)?(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3]!=null?t[3]:255,n&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(n?(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3]!=null?t[3]:1):(a[0]=x(Math.floor(t[0]*255),0,255),a[1]=x(Math.floor(t[1]*255),0,255),a[2]=x(Math.floor(t[2]*255),0,255),a[3]=t[3]==null?255:x(Math.floor(t[3]*255),0,255)),a)};function E(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}}}),em=Xe({"src/lib/str2rgbarray.js"(Z,G){"use strict";var v=d0();function x(S){return S?v(S):[0,0,0,1]}G.exports=x}}),tm=Xe({"src/lib/gl_format_color.js"(Z,G){"use strict";var v=rs(),x=Ch(),S=d0(),E=rc(),e=sh().defaultLine,t=bp().isArrayOrTypedArray,r=S(e),o=1;function a(c,m){var p=c;return p[3]*=m,p}function n(c){if(v(c))return r;var m=S(c);return m.length?m:r}function i(c){return v(c)?c:o}function s(c,m,p){var T=c.color;T&&T._inputArray&&(T=T._inputArray);var l=t(T),_=t(m),w=E.extractOpts(c),A=[],M,g,b,d,u;if(w.colorscale!==void 0?M=E.makeColorScaleFuncFromTrace(c):M=n,l?g=function(f,R){return f[R]===void 0?r:S(M(f[R]))}:g=n,_?b=function(f,R){return f[R]===void 0?o:i(f[R])}:b=i,l||_)for(var y=0;y<p;y++)d=g(T,y),u=b(m,y),A[y]=a(d,u);else A=a(S(T),m);return A}function h(c){var m=E.extractOpts(c),p=m.colorscale;return m.reversescale&&(p=E.flipScale(m.colorscale)),p.map(function(T){var l=T[0],_=x(T[1]),w=_.toRgb();return{index:l,rgb:[w.r,w.g,w.b,w.a]}})}G.exports={formatColor:s,parseColorScale:h}}}),bE=Xe({"src/constants/gl3d_dashes.js"(Z,G){"use strict";G.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}}}),eT=Xe({"src/constants/gl3d_markers.js"(Z,G){"use strict";G.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}}}),WN=Xe({"src/traces/scatter3d/calc_errors.js"(Z,G){"use strict";var v=so();function x(e,t,r,o){if(!t||!t.visible)return null;for(var a=v.getComponentMethod("errorbars","makeComputeError")(t),n=new Array(e.length),i=0;i<e.length;i++){var s=a(+e[i],i);if(o.type==="log"){var h=o.c2l(e[i]),c=e[i]-s[0],m=e[i]+s[1];if(n[i]=[(o.c2l(c,!0)-h)*r,(o.c2l(m,!0)-h)*r],c>0){var p=o.c2l(c);o._lowerLogErrorBound||(o._lowerLogErrorBound=p),o._lowerErrorBound=Math.min(o._lowerLogErrorBound,p)}}else n[i]=[-s[0]*r,s[1]*r]}return n}function S(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}function E(e,t,r){var o=[x(e.x,e.error_x,t[0],r.xaxis),x(e.y,e.error_y,t[1],r.yaxis),x(e.z,e.error_z,t[2],r.zaxis)],a=S(o);if(a===0)return null;for(var n=new Array(a),i=0;i<a;i++){for(var s=[[0,0,0],[0,0,0]],h=0;h<3;h++)if(o[h])for(var c=0;c<2;c++)s[c][h]=o[h][i][c];n[i]=s}return n}G.exports=E}}),XN=Xe({"src/traces/scatter3d/convert.js"(Z,G){"use strict";var v=Yh().gl_line3d,x=Yh().gl_scatter3d,S=Yh().gl_error3d,E=Yh().gl_mesh3d,e=Yh().delaunay_triangulate,t=sa(),r=em(),o=tm().formatColor,a=r1(),n=bE(),i=eT(),s=Go(),h=$p().appendArrayPointValue,c=WN();function m(R,L){this.scene=R,this.uid=L,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var p=m.prototype;p.handlePick=function(R){if(R.object&&(R.object===this.linePlot||R.object===this.delaunayMesh||R.object===this.textMarkers||R.object===this.scatterPlot)){var L=R.index=R.data.index;return R.object.highlight&&R.object.highlight(null),this.scatterPlot&&(R.object=this.scatterPlot,this.scatterPlot.highlight(R.data)),R.textLabel="",this.textLabels&&(t.isArrayOrTypedArray(this.textLabels)?(this.textLabels[L]||this.textLabels[L]===0)&&(R.textLabel=this.textLabels[L]):R.textLabel=this.textLabels),R.traceCoordinate=[this.data.x[L],this.data.y[L],this.data.z[L]],!0}};function T(R,L,z){var F=(z+1)%3,N=(z+2)%3,O=[],P=[],U;for(U=0;U<R.length;++U){var B=R[U];isNaN(B[F])||!isFinite(B[F])||isNaN(B[N])||!isFinite(B[N])||(O.push([B[F],B[N]]),P.push(U))}var X=e(O);for(U=0;U<X.length;++U)for(var $=X[U],se=0;se<$.length;++se)$[se]=P[$[se]];return{positions:R,cells:X,meshColor:L}}function l(R){for(var L=[0,0,0],z=[[0,0,0],[0,0,0],[0,0,0]],F=[1,1,1],N=0;N<3;N++){var O=R[N];O&&O.copy_zstyle!==!1&&R[2].visible!==!1&&(O=R[2]),!(!O||!O.visible)&&(L[N]=O.width/2,z[N]=r(O.color),F[N]=O.thickness)}return{capSize:L,color:z,lineWidth:F}}function _(R){return R==null?0:R.indexOf("left")>-1?-1:R.indexOf("right")>-1?1:0}function w(R){return R==null?0:R.indexOf("top")>-1?-1:R.indexOf("bottom")>-1?1:0}function A(R){var L=0,z=0,F=[L,z];if(Array.isArray(R))for(var N=0;N<R.length;N++)F[N]=[L,z],R[N]&&(F[N][0]=_(R[N]),F[N][1]=w(R[N]));else F[0]=_(R),F[1]=w(R);return F}function M(R,L){return L(R*4)}function g(R){return i[R]}function b(R,L,z,F,N){var O=null;if(t.isArrayOrTypedArray(R)){O=[];for(var P=0;P<L;P++)R[P]===void 0?O[P]=F:O[P]=z(R[P],N)}else O=z(R,t.identity);return O}function d(R,L){var z=[],F=R.fullSceneLayout,N=R.dataScale,O=F.xaxis,P=F.yaxis,U=F.zaxis,B=L.marker,X=L.line,$=L.x||[],se=L.y||[],le=L.z||[],fe=$.length,V=L.xcalendar,Y=L.ycalendar,ee=L.zcalendar,q,oe,ae,j,Q,re;for(Q=0;Q<fe;Q++)q=O.d2l($[Q],0,V)*N[0],oe=P.d2l(se[Q],0,Y)*N[1],ae=U.d2l(le[Q],0,ee)*N[2],z[Q]=[q,oe,ae];if(Array.isArray(L.text))re=L.text;else if(t.isTypedArray(L.text))re=Array.from(L.text);else if(L.text!==void 0)for(re=new Array(fe),Q=0;Q<fe;Q++)re[Q]=L.text;function ce(tt,ot){var Qe=F[tt];return s.tickText(Qe,Qe.d2l(ot),!0).text}var be=L.texttemplate;if(be){var Ae=R.fullLayout,De=Ae._d3locale,ze=Array.isArray(be),Ze=ze?Math.min(be.length,fe):fe,at=ze?function(tt){return be[tt]}:function(){return be};for(re=new Array(Ze),Q=0;Q<Ze;Q++){var nt={x:$[Q],y:se[Q],z:le[Q]},rt={xLabel:ce("xaxis",$[Q]),yLabel:ce("yaxis",se[Q]),zLabel:ce("zaxis",le[Q])},st={};h(st,L,Q),re[Q]=t.texttemplateString({data:[st,nt,L._meta],fallback:L.texttemplatefallback,labels:rt,locale:De,template:at(Q)})}}if(j={position:z,mode:L.mode,text:re},"line"in L&&(j.lineColor=o(X,1,fe),j.lineWidth=X.width,j.lineDashes=X.dash),"marker"in L){var Me=a(L);j.scatterColor=o(B,1,fe),j.scatterSize=b(B.size,fe,M,20,Me),j.scatterMarker=b(B.symbol,fe,g,"\u25CF"),j.scatterLineWidth=B.line.width,j.scatterLineColor=o(B.line,1,fe),j.scatterAngle=0}"textposition"in L&&(j.textOffset=A(L.textposition),j.textColor=o(L.textfont,1,fe),j.textSize=b(L.textfont.size,fe,t.identity,12),j.textFontFamily=L.textfont.family,j.textFontWeight=L.textfont.weight,j.textFontStyle=L.textfont.style,j.textFontVariant=L.textfont.variant,j.textAngle=0);var ye=["x","y","z"];for(j.project=[!1,!1,!1],j.projectScale=[1,1,1],j.projectOpacity=[1,1,1],Q=0;Q<3;++Q){var he=L.projection[ye[Q]];(j.project[Q]=he.show)&&(j.projectOpacity[Q]=he.opacity,j.projectScale[Q]=he.scale)}j.errorBounds=c(L,N,F);var Oe=l([L.error_x,L.error_y,L.error_z]);return j.errorColor=Oe.color,j.errorLineWidth=Oe.lineWidth,j.errorCapSize=Oe.capSize,j.delaunayAxis=L.surfaceaxis,j.delaunayColor=r(L.surfacecolor),j}function u(R){if(t.isArrayOrTypedArray(R)){var L=R[0];return t.isArrayOrTypedArray(L)&&(R=L),"rgb("+R.slice(0,3).map(function(z){return Math.round(z*255)})+")"}return null}function y(R){return t.isArrayOrTypedArray(R)?R.length===4&&typeof R[0]=="number"?u(R):R.map(u):null}p.update=function(R){var L=this.scene.glplot.gl,z,F,N,O,P=n.solid;this.data=R;var U=d(this.scene,R);"mode"in U&&(this.mode=U.mode),"lineDashes"in U&&U.lineDashes in n&&(P=n[U.lineDashes]),this.color=y(U.scatterColor)||y(U.lineColor),this.dataPoints=U.position,z={gl:this.scene.glplot.gl,position:U.position,color:U.lineColor,lineWidth:U.lineWidth||1,dashes:P[0],dashScale:P[1],opacity:R.opacity,connectGaps:R.connectgaps},this.mode.indexOf("lines")!==-1?this.linePlot?this.linePlot.update(z):(this.linePlot=v(z),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var B=R.opacity;if(R.marker&&R.marker.opacity!==void 0&&(B*=R.marker.opacity),F={gl:this.scene.glplot.gl,position:U.position,color:U.scatterColor,size:U.scatterSize,glyph:U.scatterMarker,opacity:B,orthographic:!0,lineWidth:U.scatterLineWidth,lineColor:U.scatterLineColor,project:U.project,projectScale:U.projectScale,projectOpacity:U.projectOpacity},this.mode.indexOf("markers")!==-1?this.scatterPlot?this.scatterPlot.update(F):(this.scatterPlot=x(F),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),O={gl:this.scene.glplot.gl,position:U.position,glyph:U.text,color:U.textColor,size:U.textSize,angle:U.textAngle,alignment:U.textOffset,font:U.textFontFamily,fontWeight:U.textFontWeight,fontStyle:U.textFontStyle,fontVariant:U.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:R.opacity},this.textLabels=R.hovertext||R.text,this.mode.indexOf("text")!==-1?this.textMarkers?this.textMarkers.update(O):(this.textMarkers=x(O),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),N={gl:this.scene.glplot.gl,position:U.position,color:U.errorColor,error:U.errorBounds,lineWidth:U.errorLineWidth,capSize:U.errorCapSize,opacity:R.opacity},this.errorBars?U.errorBounds?this.errorBars.update(N):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):U.errorBounds&&(this.errorBars=S(N),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),U.delaunayAxis>=0){var X=T(U.position,U.delaunayColor,U.delaunayAxis);X.opacity=R.opacity,this.delaunayMesh?this.delaunayMesh.update(X):(X.gl=L,this.delaunayMesh=E(X),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},p.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function f(R,L){var z=new m(R,L.uid);return z.update(L),z}G.exports=f}}),wE=Xe({"src/traces/scatter3d/attributes.js"(Z,G){"use strict";var v=af(),x=tc(),S=ku(),E=tf().axisHoverFormat,{hovertemplateAttrs:e,texttemplateAttrs:t,templatefallbackAttrs:r}=Jl(),o=ru(),a=bE(),n=eT(),i=Qo().extendFlat,s=pc().overrideAll,h=Jm(),c=v.line,m=v.marker,p=m.line,T=i({width:c.width,dash:{valType:"enumerated",values:h(a),dflt:"solid"}},S("line"));function l(w){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var _=G.exports=s({x:v.x,y:v.y,z:{valType:"data_array"},text:i({},v.text,{}),texttemplate:t(),texttemplatefallback:r({editType:"calc"}),hovertext:i({},v.hovertext,{}),hovertemplate:e(),hovertemplatefallback:r(),xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z"),mode:i({},v.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:l("x"),y:l("y"),z:l("z")},connectgaps:v.connectgaps,line:T,marker:i({symbol:{valType:"enumerated",values:h(n),dflt:"circle",arrayOk:!0},size:i({},m.size,{dflt:8}),sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode,opacity:i({},m.opacity,{arrayOk:!1}),colorbar:m.colorbar,line:i({width:i({},p.width,{arrayOk:!1})},S("marker.line"))},S("marker")),textposition:i({},v.textposition,{dflt:"top center"}),textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:o.opacity,hoverinfo:i({},o.hoverinfo)},"calc","nested");_.x.editType=_.y.editType=_.z.editType="calc+clearAxisTypes"}}),ZN=Xe({"src/traces/scatter3d/defaults.js"(Z,G){"use strict";var v=so(),x=sa(),S=Fu(),E=md(),e=Dd(),t=zd(),r=wE();G.exports=function(n,i,s,h){function c(M,g){return x.coerce(n,i,r,M,g)}var m=o(n,i,c,h);if(!m){i.visible=!1;return}c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("xhoverformat"),c("yhoverformat"),c("zhoverformat"),c("mode"),S.hasMarkers(i)&&E(n,i,s,h,c,{noAngle:!0,noLineDash:!0,noSelect:!0}),S.hasLines(i)&&(c("connectgaps"),e(n,i,s,h,c)),S.hasText(i)&&(c("texttemplate"),c("texttemplatefallback"),t(n,i,h,c,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var p=(i.line||{}).color,T=(i.marker||{}).color;c("surfaceaxis")>=0&&c("surfacecolor",p||T);for(var l=["x","y","z"],_=0;_<3;++_){var w="projection."+l[_];c(w+".show")&&(c(w+".opacity"),c(w+".scale"))}var A=v.getComponentMethod("errorbars","supplyDefaults");A(n,i,p||T||s,{axis:"z"}),A(n,i,p||T||s,{axis:"y",inherit:"z"}),A(n,i,p||T||s,{axis:"x",inherit:"z"})};function o(a,n,i,s){var h=0,c=i("x"),m=i("y"),p=i("z"),T=v.getComponentMethod("calendars","handleTraceDefaults");return T(a,n,["x","y","z"],s),c&&m&&p&&(h=Math.min(c.length,m.length,p.length),n._length=n._xlength=n._ylength=n._zlength=h),h}}}),YN=Xe({"src/traces/scatter3d/calc.js"(Z,G){"use strict";var v=Av(),x=Fd();G.exports=function(E,e){var t=[{x:!1,y:!1,trace:e,t:{}}];return v(t,e),x(E,e),t}}}),KN=Xe({"node_modules/get-canvas-context/index.js"(Z,G){G.exports=v;function v(x,S){if(typeof x!="string")throw new TypeError("must specify type string");if(S=S||{},typeof document>"u"&&!S.canvas)return null;var E=S.canvas||document.createElement("canvas");typeof S.width=="number"&&(E.width=S.width),typeof S.height=="number"&&(E.height=S.height);var e=S,t;try{var r=[x];x.indexOf("webgl")===0&&r.push("experimental-"+x);for(var o=0;o<r.length;o++)if(t=E.getContext(r[o],e),t)return t}catch{t=null}return t||null}}}),JN=Xe({"node_modules/webgl-context/index.js"(Z,G){var v=KN();G.exports=function(S){return v("webgl",S)}}}),TE=Xe({"src/lib/show_no_webgl_msg.js"(Z,G){"use strict";var v=$n(),x=function(){};G.exports=function(E){for(var e in E)typeof E[e]=="function"&&(E[e]=x);E.destroy=function(){E.container.parentNode.removeChild(E.container)};var t=document.createElement("div");t.className="no-webgl",t.style.cursor="pointer",t.style.fontSize="24px",t.style.color=v.defaults[0],t.style.position="absolute",t.style.left=t.style.top="0px",t.style.width=t.style.height="100%",t.style["background-color"]=v.lightLine,t.style["z-index"]=30;var r=document.createElement("p");return r.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",r.style.position="relative",r.style.top="50%",r.style.left="50%",r.style.height="30%",r.style.width="50%",r.style.margin="-15% 0 0 -25%",t.appendChild(r),E.container.appendChild(t),E.container.style.background="#FFFFFF",E.container.onclick=function(){window.open("https://get.webgl.org")},!1}}}),$N=Xe({"src/plots/gl3d/layout/convert.js"(Z,G){"use strict";var v=em(),x=sa(),S=["xaxis","yaxis","zaxis"];function E(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var e=E.prototype;e.merge=function(r,o){for(var a=this,n=0;n<3;++n){var i=o[S[n]];if(!i.visible){a.tickEnable[n]=!1,a.labelEnable[n]=!1,a.lineEnable[n]=!1,a.lineTickEnable[n]=!1,a.gridEnable[n]=!1,a.zeroEnable[n]=!1,a.backgroundEnable[n]=!1;continue}a.labels[n]=r._meta?x.templateString(i.title.text,r._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(a.labelColor[n]=v(i.title.font.color)),i.title.font.family&&(a.labelFont[n]=i.title.font.family),i.title.font.size&&(a.labelSize[n]=i.title.font.size),i.title.font.weight&&(a.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(a.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(a.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(a.lineEnable[n]=i.showline),"linecolor"in i&&(a.lineColor[n]=v(i.linecolor)),"linewidth"in i&&(a.lineWidth[n]=i.linewidth),"showgrid"in i&&(a.gridEnable[n]=i.showgrid),"gridcolor"in i&&(a.gridColor[n]=v(i.gridcolor)),"gridwidth"in i&&(a.gridWidth[n]=i.gridwidth),i.type==="log"?a.zeroEnable[n]=!1:"zeroline"in i&&(a.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(a.zeroLineColor[n]=v(i.zerolinecolor)),"zerolinewidth"in i&&(a.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?a.lineTickEnable[n]=!0:a.lineTickEnable[n]=!1,"ticklen"in i&&(a.lineTickLength[n]=a._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(a.lineTickColor[n]=v(i.tickcolor)),"tickwidth"in i&&(a.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(a.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(a.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(a.tickColor[n]=v(i.tickfont.color)),i.tickfont.family&&(a.tickFont[n]=i.tickfont.family),i.tickfont.size&&(a.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(a.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(a.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(a.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(a.lineTickMirror[n]=!0,a.lineMirror[n]=!0):i.mirror===!0?(a.lineTickMirror[n]=!1,a.lineMirror[n]=!0):(a.lineTickMirror[n]=!1,a.lineMirror[n]=!1):a.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(a.backgroundEnable[n]=!0,a.backgroundColor[n]=v(i.backgroundcolor)):a.backgroundEnable[n]=!1}};function t(r,o){var a=new E;return a.merge(r,o),a}G.exports=t}}),QN=Xe({"src/plots/gl3d/layout/spikes.js"(Z,G){"use strict";var v=em(),x=["xaxis","yaxis","zaxis"];function S(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var E=S.prototype;E.merge=function(t){for(var r=0;r<3;++r){var o=t[x[r]];if(!o.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=o.showspikes,this.colors[r]=v(o.spikecolor),this.drawSides[r]=o.spikesides,this.lineWidth[r]=o.spikethickness}};function e(t){var r=new S;return r.merge(t),r}G.exports=e}}),eU=Xe({"src/plots/gl3d/layout/tick_marks.js"(Z,G){"use strict";G.exports=t;var v=Go(),x=sa(),S=["xaxis","yaxis","zaxis"],E=[0,0,0];function e(r){for(var o=new Array(3),a=0;a<3;++a){for(var n=r[a],i=new Array(n.length),s=0;s<n.length;++s)i[s]=n[s].x;o[a]=i}return o}function t(r){for(var o=r.axesOptions,a=r.glplot.axesPixels,n=r.fullSceneLayout,i=[[],[],[]],s=0;s<3;++s){var h=n[S[s]];if(h._length=(a[s].hi-a[s].lo)*a[s].pixelsPerDataUnit/r.dataScale[s],Math.abs(h._length)===1/0||isNaN(h._length))i[s]=[];else{h._input_range=h.range.slice(),h.range[0]=a[s].lo/r.dataScale[s],h.range[1]=a[s].hi/r.dataScale[s],h._m=1/(r.dataScale[s]*a[s].pixelsPerDataUnit),h.range[0]===h.range[1]&&(h.range[0]-=1,h.range[1]+=1);var c=h.tickmode;if(h.tickmode==="auto"){h.tickmode="linear";var m=h.nticks||x.constrain(h._length/40,4,9);v.autoTicks(h,Math.abs(h.range[1]-h.range[0])/m)}for(var p=v.calcTicks(h,{msUTC:!0}),T=0;T<p.length;++T)p[T].x=p[T].x*r.dataScale[s],h.type==="date"&&(p[T].text=p[T].text.replace(/\<br\>/g," "));i[s]=p,h.tickmode=c}}o.ticks=i;for(var s=0;s<3;++s){E[s]=.5*(r.glplot.bounds[0][s]+r.glplot.bounds[1][s]);for(var T=0;T<2;++T)o.bounds[T][s]=r.glplot.bounds[T][s]}r.contourLevels=e(i)}}}),tU=Xe({"src/plots/gl3d/scene.js"(Z,G){"use strict";var v=Yh().gl_plot3d,x=v.createCamera,S=v.createScene,E=JN(),e=b2(),t=so(),r=sa(),o=r.preserveDrawingBuffer(),a=Go(),n=rf(),i=em(),s=TE(),h=U5(),c=$N(),m=QN(),p=eU(),T=Yd().applyAutorangeOptions,l,_,w=!1;function A(z,F){var N=document.createElement("div"),O=z.container;this.graphDiv=z.graphDiv;var P=document.createElementNS("http://www.w3.org/2000/svg","svg");P.style.position="absolute",P.style.top=P.style.left="0px",P.style.width=P.style.height="100%",P.style["z-index"]=20,P.style["pointer-events"]="none",N.appendChild(P),this.svgContainer=P,N.id=z.id,N.style.position="absolute",N.style.top=N.style.left="0px",N.style.width=N.style.height="100%",O.appendChild(N),this.fullLayout=F,this.id=z.id||"scene",this.fullSceneLayout=F[this.id],this.plotArgs=[[],{},{}],this.axesOptions=c(F,F[this.id]),this.spikeOptions=m(F[this.id]),this.container=N,this.staticMode=!!z.staticPlot,this.pixelRatio=this.pixelRatio||z.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=t.getComponentMethod("annotations3d","convert"),this.drawAnnotations=t.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=A.prototype;M.prepareOptions=function(){var z=this,F={canvas:z.canvas,gl:z.gl,glOptions:{preserveDrawingBuffer:o,premultipliedAlpha:!0,antialias:!0},container:z.container,axes:z.axesOptions,spikes:z.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:z.camera,pixelRatio:z.pixelRatio};if(z.staticMode){if(!_&&(l=document.createElement("canvas"),_=E({canvas:l,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!_))throw new Error("error creating static canvas/context for image server");F.gl=_,F.canvas=l}return F};var g=!0;M.tryCreatePlot=function(){var z=this,F=z.prepareOptions(),N=!0;try{z.glplot=S(F)}catch{if(z.staticMode||!g||o)N=!1;else{r.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{o=F.glOptions.preserveDrawingBuffer=!0,z.glplot=S(F)}catch{o=F.glOptions.preserveDrawingBuffer=!1,N=!1}}}return g=!1,N},M.initializeGLCamera=function(){var z=this,F=z.fullSceneLayout.camera,N=F.projection.type==="orthographic";z.camera=x(z.container,{center:[F.center.x,F.center.y,F.center.z],eye:[F.eye.x,F.eye.y,F.eye.z],up:[F.up.x,F.up.y,F.up.z],_ortho:N,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var z=this;z.initializeGLCamera();var F=z.tryCreatePlot();if(!F)return s(z);z.traces={},z.make4thDimension();var N=z.graphDiv,O=N.layout,P=function(){var B={};return z.isCameraChanged(O)&&(B[z.id+".camera"]=z.getCamera()),z.isAspectChanged(O)&&(B[z.id+".aspectratio"]=z.glplot.getAspectratio(),O[z.id].aspectmode!=="manual"&&(z.fullSceneLayout.aspectmode=O[z.id].aspectmode=B[z.id+".aspectmode"]="manual")),B},U=function(B){if(B.fullSceneLayout.dragmode!==!1){var X=P();B.saveLayout(O),B.graphDiv.emit("plotly_relayout",X)}};return z.glplot.canvas&&(z.glplot.canvas.addEventListener("mouseup",function(){U(z)}),z.glplot.canvas.addEventListener("touchstart",function(){w=!0}),z.glplot.canvas.addEventListener("wheel",function(B){if(N._context._scrollZoom.gl3d){if(z.camera._ortho){var X=B.deltaX>B.deltaY?1.1:.9090909090909091,$=z.glplot.getAspectratio();z.glplot.setAspectratio({x:X*$.x,y:X*$.y,z:X*$.z})}U(z)}},e?{passive:!1}:!1),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var B=P();z.graphDiv.emit("plotly_relayouting",B)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(B){N&&N.emit&&N.emit("plotly_webglcontextlost",{event:B,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},M.render=function(){var z=this,F=z.graphDiv,N,O=z.svgContainer,P=z.container.getBoundingClientRect();F._fullLayout._calcInverseTransform(F);var U=F._fullLayout._invScaleX,B=F._fullLayout._invScaleY,X=P.width*U,$=P.height*B;O.setAttributeNS(null,"viewBox","0 0 "+X+" "+$),O.setAttributeNS(null,"width",X),O.setAttributeNS(null,"height",$),p(z),z.glplot.axes.update(z.axesOptions);for(var se=Object.keys(z.traces),le=null,fe=z.glplot.selection,V=0;V<se.length;++V)N=z.traces[se[V]],N.data.hoverinfo!=="skip"&&N.handlePick(fe)&&(le=N),N.setContourLevels&&N.setContourLevels();function Y(Ze,at,nt){var rt=z.fullSceneLayout[Ze+"axis"];return rt.type!=="log"&&(at=rt.d2l(at)),a.hoverLabelText(rt,at,nt)}if(le!==null){var ee=h(z.glplot.cameraParams,fe.dataCoordinate);N=le.data;var q=F._fullData[N.index],oe=fe.index,ae={xLabel:Y("x",fe.traceCoordinate[0],N.xhoverformat),yLabel:Y("y",fe.traceCoordinate[1],N.yhoverformat),zLabel:Y("z",fe.traceCoordinate[2],N.zhoverformat)},j=n.castHoverinfo(q,z.fullLayout,oe),Q=(j||"").split("+"),re=j&&j==="all";!q.hovertemplate&&!re&&(Q.indexOf("x")===-1&&(ae.xLabel=void 0),Q.indexOf("y")===-1&&(ae.yLabel=void 0),Q.indexOf("z")===-1&&(ae.zLabel=void 0),Q.indexOf("text")===-1&&(fe.textLabel=void 0),Q.indexOf("name")===-1&&(le.name=void 0));var ce,be=[];N.type==="cone"||N.type==="streamtube"?(ae.uLabel=Y("x",fe.traceCoordinate[3],N.uhoverformat),(re||Q.indexOf("u")!==-1)&&be.push("u: "+ae.uLabel),ae.vLabel=Y("y",fe.traceCoordinate[4],N.vhoverformat),(re||Q.indexOf("v")!==-1)&&be.push("v: "+ae.vLabel),ae.wLabel=Y("z",fe.traceCoordinate[5],N.whoverformat),(re||Q.indexOf("w")!==-1)&&be.push("w: "+ae.wLabel),ae.normLabel=fe.traceCoordinate[6].toPrecision(3),(re||Q.indexOf("norm")!==-1)&&be.push("norm: "+ae.normLabel),N.type==="streamtube"&&(ae.divergenceLabel=fe.traceCoordinate[7].toPrecision(3),(re||Q.indexOf("divergence")!==-1)&&be.push("divergence: "+ae.divergenceLabel)),fe.textLabel&&be.push(fe.textLabel),ce=be.join("<br>")):N.type==="isosurface"||N.type==="volume"?(ae.valueLabel=a.hoverLabelText(z._mockAxis,z._mockAxis.d2l(fe.traceCoordinate[3]),N.valuehoverformat),be.push("value: "+ae.valueLabel),fe.textLabel&&be.push(fe.textLabel),ce=be.join("<br>")):ce=fe.textLabel;var Ae={x:fe.traceCoordinate[0],y:fe.traceCoordinate[1],z:fe.traceCoordinate[2],data:q._input,fullData:q,curveNumber:q.index,pointNumber:oe};n.appendArrayPointValue(Ae,q,oe),N._module.eventData&&(Ae=q._module.eventData(Ae,fe,q,{},oe));var De={points:[Ae]};if(z.fullSceneLayout.hovermode){var ze=[];n.loneHover({trace:q,x:(.5+.5*ee[0]/ee[3])*X,y:(.5-.5*ee[1]/ee[3])*$,xLabel:ae.xLabel,yLabel:ae.yLabel,zLabel:ae.zLabel,text:ce,name:le.name,color:n.castHoverOption(q,oe,"bgcolor")||le.color,borderColor:n.castHoverOption(q,oe,"bordercolor"),fontFamily:n.castHoverOption(q,oe,"font.family"),fontSize:n.castHoverOption(q,oe,"font.size"),fontColor:n.castHoverOption(q,oe,"font.color"),nameLength:n.castHoverOption(q,oe,"namelength"),textAlign:n.castHoverOption(q,oe,"align"),hovertemplate:r.castOption(q,oe,"hovertemplate"),hovertemplateLabels:r.extendFlat({},Ae,ae),eventData:[Ae]},{container:O,gd:F,inOut_bbox:ze}),Ae.bbox=ze[0]}fe.distance<5&&(fe.buttons||w)?F.emit("plotly_click",De):F.emit("plotly_hover",De),this.oldEventData=De}else n.loneUnhover(O),this.oldEventData&&F.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;z.drawAnnotations(z)},M.recoverContext=function(){var z=this;z.glplot.dispose();var F=function(){if(z.glplot.gl.isContextLost()){requestAnimationFrame(F);return}if(!z.initializeGLPlot()){r.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}z.plot.apply(z,z.plotArgs)};requestAnimationFrame(F)};var b=["xaxis","yaxis","zaxis"];function d(z,F,N){for(var O=z.fullSceneLayout,P=0;P<3;P++){var U=b[P],B=U.charAt(0),X=O[U],$=F[B],se=F[B+"calendar"],le=F["_"+B+"length"];if(!r.isArrayOrTypedArray($))N[0][P]=Math.min(N[0][P],0),N[1][P]=Math.max(N[1][P],le-1);else for(var fe,V=0;V<(le||$.length);V++)if(r.isArrayOrTypedArray($[V]))for(var Y=0;Y<$[V].length;++Y)fe=X.d2l($[V][Y],0,se),!isNaN(fe)&&isFinite(fe)&&(N[0][P]=Math.min(N[0][P],fe),N[1][P]=Math.max(N[1][P],fe));else fe=X.d2l($[V],0,se),!isNaN(fe)&&isFinite(fe)&&(N[0][P]=Math.min(N[0][P],fe),N[1][P]=Math.max(N[1][P],fe))}}function u(z,F){for(var N=z.fullSceneLayout,O=N.annotations||[],P=0;P<3;P++)for(var U=b[P],B=U.charAt(0),X=N[U],$=0;$<O.length;$++){var se=O[$];if(se.visible){var le=X.r2l(se[B]);!isNaN(le)&&isFinite(le)&&(F[0][P]=Math.min(F[0][P],le),F[1][P]=Math.max(F[1][P],le))}}}M.plot=function(z,F,N){var O=this;if(O.plotArgs=[z,F,N],!O.glplot.contextLost){var P,U,B,X,$,se,le=F[O.id],fe=N[O.id];O.fullLayout=F,O.fullSceneLayout=le,O.axesOptions.merge(F,le),O.spikeOptions.merge(le),O.setViewport(le),O.updateFx(le.dragmode,le.hovermode),O.camera.enableWheel=O.graphDiv._context._scrollZoom.gl3d,O.glplot.setClearColor(i(le.bgcolor)),O.setConvert($),z?Array.isArray(z)||(z=[z]):z=[];var V=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(B=0;B<z.length;++B)P=z[B],!(P.visible!==!0||P._length===0)&&d(this,P,V);u(this,V);var Y=[1,1,1];for(X=0;X<3;++X)V[1][X]===V[0][X]?Y[X]=1:Y[X]=1/(V[1][X]-V[0][X]);for(O.dataScale=Y,O.convertAnnotations(this),B=0;B<z.length;++B)P=z[B],!(P.visible!==!0||P._length===0)&&(U=O.traces[P.uid],U?U.data.type===P.type?U.update(P):(U.dispose(),U=P._module.plot(this,P),O.traces[P.uid]=U):(U=P._module.plot(this,P),O.traces[P.uid]=U),U.name=P.name);var ee=Object.keys(O.traces);e:for(B=0;B<ee.length;++B){for(X=0;X<z.length;++X)if(z[X].uid===ee[B]&&z[X].visible===!0&&z[X]._length!==0)continue e;U=O.traces[ee[B]],U.dispose(),delete O.traces[ee[B]]}O.glplot.objects.sort(function(Qe,Pt){return Qe._trace.data.index-Pt._trace.data.index});var q=[[0,0,0],[0,0,0]],oe=[],ae={};for(B=0;B<3;++B){$=le[b[B]],se=$.type,se in ae?(ae[se].acc*=Y[B],ae[se].count+=1):ae[se]={acc:Y[B],count:1};var j;if($.autorange){q[0][B]=1/0,q[1][B]=-1/0;var Q=O.glplot.objects,re=O.fullSceneLayout.annotations||[],ce=$._name.charAt(0);for(X=0;X<Q.length;X++){var be=Q[X],Ae=be.bounds,De=be._trace.data._pad||0;be.constructor.name==="ErrorBars"&&$._lowerLogErrorBound?q[0][B]=Math.min(q[0][B],$._lowerLogErrorBound):q[0][B]=Math.min(q[0][B],Ae[0][B]/Y[B]-De),q[1][B]=Math.max(q[1][B],Ae[1][B]/Y[B]+De)}for(X=0;X<re.length;X++){var ze=re[X];if(ze.visible){var Ze=$.r2l(ze[ce]);q[0][B]=Math.min(q[0][B],Ze),q[1][B]=Math.max(q[1][B],Ze)}}if("rangemode"in $&&$.rangemode==="tozero"&&(q[0][B]=Math.min(q[0][B],0),q[1][B]=Math.max(q[1][B],0)),q[0][B]>q[1][B])q[0][B]=-1,q[1][B]=1;else{var at=q[1][B]-q[0][B];q[0][B]-=at/32,q[1][B]+=at/32}if(j=[q[0][B],q[1][B]],j=T(j,$),q[0][B]=j[0],q[1][B]=j[1],$.isReversed()){var nt=q[0][B];q[0][B]=q[1][B],q[1][B]=nt}}else j=$.range,q[0][B]=$.r2l(j[0]),q[1][B]=$.r2l(j[1]);q[0][B]===q[1][B]&&(q[0][B]-=1,q[1][B]+=1),oe[B]=q[1][B]-q[0][B],$.range=[q[0][B],q[1][B]],$.limitRange(),O.glplot.setBounds(B,{min:$.range[0]*Y[B],max:$.range[1]*Y[B]})}var rt,st=le.aspectmode;if(st==="cube")rt=[1,1,1];else if(st==="manual"){var Me=le.aspectratio;rt=[Me.x,Me.y,Me.z]}else if(st==="auto"||st==="data"){var ye=[1,1,1];for(B=0;B<3;++B){$=le[b[B]],se=$.type;var he=ae[se];ye[B]=Math.pow(he.acc,1/he.count)/Y[B]}st==="data"||Math.max.apply(null,ye)/Math.min.apply(null,ye)<=4?rt=ye:rt=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");le.aspectratio.x=fe.aspectratio.x=rt[0],le.aspectratio.y=fe.aspectratio.y=rt[1],le.aspectratio.z=fe.aspectratio.z=rt[2],O.glplot.setAspectratio(le.aspectratio),O.viewInitial.aspectratio||(O.viewInitial.aspectratio={x:le.aspectratio.x,y:le.aspectratio.y,z:le.aspectratio.z}),O.viewInitial.aspectmode||(O.viewInitial.aspectmode=le.aspectmode);var Oe=le.domain||null,tt=F._size||null;if(Oe&&tt){var ot=O.container.style;ot.position="absolute",ot.left=tt.l+Oe.x[0]*tt.w+"px",ot.top=tt.t+(1-Oe.y[1])*tt.h+"px",ot.width=tt.w*(Oe.x[1]-Oe.x[0])+"px",ot.height=tt.h*(Oe.y[1]-Oe.y[0])+"px"}O.glplot.redraw()}},M.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)};function y(z){return[[z.eye.x,z.eye.y,z.eye.z],[z.center.x,z.center.y,z.center.z],[z.up.x,z.up.y,z.up.z]]}function f(z){return{up:{x:z.up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var z=this;return z.camera.view.recalcMatrix(z.camera.view.lastT()),f(z.camera)},M.setViewport=function(z){var F=this,N=z.camera;F.camera.lookAt.apply(this,y(N)),F.glplot.setAspectratio(z.aspectratio);var O=N.projection.type==="orthographic",P=F.camera._ortho;O!==P&&(F.glplot.redraw(),F.glplot.clearRGBA(),F.glplot.dispose(),F.initializeGLPlot())},M.isCameraChanged=function(z){var F=this,N=F.getCamera(),O=r.nestedProperty(z,F.id+".camera"),P=O.get();function U(se,le,fe,V){var Y=["up","center","eye"],ee=["x","y","z"];return le[Y[fe]]&&se[Y[fe]][ee[V]]===le[Y[fe]][ee[V]]}var B=!1;if(P===void 0)B=!0;else{for(var X=0;X<3;X++)for(var $=0;$<3;$++)if(!U(N,P,X,$)){B=!0;break}(!P.projection||N.projection&&N.projection.type!==P.projection.type)&&(B=!0)}return B},M.isAspectChanged=function(z){var F=this,N=F.glplot.getAspectratio(),O=r.nestedProperty(z,F.id+".aspectratio"),P=O.get();return P===void 0||P.x!==N.x||P.y!==N.y||P.z!==N.z},M.saveLayout=function(z){var F=this,N=F.fullLayout,O,P,U,B,X,$,se=F.isCameraChanged(z),le=F.isAspectChanged(z),fe=se||le;if(fe){var V={};if(se&&(O=F.getCamera(),P=r.nestedProperty(z,F.id+".camera"),U=P.get(),V[F.id+".camera"]=U),le&&(B=F.glplot.getAspectratio(),X=r.nestedProperty(z,F.id+".aspectratio"),$=X.get(),V[F.id+".aspectratio"]=$),t.call("_storeDirectGUIEdit",z,N._preGUI,V),se){P.set(O);var Y=r.nestedProperty(N,F.id+".camera");Y.set(O)}if(le){X.set(B);var ee=r.nestedProperty(N,F.id+".aspectratio");ee.set(B),F.glplot.redraw()}}return fe},M.updateFx=function(z,F){var N=this,O=N.camera;if(O)if(z==="orbit")O.mode="orbit",O.keyBindingMode="rotate";else if(z==="turntable"){O.up=[0,0,1],O.mode="turntable",O.keyBindingMode="rotate";var P=N.graphDiv,U=P._fullLayout,B=N.fullSceneLayout.camera,X=B.up.x,$=B.up.y,se=B.up.z;if(se/Math.sqrt(X*X+$*$+se*se)<.999){var le=N.id+".camera.up",fe={x:0,y:0,z:1},V={};V[le]=fe;var Y=P.layout;t.call("_storeDirectGUIEdit",Y,U._preGUI,V),B.up=fe,r.nestedProperty(Y,le).set(fe)}}else O.keyBindingMode=z;N.fullSceneLayout.hovermode=F};function R(z,F,N){for(var O=0,P=N-1;O<P;++O,--P)for(var U=0;U<F;++U)for(var B=0;B<4;++B){var X=4*(F*O+U)+B,$=4*(F*P+U)+B,se=z[X];z[X]=z[$],z[$]=se}}function L(z,F,N){for(var O=0;O<N;++O)for(var P=0;P<F;++P){var U=4*(F*O+P),B=z[U+3];if(B>0)for(var X=255/B,$=0;$<3;++$)z[U+$]=Math.min(X*z[U+$],255)}}M.toImage=function(z){var F=this;z||(z="png"),F.staticMode&&F.container.appendChild(l),F.glplot.redraw();var N=F.glplot.gl,O=N.drawingBufferWidth,P=N.drawingBufferHeight;N.bindFramebuffer(N.FRAMEBUFFER,null);var U=new Uint8Array(O*P*4);N.readPixels(0,0,O,P,N.RGBA,N.UNSIGNED_BYTE,U),R(U,O,P),L(U,O,P);var B=document.createElement("canvas");B.width=O,B.height=P;var X=B.getContext("2d",{willReadFrequently:!0}),$=X.createImageData(O,P);$.data.set(U),X.putImageData($,0,0);var se;switch(z){case"jpeg":se=B.toDataURL("image/jpeg");break;case"webp":se=B.toDataURL("image/webp");break;default:se=B.toDataURL("image/png")}return F.staticMode&&F.container.removeChild(l),se},M.setConvert=function(){for(var z=this,F=0;F<3;F++){var N=z.fullSceneLayout[b[F]];a.setConvert(N,z.fullLayout),N.setScale=r.noop}},M.make4thDimension=function(){var z=this,F=z.graphDiv,N=F._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},a.setConvert(z._mockAxis,N)},G.exports=A}}),rU=Xe({"src/plots/gl3d/layout/attributes.js"(Z,G){"use strict";G.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}}}),AE=Xe({"src/plots/gl3d/layout/axis_attributes.js"(Z,G){"use strict";var v=$n(),x=Wh(),S=Qo().extendFlat,E=pc().overrideAll;G.exports=E({visible:x.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:v.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:x.color,categoryorder:x.categoryorder,categoryarray:x.categoryarray,title:{text:x.title.text,font:x.title.font},type:S({},x.type,{values:["-","linear","log","date","category"]}),autotypenumbers:x.autotypenumbers,autorange:x.autorange,autorangeoptions:{minallowed:x.autorangeoptions.minallowed,maxallowed:x.autorangeoptions.maxallowed,clipmin:x.autorangeoptions.clipmin,clipmax:x.autorangeoptions.clipmax,include:x.autorangeoptions.include,editType:"plot"},rangemode:x.rangemode,minallowed:x.minallowed,maxallowed:x.maxallowed,range:S({},x.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:x.minor.tickmode,nticks:x.nticks,tick0:x.tick0,dtick:x.dtick,tickvals:x.tickvals,ticktext:x.ticktext,ticks:x.ticks,mirror:x.mirror,ticklen:x.ticklen,tickwidth:x.tickwidth,tickcolor:x.tickcolor,showticklabels:x.showticklabels,labelalias:x.labelalias,tickfont:x.tickfont,tickangle:x.tickangle,tickprefix:x.tickprefix,showtickprefix:x.showtickprefix,ticksuffix:x.ticksuffix,showticksuffix:x.showticksuffix,showexponent:x.showexponent,exponentformat:x.exponentformat,minexponent:x.minexponent,separatethousands:x.separatethousands,tickformat:x.tickformat,tickformatstops:x.tickformatstops,hoverformat:x.hoverformat,showline:x.showline,linecolor:x.linecolor,linewidth:x.linewidth,showgrid:x.showgrid,gridcolor:S({},x.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:x.gridwidth,zeroline:x.zeroline,zerolinecolor:x.zerolinecolor,zerolinewidth:x.zerolinewidth},"plot","from-root")}}),SE=Xe({"src/plots/gl3d/layout/layout_attributes.js"(Z,G){"use strict";var v=AE(),x=wc().attributes,S=Qo().extendFlat,E=sa().counterRegex;function e(t,r,o){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:o,editType:"camera"},editType:"camera"}}G.exports={_arrayAttrRegexps:[E("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:S(e(0,0,1),{}),center:S(e(0,0,0),{}),eye:S(e(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:x({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:v,yaxis:v,zaxis:v,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}}}),aU=Xe({"src/plots/gl3d/layout/axis_defaults.js"(Z,G){"use strict";var v=Ch().mix,x=sa(),S=zl(),E=AE(),e=B5(),t=F_(),r=["xaxis","yaxis","zaxis"],o=100*136/187;G.exports=function(n,i,s){var h,c;function m(l,_){return x.coerce(h,c,E,l,_)}for(var p=0;p<r.length;p++){var T=r[p];h=n[T]||{},c=S.newContainer(i,T),c._id=T[0]+s.scene,c._name=T,e(h,c,m,s),t(h,c,m,{font:s.font,letter:T[0],data:s.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:s.bgColor,calendar:s.calendar},s.fullLayout),m("gridcolor",v(c.color,s.bgColor,o).toRgbString()),m("title.text",T[0]),c.setScale=x.noop,m("showspikes")&&(m("spikesides"),m("spikethickness"),m("spikecolor",c.color)),m("showaxeslabels"),m("showbackground")&&m("backgroundcolor")}}}}),iU=Xe({"src/plots/gl3d/layout/defaults.js"(Z,G){"use strict";var v=sa(),x=$n(),S=so(),E=o0(),e=aU(),t=SE(),r=Hh().getSubplotData,o="gl3d";G.exports=function(i,s,h){var c=s._basePlotModules.length>1;function m(p){if(!c){var T=v.validate(i[p],t[p]);if(T)return i[p]}}E(i,s,h,{type:o,attributes:t,handleDefaults:a,fullLayout:s,font:s.font,fullData:h,getDfltFromLayout:m,autotypenumbersDflt:s.autotypenumbers,paper_bgcolor:s.paper_bgcolor,calendar:s.calendar})};function a(n,i,s,h){for(var c=s("bgcolor"),m=x.combine(c,h.paper_bgcolor),p=["up","center","eye"],T=0;T<p.length;T++)s("camera."+p[T]+".x"),s("camera."+p[T]+".y"),s("camera."+p[T]+".z");s("camera.projection.type");var l=!!s("aspectratio.x")&&!!s("aspectratio.y")&&!!s("aspectratio.z"),_=l?"manual":"auto",w=s("aspectmode",_);l||(n.aspectratio=i.aspectratio={x:1,y:1,z:1},w==="manual"&&(i.aspectmode="auto"),n.aspectmode=i.aspectmode);var A=r(h.fullData,o,h.id);e(n,i,{font:h.font,scene:h.id,data:A,bgColor:m,calendar:h.calendar,autotypenumbersDflt:h.autotypenumbersDflt,fullLayout:h.fullLayout}),S.getComponentMethod("annotations3d","handleDefaults")(n,i,h);var M=h.getDfltFromLayout("dragmode");if(M!==!1&&!M)if(M="orbit",n.camera&&n.camera.up){var g=n.camera.up.x,b=n.camera.up.y,d=n.camera.up.z;d!==0&&(!g||!b||!d||d/Math.sqrt(g*g+b*b+d*d)>.999)&&(M="turntable")}else M="turntable";s("dragmode",M),s("hovermode",h.getDfltFromLayout("hovermode"))}}}),v0=Xe({"src/plots/gl3d/index.js"(Z){"use strict";var G=pc().overrideAll,v=Zm(),x=tU(),S=Hh().getSubplotData,E=sa(),e=vd(),t="gl3d",r="scene";Z.name=t,Z.attr=r,Z.idRoot=r,Z.idRegex=Z.attrRegex=E.counterRegex("scene"),Z.attributes=rU(),Z.layoutAttributes=SE(),Z.baseLayoutAttrOverrides=G({hoverlabel:v.hoverlabel},"plot","nested"),Z.supplyLayoutDefaults=iU(),Z.plot=function(a){for(var n=a._fullLayout,i=a._fullData,s=n._subplots[t],h=0;h<s.length;h++){var c=s[h],m=S(i,t,c),p=n[c],T=p.camera,l=p._scene;l||(l=new x({id:c,graphDiv:a,container:a.querySelector(".gl-container"),staticPlot:a._context.staticPlot,plotGlPixelRatio:a._context.plotGlPixelRatio,camera:T},n),p._scene=l),l.viewInitial||(l.viewInitial={up:{x:T.up.x,y:T.up.y,z:T.up.z},eye:{x:T.eye.x,y:T.eye.y,z:T.eye.z},center:{x:T.center.x,y:T.center.y,z:T.center.z}}),l.plot(m,n,a.layout)}},Z.clean=function(o,a,n,i){for(var s=i._subplots[t]||[],h=0;h<s.length;h++){var c=s[h];!a[c]&&i[c]._scene&&(i[c]._scene.destroy(),i._infolayer&&i._infolayer.selectAll(".annotation-"+c).remove())}},Z.toSVG=function(o){for(var a=o._fullLayout,n=a._subplots[t],i=a._size,s=0;s<n.length;s++){var h=a[n[s]],c=h.domain,m=h._scene,p=m.toImage("png"),T=a._glimages.append("svg:image");T.attr({xmlns:e.svg,"xlink:href":p,x:i.l+i.w*c.x[0],y:i.t+i.h*(1-c.y[1]),width:i.w*(c.x[1]-c.x[0]),height:i.h*(c.y[1]-c.y[0]),preserveAspectRatio:"none"}),m.destroy()}},Z.cleanId=function(a){if(a.match(/^scene[0-9]*$/)){var n=a.slice(5);return n==="1"&&(n=""),r+n}},Z.updateFx=function(o){for(var a=o._fullLayout,n=a._subplots[t],i=0;i<n.length;i++){var s=a[n[i]]._scene;s.updateFx(a.dragmode,a.hovermode)}}}}),nU=Xe({"src/traces/scatter3d/index.js"(Z,G){"use strict";G.exports={plot:XN(),attributes:wE(),markerSymbols:eT(),supplyDefaults:ZN(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:YN(),moduleType:"trace",name:"scatter3d",basePlotModule:v0(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}}}),oU=Xe({"lib/scatter3d.js"(Z,G){"use strict";G.exports=nU()}}),gx=Xe({"src/traces/surface/attributes.js"(Z,G){"use strict";var v=$n(),x=ku(),S=tf().axisHoverFormat,{hovertemplateAttrs:E,templatefallbackAttrs:e}=Jl(),t=ru(),r=Qo().extendFlat,o=pc().overrideAll;function a(s){return{valType:"boolean",dflt:!1}}function n(s){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:a("x"),y:a("y"),z:a("z")},color:{valType:"color",dflt:v.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:v.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var i=G.exports=o(r({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:E(),hovertemplatefallback:e(),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},x("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:n("x"),y:n("y"),z:n("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:r({},t.hoverinfo),showlegend:r({},t.showlegend,{dflt:!1})}),"calc","nested");i.x.editType=i.y.editType=i.z.editType="calc+clearAxisTypes"}}),ME=Xe({"src/traces/surface/defaults.js"(Z,G){"use strict";var v=so(),x=sa(),S=_h(),E=gx(),e=.1;function t(n,i){for(var s=[],h=32,c=0;c<h;c++){var m=c/(h-1),p=i+(1-i)*(1-Math.pow(Math.sin(n*m*Math.PI),2));s.push([m,Math.max(0,Math.min(1,p))])}return s}function r(n){var i=0;if(!Array.isArray(n)||n.length<2||!n[0]||!n[n.length-1]||+n[0][0]!=0||+n[n.length-1][0]!=1)return!1;for(var s=0;s<n.length;s++){var h=n[s];if(h.length!==2||+h[0]<i)return!1;i=+h[0]}return!0}function o(n,i,s,h){var c,m;function p(u,y){return x.coerce(n,i,E,u,y)}var T=p("x"),l=p("y"),_=p("z");if(!_||!_.length||T&&T.length<1||l&&l.length<1){i.visible=!1;return}i._xlength=Array.isArray(T)&&x.isArrayOrTypedArray(T[0])?_.length:_[0].length,i._ylength=_.length;var w=v.getComponentMethod("calendars","handleTraceDefaults");w(n,i,["x","y","z"],h),p("text"),p("hovertext"),p("hovertemplate"),p("hovertemplatefallback"),p("xhoverformat"),p("yhoverformat"),p("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(u){p(u)});var A=p("surfacecolor"),M=["x","y","z"];for(c=0;c<3;++c){var g="contours."+M[c],b=p(g+".show"),d=p(g+".highlight");if(b||d)for(m=0;m<3;++m)p(g+".project."+M[m]);b&&(p(g+".color"),p(g+".width"),p(g+".usecolormap")),d&&(p(g+".highlightcolor"),p(g+".highlightwidth")),p(g+".start"),p(g+".end"),p(g+".size")}S(n,i,h,p,{prefix:"",cLetter:"c"}),a(n,i,h,p),i._length=null}function a(n,i,s,h){var c=h("opacityscale");c==="max"?i.opacityscale=[[0,e],[1,1]]:c==="min"?i.opacityscale=[[0,1],[1,e]]:c==="extremes"?i.opacityscale=t(1,e):r(c)||(i.opacityscale=void 0)}G.exports={supplyDefaults:o,opacityscaleDefaults:a}}}),sU=Xe({"src/traces/surface/calc.js"(Z,G){"use strict";var v=Tp();G.exports=function(S,E){E.surfacecolor?v(S,E,{vals:E.surfacecolor,containerStr:"",cLetter:"c"}):v(S,E,{vals:E.z,containerStr:"",cLetter:"c"})}}}),lU=Xe({"src/traces/surface/convert.js"(Z,G){"use strict";var v=Yh().gl_surface3d,x=Yh().ndarray,S=Yh().ndarray_linear_interpolate.d2,E=K2(),e=J2(),t=sa().isArrayOrTypedArray,r=tm().parseColorScale,o=em(),a=rc().extractOpts;function n(y,f,R){this.scene=y,this.uid=R,this.surface=f,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var i=n.prototype;i.getXat=function(y,f,R,L){var z=t(this.data.x)?t(this.data.x[0])?this.data.x[f][y]:this.data.x[y]:y;return R===void 0?z:L.d2l(z,0,R)},i.getYat=function(y,f,R,L){var z=t(this.data.y)?t(this.data.y[0])?this.data.y[f][y]:this.data.y[f]:f;return R===void 0?z:L.d2l(z,0,R)},i.getZat=function(y,f,R,L){var z=this.data.z[f][y];return z===null&&this.data.connectgaps&&this.data._interpolatedZ&&(z=this.data._interpolatedZ[f][y]),R===void 0?z:L.d2l(z,0,R)},i.handlePick=function(y){if(y.object===this.surface){var f=(y.data.index[0]-1)/this.dataScaleX-1,R=(y.data.index[1]-1)/this.dataScaleY-1,L=Math.max(Math.min(Math.round(f),this.data.z[0].length-1),0),z=Math.max(Math.min(Math.round(R),this.data._ylength-1),0);y.index=[L,z],y.traceCoordinate=[this.getXat(L,z),this.getYat(L,z),this.getZat(L,z)],y.dataCoordinate=[this.getXat(L,z,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(L,z,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(L,z,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var F=0;F<3;F++){var N=y.dataCoordinate[F];N!=null&&(y.dataCoordinate[F]*=this.scene.dataScale[F])}var O=this.data.hovertext||this.data.text;return t(O)&&O[z]&&O[z][L]!==void 0?y.textLabel=O[z][L]:O?y.textLabel=O:y.textLabel="",y.data.dataCoordinate=y.dataCoordinate.slice(),this.surface.highlight(y.data),this.scene.glplot.spikes.position=y.dataCoordinate,!0}};function s(y){var f=y[0].rgb,R=y[y.length-1].rgb;return f[0]===R[0]&&f[1]===R[1]&&f[2]===R[2]&&f[3]===R[3]}var h=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function c(y,f){if(y<f)return 0;for(var R=0;Math.floor(y%f)===0;)y/=f,R++;return R}function m(y){for(var f=[],R=0;R<h.length;R++){var L=h[R];f.push(c(y,L))}return f}function p(y){for(var f=m(y),R=y,L=0;L<h.length;L++)if(f[L]>0){R=h[L];break}return R}function T(y,f){if(!(y<1||f<1)){for(var R=m(y),L=m(f),z=1,F=0;F<h.length;F++)z*=Math.pow(h[F],Math.max(R[F],L[F]));return z}}function l(y){if(y.length!==0){for(var f=1,R=0;R<y.length;R++)f=T(f,y[R]);return f}}i.calcXnums=function(y){var f,R=[];for(f=1;f<y;f++){var L=this.getXat(f-1,0),z=this.getXat(f,0);z!==L&&L!==void 0&&L!==null&&z!==void 0&&z!==null?R[f-1]=Math.abs(z-L):R[f-1]=0}var F=0;for(f=1;f<y;f++)F+=R[f-1];for(f=1;f<y;f++)R[f-1]===0?R[f-1]=1:R[f-1]=Math.round(F/R[f-1]);return R},i.calcYnums=function(y){var f,R=[];for(f=1;f<y;f++){var L=this.getYat(0,f-1),z=this.getYat(0,f);z!==L&&L!==void 0&&L!==null&&z!==void 0&&z!==null?R[f-1]=Math.abs(z-L):R[f-1]=0}var F=0;for(f=1;f<y;f++)F+=R[f-1];for(f=1;f<y;f++)R[f-1]===0?R[f-1]=1:R[f-1]=Math.round(F/R[f-1]);return R};var _=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],w=_[9],A=_[13];i.estimateScale=function(y,f){for(var R=f===0?this.calcXnums(y):this.calcYnums(y),L=1+l(R);L<w;)L*=2;for(;L>A;)L--,L/=p(L),L++,L<w&&(L=A);var z=Math.round(L/y);return z>1?z:1};function M(y,f,R){var L=R[8]+R[2]*f[0]+R[5]*f[1];return y[0]=(R[6]+R[0]*f[0]+R[3]*f[1])/L,y[1]=(R[7]+R[1]*f[0]+R[4]*f[1])/L,y}function g(y,f,R){return b(y,f,M,R),y}function b(y,f,R,L){for(var z=[0,0],F=y.shape[0],N=y.shape[1],O=0;O<F;O++)for(var P=0;P<N;P++)R(z,[O,P],L),y.set(O,P,S(f,z[0],z[1]));return y}i.refineCoords=function(y){for(var f=this.dataScaleX,R=this.dataScaleY,L=y[0].shape[0],z=y[0].shape[1],F=Math.floor(y[0].shape[0]*f+1)|0,N=Math.floor(y[0].shape[1]*R+1)|0,O=1+L+1,P=1+z+1,U=x(new Float32Array(O*P),[O,P]),B=[1/f,0,0,0,1/R,0,0,0,1],X=0;X<y.length;++X){this.surface.padField(U,y[X]);var $=x(new Float32Array(F*N),[F,N]);g($,U,B),y[X]=$}};function d(y,f){for(var R=!1,L=0;L<y.length;L++)if(f===y[L]){R=!0;break}R===!1&&y.push(f)}i.setContourLevels=function(){var y=[[],[],[]],f=[!1,!1,!1],R=!1,L,z,F;for(L=0;L<3;++L)if(this.showContour[L]&&(R=!0,this.contourSize[L]>0&&this.contourStart[L]!==null&&this.contourEnd[L]!==null&&this.contourEnd[L]>this.contourStart[L]))for(f[L]=!0,z=this.contourStart[L];z<this.contourEnd[L];z+=this.contourSize[L])F=z*this.scene.dataScale[L],d(y[L],F);if(R){var N=[[],[],[]];for(L=0;L<3;++L)this.showContour[L]&&(N[L]=f[L]?y[L]:this.scene.contourLevels[L]);this.surface.update({levels:N})}},i.update=function(y){var f=this.scene,R=f.fullSceneLayout,L=this.surface,z=r(y),F=f.dataScale,N=y.z[0].length,O=y._ylength,P=f.contourLevels;this.data=y;var U,B,X,$,se=[];for(U=0;U<3;U++)for(se[U]=[],B=0;B<N;B++)se[U][B]=[];for(B=0;B<N;B++)for(X=0;X<O;X++)se[0][B][X]=this.getXat(B,X,y.xcalendar,R.xaxis),se[1][B][X]=this.getYat(B,X,y.ycalendar,R.yaxis),se[2][B][X]=this.getZat(B,X,y.zcalendar,R.zaxis);if(y.connectgaps)for(y._emptypoints=e(se[2]),E(se[2],y._emptypoints),y._interpolatedZ=[],B=0;B<N;B++)for(y._interpolatedZ[B]=[],X=0;X<O;X++)y._interpolatedZ[B][X]=se[2][B][X];for(U=0;U<3;U++)for(B=0;B<N;B++)for(X=0;X<O;X++)$=se[U][B][X],$==null?se[U][B][X]=NaN:$=se[U][B][X]*=F[U];for(U=0;U<3;U++)for(B=0;B<N;B++)for(X=0;X<O;X++)$=se[U][B][X],$!=null&&(this.minValues[U]>$&&(this.minValues[U]=$),this.maxValues[U]<$&&(this.maxValues[U]=$));for(U=0;U<3;U++)this.objectOffset[U]=.5*(this.minValues[U]+this.maxValues[U]);for(U=0;U<3;U++)for(B=0;B<N;B++)for(X=0;X<O;X++)$=se[U][B][X],$!=null&&(se[U][B][X]-=this.objectOffset[U]);var le=[x(new Float32Array(N*O),[N,O]),x(new Float32Array(N*O),[N,O]),x(new Float32Array(N*O),[N,O])];for(U=0;U<3;U++)for(B=0;B<N;B++)for(X=0;X<O;X++)le[U].set(B,X,se[U][B][X]);se=[];var fe={colormap:z,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!y.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:y.opacityscale,opacity:y.opacity},V=a(y);if(fe.intensityBounds=[V.min,V.max],y.surfacecolor){var Y=x(new Float32Array(N*O),[N,O]);for(B=0;B<N;B++)for(X=0;X<O;X++)Y.set(B,X,y.surfacecolor[X][B]);le.push(Y)}else fe.intensityBounds[0]*=F[2],fe.intensityBounds[1]*=F[2];(A<le[0].shape[0]||A<le[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(le[0].shape[0],0),this.dataScaleY=this.estimateScale(le[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(le)),y.surfacecolor&&(fe.intensity=le.pop());var ee=[!0,!0,!0],q=["x","y","z"];for(U=0;U<3;++U){var oe=y.contours[q[U]];ee[U]=oe.highlight,fe.showContour[U]=oe.show||oe.highlight,fe.showContour[U]&&(fe.contourProject[U]=[oe.project.x,oe.project.y,oe.project.z],oe.show?(this.showContour[U]=!0,fe.levels[U]=P[U],L.highlightColor[U]=fe.contourColor[U]=o(oe.color),oe.usecolormap?L.highlightTint[U]=fe.contourTint[U]=0:L.highlightTint[U]=fe.contourTint[U]=1,fe.contourWidth[U]=oe.width,this.contourStart[U]=oe.start,this.contourEnd[U]=oe.end,this.contourSize[U]=oe.size):(this.showContour[U]=!1,this.contourStart[U]=null,this.contourEnd[U]=null,this.contourSize[U]=0),oe.highlight&&(fe.dynamicColor[U]=o(oe.highlightcolor),fe.dynamicWidth[U]=oe.highlightwidth))}s(z)&&(fe.vertexColor=!0),fe.objectOffset=this.objectOffset,fe.coords=le,L.update(fe),L.visible=y.visible,L.enableDynamic=ee,L.enableHighlight=ee,L.snapToData=!0,"lighting"in y&&(L.ambientLight=y.lighting.ambient,L.diffuseLight=y.lighting.diffuse,L.specularLight=y.lighting.specular,L.roughness=y.lighting.roughness,L.fresnel=y.lighting.fresnel),"lightposition"in y&&(L.lightPosition=[y.lightposition.x,y.lightposition.y,y.lightposition.z])},i.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function u(y,f){var R=y.glplot.gl,L=v({gl:R}),z=new n(y,L,f.uid);return L._trace=z,z.update(f),y.glplot.add(L),z}G.exports=u}}),uU=Xe({"src/traces/surface/index.js"(Z,G){"use strict";G.exports={attributes:gx(),supplyDefaults:ME().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:sU(),plot:lU(),moduleType:"trace",name:"surface",basePlotModule:v0(),categories:["gl3d","2dMap","showLegend"],meta:{}}}}),cU=Xe({"lib/surface.js"(Z,G){"use strict";G.exports=uU()}}),M1=Xe({"src/traces/mesh3d/attributes.js"(Z,G){"use strict";var v=ku(),x=tf().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=Jl(),e=gx(),t=ru(),r=Qo().extendFlat;G.exports=r({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:S({editType:"calc"}),hovertemplatefallback:E({editType:"calc"}),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},v("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:e.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:r({},e.contours.x.show,{}),color:e.contours.x.color,width:e.contours.x.width,editType:"calc"},lightposition:{x:r({},e.lightposition.x,{dflt:1e5}),y:r({},e.lightposition.y,{dflt:1e5}),z:r({},e.lightposition.z,{dflt:0}),editType:"calc"},lighting:r({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},e.lighting),hoverinfo:r({},t.hoverinfo,{editType:"calc"}),showlegend:r({},t.showlegend,{dflt:!1})})}}),tT=Xe({"src/traces/isosurface/attributes.js"(Z,G){"use strict";var v=ku(),x=tf().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=Jl(),e=M1(),t=ru(),r=Qo().extendFlat,o=pc().overrideAll;function a(s){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function n(s){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var i=G.exports=o(r({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:a("x"),y:a("y"),z:a("z")},caps:{x:n("x"),y:n("y"),z:n("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:S(),hovertemplatefallback:E(),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),valuehoverformat:x("value",1),showlegend:r({},t.showlegend,{dflt:!1})},v("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:e.opacity,lightposition:e.lightposition,lighting:e.lighting,flatshading:e.flatshading,contour:e.contour,hoverinfo:r({},t.hoverinfo)}),"calc","nested");i.flatshading.dflt=!0,i.lighting.facenormalsepsilon.dflt=0,i.x.editType=i.y.editType=i.z.editType=i.value.editType="calc+clearAxisTypes"}}),EE=Xe({"src/traces/isosurface/defaults.js"(Z,G){"use strict";var v=sa(),x=so(),S=tT(),E=_h();function e(r,o,a,n){function i(s,h){return v.coerce(r,o,S,s,h)}t(r,o,a,n,i)}function t(r,o,a,n,i){var s=i("isomin"),h=i("isomax");h!=null&&s!==void 0&&s!==null&&s>h&&(o.isomin=null,o.isomax=null);var c=i("x"),m=i("y"),p=i("z"),T=i("value");if(!c||!c.length||!m||!m.length||!p||!p.length||!T||!T.length){o.visible=!1;return}var l=x.getComponentMethod("calendars","handleTraceDefaults");l(r,o,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(M){i(M+"hoverformat");var g="caps."+M,b=i(g+".show");b&&i(g+".fill");var d="slices."+M,u=i(d+".show");u&&(i(d+".fill"),i(d+".locations"))});var _=i("spaceframe.show");_&&i("spaceframe.fill");var w=i("surface.show");w&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var A=i("contour.show");A&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(M){i(M)}),E(r,o,n,i,{prefix:"",cLetter:"c"}),o._length=null}G.exports={supplyDefaults:e,supplyIsoDefaults:t}}}),rT=Xe({"src/traces/streamtube/calc.js"(Z,G){"use strict";var v=sa(),x=Tp();function S(r,o){o._len=Math.min(o.u.length,o.v.length,o.w.length,o.x.length,o.y.length,o.z.length),o._u=t(o.u,o._len),o._v=t(o.v,o._len),o._w=t(o.w,o._len),o._x=t(o.x,o._len),o._y=t(o.y,o._len),o._z=t(o.z,o._len);var a=E(o);o._gridFill=a.fill,o._Xs=a.Xs,o._Ys=a.Ys,o._Zs=a.Zs,o._len=a.len;var n=0,i,s,h;o.starts&&(i=t(o.starts.x||[]),s=t(o.starts.y||[]),h=t(o.starts.z||[]),n=Math.min(i.length,s.length,h.length)),o._startsX=i||[],o._startsY=s||[],o._startsZ=h||[];var c=0,m=1/0,p;for(p=0;p<o._len;p++){var T=o._u[p],l=o._v[p],_=o._w[p],w=Math.sqrt(T*T+l*l+_*_);c=Math.max(c,w),m=Math.min(m,w)}for(x(r,o,{vals:[m,c],containerStr:"",cLetter:"c"}),p=0;p<n;p++){var A=i[p];a.xMax=Math.max(a.xMax,A),a.xMin=Math.min(a.xMin,A);var M=s[p];a.yMax=Math.max(a.yMax,M),a.yMin=Math.min(a.yMin,M);var g=h[p];a.zMax=Math.max(a.zMax,g),a.zMin=Math.min(a.zMin,g)}o._slen=n,o._normMax=c,o._xbnds=[a.xMin,a.xMax],o._ybnds=[a.yMin,a.yMax],o._zbnds=[a.zMin,a.zMax]}function E(r){var o=r._x,a=r._y,n=r._z,i=r._len,s,h,c,m=-1/0,p=1/0,T=-1/0,l=1/0,_=-1/0,w=1/0,A="",M,g,b,d,u,y,f,R,L;for(i&&(d=o[0],y=a[0],R=n[0]),i>1&&(u=o[i-1],f=a[i-1],L=n[i-1]),s=0;s<i;s++)m=Math.max(m,o[s]),p=Math.min(p,o[s]),T=Math.max(T,a[s]),l=Math.min(l,a[s]),_=Math.max(_,n[s]),w=Math.min(w,n[s]),!M&&o[s]!==d&&(M=!0,A+="x"),!g&&a[s]!==y&&(g=!0,A+="y"),!b&&n[s]!==R&&(b=!0,A+="z");M||(A+="x"),g||(A+="y"),b||(A+="z");var z=e(r._x),F=e(r._y),N=e(r._z);A=A.replace("x",(d>u?"-":"+")+"x"),A=A.replace("y",(y>f?"-":"+")+"y"),A=A.replace("z",(R>L?"-":"+")+"z");var O=function(){i=0,z=[],F=[],N=[]};(!i||i<z.length*F.length*N.length)&&O();var P=function(be){return be==="x"?o:be==="y"?a:n},U=function(be){return be==="x"?z:be==="y"?F:N},B=function(be){return be[i-1]<be[0]?-1:1},X=P(A[1]),$=P(A[3]),se=P(A[5]),le=U(A[1]).length,fe=U(A[3]).length,V=U(A[5]).length,Y=!1,ee=function(be,Ae,De){return le*(fe*be+Ae)+De},q=B(P(A[1])),oe=B(P(A[3])),ae=B(P(A[5]));for(s=0;s<V-1;s++){for(h=0;h<fe-1;h++){for(c=0;c<le-1;c++){var j=ee(s,h,c),Q=ee(s,h,c+1),re=ee(s,h+1,c),ce=ee(s+1,h,c);if((!(X[j]*q<X[Q]*q)||!($[j]*oe<$[re]*oe)||!(se[j]*ae<se[ce]*ae))&&(Y=!0),Y)break}if(Y)break}if(Y)break}return Y&&(v.warn("Encountered arbitrary coordinates! Unable to input data grid."),O()),{xMin:p,yMin:l,zMin:w,xMax:m,yMax:T,zMax:_,Xs:z,Ys:F,Zs:N,len:i,fill:A}}function e(r){return v.distinctVals(r).vals}function t(r,o){if(o===void 0&&(o=r.length),v.isTypedArray(r))return r.subarray(0,o);for(var a=[],n=0;n<o;n++)a[n]=+r[n];return a}G.exports={calc:S,filter:t,processGrid:E}}}),kE=Xe({"src/traces/isosurface/calc.js"(Z,G){"use strict";var v=Tp(),x=rT().processGrid,S=rT().filter;G.exports=function(e,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=S(t.x,t._len),t._y=S(t.y,t._len),t._z=S(t.z,t._len),t._value=S(t.value,t._len);var r=x(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;for(var o=1/0,a=-1/0,n=0;n<t._len;n++){var i=t._value[n];o=Math.min(o,i),a=Math.max(a,i)}t._minValues=o,t._maxValues=a,t._vMin=t.isomin===void 0||t.isomin===null?o:t.isomin,t._vMax=t.isomax===void 0||t.isomax===null?a:t.isomax,v(e,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}}}),E1=Xe({"src/plots/gl3d/zip3.js"(Z,G){"use strict";G.exports=function(x,S,E,e){e=e||x.length;for(var t=new Array(e),r=0;r<e;r++)t[r]=[x[r],S[r],E[r]];return t}}}),aT=Xe({"src/traces/isosurface/convert.js"(Z,G){"use strict";var v=Yh().gl_mesh3d,x=tm().parseColorScale,S=sa().isArrayOrTypedArray,E=em(),e=rc().extractOpts,t=E1(),r=function(h,c){for(var m=c.length-1;m>0;m--){var p=Math.min(c[m],c[m-1]),T=Math.max(c[m],c[m-1]);if(T>p&&p<h&&h<=T)return{id:m,distRatio:(T-h)/(T-p)}}return{id:0,distRatio:0}};function o(h,c,m){this.scene=h,this.uid=m,this.mesh=c,this.name="",this.data=null,this.showContour=!1}var a=o.prototype;a.handlePick=function(h){if(h.object===this.mesh){var c=h.data.index,m=this.data._meshX[c],p=this.data._meshY[c],T=this.data._meshZ[c],l=this.data._Ys.length,_=this.data._Zs.length,w=r(m,this.data._Xs).id,A=r(p,this.data._Ys).id,M=r(T,this.data._Zs).id,g=h.index=M+_*A+_*l*w;h.traceCoordinate=[this.data._meshX[g],this.data._meshY[g],this.data._meshZ[g],this.data._value[g]];var b=this.data.hovertext||this.data.text;return S(b)&&b[g]!==void 0?h.textLabel=b[g]:b&&(h.textLabel=b),!0}},a.update=function(h){var c=this.scene,m=c.fullSceneLayout;this.data=i(h);function p(A,M,g,b){return M.map(function(d){return A.d2l(d,0,b)*g})}var T=t(p(m.xaxis,h._meshX,c.dataScale[0],h.xcalendar),p(m.yaxis,h._meshY,c.dataScale[1],h.ycalendar),p(m.zaxis,h._meshZ,c.dataScale[2],h.zcalendar)),l=t(h._meshI,h._meshJ,h._meshK),_={positions:T,cells:l,lightPosition:[h.lightposition.x,h.lightposition.y,h.lightposition.z],ambient:h.lighting.ambient,diffuse:h.lighting.diffuse,specular:h.lighting.specular,roughness:h.lighting.roughness,fresnel:h.lighting.fresnel,vertexNormalsEpsilon:h.lighting.vertexnormalsepsilon,faceNormalsEpsilon:h.lighting.facenormalsepsilon,opacity:h.opacity,contourEnable:h.contour.show,contourColor:E(h.contour.color).slice(0,3),contourWidth:h.contour.width,useFacetNormals:h.flatshading},w=e(h);_.vertexIntensity=h._meshIntensity,_.vertexIntensityBounds=[w.min,w.max],_.colormap=x(h),this.mesh.update(_)},a.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var n=["xyz","xzy","yxz","yzx","zxy","zyx"];function i(h){h._meshI=[],h._meshJ=[],h._meshK=[];var c=h.surface.show,m=h.spaceframe.show,p=h.surface.fill,T=h.spaceframe.fill,l=!1,_=!1,w=0,A,M,g=h._Xs,b=h._Ys,d=h._Zs,u=g.length,y=b.length,f=d.length,R=n.indexOf(h._gridFill.replace(/-/g,"").replace(/\+/g,"")),L=function(wt,Ne,Ke){switch(R){case 5:return Ke+f*Ne+f*y*wt;case 4:return Ke+f*wt+f*u*Ne;case 3:return Ne+y*Ke+y*f*wt;case 2:return Ne+y*wt+y*u*Ke;case 1:return wt+u*Ke+u*f*Ne;default:return wt+u*Ne+u*y*Ke}},z=h._minValues,F=h._maxValues,N=h._vMin,O=h._vMax,P,U,B,X;function $(wt,Ne,Ke){for(var Te=X.length,Ie=M;Ie<Te;Ie++)if(wt===P[Ie]&&Ne===U[Ie]&&Ke===B[Ie])return Ie;return-1}function se(){M=A}function le(){P=[],U=[],B=[],X=[],A=0,se()}function fe(wt,Ne,Ke,Te){return P.push(wt),U.push(Ne),B.push(Ke),X.push(Te),A++,A-1}function V(wt,Ne,Ke){return h._meshI.push(wt),h._meshJ.push(Ne),h._meshK.push(Ke),w++,w-1}function Y(wt,Ne,Ke){for(var Te=[],Ie=0;Ie<wt.length;Ie++)Te[Ie]=(wt[Ie]+Ne[Ie]+Ke[Ie])/3;return Te}function ee(wt,Ne,Ke){for(var Te=[],Ie=0;Ie<wt.length;Ie++)Te[Ie]=wt[Ie]*(1-Ke)+Ke*Ne[Ie];return Te}var q;function oe(wt){q=wt}function ae(wt,Ne){var Ke=wt[0],Te=wt[1],Ie=wt[2],Ve=Y(Ke,Te,Ie),Ce=Math.sqrt(1-q),Ee=ee(Ve,Ke,Ce),Pe=ee(Ve,Te,Ce),ft=ee(Ve,Ie,Ce),ct=Ne[0],_t=Ne[1],Ct=Ne[2];return{xyzv:[[Ke,Te,Pe],[Pe,Ee,Ke],[Te,Ie,ft],[ft,Pe,Te],[Ie,Ke,Ee],[Ee,ft,Ie]],abc:[[ct,_t,-1],[-1,-1,ct],[_t,Ct,-1],[-1,-1,_t],[Ct,ct,-1],[-1,-1,Ct]]}}function j(wt,Ne){return wt==="all"||wt===null?!0:wt.indexOf(Ne)>-1}function Q(wt,Ne){return wt===null?Ne:wt}function re(wt,Ne,Ke){se();var Te=[Ne],Ie=[Ke];if(q>=1)Te=[Ne],Ie=[Ke];else if(q>0){var Ve=ae(Ne,Ke);Te=Ve.xyzv,Ie=Ve.abc}for(var Ce=0;Ce<Te.length;Ce++){Ne=Te[Ce],Ke=Ie[Ce];for(var Ee=[],Pe=0;Pe<3;Pe++){var ft=Ne[Pe][0],ct=Ne[Pe][1],_t=Ne[Pe][2],Ct=Ne[Pe][3],ir=Ke[Pe]>-1?Ke[Pe]:$(ft,ct,_t);ir>-1?Ee[Pe]=ir:Ee[Pe]=fe(ft,ct,_t,Q(wt,Ct))}V(Ee[0],Ee[1],Ee[2])}}function ce(wt,Ne,Ke){var Te=function(Ie,Ve,Ce){re(wt,[Ne[Ie],Ne[Ve],Ne[Ce]],[Ke[Ie],Ke[Ve],Ke[Ce]])};Te(0,1,2),Te(2,3,0)}function be(wt,Ne,Ke){var Te=function(Ie,Ve,Ce){re(wt,[Ne[Ie],Ne[Ve],Ne[Ce]],[Ke[Ie],Ke[Ve],Ke[Ce]])};Te(0,1,2),Te(3,0,1),Te(2,3,0),Te(1,2,3)}function Ae(wt,Ne,Ke,Te){var Ie=wt[3];Ie<Ke&&(Ie=Ke),Ie>Te&&(Ie=Te);for(var Ve=(wt[3]-Ie)/(wt[3]-Ne[3]+1e-9),Ce=[],Ee=0;Ee<4;Ee++)Ce[Ee]=(1-Ve)*wt[Ee]+Ve*Ne[Ee];return Ce}function De(wt,Ne,Ke){return wt>=Ne&&wt<=Ke}function ze(wt){var Ne=.001*(O-N);return wt>=N-Ne&&wt<=O+Ne}function Ze(wt){for(var Ne=[],Ke=0;Ke<4;Ke++){var Te=wt[Ke];Ne.push([h._x[Te],h._y[Te],h._z[Te],h._value[Te]])}return Ne}var at=3;function nt(wt,Ne,Ke,Te,Ie,Ve){Ve||(Ve=1),Ke=[-1,-1,-1];var Ce=!1,Ee=[De(Ne[0][3],Te,Ie),De(Ne[1][3],Te,Ie),De(Ne[2][3],Te,Ie)];if(!Ee[0]&&!Ee[1]&&!Ee[2])return!1;var Pe=function(ct,_t,Ct){return ze(_t[0][3])&&ze(_t[1][3])&&ze(_t[2][3])?(re(ct,_t,Ct),!0):Ve<at?nt(ct,_t,Ct,N,O,++Ve):!1};if(Ee[0]&&Ee[1]&&Ee[2])return Pe(wt,Ne,Ke)||Ce;var ft=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(ct){if(Ee[ct[0]]&&Ee[ct[1]]&&!Ee[ct[2]]){var _t=Ne[ct[0]],Ct=Ne[ct[1]],ir=Ne[ct[2]],rr=Ae(ir,_t,Te,Ie),er=Ae(ir,Ct,Te,Ie);Ce=Pe(wt,[er,rr,_t],[-1,-1,Ke[ct[0]]])||Ce,Ce=Pe(wt,[_t,Ct,er],[Ke[ct[0]],Ke[ct[1]],-1])||Ce,ft=!0}}),ft||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(ct){if(Ee[ct[0]]&&!Ee[ct[1]]&&!Ee[ct[2]]){var _t=Ne[ct[0]],Ct=Ne[ct[1]],ir=Ne[ct[2]],rr=Ae(Ct,_t,Te,Ie),er=Ae(ir,_t,Te,Ie);Ce=Pe(wt,[er,rr,_t],[-1,-1,Ke[ct[0]]])||Ce,ft=!0}}),Ce}function rt(wt,Ne,Ke,Te){var Ie=!1,Ve=Ze(Ne),Ce=[De(Ve[0][3],Ke,Te),De(Ve[1][3],Ke,Te),De(Ve[2][3],Ke,Te),De(Ve[3][3],Ke,Te)];if(!Ce[0]&&!Ce[1]&&!Ce[2]&&!Ce[3])return Ie;if(Ce[0]&&Ce[1]&&Ce[2]&&Ce[3])return _&&(Ie=be(wt,Ve,Ne)||Ie),Ie;var Ee=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Pe){if(Ce[Pe[0]]&&Ce[Pe[1]]&&Ce[Pe[2]]&&!Ce[Pe[3]]){var ft=Ve[Pe[0]],ct=Ve[Pe[1]],_t=Ve[Pe[2]],Ct=Ve[Pe[3]];if(_)Ie=re(wt,[ft,ct,_t],[Ne[Pe[0]],Ne[Pe[1]],Ne[Pe[2]]])||Ie;else{var ir=Ae(Ct,ft,Ke,Te),rr=Ae(Ct,ct,Ke,Te),er=Ae(Ct,_t,Ke,Te);Ie=re(null,[ir,rr,er],[-1,-1,-1])||Ie}Ee=!0}}),Ee||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Pe){if(Ce[Pe[0]]&&Ce[Pe[1]]&&!Ce[Pe[2]]&&!Ce[Pe[3]]){var ft=Ve[Pe[0]],ct=Ve[Pe[1]],_t=Ve[Pe[2]],Ct=Ve[Pe[3]],ir=Ae(_t,ft,Ke,Te),rr=Ae(_t,ct,Ke,Te),er=Ae(Ct,ct,Ke,Te),Lr=Ae(Ct,ft,Ke,Te);_?(Ie=re(wt,[ft,Lr,ir],[Ne[Pe[0]],-1,-1])||Ie,Ie=re(wt,[ct,rr,er],[Ne[Pe[1]],-1,-1])||Ie):Ie=ce(null,[ir,rr,er,Lr],[-1,-1,-1,-1])||Ie,Ee=!0}}),Ee)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Pe){if(Ce[Pe[0]]&&!Ce[Pe[1]]&&!Ce[Pe[2]]&&!Ce[Pe[3]]){var ft=Ve[Pe[0]],ct=Ve[Pe[1]],_t=Ve[Pe[2]],Ct=Ve[Pe[3]],ir=Ae(ct,ft,Ke,Te),rr=Ae(_t,ft,Ke,Te),er=Ae(Ct,ft,Ke,Te);_?(Ie=re(wt,[ft,ir,rr],[Ne[Pe[0]],-1,-1])||Ie,Ie=re(wt,[ft,rr,er],[Ne[Pe[0]],-1,-1])||Ie,Ie=re(wt,[ft,er,ir],[Ne[Pe[0]],-1,-1])||Ie):Ie=re(null,[ir,rr,er],[-1,-1,-1])||Ie,Ee=!0}}),Ie}function st(wt,Ne,Ke,Te,Ie,Ve,Ce,Ee,Pe,ft,ct){var _t=!1;return l&&(j(wt,"A")&&(_t=rt(null,[Ne,Ke,Te,Ve],ft,ct)||_t),j(wt,"B")&&(_t=rt(null,[Ke,Te,Ie,Pe],ft,ct)||_t),j(wt,"C")&&(_t=rt(null,[Ke,Ve,Ce,Pe],ft,ct)||_t),j(wt,"D")&&(_t=rt(null,[Te,Ve,Ee,Pe],ft,ct)||_t),j(wt,"E")&&(_t=rt(null,[Ke,Te,Ve,Pe],ft,ct)||_t)),_&&(_t=rt(wt,[Ke,Te,Ve,Pe],ft,ct)||_t),_t}function Me(wt,Ne,Ke,Te,Ie,Ve,Ce,Ee){return[Ee[0]===!0?!0:nt(wt,Ze([Ne,Ke,Te]),[Ne,Ke,Te],Ve,Ce),Ee[1]===!0?!0:nt(wt,Ze([Te,Ie,Ne]),[Te,Ie,Ne],Ve,Ce)]}function ye(wt,Ne,Ke,Te,Ie,Ve,Ce,Ee,Pe){return Ee?Me(wt,Ne,Ke,Ie,Te,Ve,Ce,Pe):Me(wt,Ke,Ie,Te,Ne,Ve,Ce,Pe)}function he(wt,Ne,Ke,Te,Ie,Ve,Ce){var Ee=!1,Pe,ft,ct,_t,Ct=function(){Ee=nt(wt,[Pe,ft,ct],[-1,-1,-1],Ie,Ve)||Ee,Ee=nt(wt,[ct,_t,Pe],[-1,-1,-1],Ie,Ve)||Ee},ir=Ce[0],rr=Ce[1],er=Ce[2];return ir&&(Pe=ee(Ze([L(Ne,Ke-0,Te-0)])[0],Ze([L(Ne-1,Ke-0,Te-0)])[0],ir),ft=ee(Ze([L(Ne,Ke-0,Te-1)])[0],Ze([L(Ne-1,Ke-0,Te-1)])[0],ir),ct=ee(Ze([L(Ne,Ke-1,Te-1)])[0],Ze([L(Ne-1,Ke-1,Te-1)])[0],ir),_t=ee(Ze([L(Ne,Ke-1,Te-0)])[0],Ze([L(Ne-1,Ke-1,Te-0)])[0],ir),Ct()),rr&&(Pe=ee(Ze([L(Ne-0,Ke,Te-0)])[0],Ze([L(Ne-0,Ke-1,Te-0)])[0],rr),ft=ee(Ze([L(Ne-0,Ke,Te-1)])[0],Ze([L(Ne-0,Ke-1,Te-1)])[0],rr),ct=ee(Ze([L(Ne-1,Ke,Te-1)])[0],Ze([L(Ne-1,Ke-1,Te-1)])[0],rr),_t=ee(Ze([L(Ne-1,Ke,Te-0)])[0],Ze([L(Ne-1,Ke-1,Te-0)])[0],rr),Ct()),er&&(Pe=ee(Ze([L(Ne-0,Ke-0,Te)])[0],Ze([L(Ne-0,Ke-0,Te-1)])[0],er),ft=ee(Ze([L(Ne-0,Ke-1,Te)])[0],Ze([L(Ne-0,Ke-1,Te-1)])[0],er),ct=ee(Ze([L(Ne-1,Ke-1,Te)])[0],Ze([L(Ne-1,Ke-1,Te-1)])[0],er),_t=ee(Ze([L(Ne-1,Ke-0,Te)])[0],Ze([L(Ne-1,Ke-0,Te-1)])[0],er),Ct()),Ee}function Oe(wt,Ne,Ke,Te,Ie,Ve,Ce,Ee,Pe,ft,ct,_t){var Ct=wt;return _t?(l&&wt==="even"&&(Ct=null),st(Ct,Ne,Ke,Te,Ie,Ve,Ce,Ee,Pe,ft,ct)):(l&&wt==="odd"&&(Ct=null),st(Ct,Pe,Ee,Ce,Ve,Ie,Te,Ke,Ne,ft,ct))}function tt(wt,Ne,Ke,Te,Ie){for(var Ve=[],Ce=0,Ee=0;Ee<Ne.length;Ee++)for(var Pe=Ne[Ee],ft=1;ft<f;ft++)for(var ct=1;ct<y;ct++)Ve.push(ye(wt,L(Pe,ct-1,ft-1),L(Pe,ct-1,ft),L(Pe,ct,ft-1),L(Pe,ct,ft),Ke,Te,(Pe+ct+ft)%2,Ie&&Ie[Ce]?Ie[Ce]:[])),Ce++;return Ve}function ot(wt,Ne,Ke,Te,Ie){for(var Ve=[],Ce=0,Ee=0;Ee<Ne.length;Ee++)for(var Pe=Ne[Ee],ft=1;ft<u;ft++)for(var ct=1;ct<f;ct++)Ve.push(ye(wt,L(ft-1,Pe,ct-1),L(ft,Pe,ct-1),L(ft-1,Pe,ct),L(ft,Pe,ct),Ke,Te,(ft+Pe+ct)%2,Ie&&Ie[Ce]?Ie[Ce]:[])),Ce++;return Ve}function Qe(wt,Ne,Ke,Te,Ie){for(var Ve=[],Ce=0,Ee=0;Ee<Ne.length;Ee++)for(var Pe=Ne[Ee],ft=1;ft<y;ft++)for(var ct=1;ct<u;ct++)Ve.push(ye(wt,L(ct-1,ft-1,Pe),L(ct-1,ft,Pe),L(ct,ft-1,Pe),L(ct,ft,Pe),Ke,Te,(ct+ft+Pe)%2,Ie&&Ie[Ce]?Ie[Ce]:[])),Ce++;return Ve}function Pt(wt,Ne,Ke){for(var Te=1;Te<f;Te++)for(var Ie=1;Ie<y;Ie++)for(var Ve=1;Ve<u;Ve++)Oe(wt,L(Ve-1,Ie-1,Te-1),L(Ve-1,Ie-1,Te),L(Ve-1,Ie,Te-1),L(Ve-1,Ie,Te),L(Ve,Ie-1,Te-1),L(Ve,Ie-1,Te),L(Ve,Ie,Te-1),L(Ve,Ie,Te),Ne,Ke,(Ve+Ie+Te)%2)}function It(wt,Ne,Ke){_=!0,Pt(wt,Ne,Ke),_=!1}function qt(wt,Ne,Ke){l=!0,Pt(wt,Ne,Ke),l=!1}function Wt(wt,Ne,Ke,Te,Ie,Ve){for(var Ce=[],Ee=0,Pe=0;Pe<Ne.length;Pe++)for(var ft=Ne[Pe],ct=1;ct<f;ct++)for(var _t=1;_t<y;_t++)Ce.push(he(wt,ft,_t,ct,Ke,Te,Ie[Pe],Ve&&Ve[Ee]?Ve[Ee]:[])),Ee++;return Ce}function kr(wt,Ne,Ke,Te,Ie,Ve){for(var Ce=[],Ee=0,Pe=0;Pe<Ne.length;Pe++)for(var ft=Ne[Pe],ct=1;ct<u;ct++)for(var _t=1;_t<f;_t++)Ce.push(he(wt,ct,ft,_t,Ke,Te,Ie[Pe],Ve&&Ve[Ee]?Ve[Ee]:[])),Ee++;return Ce}function mr(wt,Ne,Ke,Te,Ie,Ve){for(var Ce=[],Ee=0,Pe=0;Pe<Ne.length;Pe++)for(var ft=Ne[Pe],ct=1;ct<y;ct++)for(var _t=1;_t<u;_t++)Ce.push(he(wt,_t,ct,ft,Ke,Te,Ie[Pe],Ve&&Ve[Ee]?Ve[Ee]:[])),Ee++;return Ce}function qr(wt,Ne){for(var Ke=[],Te=wt;Te<Ne;Te++)Ke.push(Te);return Ke}function Sr(){for(var wt=0;wt<u;wt++)for(var Ne=0;Ne<y;Ne++)for(var Ke=0;Ke<f;Ke++){var Te=L(wt,Ne,Ke);fe(h._x[Te],h._y[Te],h._z[Te],h._value[Te])}}function Rr(){le(),Sr();var wt=null;if(m&&T&&(oe(T),It(wt,N,O)),c&&p){oe(p);for(var Ne=h.surface.pattern,Ke=h.surface.count,Te=0;Te<Ke;Te++){var Ie=Ke===1?.5:Te/(Ke-1),Ve=(1-Ie)*N+Ie*O,Ce=Math.abs(Ve-z),Ee=Math.abs(Ve-F),Pe=Ce>Ee?[z,Ve]:[Ve,F];qt(Ne,Pe[0],Pe[1])}}var ft=[[Math.min(N,F),Math.max(N,F)],[Math.min(z,O),Math.max(z,O)]];["x","y","z"].forEach(function(ct){for(var _t=[],Ct=0;Ct<ft.length;Ct++){var ir=0,rr=ft[Ct][0],er=ft[Ct][1],Lr=h.slices[ct];if(Lr.show&&Lr.fill){oe(Lr.fill);var fa=[],Da=[],Ia=[];if(Lr.locations.length)for(var qa=0;qa<Lr.locations.length;qa++){var Wa=r(Lr.locations[qa],ct==="x"?g:ct==="y"?b:d);Wa.distRatio===0?fa.push(Wa.id):Wa.id>0&&(Da.push(Wa.id),ct==="x"?Ia.push([Wa.distRatio,0,0]):ct==="y"?Ia.push([0,Wa.distRatio,0]):Ia.push([0,0,Wa.distRatio]))}else ct==="x"?fa=qr(1,u-1):ct==="y"?fa=qr(1,y-1):fa=qr(1,f-1);Da.length>0&&(ct==="x"?_t[ir]=Wt(wt,Da,rr,er,Ia,_t[ir]):ct==="y"?_t[ir]=kr(wt,Da,rr,er,Ia,_t[ir]):_t[ir]=mr(wt,Da,rr,er,Ia,_t[ir]),ir++),fa.length>0&&(ct==="x"?_t[ir]=tt(wt,fa,rr,er,_t[ir]):ct==="y"?_t[ir]=ot(wt,fa,rr,er,_t[ir]):_t[ir]=Qe(wt,fa,rr,er,_t[ir]),ir++)}var Ca=h.caps[ct];Ca.show&&Ca.fill&&(oe(Ca.fill),ct==="x"?_t[ir]=tt(wt,[0,u-1],rr,er,_t[ir]):ct==="y"?_t[ir]=ot(wt,[0,y-1],rr,er,_t[ir]):_t[ir]=Qe(wt,[0,f-1],rr,er,_t[ir]),ir++)}}),w===0&&le(),h._meshX=P,h._meshY=U,h._meshZ=B,h._meshIntensity=X,h._Xs=g,h._Ys=b,h._Zs=d}return Rr(),h}function s(h,c){var m=h.glplot.gl,p=v({gl:m}),T=new o(h,p,c.uid);return p._trace=T,T.update(c),h.glplot.add(p),T}G.exports={findNearestOnAxis:r,generateIsoMeshes:i,createIsosurfaceTrace:s}}}),fU=Xe({"src/traces/isosurface/index.js"(Z,G){"use strict";G.exports={attributes:tT(),supplyDefaults:EE().supplyDefaults,calc:kE(),colorbar:{min:"cmin",max:"cmax"},plot:aT().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:v0(),categories:["gl3d","showLegend"],meta:{}}}}),hU=Xe({"lib/isosurface.js"(Z,G){"use strict";G.exports=fU()}}),CE=Xe({"src/traces/volume/attributes.js"(Z,G){"use strict";var v=ku(),x=tT(),S=gx(),E=ru(),e=Qo().extendFlat,t=pc().overrideAll,r=G.exports=t(e({x:x.x,y:x.y,z:x.z,value:x.value,isomin:x.isomin,isomax:x.isomax,surface:x.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:x.slices,caps:x.caps,text:x.text,hovertext:x.hovertext,xhoverformat:x.xhoverformat,yhoverformat:x.yhoverformat,zhoverformat:x.zhoverformat,valuehoverformat:x.valuehoverformat,hovertemplate:x.hovertemplate,hovertemplatefallback:x.hovertemplatefallback},v("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:x.colorbar,opacity:x.opacity,opacityscale:S.opacityscale,lightposition:x.lightposition,lighting:x.lighting,flatshading:x.flatshading,contour:x.contour,hoverinfo:e({},E.hoverinfo),showlegend:e({},E.showlegend,{dflt:!1})}),"calc","nested");r.x.editType=r.y.editType=r.z.editType=r.value.editType="calc+clearAxisTypes"}}),pU=Xe({"src/traces/volume/defaults.js"(Z,G){"use strict";var v=sa(),x=CE(),S=EE().supplyIsoDefaults,E=ME().opacityscaleDefaults;G.exports=function(t,r,o,a){function n(i,s){return v.coerce(t,r,x,i,s)}S(t,r,o,a,n),E(t,r,a,n)}}}),dU=Xe({"src/traces/volume/convert.js"(Z,G){"use strict";var v=Yh().gl_mesh3d,x=tm().parseColorScale,S=sa().isArrayOrTypedArray,E=em(),e=rc().extractOpts,t=E1(),r=aT().findNearestOnAxis,o=aT().generateIsoMeshes;function a(s,h,c){this.scene=s,this.uid=c,this.mesh=h,this.name="",this.data=null,this.showContour=!1}var n=a.prototype;n.handlePick=function(s){if(s.object===this.mesh){var h=s.data.index,c=this.data._meshX[h],m=this.data._meshY[h],p=this.data._meshZ[h],T=this.data._Ys.length,l=this.data._Zs.length,_=r(c,this.data._Xs).id,w=r(m,this.data._Ys).id,A=r(p,this.data._Zs).id,M=s.index=A+l*w+l*T*_;s.traceCoordinate=[this.data._meshX[M],this.data._meshY[M],this.data._meshZ[M],this.data._value[M]];var g=this.data.hovertext||this.data.text;return S(g)&&g[M]!==void 0?s.textLabel=g[M]:g&&(s.textLabel=g),!0}},n.update=function(s){var h=this.scene,c=h.fullSceneLayout;this.data=o(s);function m(w,A,M,g){return A.map(function(b){return w.d2l(b,0,g)*M})}var p=t(m(c.xaxis,s._meshX,h.dataScale[0],s.xcalendar),m(c.yaxis,s._meshY,h.dataScale[1],s.ycalendar),m(c.zaxis,s._meshZ,h.dataScale[2],s.zcalendar)),T=t(s._meshI,s._meshJ,s._meshK),l={positions:p,cells:T,lightPosition:[s.lightposition.x,s.lightposition.y,s.lightposition.z],ambient:s.lighting.ambient,diffuse:s.lighting.diffuse,specular:s.lighting.specular,roughness:s.lighting.roughness,fresnel:s.lighting.fresnel,vertexNormalsEpsilon:s.lighting.vertexnormalsepsilon,faceNormalsEpsilon:s.lighting.facenormalsepsilon,opacity:s.opacity,opacityscale:s.opacityscale,contourEnable:s.contour.show,contourColor:E(s.contour.color).slice(0,3),contourWidth:s.contour.width,useFacetNormals:s.flatshading},_=e(s);l.vertexIntensity=s._meshIntensity,l.vertexIntensityBounds=[_.min,_.max],l.colormap=x(s),this.mesh.update(l)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function i(s,h){var c=s.glplot.gl,m=v({gl:c}),p=new a(s,m,h.uid);return m._trace=p,p.update(h),s.glplot.add(m),p}G.exports=i}}),vU=Xe({"src/traces/volume/index.js"(Z,G){"use strict";G.exports={attributes:CE(),supplyDefaults:pU(),calc:kE(),colorbar:{min:"cmin",max:"cmax"},plot:dU(),moduleType:"trace",name:"volume",basePlotModule:v0(),categories:["gl3d","showLegend"],meta:{}}}}),mU=Xe({"lib/volume.js"(Z,G){"use strict";G.exports=vU()}}),gU=Xe({"src/traces/mesh3d/defaults.js"(Z,G){"use strict";var v=so(),x=sa(),S=_h(),E=M1();G.exports=function(t,r,o,a){function n(m,p){return x.coerce(t,r,E,m,p)}function i(m){var p=m.map(function(T){var l=n(T);return l&&x.isArrayOrTypedArray(l)?l:null});return p.every(function(T){return T&&T.length===p[0].length})&&p}var s=i(["x","y","z"]);if(!s){r.visible=!1;return}if(i(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var h=v.getComponentMethod("calendars","handleTraceDefaults");h(t,r,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(m){n(m)});var c=n("contour.show");c&&(n("contour.color"),n("contour.width")),"intensity"in t?(n("intensity"),n("intensitymode"),S(t,r,a,n,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?n("facecolor"):"vertexcolor"in t?n("vertexcolor"):n("color",o)),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),n("xhoverformat"),n("yhoverformat"),n("zhoverformat"),r._length=null}}}),yU=Xe({"src/traces/mesh3d/calc.js"(Z,G){"use strict";var v=Tp();G.exports=function(S,E){E.intensity&&v(S,E,{vals:E.intensity,containerStr:"",cLetter:"c"})}}}),_U=Xe({"src/traces/mesh3d/convert.js"(Z,G){"use strict";var v=Yh().gl_mesh3d,x=Yh().delaunay_triangulate,S=Yh().alpha_shape,E=Yh().convex_hull,e=tm().parseColorScale,t=sa().isArrayOrTypedArray,r=em(),o=rc().extractOpts,a=E1();function n(l,_,w){this.scene=l,this.uid=w,this.mesh=_,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var i=n.prototype;i.handlePick=function(l){if(l.object===this.mesh){var _=l.index=l.data.index;l.data._cellCenter?l.traceCoordinate=l.data.dataCoordinate:l.traceCoordinate=[this.data.x[_],this.data.y[_],this.data.z[_]];var w=this.data.hovertext||this.data.text;return t(w)&&w[_]!==void 0?l.textLabel=w[_]:w&&(l.textLabel=w),!0}};function s(l){for(var _=[],w=l.length,A=0;A<w;A++)_[A]=r(l[A]);return _}function h(l,_,w,A){for(var M=[],g=_.length,b=0;b<g;b++)M[b]=l.d2l(_[b],0,A)*w;return M}function c(l){for(var _=[],w=l.length,A=0;A<w;A++)_[A]=Math.round(l[A]);return _}function m(l,_){for(var w=["x","y","z"].indexOf(l),A=[],M=_.length,g=0;g<M;g++)A[g]=[_[g][(w+1)%3],_[g][(w+2)%3]];return x(A)}function p(l,_){for(var w=l.length,A=0;A<w;A++)if(l[A]<=-.5||l[A]>=_-.5)return!1;return!0}i.update=function(l){var _=this.scene,w=_.fullSceneLayout;this.data=l;var A=l.x.length,M=a(h(w.xaxis,l.x,_.dataScale[0],l.xcalendar),h(w.yaxis,l.y,_.dataScale[1],l.ycalendar),h(w.zaxis,l.z,_.dataScale[2],l.zcalendar)),g;if(l.i&&l.j&&l.k){if(l.i.length!==l.j.length||l.j.length!==l.k.length||!p(l.i,A)||!p(l.j,A)||!p(l.k,A))return;g=a(c(l.i),c(l.j),c(l.k))}else l.alphahull===0?g=E(M):l.alphahull>0?g=S(l.alphahull,M):g=m(l.delaunayaxis,M);var b={positions:M,cells:g,lightPosition:[l.lightposition.x,l.lightposition.y,l.lightposition.z],ambient:l.lighting.ambient,diffuse:l.lighting.diffuse,specular:l.lighting.specular,roughness:l.lighting.roughness,fresnel:l.lighting.fresnel,vertexNormalsEpsilon:l.lighting.vertexnormalsepsilon,faceNormalsEpsilon:l.lighting.facenormalsepsilon,opacity:l.opacity,contourEnable:l.contour.show,contourColor:r(l.contour.color).slice(0,3),contourWidth:l.contour.width,useFacetNormals:l.flatshading};if(l.intensity){var d=o(l);this.color="#fff";var u=l.intensitymode;b[u+"Intensity"]=l.intensity,b[u+"IntensityBounds"]=[d.min,d.max],b.colormap=e(l)}else l.vertexcolor?(this.color=l.vertexcolor[0],b.vertexColors=s(l.vertexcolor)):l.facecolor?(this.color=l.facecolor[0],b.cellColors=s(l.facecolor)):(this.color=l.color,b.meshColor=r(l.color));this.mesh.update(b)},i.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(l,_){var w=l.glplot.gl,A=v({gl:w}),M=new n(l,A,_.uid);return A._trace=M,M.update(_),l.glplot.add(A),M}G.exports=T}}),xU=Xe({"src/traces/mesh3d/index.js"(Z,G){"use strict";G.exports={attributes:M1(),supplyDefaults:gU(),calc:yU(),colorbar:{min:"cmin",max:"cmax"},plot:_U(),moduleType:"trace",name:"mesh3d",basePlotModule:v0(),categories:["gl3d","showLegend"],meta:{}}}}),bU=Xe({"lib/mesh3d.js"(Z,G){"use strict";G.exports=xU()}}),LE=Xe({"src/traces/cone/attributes.js"(Z,G){"use strict";var v=ku(),x=tf().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=Jl(),e=M1(),t=ru(),r=Qo().extendFlat,o={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:S({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:E({editType:"calc"}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:r({},t.showlegend,{dflt:!1})};r(o,v("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var a=["opacity","lightposition","lighting"];a.forEach(function(n){o[n]=e[n]}),o.hoverinfo=r({},t.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),G.exports=o}}),wU=Xe({"src/traces/cone/defaults.js"(Z,G){"use strict";var v=sa(),x=_h(),S=LE();G.exports=function(e,t,r,o){function a(T,l){return v.coerce(e,t,S,T,l)}var n=a("u"),i=a("v"),s=a("w"),h=a("x"),c=a("y"),m=a("z");if(!n||!n.length||!i||!i.length||!s||!s.length||!h||!h.length||!c||!c.length||!m||!m.length){t.visible=!1;return}var p=a("sizemode");a("sizeref",p==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),x(e,t,o,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),t._length=null}}}),TU=Xe({"src/traces/cone/calc.js"(Z,G){"use strict";var v=Tp();G.exports=function(S,E){for(var e=E.u,t=E.v,r=E.w,o=Math.min(E.x.length,E.y.length,E.z.length,e.length,t.length,r.length),a=-1/0,n=1/0,i=0;i<o;i++){var s=e[i],h=t[i],c=r[i],m=Math.sqrt(s*s+h*h+c*c);a=Math.max(a,m),n=Math.min(n,m)}E._len=o,E._normMax=a,v(S,E,{vals:[n,a],containerStr:"",cLetter:"c"})}}}),AU=Xe({"src/traces/cone/convert.js"(Z,G){"use strict";var v=Yh().gl_cone3d,x=Yh().gl_cone3d.createConeMesh,S=sa().simpleMap,E=tm().parseColorScale,e=rc().extractOpts,t=sa().isArrayOrTypedArray,r=E1();function o(m,p){this.scene=m,this.uid=p,this.mesh=null,this.data=null}var a=o.prototype;a.handlePick=function(m){if(m.object===this.mesh){var p=m.index=m.data.index,T=this.data.x[p],l=this.data.y[p],_=this.data.z[p],w=this.data.u[p],A=this.data.v[p],M=this.data.w[p];m.traceCoordinate=[T,l,_,w,A,M,Math.sqrt(w*w+A*A+M*M)];var g=this.data.hovertext||this.data.text;return t(g)&&g[p]!==void 0?m.textLabel=g[p]:g&&(m.textLabel=g),!0}};var n={xaxis:0,yaxis:1,zaxis:2},i={tip:1,tail:0,cm:.25,center:.5},s={tip:1,tail:1,cm:.75,center:.5};function h(m,p){var T=m.fullSceneLayout,l=m.dataScale,_={};function w(d,u){var y=T[u],f=l[n[u]];return S(d,function(R){return y.d2l(R)*f})}_.vectors=r(w(p.u,"xaxis"),w(p.v,"yaxis"),w(p.w,"zaxis"),p._len),_.positions=r(w(p.x,"xaxis"),w(p.y,"yaxis"),w(p.z,"zaxis"),p._len);var A=e(p);_.colormap=E(p),_.vertexIntensityBounds=[A.min/p._normMax,A.max/p._normMax],_.coneOffset=i[p.anchor];var M=p.sizemode;M==="scaled"?_.coneSize=p.sizeref||.5:M==="absolute"?_.coneSize=p.sizeref&&p._normMax?p.sizeref/p._normMax:.5:M==="raw"&&(_.coneSize=p.sizeref),_.coneSizemode=M;var g=v(_),b=p.lightposition;return g.lightPosition=[b.x,b.y,b.z],g.ambient=p.lighting.ambient,g.diffuse=p.lighting.diffuse,g.specular=p.lighting.specular,g.roughness=p.lighting.roughness,g.fresnel=p.lighting.fresnel,g.opacity=p.opacity,p._pad=s[p.anchor]*g.vectorScale*g.coneScale*p._normMax,g}a.update=function(m){this.data=m;var p=h(this.scene,m);this.mesh.update(p)},a.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function c(m,p){var T=m.glplot.gl,l=h(m,p),_=x(T,l),w=new o(m,p.uid);return w.mesh=_,w.data=p,_._trace=w,m.glplot.add(_),w}G.exports=c}}),SU=Xe({"src/traces/cone/index.js"(Z,G){"use strict";G.exports={moduleType:"trace",name:"cone",basePlotModule:v0(),categories:["gl3d","showLegend"],attributes:LE(),supplyDefaults:wU(),colorbar:{min:"cmin",max:"cmax"},calc:TU(),plot:AU(),eventData:function(v,x){return v.norm=x.traceCoordinate[6],v},meta:{}}}}),MU=Xe({"lib/cone.js"(Z,G){"use strict";G.exports=SU()}}),PE=Xe({"src/traces/streamtube/attributes.js"(Z,G){"use strict";var v=ku(),x=tf().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=Jl(),e=M1(),t=ru(),r=Qo().extendFlat,o={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:S({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:E({editType:"calc"}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:r({},t.showlegend,{dflt:!1})};r(o,v("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var a=["opacity","lightposition","lighting"];a.forEach(function(n){o[n]=e[n]}),o.hoverinfo=r({},t.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),G.exports=o}}),EU=Xe({"src/traces/streamtube/defaults.js"(Z,G){"use strict";var v=sa(),x=_h(),S=PE();G.exports=function(e,t,r,o){function a(p,T){return v.coerce(e,t,S,p,T)}var n=a("u"),i=a("v"),s=a("w"),h=a("x"),c=a("y"),m=a("z");if(!n||!n.length||!i||!i.length||!s||!s.length||!h||!h.length||!c||!c.length||!m||!m.length){t.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),x(e,t,o,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),t._length=null}}}),kU=Xe({"src/traces/streamtube/convert.js"(Z,G){"use strict";var v=Yh().gl_streamtube3d,x=v.createTubeMesh,S=sa(),E=tm().parseColorScale,e=rc().extractOpts,t=E1(),r={xaxis:0,yaxis:1,zaxis:2};function o(c,m){this.scene=c,this.uid=m,this.mesh=null,this.data=null}var a=o.prototype;a.handlePick=function(c){var m=this.scene.fullSceneLayout,p=this.scene.dataScale;function T(w,A){var M=m[A],g=p[r[A]];return M.l2c(w)/g}if(c.object===this.mesh){var l=c.data.position,_=c.data.velocity;return c.traceCoordinate=[T(l[0],"xaxis"),T(l[1],"yaxis"),T(l[2],"zaxis"),T(_[0],"xaxis"),T(_[1],"yaxis"),T(_[2],"zaxis"),c.data.intensity*this.data._normMax,c.data.divergence],c.textLabel=this.data.hovertext||this.data.text,!0}};function n(c){var m=c.length,p;return m>2?p=c.slice(1,m-1):m===2?p=[(c[0]+c[1])/2]:p=c,p}function i(c){var m=c.length;return m===1?[.5,.5]:[c[1]-c[0],c[m-1]-c[m-2]]}function s(c,m){var p=c.fullSceneLayout,T=c.dataScale,l=m._len,_={};function w(fe,V){var Y=p[V],ee=T[r[V]];return S.simpleMap(fe,function(q){return Y.d2l(q)*ee})}if(_.vectors=t(w(m._u,"xaxis"),w(m._v,"yaxis"),w(m._w,"zaxis"),l),!l)return{positions:[],cells:[]};var A=w(m._Xs,"xaxis"),M=w(m._Ys,"yaxis"),g=w(m._Zs,"zaxis");_.meshgrid=[A,M,g],_.gridFill=m._gridFill;var b=m._slen;if(b)_.startingPositions=t(w(m._startsX,"xaxis"),w(m._startsY,"yaxis"),w(m._startsZ,"zaxis"));else{for(var d=M[0],u=n(A),y=n(g),f=new Array(u.length*y.length),R=0,L=0;L<u.length;L++)for(var z=0;z<y.length;z++)f[R++]=[u[L],d,y[z]];_.startingPositions=f}_.colormap=E(m),_.tubeSize=m.sizeref,_.maxLength=m.maxdisplayed;var F=w(m._xbnds,"xaxis"),N=w(m._ybnds,"yaxis"),O=w(m._zbnds,"zaxis"),P=i(A),U=i(M),B=i(g),X=[[F[0]-P[0],N[0]-U[0],O[0]-B[0]],[F[1]+P[1],N[1]+U[1],O[1]+B[1]]],$=v(_,X),se=e(m);$.vertexIntensityBounds=[se.min/m._normMax,se.max/m._normMax];var le=m.lightposition;return $.lightPosition=[le.x,le.y,le.z],$.ambient=m.lighting.ambient,$.diffuse=m.lighting.diffuse,$.specular=m.lighting.specular,$.roughness=m.lighting.roughness,$.fresnel=m.lighting.fresnel,$.opacity=m.opacity,m._pad=$.tubeScale*m.sizeref*2,$}a.update=function(c){this.data=c;var m=s(this.scene,c);this.mesh.update(m)},a.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function h(c,m){var p=c.glplot.gl,T=s(c,m),l=x(p,T),_=new o(c,m.uid);return _.mesh=l,_.data=m,l._trace=_,c.glplot.add(l),_}G.exports=h}}),CU=Xe({"src/traces/streamtube/index.js"(Z,G){"use strict";G.exports={moduleType:"trace",name:"streamtube",basePlotModule:v0(),categories:["gl3d","showLegend"],attributes:PE(),supplyDefaults:EU(),colorbar:{min:"cmin",max:"cmax"},calc:rT().calc,plot:kU(),eventData:function(v,x){return v.tubex=v.x,v.tubey=v.y,v.tubez=v.z,v.tubeu=x.traceCoordinate[3],v.tubev=x.traceCoordinate[4],v.tubew=x.traceCoordinate[5],v.norm=x.traceCoordinate[6],v.divergence=x.traceCoordinate[7],delete v.x,delete v.y,delete v.z,v},meta:{}}}}),LU=Xe({"lib/streamtube.js"(Z,G){"use strict";G.exports=CU()}}),vg=Xe({"src/traces/scattergeo/attributes.js"(Z,G){"use strict";var{hovertemplateAttrs:v,texttemplateAttrs:x,templatefallbackAttrs:S}=Jl(),E=$d(),e=af(),t=ru(),r=ku(),o=Gh().dash,a=Qo().extendFlat,n=pc().overrideAll,i=e.marker,s=e.line,h=i.line,c=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");G.exports=n({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:a({},e.mode,{dflt:"markers"}),text:a({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:S({editType:"plot"}),hovertext:a({},e.hovertext,{}),textfont:e.textfont,textposition:e.textposition,line:{color:s.color,width:s.width,dash:o},connectgaps:e.connectgaps,marker:a({symbol:i.symbol,opacity:i.opacity,angle:i.angle,angleref:a({},i.angleref,{values:["previous","up","north"]}),standoff:i.standoff,size:i.size,sizeref:i.sizeref,sizemin:i.sizemin,sizemode:i.sizemode,colorbar:i.colorbar,line:a({width:h.width,dash:h.dash},r("marker.line")),gradient:i.gradient},r("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:E(),selected:e.selected,unselected:e.unselected,hoverinfo:a({},t.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:v(),hovertemplatefallback:S()},"calc","nested")}}),PU=Xe({"src/traces/scattergeo/defaults.js"(Z,G){"use strict";var v=sa(),x=Fu(),S=md(),E=Dd(),e=zd(),t=ev(),r=vg(),o=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");G.exports=function(n,i,s,h){function c(M,g){return v.coerce(n,i,r,M,g)}var m=c("locations"),p;if(m&&m.length){var T=c("geojson"),l;(typeof T=="string"&&T!==""||v.isPlainObject(T))&&(l="geojson-id");var _=c("locationmode",l);_==="country names"&&v.warn(o),_==="geojson-id"&&c("featureidkey"),p=m.length}else{var w=c("lon")||[],A=c("lat")||[];p=Math.min(w.length,A.length)}if(!p){i.visible=!1;return}i._length=p,c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("mode"),x.hasMarkers(i)&&S(n,i,s,h,c,{gradient:!0}),x.hasLines(i)&&(E(n,i,s,h,c),c("connectgaps")),x.hasText(i)&&(c("texttemplate"),c("texttemplatefallback"),e(n,i,h,c)),c("fill"),i.fill!=="none"&&t(n,i,s,c),v.coerceSelectionMarkerOpacity(i,c)}}}),IU=Xe({"src/traces/scattergeo/format_labels.js"(Z,G){"use strict";var v=Go();G.exports=function(S,E,e){var t={},r=e[E.geo]._subplot,o=r.mockAxis,a=S.lonlat;return t.lonLabel=v.tickText(o,o.c2l(a[0]),!0).text,t.latLabel=v.tickText(o,o.c2l(a[1]),!0).text,t}}}),iT=Xe({"src/traces/scattergeo/calc.js"(Z,G){"use strict";var v=rs(),x=Hs().BADNUM,S=Fd(),E=Av(),e=Od(),t=sa().isArrayOrTypedArray,r=sa()._;function o(a){return a&&typeof a=="string"}G.exports=function(n,i){var s=t(i.locations),h=s?i.locations.length:i._length,c=new Array(h),m;i.geojson?m=function(A){return o(A)||v(A)}:m=o;for(var p=0;p<h;p++){var T=c[p]={};if(s){var l=i.locations[p];T.loc=m(l)?l:null}else{var _=i.lon[p],w=i.lat[p];v(_)&&v(w)?T.lonlat=[+_,+w]:T.lonlat=[x,x]}}return E(c,i),S(n,i),e(c,i),h&&(c[0].t={labels:{lat:r(n,"lat:")+" ",lon:r(n,"lon:")+" "}}),c}}}),yx=Xe({"src/plots/geo/constants.js"(Z){"use strict";Z.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Z.axesNames=["lonaxis","lataxis"],Z.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Z.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},Z.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},Z.clipPad=.001,Z.precision=.1,Z.landColor="#F0DC82",Z.waterColor="#3399FF",Z.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},Z.sphereSVG={type:"Sphere"},Z.fillLayers={ocean:1,land:1,lakes:1},Z.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Z.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Z.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],Z.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}}}),IE=Xe({"node_modules/topojson-client/dist/topojson-client.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z):(v=v||self,x(v.topojson=v.topojson||{}))})(Z,function(v){"use strict";function x(w){return w}function S(w){if(w==null)return x;var A,M,g=w.scale[0],b=w.scale[1],d=w.translate[0],u=w.translate[1];return function(y,f){f||(A=M=0);var R=2,L=y.length,z=new Array(L);for(z[0]=(A+=y[0])*g+d,z[1]=(M+=y[1])*b+u;R<L;)z[R]=y[R],++R;return z}}function E(w){var A=S(w.transform),M,g=1/0,b=g,d=-g,u=-g;function y(R){R=A(R),R[0]<g&&(g=R[0]),R[0]>d&&(d=R[0]),R[1]<b&&(b=R[1]),R[1]>u&&(u=R[1])}function f(R){switch(R.type){case"GeometryCollection":R.geometries.forEach(f);break;case"Point":y(R.coordinates);break;case"MultiPoint":R.coordinates.forEach(y);break}}w.arcs.forEach(function(R){for(var L=-1,z=R.length,F;++L<z;)F=A(R[L],L),F[0]<g&&(g=F[0]),F[0]>d&&(d=F[0]),F[1]<b&&(b=F[1]),F[1]>u&&(u=F[1])});for(M in w.objects)f(w.objects[M]);return[g,b,d,u]}function e(w,A){for(var M,g=w.length,b=g-A;b<--g;)M=w[b],w[b++]=w[g],w[g]=M}function t(w,A){return typeof A=="string"&&(A=w.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(M){return r(w,M)})}:r(w,A)}function r(w,A){var M=A.id,g=A.bbox,b=A.properties==null?{}:A.properties,d=o(w,A);return M==null&&g==null?{type:"Feature",properties:b,geometry:d}:g==null?{type:"Feature",id:M,properties:b,geometry:d}:{type:"Feature",id:M,bbox:g,properties:b,geometry:d}}function o(w,A){var M=S(w.transform),g=w.arcs;function b(L,z){z.length&&z.pop();for(var F=g[L<0?~L:L],N=0,O=F.length;N<O;++N)z.push(M(F[N],N));L<0&&e(z,O)}function d(L){return M(L)}function u(L){for(var z=[],F=0,N=L.length;F<N;++F)b(L[F],z);return z.length<2&&z.push(z[0]),z}function y(L){for(var z=u(L);z.length<4;)z.push(z[0]);return z}function f(L){return L.map(y)}function R(L){var z=L.type,F;switch(z){case"GeometryCollection":return{type:z,geometries:L.geometries.map(R)};case"Point":F=d(L.coordinates);break;case"MultiPoint":F=L.coordinates.map(d);break;case"LineString":F=u(L.arcs);break;case"MultiLineString":F=L.arcs.map(u);break;case"Polygon":F=f(L.arcs);break;case"MultiPolygon":F=L.arcs.map(f);break;default:return null}return{type:z,coordinates:F}}return R(A)}function a(w,A){var M={},g={},b={},d=[],u=-1;A.forEach(function(R,L){var z=w.arcs[R<0?~R:R],F;z.length<3&&!z[1][0]&&!z[1][1]&&(F=A[++u],A[u]=R,A[L]=F)}),A.forEach(function(R){var L=y(R),z=L[0],F=L[1],N,O;if(N=b[z])if(delete b[N.end],N.push(R),N.end=F,O=g[F]){delete g[O.start];var P=O===N?N:N.concat(O);g[P.start=N.start]=b[P.end=O.end]=P}else g[N.start]=b[N.end]=N;else if(N=g[F])if(delete g[N.start],N.unshift(R),N.start=z,O=b[z]){delete b[O.end];var U=O===N?N:O.concat(N);g[U.start=O.start]=b[U.end=N.end]=U}else g[N.start]=b[N.end]=N;else N=[R],g[N.start=z]=b[N.end=F]=N});function y(R){var L=w.arcs[R<0?~R:R],z=L[0],F;return w.transform?(F=[0,0],L.forEach(function(N){F[0]+=N[0],F[1]+=N[1]})):F=L[L.length-1],R<0?[F,z]:[z,F]}function f(R,L){for(var z in R){var F=R[z];delete L[F.start],delete F.start,delete F.end,F.forEach(function(N){M[N<0?~N:N]=1}),d.push(F)}}return f(b,g),f(g,b),A.forEach(function(R){M[R<0?~R:R]||d.push([R])}),d}function n(w){return o(w,i.apply(this,arguments))}function i(w,A,M){var g,b,d;if(arguments.length>1)g=s(w,A,M);else for(b=0,g=new Array(d=w.arcs.length);b<d;++b)g[b]=b;return{type:"MultiLineString",arcs:a(w,g)}}function s(w,A,M){var g=[],b=[],d;function u(z){var F=z<0?~z:z;(b[F]||(b[F]=[])).push({i:z,g:d})}function y(z){z.forEach(u)}function f(z){z.forEach(y)}function R(z){z.forEach(f)}function L(z){switch(d=z,z.type){case"GeometryCollection":z.geometries.forEach(L);break;case"LineString":y(z.arcs);break;case"MultiLineString":case"Polygon":f(z.arcs);break;case"MultiPolygon":R(z.arcs);break}}return L(A),b.forEach(M==null?function(z){g.push(z[0].i)}:function(z){M(z[0].g,z[z.length-1].g)&&g.push(z[0].i)}),g}function h(w){for(var A=-1,M=w.length,g,b=w[M-1],d=0;++A<M;)g=b,b=w[A],d+=g[0]*b[1]-g[1]*b[0];return Math.abs(d)}function c(w){return o(w,m.apply(this,arguments))}function m(w,A){var M={},g=[],b=[];A.forEach(d);function d(f){switch(f.type){case"GeometryCollection":f.geometries.forEach(d);break;case"Polygon":u(f.arcs);break;case"MultiPolygon":f.arcs.forEach(u);break}}function u(f){f.forEach(function(R){R.forEach(function(L){(M[L=L<0?~L:L]||(M[L]=[])).push(f)})}),g.push(f)}function y(f){return h(o(w,{type:"Polygon",arcs:[f]}).coordinates[0])}return g.forEach(function(f){if(!f._){var R=[],L=[f];for(f._=1,b.push(R);f=L.pop();)R.push(f),f.forEach(function(z){z.forEach(function(F){M[F<0?~F:F].forEach(function(N){N._||(N._=1,L.push(N))})})})}}),g.forEach(function(f){delete f._}),{type:"MultiPolygon",arcs:b.map(function(f){var R=[],L;if(f.forEach(function(P){P.forEach(function(U){U.forEach(function(B){M[B<0?~B:B].length<2&&R.push(B)})})}),R=a(w,R),(L=R.length)>1)for(var z=1,F=y(R[0]),N,O;z<L;++z)(N=y(R[z]))>F&&(O=R[0],R[0]=R[z],R[z]=O,F=N);return R}).filter(function(f){return f.length>0})}}function p(w,A){for(var M=0,g=w.length;M<g;){var b=M+g>>>1;w[b]<A?M=b+1:g=b}return M}function T(w){var A={},M=w.map(function(){return[]});function g(P,U){P.forEach(function(B){B<0&&(B=~B);var X=A[B];X?X.push(U):A[B]=[U]})}function b(P,U){P.forEach(function(B){g(B,U)})}function d(P,U){P.type==="GeometryCollection"?P.geometries.forEach(function(B){d(B,U)}):P.type in u&&u[P.type](P.arcs,U)}var u={LineString:g,MultiLineString:b,Polygon:b,MultiPolygon:function(P,U){P.forEach(function(B){b(B,U)})}};w.forEach(d);for(var y in A)for(var f=A[y],R=f.length,L=0;L<R;++L)for(var z=L+1;z<R;++z){var F=f[L],N=f[z],O;(O=M[F])[y=p(O,N)]!==N&&O.splice(y,0,N),(O=M[N])[y=p(O,F)]!==F&&O.splice(y,0,F)}return M}function l(w){if(w==null)return x;var A,M,g=w.scale[0],b=w.scale[1],d=w.translate[0],u=w.translate[1];return function(y,f){f||(A=M=0);var R=2,L=y.length,z=new Array(L),F=Math.round((y[0]-d)/g),N=Math.round((y[1]-u)/b);for(z[0]=F-A,A=F,z[1]=N-M,M=N;R<L;)z[R]=y[R],++R;return z}}function _(w,A){if(w.transform)throw new Error("already quantized");if(!A||!A.scale){if(!((u=Math.floor(A))>=2))throw new Error("n must be \u22652");f=w.bbox||E(w);var M=f[0],g=f[1],b=f[2],d=f[3],u;A={scale:[b-M?(b-M)/(u-1):1,d-g?(d-g)/(u-1):1],translate:[M,g]}}else f=w.bbox;var y=l(A),f,R,L=w.objects,z={};function F(P){return y(P)}function N(P){var U;switch(P.type){case"GeometryCollection":U={type:"GeometryCollection",geometries:P.geometries.map(N)};break;case"Point":U={type:"Point",coordinates:F(P.coordinates)};break;case"MultiPoint":U={type:"MultiPoint",coordinates:P.coordinates.map(F)};break;default:return P}return P.id!=null&&(U.id=P.id),P.bbox!=null&&(U.bbox=P.bbox),P.properties!=null&&(U.properties=P.properties),U}function O(P){var U=0,B=1,X=P.length,$,se=new Array(X);for(se[0]=y(P[0],0);++U<X;)(($=y(P[U],U))[0]||$[1])&&(se[B++]=$);return B===1&&(se[B++]=[0,0]),se.length=B,se}for(R in L)z[R]=N(L[R]);return{type:"Topology",bbox:f,transform:A,objects:z,arcs:w.arcs.map(O)}}v.bbox=E,v.feature=t,v.merge=c,v.mergeArcs=m,v.mesh=n,v.meshArcs=i,v.neighbors=T,v.quantize=_,v.transform=S,v.untransform=l,Object.defineProperty(v,"__esModule",{value:!0})})}}),nT=Xe({"src/lib/topojson_utils.js"(Z,G){"use strict";var v=G.exports={},x=yx().locationmodeToLayer,S=IE().feature;v.getTopojsonName=function(E){return[E.scope.replace(/ /g,"-"),"_",E.resolution.toString(),"m"].join("")},v.getTopojsonPath=function(E,e){return E+=E.endsWith("/")?"":"/",`${E}${e}.json`},v.getTopojsonFeatures=function(E,e){var t=x[E.locationmode],r=e.objects[t];return S(e,r).features}}}),m0=Xe({"src/lib/geojson_utils.js"(Z){"use strict";var G=Hs().BADNUM;Z.calcTraceToLineCoords=function(v){for(var x=v[0].trace,S=x.connectgaps,E=[],e=[],t=0;t<v.length;t++){var r=v[t],o=r.lonlat;o[0]!==G?e.push(o):!S&&e.length>0&&(E.push(e),e=[])}return e.length>0&&E.push(e),E},Z.makeLine=function(v){return v.length===1?{type:"LineString",coordinates:v[0]}:{type:"MultiLineString",coordinates:v}},Z.makePolygon=function(v){if(v.length===1)return{type:"Polygon",coordinates:v};for(var x=new Array(v.length),S=0;S<v.length;S++)x[S]=[v[S]];return{type:"MultiPolygon",coordinates:x}},Z.makeBlank=function(){return{type:"Point",coordinates:[]}}}}),RU=Xe({"node_modules/country-regex/index.js"(Z,G){G.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}}}),oT=Xe({"node_modules/@turf/helpers/dist/cjs/index.cjs"(Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var G=63710088e-1,v={centimeters:G*100,centimetres:G*100,degrees:360/(2*Math.PI),feet:G*3.28084,inches:G*39.37,kilometers:G/1e3,kilometres:G/1e3,meters:G,metres:G,miles:G/1609.344,millimeters:G*1e3,millimetres:G*1e3,nauticalmiles:G/1852,radians:1,yards:G*1.0936},x={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function S(L,z,F={}){let N={type:"Feature"};return(F.id===0||F.id)&&(N.id=F.id),F.bbox&&(N.bbox=F.bbox),N.properties=z||{},N.geometry=L,N}function E(L,z,F={}){switch(L){case"Point":return e(z).geometry;case"LineString":return a(z).geometry;case"Polygon":return r(z).geometry;case"MultiPoint":return h(z).geometry;case"MultiLineString":return s(z).geometry;case"MultiPolygon":return c(z).geometry;default:throw new Error(L+" is invalid")}}function e(L,z,F={}){if(!L)throw new Error("coordinates is required");if(!Array.isArray(L))throw new Error("coordinates must be an Array");if(L.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!u(L[0])||!u(L[1]))throw new Error("coordinates must contain numbers");return S({type:"Point",coordinates:L},z,F)}function t(L,z,F={}){return i(L.map(N=>e(N,z)),F)}function r(L,z,F={}){for(let O of L){if(O.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(O[O.length-1].length!==O[0].length)throw new Error("First and last Position are not equivalent.");for(let P=0;P<O[O.length-1].length;P++)if(O[O.length-1][P]!==O[0][P])throw new Error("First and last Position are not equivalent.")}return S({type:"Polygon",coordinates:L},z,F)}function o(L,z,F={}){return i(L.map(N=>r(N,z)),F)}function a(L,z,F={}){if(L.length<2)throw new Error("coordinates must be an array of two or more positions");return S({type:"LineString",coordinates:L},z,F)}function n(L,z,F={}){return i(L.map(N=>a(N,z)),F)}function i(L,z={}){let F={type:"FeatureCollection"};return z.id&&(F.id=z.id),z.bbox&&(F.bbox=z.bbox),F.features=L,F}function s(L,z,F={}){return S({type:"MultiLineString",coordinates:L},z,F)}function h(L,z,F={}){return S({type:"MultiPoint",coordinates:L},z,F)}function c(L,z,F={}){return S({type:"MultiPolygon",coordinates:L},z,F)}function m(L,z,F={}){return S({type:"GeometryCollection",geometries:L},z,F)}function p(L,z=0){if(z&&!(z>=0))throw new Error("precision must be a positive number");let F=Math.pow(10,z||0);return Math.round(L*F)/F}function T(L,z="kilometers"){let F=v[z];if(!F)throw new Error(z+" units is invalid");return L*F}function l(L,z="kilometers"){let F=v[z];if(!F)throw new Error(z+" units is invalid");return L/F}function _(L,z){return M(l(L,z))}function w(L){let z=L%360;return z<0&&(z+=360),z}function A(L){return L=L%360,L>180?L-360:L<-180?L+360:L}function M(L){return L%(2*Math.PI)*180/Math.PI}function g(L){return L%360*Math.PI/180}function b(L,z="kilometers",F="kilometers"){if(!(L>=0))throw new Error("length must be a positive number");return T(l(L,z),F)}function d(L,z="meters",F="kilometers"){if(!(L>=0))throw new Error("area must be a positive number");let N=x[z];if(!N)throw new Error("invalid original units");let O=x[F];if(!O)throw new Error("invalid final units");return L/N*O}function u(L){return!isNaN(L)&&L!==null&&!Array.isArray(L)}function y(L){return L!==null&&typeof L=="object"&&!Array.isArray(L)}function f(L){if(!L)throw new Error("bbox is required");if(!Array.isArray(L))throw new Error("bbox must be an Array");if(L.length!==4&&L.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");L.forEach(z=>{if(!u(z))throw new Error("bbox must only contain numbers")})}function R(L){if(!L)throw new Error("id is required");if(["string","number"].indexOf(typeof L)===-1)throw new Error("id must be a number or a string")}Z.areaFactors=x,Z.azimuthToBearing=A,Z.bearingToAzimuth=w,Z.convertArea=d,Z.convertLength=b,Z.degreesToRadians=g,Z.earthRadius=G,Z.factors=v,Z.feature=S,Z.featureCollection=i,Z.geometry=E,Z.geometryCollection=m,Z.isNumber=u,Z.isObject=y,Z.lengthToDegrees=_,Z.lengthToRadians=l,Z.lineString=a,Z.lineStrings=n,Z.multiLineString=s,Z.multiPoint=h,Z.multiPolygon=c,Z.point=e,Z.points=t,Z.polygon=r,Z.polygons=o,Z.radiansToDegrees=M,Z.radiansToLength=T,Z.round=p,Z.validateBBox=f,Z.validateId=R}}),sT=Xe({"node_modules/@turf/meta/dist/cjs/index.cjs"(Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var G=oT();function v(l,_,w){if(l!==null)for(var A,M,g,b,d,u,y,f=0,R=0,L,z=l.type,F=z==="FeatureCollection",N=z==="Feature",O=F?l.features.length:1,P=0;P<O;P++){y=F?l.features[P].geometry:N?l.geometry:l,L=y?y.type==="GeometryCollection":!1,d=L?y.geometries.length:1;for(var U=0;U<d;U++){var B=0,X=0;if(b=L?y.geometries[U]:y,b!==null){u=b.coordinates;var $=b.type;switch(f=w&&($==="Polygon"||$==="MultiPolygon")?1:0,$){case null:break;case"Point":if(_(u,R,P,B,X)===!1)return!1;R++,B++;break;case"LineString":case"MultiPoint":for(A=0;A<u.length;A++){if(_(u[A],R,P,B,X)===!1)return!1;R++,$==="MultiPoint"&&B++}$==="LineString"&&B++;break;case"Polygon":case"MultiLineString":for(A=0;A<u.length;A++){for(M=0;M<u[A].length-f;M++){if(_(u[A][M],R,P,B,X)===!1)return!1;R++}$==="MultiLineString"&&B++,$==="Polygon"&&X++}$==="Polygon"&&B++;break;case"MultiPolygon":for(A=0;A<u.length;A++){for(X=0,M=0;M<u[A].length;M++){for(g=0;g<u[A][M].length-f;g++){if(_(u[A][M][g],R,P,B,X)===!1)return!1;R++}X++}B++}break;case"GeometryCollection":for(A=0;A<b.geometries.length;A++)if(v(b.geometries[A],_,w)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function x(l,_,w,A){var M=w;return v(l,function(g,b,d,u,y){b===0&&w===void 0?M=g:M=_(M,g,b,d,u,y)},A),M}function S(l,_){var w;switch(l.type){case"FeatureCollection":for(w=0;w<l.features.length&&_(l.features[w].properties,w)!==!1;w++);break;case"Feature":_(l.properties,0);break}}function E(l,_,w){var A=w;return S(l,function(M,g){g===0&&w===void 0?A=M:A=_(A,M,g)}),A}function e(l,_){if(l.type==="Feature")_(l,0);else if(l.type==="FeatureCollection")for(var w=0;w<l.features.length&&_(l.features[w],w)!==!1;w++);}function t(l,_,w){var A=w;return e(l,function(M,g){g===0&&w===void 0?A=M:A=_(A,M,g)}),A}function r(l){var _=[];return v(l,function(w){_.push(w)}),_}function o(l,_){var w,A,M,g,b,d,u,y,f,R,L=0,z=l.type==="FeatureCollection",F=l.type==="Feature",N=z?l.features.length:1;for(w=0;w<N;w++){for(d=z?l.features[w].geometry:F?l.geometry:l,y=z?l.features[w].properties:F?l.properties:{},f=z?l.features[w].bbox:F?l.bbox:void 0,R=z?l.features[w].id:F?l.id:void 0,u=d?d.type==="GeometryCollection":!1,b=u?d.geometries.length:1,M=0;M<b;M++){if(g=u?d.geometries[M]:d,g===null){if(_(null,L,y,f,R)===!1)return!1;continue}switch(g.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(_(g,L,y,f,R)===!1)return!1;break}case"GeometryCollection":{for(A=0;A<g.geometries.length;A++)if(_(g.geometries[A],L,y,f,R)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}L++}}function a(l,_,w){var A=w;return o(l,function(M,g,b,d,u){g===0&&w===void 0?A=M:A=_(A,M,g,b,d,u)}),A}function n(l,_){o(l,function(w,A,M,g,b){var d=w===null?null:w.type;switch(d){case null:case"Point":case"LineString":case"Polygon":return _(G.feature.call(void 0,w,M,{bbox:g,id:b}),A,0)===!1?!1:void 0}var u;switch(d){case"MultiPoint":u="Point";break;case"MultiLineString":u="LineString";break;case"MultiPolygon":u="Polygon";break}for(var y=0;y<w.coordinates.length;y++){var f=w.coordinates[y],R={type:u,coordinates:f};if(_(G.feature.call(void 0,R,M),A,y)===!1)return!1}})}function i(l,_,w){var A=w;return n(l,function(M,g,b){g===0&&b===0&&w===void 0?A=M:A=_(A,M,g,b)}),A}function s(l,_){n(l,function(w,A,M){var g=0;if(w.geometry){var b=w.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var d,u=0,y=0,f=0;if(v(w,function(R,L,z,F,N){if(d===void 0||A>u||F>y||N>f){d=R,u=A,y=F,f=N,g=0;return}var O=G.lineString.call(void 0,[d,R],w.properties);if(_(O,A,M,N,g)===!1)return!1;g++,d=R})===!1)return!1}}})}function h(l,_,w){var A=w,M=!1;return s(l,function(g,b,d,u,y){M===!1&&w===void 0?A=g:A=_(A,g,b,d,u,y),M=!0}),A}function c(l,_){if(!l)throw new Error("geojson is required");n(l,function(w,A,M){if(w.geometry!==null){var g=w.geometry.type,b=w.geometry.coordinates;switch(g){case"LineString":if(_(w,A,M,0,0)===!1)return!1;break;case"Polygon":for(var d=0;d<b.length;d++)if(_(G.lineString.call(void 0,b[d],w.properties),A,M,d)===!1)return!1;break}}})}function m(l,_,w){var A=w;return c(l,function(M,g,b,d){g===0&&w===void 0?A=M:A=_(A,M,g,b,d)}),A}function p(l,_){if(_=_||{},!G.isObject.call(void 0,_))throw new Error("options is invalid");var w=_.featureIndex||0,A=_.multiFeatureIndex||0,M=_.geometryIndex||0,g=_.segmentIndex||0,b=_.properties,d;switch(l.type){case"FeatureCollection":w<0&&(w=l.features.length+w),b=b||l.features[w].properties,d=l.features[w].geometry;break;case"Feature":b=b||l.properties,d=l.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":d=l;break;default:throw new Error("geojson is invalid")}if(d===null)return null;var u=d.coordinates;switch(d.type){case"Point":case"MultiPoint":return null;case"LineString":return g<0&&(g=u.length+g-1),G.lineString.call(void 0,[u[g],u[g+1]],b,_);case"Polygon":return M<0&&(M=u.length+M),g<0&&(g=u[M].length+g-1),G.lineString.call(void 0,[u[M][g],u[M][g+1]],b,_);case"MultiLineString":return A<0&&(A=u.length+A),g<0&&(g=u[A].length+g-1),G.lineString.call(void 0,[u[A][g],u[A][g+1]],b,_);case"MultiPolygon":return A<0&&(A=u.length+A),M<0&&(M=u[A].length+M),g<0&&(g=u[A][M].length-g-1),G.lineString.call(void 0,[u[A][M][g],u[A][M][g+1]],b,_)}throw new Error("geojson is invalid")}function T(l,_){if(_=_||{},!G.isObject.call(void 0,_))throw new Error("options is invalid");var w=_.featureIndex||0,A=_.multiFeatureIndex||0,M=_.geometryIndex||0,g=_.coordIndex||0,b=_.properties,d;switch(l.type){case"FeatureCollection":w<0&&(w=l.features.length+w),b=b||l.features[w].properties,d=l.features[w].geometry;break;case"Feature":b=b||l.properties,d=l.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":d=l;break;default:throw new Error("geojson is invalid")}if(d===null)return null;var u=d.coordinates;switch(d.type){case"Point":return G.point.call(void 0,u,b,_);case"MultiPoint":return A<0&&(A=u.length+A),G.point.call(void 0,u[A],b,_);case"LineString":return g<0&&(g=u.length+g),G.point.call(void 0,u[g],b,_);case"Polygon":return M<0&&(M=u.length+M),g<0&&(g=u[M].length+g),G.point.call(void 0,u[M][g],b,_);case"MultiLineString":return A<0&&(A=u.length+A),g<0&&(g=u[A].length+g),G.point.call(void 0,u[A][g],b,_);case"MultiPolygon":return A<0&&(A=u.length+A),M<0&&(M=u[A].length+M),g<0&&(g=u[A][M].length-g),G.point.call(void 0,u[A][M][g],b,_)}throw new Error("geojson is invalid")}Z.coordAll=r,Z.coordEach=v,Z.coordReduce=x,Z.featureEach=e,Z.featureReduce=t,Z.findPoint=T,Z.findSegment=p,Z.flattenEach=n,Z.flattenReduce=i,Z.geomEach=o,Z.geomReduce=a,Z.lineEach=c,Z.lineReduce=m,Z.propEach=S,Z.propReduce=E,Z.segmentEach=s,Z.segmentReduce=h}}),DU=Xe({"node_modules/@turf/area/dist/cjs/index.cjs"(Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var G=oT(),v=sT();function x(a){return v.geomReduce.call(void 0,a,(n,i)=>n+S(i),0)}function S(a){let n=0,i;switch(a.type){case"Polygon":return E(a.coordinates);case"MultiPolygon":for(i=0;i<a.coordinates.length;i++)n+=E(a.coordinates[i]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function E(a){let n=0;if(a&&a.length>0){n+=Math.abs(r(a[0]));for(let i=1;i<a.length;i++)n-=Math.abs(r(a[i]))}return n}var e=G.earthRadius*G.earthRadius/2,t=Math.PI/180;function r(a){let n=a.length-1;if(n<=2)return 0;let i=0,s=0;for(;s<n;){let h=a[s],c=a[s+1===n?0:s+1],m=a[s+2>=n?(s+2)%n:s+2],p=h[0]*t,T=c[1]*t,l=m[0]*t;i+=(l-p)*Math.sin(T),s++}return i*e}var o=x;Z.area=x,Z.default=o}}),zU=Xe({"node_modules/@turf/centroid/dist/cjs/index.cjs"(Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var G=oT(),v=sT();function x(E,e={}){let t=0,r=0,o=0;return v.coordEach.call(void 0,E,function(a){t+=a[0],r+=a[1],o++},!0),G.point.call(void 0,[t/o,r/o],e.properties)}var S=x;Z.centroid=x,Z.default=S}}),FU=Xe({"node_modules/@turf/bbox/dist/cjs/index.cjs"(Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var G=sT();function v(S,E={}){if(S.bbox!=null&&E.recompute!==!0)return S.bbox;let e=[1/0,1/0,-1/0,-1/0];return G.coordEach.call(void 0,S,t=>{e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}var x=v;Z.bbox=v,Z.default=x}}),g0=Xe({"src/lib/geo_location_utils.js"(Z,G){"use strict";var v=Hn(),x=RU(),{area:S}=DU(),{centroid:E}=zU(),{bbox:e}=FU(),t=S_(),r=Km(),o=Zv(),a=b_(),n=I_(),i=Object.keys(x),s={"ISO-3":t,"USA-states":t,"country names":h};function h(A){for(var M=0;M<i.length;M++){var g=i[M],b=new RegExp(x[g]);if(b.test(A.trim().toLowerCase()))return g}return r.log("Unrecognized country name: "+A+"."),!1}function c(A,M,g){if(!M||typeof M!="string")return!1;var b=s[A](M),d,u,y;if(b){if(A==="USA-states")for(d=[],y=0;y<g.length;y++)u=g[y],u.properties&&u.properties.gu&&u.properties.gu==="USA"&&d.push(u);else d=g;for(y=0;y<d.length;y++)if(u=d[y],u.id===b)return u;r.log(["Location with id",b,"does not have a matching topojson feature at this resolution."].join(" "))}return!1}function m(A){var M=A.geometry,g=M.coordinates,b=A.id,d=[],u,y,f,R;function L(z){for(var F=0;F<z.length-1;F++)if(z[F][0]>0&&z[F+1][0]<0)return F;return null}switch(b==="RUS"||b==="FJI"?u=function(z){var F;if(L(z)===null)F=z;else for(F=new Array(z.length),R=0;R<z.length;R++)F[R]=[z[R][0]<0?z[R][0]+360:z[R][0],z[R][1]];d.push(n.tester(F))}:b==="ATA"?u=function(z){var F=L(z);if(F===null)return d.push(n.tester(z));var N=new Array(z.length+1),O=0;for(R=0;R<z.length;R++)R>F?N[O++]=[z[R][0]+360,z[R][1]]:R===F?(N[O++]=z[R],N[O++]=[z[R][0],-90]):N[O++]=z[R];var P=n.tester(N);P.pts.pop(),d.push(P)}:u=function(z){d.push(n.tester(z))},M.type){case"MultiPolygon":for(y=0;y<g.length;y++)for(f=0;f<g[y].length;f++)u(g[y][f]);break;case"Polygon":for(y=0;y<g.length;y++)u(g[y]);break}return d}function p(A){var M=A.geojson,g=window.PlotlyGeoAssets||{},b=typeof M=="string"?g[M]:M;return o(b)?b:(r.error("Oops ... something went wrong when fetching "+M),!1)}function T(A){var M=A[0].trace,g=p(M);if(!g)return!1;var b={},d=[],u;for(u=0;u<M._length;u++){var y=A[u];(y.loc||y.loc===0)&&(b[y.loc]=y)}function f(z){var F=a(z,M.featureidkey||"id").get(),N=b[F];if(N){var O=z.geometry;if(O.type==="Polygon"||O.type==="MultiPolygon"){var P={type:"Feature",id:F,geometry:O,properties:{}};P.geometry.coordinates.length>0?P.properties.ct=l(P):P.properties.ct=[NaN,NaN],N.fIn=z,N.fOut=P,d.push(P)}else r.log(["Location",N.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete b[F]}switch(g.type){case"FeatureCollection":var R=g.features;for(u=0;u<R.length;u++)f(R[u]);break;case"Feature":f(g);break;default:return r.warn(["Invalid GeoJSON type",(g.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var L in b)r.log(["Location *"+L+"*","does not have a matching feature with id-key","*"+M.featureidkey+"*."].join(" "));return d}function l(A){var M=A.geometry,g;if(M.type==="MultiPolygon")for(var b=M.coordinates,d=0,u=0;u<b.length;u++){var y={type:"Polygon",coordinates:b[u]},f=S(y);f>d&&(d=f,g=y)}else g=M;return E(g).geometry.coordinates}function _(A){var M=window.PlotlyGeoAssets||{},g=[];function b(R){return new Promise(function(L,z){v.json(R,function(F,N){if(F){delete M[R];var O=F.status===404?'GeoJSON at URL "'+R+'" does not exist.':"Unexpected error while fetching from "+R;return z(new Error(O))}return M[R]=N,L(N)})})}function d(R){return new Promise(function(L,z){var F=0,N=setInterval(function(){if(M[R]&&M[R]!=="pending")return clearInterval(N),L(M[R]);if(F>100)return clearInterval(N),z("Unexpected error while fetching from "+R);F++},50)})}for(var u=0;u<A.length;u++){var y=A[u][0].trace,f=y.geojson;typeof f=="string"&&(M[f]?M[f]==="pending"&&g.push(d(f)):(M[f]="pending",g.push(b(f))))}return g}function w(A){return e(A)}G.exports={locationToFeature:c,feature2polygons:m,getTraceGeojson:p,extractTraceFeature:T,fetchTraceGeoData:_,computeBbox:w}}}),RE=Xe({"src/traces/scattergeo/style.js"(Z,G){"use strict";var v=Hn(),x=es(),S=$n(),E=Qp(),e=E.stylePoints,t=E.styleText;G.exports=function(a,n){n&&r(a,n)};function r(o,a){var n=a[0].trace,i=a[0].node3;i.style("opacity",a[0].trace.opacity),e(i,n,o),t(i,n,o),i.selectAll("path.js-line").style("fill","none").each(function(s){var h=v.select(this),c=s.trace,m=c.line||{};h.call(S.stroke,m.color).call(x.dashLine,m.dash||"",m.width||0),c.fill!=="none"&&h.call(S.fill,c.fillcolor)})}}}),DE=Xe({"src/traces/scattergeo/plot.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=nT().getTopojsonFeatures,E=m0(),e=g0(),t=Yd().findExtremes,r=Hs().BADNUM,o=Bd().calcMarkerSize,a=Fu(),n=RE();function i(h,c,m){var p=c.layers.frontplot.select(".scatterlayer"),T=x.makeTraceGroups(p,m,"trace scattergeo");function l(_,w){_.lonlat[0]===r&&v.select(w).remove()}T.selectAll("*").remove(),T.each(function(_){var w=v.select(this),A=_[0].trace;if(a.hasLines(A)||A.fill!=="none"){var M=E.calcTraceToLineCoords(_),g=A.fill!=="none"?E.makePolygon(M):E.makeLine(M);w.selectAll("path.js-line").data([{geojson:g,trace:A}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}a.hasMarkers(A)&&w.selectAll("path.point").data(x.identity).enter().append("path").classed("point",!0).each(function(b){l(b,this)}),a.hasText(A)&&w.selectAll("g").data(x.identity).enter().append("g").append("text").each(function(b){l(b,this)}),n(h,_)})}function s(h,c){var m=h[0].trace,p=c[m.geo],T=p._subplot,l=m._length,_,w;if(x.isArrayOrTypedArray(m.locations)){var A=m.locationmode,M=A==="geojson-id"?e.extractTraceFeature(h):S(m,T.topojson);for(_=0;_<l;_++){w=h[_];var g=A==="geojson-id"?w.fOut:e.locationToFeature(A,w.loc,M);w.lonlat=g?g.properties.ct:[r,r]}}var b={padded:!0},d,u;if(p.fitbounds==="geojson"&&m.locationmode==="geojson-id"){var y=e.computeBbox(e.getTraceGeojson(m));d=[y[0],y[2]],u=[y[1],y[3]]}else{for(d=new Array(l),u=new Array(l),_=0;_<l;_++)w=h[_],d[_]=w.lonlat[0],u[_]=w.lonlat[1];b.ppad=o(m,l)}m._extremes.lon=t(p.lonaxis._ax,d,b),m._extremes.lat=t(p.lataxis._ax,u,b)}G.exports={calcGeoJSON:s,plot:i}}}),OU=Xe({"src/traces/scattergeo/hover.js"(Z,G){"use strict";var v=rf(),x=Hs().BADNUM,S=l1(),E=sa().fillText,e=vg();G.exports=function(o,a,n){var i=o.cd,s=i[0].trace,h=o.xa,c=o.ya,m=o.subplot,p=m.projection.isLonLatOverEdges,T=m.project;function l(d){var u=d.lonlat;if(u[0]===x||p(u))return 1/0;var y=T(u),f=T([a,n]),R=Math.abs(y[0]-f[0]),L=Math.abs(y[1]-f[1]),z=Math.max(3,d.mrc||0);return Math.max(Math.sqrt(R*R+L*L)-z,1-3/z)}if(v.getClosest(i,l,o),o.index!==!1){var _=i[o.index],w=_.lonlat,A=[h.c2p(w),c.c2p(w)],M=_.mrc||1;o.x0=A[0]-M,o.x1=A[0]+M,o.y0=A[1]-M,o.y1=A[1]+M,o.loc=_.loc,o.lon=w[0],o.lat=w[1];var g={};g[s.geo]={_subplot:m};var b=s._module.formatLabels(_,s,g);return o.lonLabel=b.lonLabel,o.latLabel=b.latLabel,o.color=S(s,_),o.extraText=t(s,_,o,i[0].t.labels),o.hovertemplate=s.hovertemplate,[o]}};function t(r,o,a,n){if(r.hovertemplate)return;var i=o.hi||r.hoverinfo,s=i==="all"?e.hoverinfo.flags:i.split("+"),h=s.indexOf("location")!==-1&&Array.isArray(r.locations),c=s.indexOf("lon")!==-1,m=s.indexOf("lat")!==-1,p=s.indexOf("text")!==-1,T=[];function l(_){return _+"\xB0"}return h?T.push(o.loc):c&&m?T.push("("+l(a.latLabel)+", "+l(a.lonLabel)+")"):c?T.push(n.lon+l(a.lonLabel)):m&&T.push(n.lat+l(a.latLabel)),p&&E(o,r,T),T.join("<br>")}}}),BU=Xe({"src/traces/scattergeo/event_data.js"(Z,G){"use strict";G.exports=function(x,S,E,e,t){x.lon=S.lon,x.lat=S.lat,x.location=S.loc?S.loc:null;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x}}}),NU=Xe({"src/traces/scattergeo/select.js"(Z,G){"use strict";var v=Fu(),x=Hs().BADNUM;G.exports=function(E,e){var t=E.cd,r=E.xaxis,o=E.yaxis,a=[],n=t[0].trace,i,s,h,c,m,p=!v.hasMarkers(n)&&!v.hasText(n);if(p)return[];if(e===!1)for(m=0;m<t.length;m++)t[m].selected=0;else for(m=0;m<t.length;m++)i=t[m],s=i.lonlat,s[0]!==x&&(h=r.c2p(s),c=o.c2p(s),e.contains([h,c],null,m,E)?(a.push({pointNumber:m,lon:s[0],lat:s[1]}),i.selected=1):i.selected=0);return a}}}),_x=Xe({"node_modules/d3-array/dist/d3-array.js"(Z,G){(function(v,x){x(typeof Z=="object"&&typeof G<"u"?Z:v.d3=v.d3||{})})(Z,function(v){"use strict";function x(ee,q){return ee<q?-1:ee>q?1:ee>=q?0:NaN}function S(ee){return ee.length===1&&(ee=E(ee)),{left:function(q,oe,ae,j){for(ae==null&&(ae=0),j==null&&(j=q.length);ae<j;){var Q=ae+j>>>1;ee(q[Q],oe)<0?ae=Q+1:j=Q}return ae},right:function(q,oe,ae,j){for(ae==null&&(ae=0),j==null&&(j=q.length);ae<j;){var Q=ae+j>>>1;ee(q[Q],oe)>0?j=Q:ae=Q+1}return ae}}}function E(ee){return function(q,oe){return x(ee(q),oe)}}var e=S(x),t=e.right,r=e.left;function o(ee,q){q==null&&(q=a);for(var oe=0,ae=ee.length-1,j=ee[0],Q=new Array(ae<0?0:ae);oe<ae;)Q[oe]=q(j,j=ee[++oe]);return Q}function a(ee,q){return[ee,q]}function n(ee,q,oe){var ae=ee.length,j=q.length,Q=new Array(ae*j),re,ce,be,Ae;for(oe==null&&(oe=a),re=be=0;re<ae;++re)for(Ae=ee[re],ce=0;ce<j;++ce,++be)Q[be]=oe(Ae,q[ce]);return Q}function i(ee,q){return q<ee?-1:q>ee?1:q>=ee?0:NaN}function s(ee){return ee===null?NaN:+ee}function h(ee,q){var oe=ee.length,ae=0,j=-1,Q=0,re,ce,be=0;if(q==null)for(;++j<oe;)isNaN(re=s(ee[j]))||(ce=re-Q,Q+=ce/++ae,be+=ce*(re-Q));else for(;++j<oe;)isNaN(re=s(q(ee[j],j,ee)))||(ce=re-Q,Q+=ce/++ae,be+=ce*(re-Q));if(ae>1)return be/(ae-1)}function c(ee,q){var oe=h(ee,q);return oe&&Math.sqrt(oe)}function m(ee,q){var oe=ee.length,ae=-1,j,Q,re;if(q==null){for(;++ae<oe;)if((j=ee[ae])!=null&&j>=j)for(Q=re=j;++ae<oe;)(j=ee[ae])!=null&&(Q>j&&(Q=j),re<j&&(re=j))}else for(;++ae<oe;)if((j=q(ee[ae],ae,ee))!=null&&j>=j)for(Q=re=j;++ae<oe;)(j=q(ee[ae],ae,ee))!=null&&(Q>j&&(Q=j),re<j&&(re=j));return[Q,re]}var p=Array.prototype,T=p.slice,l=p.map;function _(ee){return function(){return ee}}function w(ee){return ee}function A(ee,q,oe){ee=+ee,q=+q,oe=(j=arguments.length)<2?(q=ee,ee=0,1):j<3?1:+oe;for(var ae=-1,j=Math.max(0,Math.ceil((q-ee)/oe))|0,Q=new Array(j);++ae<j;)Q[ae]=ee+ae*oe;return Q}var M=Math.sqrt(50),g=Math.sqrt(10),b=Math.sqrt(2);function d(ee,q,oe){var ae,j=-1,Q,re,ce;if(q=+q,ee=+ee,oe=+oe,ee===q&&oe>0)return[ee];if((ae=q<ee)&&(Q=ee,ee=q,q=Q),(ce=u(ee,q,oe))===0||!isFinite(ce))return[];if(ce>0)for(ee=Math.ceil(ee/ce),q=Math.floor(q/ce),re=new Array(Q=Math.ceil(q-ee+1));++j<Q;)re[j]=(ee+j)*ce;else for(ee=Math.floor(ee*ce),q=Math.ceil(q*ce),re=new Array(Q=Math.ceil(ee-q+1));++j<Q;)re[j]=(ee-j)/ce;return ae&&re.reverse(),re}function u(ee,q,oe){var ae=(q-ee)/Math.max(0,oe),j=Math.floor(Math.log(ae)/Math.LN10),Q=ae/Math.pow(10,j);return j>=0?(Q>=M?10:Q>=g?5:Q>=b?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=M?10:Q>=g?5:Q>=b?2:1)}function y(ee,q,oe){var ae=Math.abs(q-ee)/Math.max(0,oe),j=Math.pow(10,Math.floor(Math.log(ae)/Math.LN10)),Q=ae/j;return Q>=M?j*=10:Q>=g?j*=5:Q>=b&&(j*=2),q<ee?-j:j}function f(ee){return Math.ceil(Math.log(ee.length)/Math.LN2)+1}function R(){var ee=w,q=m,oe=f;function ae(j){var Q,re=j.length,ce,be=new Array(re);for(Q=0;Q<re;++Q)be[Q]=ee(j[Q],Q,j);var Ae=q(be),De=Ae[0],ze=Ae[1],Ze=oe(be,De,ze);Array.isArray(Ze)||(Ze=y(De,ze,Ze),Ze=A(Math.ceil(De/Ze)*Ze,ze,Ze));for(var at=Ze.length;Ze[0]<=De;)Ze.shift(),--at;for(;Ze[at-1]>ze;)Ze.pop(),--at;var nt=new Array(at+1),rt;for(Q=0;Q<=at;++Q)rt=nt[Q]=[],rt.x0=Q>0?Ze[Q-1]:De,rt.x1=Q<at?Ze[Q]:ze;for(Q=0;Q<re;++Q)ce=be[Q],De<=ce&&ce<=ze&&nt[t(Ze,ce,0,at)].push(j[Q]);return nt}return ae.value=function(j){return arguments.length?(ee=typeof j=="function"?j:_(j),ae):ee},ae.domain=function(j){return arguments.length?(q=typeof j=="function"?j:_([j[0],j[1]]),ae):q},ae.thresholds=function(j){return arguments.length?(oe=typeof j=="function"?j:Array.isArray(j)?_(T.call(j)):_(j),ae):oe},ae}function L(ee,q,oe){if(oe==null&&(oe=s),!!(ae=ee.length)){if((q=+q)<=0||ae<2)return+oe(ee[0],0,ee);if(q>=1)return+oe(ee[ae-1],ae-1,ee);var ae,j=(ae-1)*q,Q=Math.floor(j),re=+oe(ee[Q],Q,ee),ce=+oe(ee[Q+1],Q+1,ee);return re+(ce-re)*(j-Q)}}function z(ee,q,oe){return ee=l.call(ee,s).sort(x),Math.ceil((oe-q)/(2*(L(ee,.75)-L(ee,.25))*Math.pow(ee.length,-1/3)))}function F(ee,q,oe){return Math.ceil((oe-q)/(3.5*c(ee)*Math.pow(ee.length,-1/3)))}function N(ee,q){var oe=ee.length,ae=-1,j,Q;if(q==null){for(;++ae<oe;)if((j=ee[ae])!=null&&j>=j)for(Q=j;++ae<oe;)(j=ee[ae])!=null&&j>Q&&(Q=j)}else for(;++ae<oe;)if((j=q(ee[ae],ae,ee))!=null&&j>=j)for(Q=j;++ae<oe;)(j=q(ee[ae],ae,ee))!=null&&j>Q&&(Q=j);return Q}function O(ee,q){var oe=ee.length,ae=oe,j=-1,Q,re=0;if(q==null)for(;++j<oe;)isNaN(Q=s(ee[j]))?--ae:re+=Q;else for(;++j<oe;)isNaN(Q=s(q(ee[j],j,ee)))?--ae:re+=Q;if(ae)return re/ae}function P(ee,q){var oe=ee.length,ae=-1,j,Q=[];if(q==null)for(;++ae<oe;)isNaN(j=s(ee[ae]))||Q.push(j);else for(;++ae<oe;)isNaN(j=s(q(ee[ae],ae,ee)))||Q.push(j);return L(Q.sort(x),.5)}function U(ee){for(var q=ee.length,oe,ae=-1,j=0,Q,re;++ae<q;)j+=ee[ae].length;for(Q=new Array(j);--q>=0;)for(re=ee[q],oe=re.length;--oe>=0;)Q[--j]=re[oe];return Q}function B(ee,q){var oe=ee.length,ae=-1,j,Q;if(q==null){for(;++ae<oe;)if((j=ee[ae])!=null&&j>=j)for(Q=j;++ae<oe;)(j=ee[ae])!=null&&Q>j&&(Q=j)}else for(;++ae<oe;)if((j=q(ee[ae],ae,ee))!=null&&j>=j)for(Q=j;++ae<oe;)(j=q(ee[ae],ae,ee))!=null&&Q>j&&(Q=j);return Q}function X(ee,q){for(var oe=q.length,ae=new Array(oe);oe--;)ae[oe]=ee[q[oe]];return ae}function $(ee,q){if(oe=ee.length){var oe,ae=0,j=0,Q,re=ee[j];for(q==null&&(q=x);++ae<oe;)(q(Q=ee[ae],re)<0||q(re,re)!==0)&&(re=Q,j=ae);if(q(re,re)===0)return j}}function se(ee,q,oe){for(var ae=(oe??ee.length)-(q=q==null?0:+q),j,Q;ae;)Q=Math.random()*ae--|0,j=ee[ae+q],ee[ae+q]=ee[Q+q],ee[Q+q]=j;return ee}function le(ee,q){var oe=ee.length,ae=-1,j,Q=0;if(q==null)for(;++ae<oe;)(j=+ee[ae])&&(Q+=j);else for(;++ae<oe;)(j=+q(ee[ae],ae,ee))&&(Q+=j);return Q}function fe(ee){if(!(Q=ee.length))return[];for(var q=-1,oe=B(ee,V),ae=new Array(oe);++q<oe;)for(var j=-1,Q,re=ae[q]=new Array(Q);++j<Q;)re[j]=ee[j][q];return ae}function V(ee){return ee.length}function Y(){return fe(arguments)}v.bisect=t,v.bisectRight=t,v.bisectLeft=r,v.ascending=x,v.bisector=S,v.cross=n,v.descending=i,v.deviation=c,v.extent=m,v.histogram=R,v.thresholdFreedmanDiaconis=z,v.thresholdScott=F,v.thresholdSturges=f,v.max=N,v.mean=O,v.median=P,v.merge=U,v.min=B,v.pairs=o,v.permute=X,v.quantile=L,v.range=A,v.scan=$,v.shuffle=se,v.sum=le,v.ticks=d,v.tickIncrement=u,v.tickStep=y,v.transpose=fe,v.variance=h,v.zip=Y,Object.defineProperty(v,"__esModule",{value:!0})})}}),zE=Xe({"node_modules/d3-geo/dist/d3-geo.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z,_x()):(v=v||self,x(v.d3=v.d3||{},v.d3))})(Z,function(v,x){"use strict";function S(){return new E}function E(){this.reset()}E.prototype={constructor:E,reset:function(){this.s=this.t=0},add:function(Qt){t(e,Qt,this.t),t(this,e.s,this.s),this.s?this.t+=e.t:this.s=e.t},valueOf:function(){return this.s}};var e=new E;function t(Qt,br,aa){var $r=Qt.s=br+aa,ka=$r-br,li=$r-ka;Qt.t=br-li+(aa-ka)}var r=1e-6,o=1e-12,a=Math.PI,n=a/2,i=a/4,s=a*2,h=180/a,c=a/180,m=Math.abs,p=Math.atan,T=Math.atan2,l=Math.cos,_=Math.ceil,w=Math.exp,A=Math.log,M=Math.pow,g=Math.sin,b=Math.sign||function(Qt){return Qt>0?1:Qt<0?-1:0},d=Math.sqrt,u=Math.tan;function y(Qt){return Qt>1?0:Qt<-1?a:Math.acos(Qt)}function f(Qt){return Qt>1?n:Qt<-1?-n:Math.asin(Qt)}function R(Qt){return(Qt=g(Qt/2))*Qt}function L(){}function z(Qt,br){Qt&&N.hasOwnProperty(Qt.type)&&N[Qt.type](Qt,br)}var F={Feature:function(Qt,br){z(Qt.geometry,br)},FeatureCollection:function(Qt,br){for(var aa=Qt.features,$r=-1,ka=aa.length;++$r<ka;)z(aa[$r].geometry,br)}},N={Sphere:function(Qt,br){br.sphere()},Point:function(Qt,br){Qt=Qt.coordinates,br.point(Qt[0],Qt[1],Qt[2])},MultiPoint:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)Qt=aa[$r],br.point(Qt[0],Qt[1],Qt[2])},LineString:function(Qt,br){O(Qt.coordinates,br,0)},MultiLineString:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)O(aa[$r],br,0)},Polygon:function(Qt,br){P(Qt.coordinates,br)},MultiPolygon:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)P(aa[$r],br)},GeometryCollection:function(Qt,br){for(var aa=Qt.geometries,$r=-1,ka=aa.length;++$r<ka;)z(aa[$r],br)}};function O(Qt,br,aa){var $r=-1,ka=Qt.length-aa,li;for(br.lineStart();++$r<ka;)li=Qt[$r],br.point(li[0],li[1],li[2]);br.lineEnd()}function P(Qt,br){var aa=-1,$r=Qt.length;for(br.polygonStart();++aa<$r;)O(Qt[aa],br,1);br.polygonEnd()}function U(Qt,br){Qt&&F.hasOwnProperty(Qt.type)?F[Qt.type](Qt,br):z(Qt,br)}var B=S(),X=S(),$,se,le,fe,V,Y={point:L,lineStart:L,lineEnd:L,polygonStart:function(){B.reset(),Y.lineStart=ee,Y.lineEnd=q},polygonEnd:function(){var Qt=+B;X.add(Qt<0?s+Qt:Qt),this.lineStart=this.lineEnd=this.point=L},sphere:function(){X.add(s)}};function ee(){Y.point=oe}function q(){ae($,se)}function oe(Qt,br){Y.point=ae,$=Qt,se=br,Qt*=c,br*=c,le=Qt,fe=l(br=br/2+i),V=g(br)}function ae(Qt,br){Qt*=c,br*=c,br=br/2+i;var aa=Qt-le,$r=aa>=0?1:-1,ka=$r*aa,li=l(br),Ci=g(br),Hi=V*Ci,Qi=fe*li+Hi*l(ka),dn=Hi*$r*g(ka);B.add(T(dn,Qi)),le=Qt,fe=li,V=Ci}function j(Qt){return X.reset(),U(Qt,Y),X*2}function Q(Qt){return[T(Qt[1],Qt[0]),f(Qt[2])]}function re(Qt){var br=Qt[0],aa=Qt[1],$r=l(aa);return[$r*l(br),$r*g(br),g(aa)]}function ce(Qt,br){return Qt[0]*br[0]+Qt[1]*br[1]+Qt[2]*br[2]}function be(Qt,br){return[Qt[1]*br[2]-Qt[2]*br[1],Qt[2]*br[0]-Qt[0]*br[2],Qt[0]*br[1]-Qt[1]*br[0]]}function Ae(Qt,br){Qt[0]+=br[0],Qt[1]+=br[1],Qt[2]+=br[2]}function De(Qt,br){return[Qt[0]*br,Qt[1]*br,Qt[2]*br]}function ze(Qt){var br=d(Qt[0]*Qt[0]+Qt[1]*Qt[1]+Qt[2]*Qt[2]);Qt[0]/=br,Qt[1]/=br,Qt[2]/=br}var Ze,at,nt,rt,st,Me,ye,he,Oe=S(),tt,ot,Qe={point:Pt,lineStart:qt,lineEnd:Wt,polygonStart:function(){Qe.point=kr,Qe.lineStart=mr,Qe.lineEnd=qr,Oe.reset(),Y.polygonStart()},polygonEnd:function(){Y.polygonEnd(),Qe.point=Pt,Qe.lineStart=qt,Qe.lineEnd=Wt,B<0?(Ze=-(nt=180),at=-(rt=90)):Oe>r?rt=90:Oe<-r&&(at=-90),ot[0]=Ze,ot[1]=nt},sphere:function(){Ze=-(nt=180),at=-(rt=90)}};function Pt(Qt,br){tt.push(ot=[Ze=Qt,nt=Qt]),br<at&&(at=br),br>rt&&(rt=br)}function It(Qt,br){var aa=re([Qt*c,br*c]);if(he){var $r=be(he,aa),ka=[$r[1],-$r[0],0],li=be(ka,$r);ze(li),li=Q(li);var Ci=Qt-st,Hi=Ci>0?1:-1,Qi=li[0]*h*Hi,dn,Pi=m(Ci)>180;Pi^(Hi*st<Qi&&Qi<Hi*Qt)?(dn=li[1]*h,dn>rt&&(rt=dn)):(Qi=(Qi+360)%360-180,Pi^(Hi*st<Qi&&Qi<Hi*Qt)?(dn=-li[1]*h,dn<at&&(at=dn)):(br<at&&(at=br),br>rt&&(rt=br))),Pi?Qt<st?Sr(Ze,Qt)>Sr(Ze,nt)&&(nt=Qt):Sr(Qt,nt)>Sr(Ze,nt)&&(Ze=Qt):nt>=Ze?(Qt<Ze&&(Ze=Qt),Qt>nt&&(nt=Qt)):Qt>st?Sr(Ze,Qt)>Sr(Ze,nt)&&(nt=Qt):Sr(Qt,nt)>Sr(Ze,nt)&&(Ze=Qt)}else tt.push(ot=[Ze=Qt,nt=Qt]);br<at&&(at=br),br>rt&&(rt=br),he=aa,st=Qt}function qt(){Qe.point=It}function Wt(){ot[0]=Ze,ot[1]=nt,Qe.point=Pt,he=null}function kr(Qt,br){if(he){var aa=Qt-st;Oe.add(m(aa)>180?aa+(aa>0?360:-360):aa)}else Me=Qt,ye=br;Y.point(Qt,br),It(Qt,br)}function mr(){Y.lineStart()}function qr(){kr(Me,ye),Y.lineEnd(),m(Oe)>r&&(Ze=-(nt=180)),ot[0]=Ze,ot[1]=nt,he=null}function Sr(Qt,br){return(br-=Qt)<0?br+360:br}function Rr(Qt,br){return Qt[0]-br[0]}function wt(Qt,br){return Qt[0]<=Qt[1]?Qt[0]<=br&&br<=Qt[1]:br<Qt[0]||Qt[1]<br}function Ne(Qt){var br,aa,$r,ka,li,Ci,Hi;if(rt=nt=-(Ze=at=1/0),tt=[],U(Qt,Qe),aa=tt.length){for(tt.sort(Rr),br=1,$r=tt[0],li=[$r];br<aa;++br)ka=tt[br],wt($r,ka[0])||wt($r,ka[1])?(Sr($r[0],ka[1])>Sr($r[0],$r[1])&&($r[1]=ka[1]),Sr(ka[0],$r[1])>Sr($r[0],$r[1])&&($r[0]=ka[0])):li.push($r=ka);for(Ci=-1/0,aa=li.length-1,br=0,$r=li[aa];br<=aa;$r=ka,++br)ka=li[br],(Hi=Sr($r[1],ka[0]))>Ci&&(Ci=Hi,Ze=ka[0],nt=$r[1])}return tt=ot=null,Ze===1/0||at===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ze,at],[nt,rt]]}var Ke,Te,Ie,Ve,Ce,Ee,Pe,ft,ct,_t,Ct,ir,rr,er,Lr,fa,Da={sphere:L,point:Ia,lineStart:Wa,lineEnd:wi,polygonStart:function(){Da.lineStart=Kt,Da.lineEnd=Ft},polygonEnd:function(){Da.lineStart=Wa,Da.lineEnd=wi}};function Ia(Qt,br){Qt*=c,br*=c;var aa=l(br);qa(aa*l(Qt),aa*g(Qt),g(br))}function qa(Qt,br,aa){++Ke,Ie+=(Qt-Ie)/Ke,Ve+=(br-Ve)/Ke,Ce+=(aa-Ce)/Ke}function Wa(){Da.point=Ca}function Ca(Qt,br){Qt*=c,br*=c;var aa=l(br);er=aa*l(Qt),Lr=aa*g(Qt),fa=g(br),Da.point=hi,qa(er,Lr,fa)}function hi(Qt,br){Qt*=c,br*=c;var aa=l(br),$r=aa*l(Qt),ka=aa*g(Qt),li=g(br),Ci=T(d((Ci=Lr*li-fa*ka)*Ci+(Ci=fa*$r-er*li)*Ci+(Ci=er*ka-Lr*$r)*Ci),er*$r+Lr*ka+fa*li);Te+=Ci,Ee+=Ci*(er+(er=$r)),Pe+=Ci*(Lr+(Lr=ka)),ft+=Ci*(fa+(fa=li)),qa(er,Lr,fa)}function wi(){Da.point=Ia}function Kt(){Da.point=Yt}function Ft(){Jt(ir,rr),Da.point=Ia}function Yt(Qt,br){ir=Qt,rr=br,Qt*=c,br*=c,Da.point=Jt;var aa=l(br);er=aa*l(Qt),Lr=aa*g(Qt),fa=g(br),qa(er,Lr,fa)}function Jt(Qt,br){Qt*=c,br*=c;var aa=l(br),$r=aa*l(Qt),ka=aa*g(Qt),li=g(br),Ci=Lr*li-fa*ka,Hi=fa*$r-er*li,Qi=er*ka-Lr*$r,dn=d(Ci*Ci+Hi*Hi+Qi*Qi),Pi=f(dn),Di=dn&&-Pi/dn;ct+=Di*Ci,_t+=Di*Hi,Ct+=Di*Qi,Te+=Pi,Ee+=Pi*(er+(er=$r)),Pe+=Pi*(Lr+(Lr=ka)),ft+=Pi*(fa+(fa=li)),qa(er,Lr,fa)}function Fr(Qt){Ke=Te=Ie=Ve=Ce=Ee=Pe=ft=ct=_t=Ct=0,U(Qt,Da);var br=ct,aa=_t,$r=Ct,ka=br*br+aa*aa+$r*$r;return ka<o&&(br=Ee,aa=Pe,$r=ft,Te<r&&(br=Ie,aa=Ve,$r=Ce),ka=br*br+aa*aa+$r*$r,ka<o)?[NaN,NaN]:[T(aa,br)*h,f($r/d(ka))*h]}function ta(Qt){return function(){return Qt}}function ra(Qt,br){function aa($r,ka){return $r=Qt($r,ka),br($r[0],$r[1])}return Qt.invert&&br.invert&&(aa.invert=function($r,ka){return $r=br.invert($r,ka),$r&&Qt.invert($r[0],$r[1])}),aa}function ca(Qt,br){return[m(Qt)>a?Qt+Math.round(-Qt/s)*s:Qt,br]}ca.invert=ca;function Ba(Qt,br,aa){return(Qt%=s)?br||aa?ra(Za(Qt),ri(br,aa)):Za(Qt):br||aa?ri(br,aa):ca}function $a(Qt){return function(br,aa){return br+=Qt,[br>a?br-s:br<-a?br+s:br,aa]}}function Za(Qt){var br=$a(Qt);return br.invert=$a(-Qt),br}function ri(Qt,br){var aa=l(Qt),$r=g(Qt),ka=l(br),li=g(br);function Ci(Hi,Qi){var dn=l(Qi),Pi=l(Hi)*dn,Di=g(Hi)*dn,Ni=g(Qi),mi=Ni*aa+Pi*$r;return[T(Di*ka-mi*li,Pi*aa-Ni*$r),f(mi*ka+Di*li)]}return Ci.invert=function(Hi,Qi){var dn=l(Qi),Pi=l(Hi)*dn,Di=g(Hi)*dn,Ni=g(Qi),mi=Ni*ka-Di*li;return[T(Di*ka+Ni*li,Pi*aa+mi*$r),f(mi*aa-Pi*$r)]},Ci}function pi(Qt){Qt=Ba(Qt[0]*c,Qt[1]*c,Qt.length>2?Qt[2]*c:0);function br(aa){return aa=Qt(aa[0]*c,aa[1]*c),aa[0]*=h,aa[1]*=h,aa}return br.invert=function(aa){return aa=Qt.invert(aa[0]*c,aa[1]*c),aa[0]*=h,aa[1]*=h,aa},br}function Ra(Qt,br,aa,$r,ka,li){if(aa){var Ci=l(br),Hi=g(br),Qi=$r*aa;ka==null?(ka=br+$r*s,li=br-Qi/2):(ka=tn(Ci,ka),li=tn(Ci,li),($r>0?ka<li:ka>li)&&(ka+=$r*s));for(var dn,Pi=ka;$r>0?Pi>li:Pi<li;Pi-=Qi)dn=Q([Ci,-Hi*l(Pi),-Hi*g(Pi)]),Qt.point(dn[0],dn[1])}}function tn(Qt,br){br=re(br),br[0]-=Qt,ze(br);var aa=y(-br[1]);return((-br[2]<0?-aa:aa)+s-r)%s}function on(){var Qt=ta([0,0]),br=ta(90),aa=ta(6),$r,ka,li={point:Ci};function Ci(Qi,dn){$r.push(Qi=ka(Qi,dn)),Qi[0]*=h,Qi[1]*=h}function Hi(){var Qi=Qt.apply(this,arguments),dn=br.apply(this,arguments)*c,Pi=aa.apply(this,arguments)*c;return $r=[],ka=Ba(-Qi[0]*c,-Qi[1]*c,0).invert,Ra(li,dn,Pi,1),Qi={type:"Polygon",coordinates:[$r]},$r=ka=null,Qi}return Hi.center=function(Qi){return arguments.length?(Qt=typeof Qi=="function"?Qi:ta([+Qi[0],+Qi[1]]),Hi):Qt},Hi.radius=function(Qi){return arguments.length?(br=typeof Qi=="function"?Qi:ta(+Qi),Hi):br},Hi.precision=function(Qi){return arguments.length?(aa=typeof Qi=="function"?Qi:ta(+Qi),Hi):aa},Hi}function hn(){var Qt=[],br;return{point:function(aa,$r,ka){br.push([aa,$r,ka])},lineStart:function(){Qt.push(br=[])},lineEnd:L,rejoin:function(){Qt.length>1&&Qt.push(Qt.pop().concat(Qt.shift()))},result:function(){var aa=Qt;return Qt=[],br=null,aa}}}function Tt(Qt,br){return m(Qt[0]-br[0])<r&&m(Qt[1]-br[1])<r}function ut(Qt,br,aa,$r){this.x=Qt,this.z=br,this.o=aa,this.e=$r,this.v=!1,this.n=this.p=null}function Br(Qt,br,aa,$r,ka){var li=[],Ci=[],Hi,Qi;if(Qt.forEach(function(Mn){if(!((Qn=Mn.length-1)<=0)){var Qn,ao=Mn[0],eo=Mn[Qn],fo;if(Tt(ao,eo)){if(!ao[2]&&!eo[2]){for(ka.lineStart(),Hi=0;Hi<Qn;++Hi)ka.point((ao=Mn[Hi])[0],ao[1]);ka.lineEnd();return}eo[0]+=2*r}li.push(fo=new ut(ao,Mn,null,!0)),Ci.push(fo.o=new ut(ao,null,fo,!1)),li.push(fo=new ut(eo,Mn,null,!1)),Ci.push(fo.o=new ut(eo,null,fo,!0))}}),!!li.length){for(Ci.sort(br),Cr(li),Cr(Ci),Hi=0,Qi=Ci.length;Hi<Qi;++Hi)Ci[Hi].e=aa=!aa;for(var dn=li[0],Pi,Di;;){for(var Ni=dn,mi=!0;Ni.v;)if((Ni=Ni.n)===dn)return;Pi=Ni.z,ka.lineStart();do{if(Ni.v=Ni.o.v=!0,Ni.e){if(mi)for(Hi=0,Qi=Pi.length;Hi<Qi;++Hi)ka.point((Di=Pi[Hi])[0],Di[1]);else $r(Ni.x,Ni.n.x,1,ka);Ni=Ni.n}else{if(mi)for(Pi=Ni.p.z,Hi=Pi.length-1;Hi>=0;--Hi)ka.point((Di=Pi[Hi])[0],Di[1]);else $r(Ni.x,Ni.p.x,-1,ka);Ni=Ni.p}Ni=Ni.o,Pi=Ni.z,mi=!mi}while(!Ni.v);ka.lineEnd()}}}function Cr(Qt){if(br=Qt.length){for(var br,aa=0,$r=Qt[0],ka;++aa<br;)$r.n=ka=Qt[aa],ka.p=$r,$r=ka;$r.n=ka=Qt[0],ka.p=$r}}var xr=S();function Ir(Qt){return m(Qt[0])<=a?Qt[0]:b(Qt[0])*((m(Qt[0])+a)%s-a)}function Ur(Qt,br){var aa=Ir(br),$r=br[1],ka=g($r),li=[g(aa),-l(aa),0],Ci=0,Hi=0;xr.reset(),ka===1?$r=n+r:ka===-1&&($r=-n-r);for(var Qi=0,dn=Qt.length;Qi<dn;++Qi)if(Di=(Pi=Qt[Qi]).length)for(var Pi,Di,Ni=Pi[Di-1],mi=Ir(Ni),Mn=Ni[1]/2+i,Qn=g(Mn),ao=l(Mn),eo=0;eo<Di;++eo,mi=An,Qn=yo,ao=Ko,Ni=fo){var fo=Pi[eo],An=Ir(fo),un=fo[1]/2+i,yo=g(un),Ko=l(un),Ss=An-mi,rl=Ss>=0?1:-1,Os=rl*Ss,el=Os>a,bs=Qn*yo;if(xr.add(T(bs*rl*g(Os),ao*Ko+bs*l(Os))),Ci+=el?Ss+rl*s:Ss,el^mi>=aa^An>=aa){var Fl=be(re(Ni),re(fo));ze(Fl);var _l=be(li,Fl);ze(_l);var ll=(el^Ss>=0?-1:1)*f(_l[2]);($r>ll||$r===ll&&(Fl[0]||Fl[1]))&&(Hi+=el^Ss>=0?1:-1)}}return(Ci<-r||Ci<r&&xr<-r)^Hi&1}function Hr(Qt,br,aa,$r){return function(ka){var li=br(ka),Ci=hn(),Hi=br(Ci),Qi=!1,dn,Pi,Di,Ni={point:mi,lineStart:Qn,lineEnd:ao,polygonStart:function(){Ni.point=eo,Ni.lineStart=fo,Ni.lineEnd=An,Pi=[],dn=[]},polygonEnd:function(){Ni.point=mi,Ni.lineStart=Qn,Ni.lineEnd=ao,Pi=x.merge(Pi);var un=Ur(dn,$r);Pi.length?(Qi||(ka.polygonStart(),Qi=!0),Br(Pi,Xt,un,aa,ka)):un&&(Qi||(ka.polygonStart(),Qi=!0),ka.lineStart(),aa(null,null,1,ka),ka.lineEnd()),Qi&&(ka.polygonEnd(),Qi=!1),Pi=dn=null},sphere:function(){ka.polygonStart(),ka.lineStart(),aa(null,null,1,ka),ka.lineEnd(),ka.polygonEnd()}};function mi(un,yo){Qt(un,yo)&&ka.point(un,yo)}function Mn(un,yo){li.point(un,yo)}function Qn(){Ni.point=Mn,li.lineStart()}function ao(){Ni.point=mi,li.lineEnd()}function eo(un,yo){Di.push([un,yo]),Hi.point(un,yo)}function fo(){Hi.lineStart(),Di=[]}function An(){eo(Di[0][0],Di[0][1]),Hi.lineEnd();var un=Hi.clean(),yo=Ci.result(),Ko,Ss=yo.length,rl,Os,el;if(Di.pop(),dn.push(Di),Di=null,!!Ss){if(un&1){if(Os=yo[0],(rl=Os.length-1)>0){for(Qi||(ka.polygonStart(),Qi=!0),ka.lineStart(),Ko=0;Ko<rl;++Ko)ka.point((el=Os[Ko])[0],el[1]);ka.lineEnd()}return}Ss>1&&un&2&&yo.push(yo.pop().concat(yo.shift())),Pi.push(yo.filter(xt))}}return Ni}}function xt(Qt){return Qt.length>1}function Xt(Qt,br){return((Qt=Qt.x)[0]<0?Qt[1]-n-r:n-Qt[1])-((br=br.x)[0]<0?br[1]-n-r:n-br[1])}var vr=Hr(function(){return!0},Or,Pa,[-a,-n]);function Or(Qt){var br=NaN,aa=NaN,$r=NaN,ka;return{lineStart:function(){Qt.lineStart(),ka=1},point:function(li,Ci){var Hi=li>0?a:-a,Qi=m(li-br);m(Qi-a)<r?(Qt.point(br,aa=(aa+Ci)/2>0?n:-n),Qt.point($r,aa),Qt.lineEnd(),Qt.lineStart(),Qt.point(Hi,aa),Qt.point(li,aa),ka=0):$r!==Hi&&Qi>=a&&(m(br-$r)<r&&(br-=$r*r),m(li-Hi)<r&&(li-=Hi*r),aa=ba(br,aa,li,Ci),Qt.point($r,aa),Qt.lineEnd(),Qt.lineStart(),Qt.point(Hi,aa),ka=0),Qt.point(br=li,aa=Ci),$r=Hi},lineEnd:function(){Qt.lineEnd(),br=aa=NaN},clean:function(){return 2-ka}}}function ba(Qt,br,aa,$r){var ka,li,Ci=g(Qt-aa);return m(Ci)>r?p((g(br)*(li=l($r))*g(aa)-g($r)*(ka=l(br))*g(Qt))/(ka*li*Ci)):(br+$r)/2}function Pa(Qt,br,aa,$r){var ka;if(Qt==null)ka=aa*n,$r.point(-a,ka),$r.point(0,ka),$r.point(a,ka),$r.point(a,0),$r.point(a,-ka),$r.point(0,-ka),$r.point(-a,-ka),$r.point(-a,0),$r.point(-a,ka);else if(m(Qt[0]-br[0])>r){var li=Qt[0]<br[0]?a:-a;ka=aa*li/2,$r.point(-li,ka),$r.point(0,ka),$r.point(li,ka)}else $r.point(br[0],br[1])}function ya(Qt){var br=l(Qt),aa=6*c,$r=br>0,ka=m(br)>r;function li(Pi,Di,Ni,mi){Ra(mi,Qt,aa,Ni,Pi,Di)}function Ci(Pi,Di){return l(Pi)*l(Di)>br}function Hi(Pi){var Di,Ni,mi,Mn,Qn;return{lineStart:function(){Mn=mi=!1,Qn=1},point:function(ao,eo){var fo=[ao,eo],An,un=Ci(ao,eo),yo=$r?un?0:dn(ao,eo):un?dn(ao+(ao<0?a:-a),eo):0;if(!Di&&(Mn=mi=un)&&Pi.lineStart(),un!==mi&&(An=Qi(Di,fo),(!An||Tt(Di,An)||Tt(fo,An))&&(fo[2]=1)),un!==mi)Qn=0,un?(Pi.lineStart(),An=Qi(fo,Di),Pi.point(An[0],An[1])):(An=Qi(Di,fo),Pi.point(An[0],An[1],2),Pi.lineEnd()),Di=An;else if(ka&&Di&&$r^un){var Ko;!(yo&Ni)&&(Ko=Qi(fo,Di,!0))&&(Qn=0,$r?(Pi.lineStart(),Pi.point(Ko[0][0],Ko[0][1]),Pi.point(Ko[1][0],Ko[1][1]),Pi.lineEnd()):(Pi.point(Ko[1][0],Ko[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Ko[0][0],Ko[0][1],3)))}un&&(!Di||!Tt(Di,fo))&&Pi.point(fo[0],fo[1]),Di=fo,mi=un,Ni=yo},lineEnd:function(){mi&&Pi.lineEnd(),Di=null},clean:function(){return Qn|(Mn&&mi)<<1}}}function Qi(Pi,Di,Ni){var mi=re(Pi),Mn=re(Di),Qn=[1,0,0],ao=be(mi,Mn),eo=ce(ao,ao),fo=ao[0],An=eo-fo*fo;if(!An)return!Ni&&Pi;var un=br*eo/An,yo=-br*fo/An,Ko=be(Qn,ao),Ss=De(Qn,un),rl=De(ao,yo);Ae(Ss,rl);var Os=Ko,el=ce(Ss,Os),bs=ce(Os,Os),Fl=el*el-bs*(ce(Ss,Ss)-1);if(!(Fl<0)){var _l=d(Fl),ll=De(Os,(-el-_l)/bs);if(Ae(ll,Ss),ll=Q(ll),!Ni)return ll;var Un=Pi[0],Lo=Di[0],Js=Pi[1],Rs=Di[1],uu;Lo<Un&&(uu=Un,Un=Lo,Lo=uu);var Iu=Lo-Un,Zu=m(Iu-a)<r,Ic=Zu||Iu<r;if(!Zu&&Rs<Js&&(uu=Js,Js=Rs,Rs=uu),Ic?Zu?Js+Rs>0^ll[1]<(m(ll[0]-Un)<r?Js:Rs):Js<=ll[1]&&ll[1]<=Rs:Iu>a^(Un<=ll[0]&&ll[0]<=Lo)){var bu=De(Os,(-el+_l)/bs);return Ae(bu,Ss),[ll,Q(bu)]}}}function dn(Pi,Di){var Ni=$r?Qt:a-Qt,mi=0;return Pi<-Ni?mi|=1:Pi>Ni&&(mi|=2),Di<-Ni?mi|=4:Di>Ni&&(mi|=8),mi}return Hr(Ci,Hi,li,$r?[0,-Qt]:[-a,Qt-a])}function la(Qt,br,aa,$r,ka,li){var Ci=Qt[0],Hi=Qt[1],Qi=br[0],dn=br[1],Pi=0,Di=1,Ni=Qi-Ci,mi=dn-Hi,Mn;if(Mn=aa-Ci,!(!Ni&&Mn>0)){if(Mn/=Ni,Ni<0){if(Mn<Pi)return;Mn<Di&&(Di=Mn)}else if(Ni>0){if(Mn>Di)return;Mn>Pi&&(Pi=Mn)}if(Mn=ka-Ci,!(!Ni&&Mn<0)){if(Mn/=Ni,Ni<0){if(Mn>Di)return;Mn>Pi&&(Pi=Mn)}else if(Ni>0){if(Mn<Pi)return;Mn<Di&&(Di=Mn)}if(Mn=$r-Hi,!(!mi&&Mn>0)){if(Mn/=mi,mi<0){if(Mn<Pi)return;Mn<Di&&(Di=Mn)}else if(mi>0){if(Mn>Di)return;Mn>Pi&&(Pi=Mn)}if(Mn=li-Hi,!(!mi&&Mn<0)){if(Mn/=mi,mi<0){if(Mn>Di)return;Mn>Pi&&(Pi=Mn)}else if(mi>0){if(Mn<Pi)return;Mn<Di&&(Di=Mn)}return Pi>0&&(Qt[0]=Ci+Pi*Ni,Qt[1]=Hi+Pi*mi),Di<1&&(br[0]=Ci+Di*Ni,br[1]=Hi+Di*mi),!0}}}}}var Ta=1e9,Ai=-Ta;function ki(Qt,br,aa,$r){function ka(dn,Pi){return Qt<=dn&&dn<=aa&&br<=Pi&&Pi<=$r}function li(dn,Pi,Di,Ni){var mi=0,Mn=0;if(dn==null||(mi=Ci(dn,Di))!==(Mn=Ci(Pi,Di))||Qi(dn,Pi)<0^Di>0)do Ni.point(mi===0||mi===3?Qt:aa,mi>1?$r:br);while((mi=(mi+Di+4)%4)!==Mn);else Ni.point(Pi[0],Pi[1])}function Ci(dn,Pi){return m(dn[0]-Qt)<r?Pi>0?0:3:m(dn[0]-aa)<r?Pi>0?2:1:m(dn[1]-br)<r?Pi>0?1:0:Pi>0?3:2}function Hi(dn,Pi){return Qi(dn.x,Pi.x)}function Qi(dn,Pi){var Di=Ci(dn,1),Ni=Ci(Pi,1);return Di!==Ni?Di-Ni:Di===0?Pi[1]-dn[1]:Di===1?dn[0]-Pi[0]:Di===2?dn[1]-Pi[1]:Pi[0]-dn[0]}return function(dn){var Pi=dn,Di=hn(),Ni,mi,Mn,Qn,ao,eo,fo,An,un,yo,Ko,Ss={point:rl,lineStart:Fl,lineEnd:_l,polygonStart:el,polygonEnd:bs};function rl(Un,Lo){ka(Un,Lo)&&Pi.point(Un,Lo)}function Os(){for(var Un=0,Lo=0,Js=mi.length;Lo<Js;++Lo)for(var Rs=mi[Lo],uu=1,Iu=Rs.length,Zu=Rs[0],Ic,bu,Rc=Zu[0],Au=Zu[1];uu<Iu;++uu)Ic=Rc,bu=Au,Zu=Rs[uu],Rc=Zu[0],Au=Zu[1],bu<=$r?Au>$r&&(Rc-Ic)*($r-bu)>(Au-bu)*(Qt-Ic)&&++Un:Au<=$r&&(Rc-Ic)*($r-bu)<(Au-bu)*(Qt-Ic)&&--Un;return Un}function el(){Pi=Di,Ni=[],mi=[],Ko=!0}function bs(){var Un=Os(),Lo=Ko&&Un,Js=(Ni=x.merge(Ni)).length;(Lo||Js)&&(dn.polygonStart(),Lo&&(dn.lineStart(),li(null,null,1,dn),dn.lineEnd()),Js&&Br(Ni,Hi,Un,li,dn),dn.polygonEnd()),Pi=dn,Ni=mi=Mn=null}function Fl(){Ss.point=ll,mi&&mi.push(Mn=[]),yo=!0,un=!1,fo=An=NaN}function _l(){Ni&&(ll(Qn,ao),eo&&un&&Di.rejoin(),Ni.push(Di.result())),Ss.point=rl,un&&Pi.lineEnd()}function ll(Un,Lo){var Js=ka(Un,Lo);if(mi&&Mn.push([Un,Lo]),yo)Qn=Un,ao=Lo,eo=Js,yo=!1,Js&&(Pi.lineStart(),Pi.point(Un,Lo));else if(Js&&un)Pi.point(Un,Lo);else{var Rs=[fo=Math.max(Ai,Math.min(Ta,fo)),An=Math.max(Ai,Math.min(Ta,An))],uu=[Un=Math.max(Ai,Math.min(Ta,Un)),Lo=Math.max(Ai,Math.min(Ta,Lo))];la(Rs,uu,Qt,br,aa,$r)?(un||(Pi.lineStart(),Pi.point(Rs[0],Rs[1])),Pi.point(uu[0],uu[1]),Js||Pi.lineEnd(),Ko=!1):Js&&(Pi.lineStart(),Pi.point(Un,Lo),Ko=!1)}fo=Un,An=Lo,un=Js}return Ss}}function Ki(){var Qt=0,br=0,aa=960,$r=500,ka,li,Ci;return Ci={stream:function(Hi){return ka&&li===Hi?ka:ka=ki(Qt,br,aa,$r)(li=Hi)},extent:function(Hi){return arguments.length?(Qt=+Hi[0][0],br=+Hi[0][1],aa=+Hi[1][0],$r=+Hi[1][1],ka=li=null,Ci):[[Qt,br],[aa,$r]]}}}var _n=S(),Rn,En,On,no={sphere:L,point:L,lineStart:cn,lineEnd:L,polygonStart:L,polygonEnd:L};function cn(){no.point=Wo,no.lineEnd=lo}function lo(){no.point=no.lineEnd=L}function Wo(Qt,br){Qt*=c,br*=c,Rn=Qt,En=g(br),On=l(br),no.point=hs}function hs(Qt,br){Qt*=c,br*=c;var aa=g(br),$r=l(br),ka=m(Qt-Rn),li=l(ka),Ci=g(ka),Hi=$r*Ci,Qi=On*aa-En*$r*li,dn=En*aa+On*$r*li;_n.add(T(d(Hi*Hi+Qi*Qi),dn)),Rn=Qt,En=aa,On=$r}function Oo(Qt){return _n.reset(),U(Qt,no),+_n}var Wn=[null,null],No={type:"LineString",coordinates:Wn};function as(Qt,br){return Wn[0]=Qt,Wn[1]=br,Oo(No)}var Ns={Feature:function(Qt,br){return uo(Qt.geometry,br)},FeatureCollection:function(Qt,br){for(var aa=Qt.features,$r=-1,ka=aa.length;++$r<ka;)if(uo(aa[$r].geometry,br))return!0;return!1}},ss={Sphere:function(){return!0},Point:function(Qt,br){return jn(Qt.coordinates,br)},MultiPoint:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)if(jn(aa[$r],br))return!0;return!1},LineString:function(Qt,br){return Xn(Qt.coordinates,br)},MultiLineString:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)if(Xn(aa[$r],br))return!0;return!1},Polygon:function(Qt,br){return ls(Qt.coordinates,br)},MultiPolygon:function(Qt,br){for(var aa=Qt.coordinates,$r=-1,ka=aa.length;++$r<ka;)if(ls(aa[$r],br))return!0;return!1},GeometryCollection:function(Qt,br){for(var aa=Qt.geometries,$r=-1,ka=aa.length;++$r<ka;)if(uo(aa[$r],br))return!0;return!1}};function uo(Qt,br){return Qt&&ss.hasOwnProperty(Qt.type)?ss[Qt.type](Qt,br):!1}function jn(Qt,br){return as(Qt,br)===0}function Xn(Qt,br){for(var aa,$r,ka,li=0,Ci=Qt.length;li<Ci;li++){if($r=as(Qt[li],br),$r===0||li>0&&(ka=as(Qt[li],Qt[li-1]),ka>0&&aa<=ka&&$r<=ka&&(aa+$r-ka)*(1-Math.pow((aa-$r)/ka,2))<o*ka))return!0;aa=$r}return!1}function ls(Qt,br){return!!Ur(Qt.map(Cs),Ks(br))}function Cs(Qt){return Qt=Qt.map(Ks),Qt.pop(),Qt}function Ks(Qt){return[Qt[0]*c,Qt[1]*c]}function Xo(Qt,br){return(Qt&&Ns.hasOwnProperty(Qt.type)?Ns[Qt.type]:uo)(Qt,br)}function Gi(Qt,br,aa){var $r=x.range(Qt,br-r,aa).concat(br);return function(ka){return $r.map(function(li){return[ka,li]})}}function Ln(Qt,br,aa){var $r=x.range(Qt,br-r,aa).concat(br);return function(ka){return $r.map(function(li){return[li,ka]})}}function Us(){var Qt,br,aa,$r,ka,li,Ci,Hi,Qi=10,dn=Qi,Pi=90,Di=360,Ni,mi,Mn,Qn,ao=2.5;function eo(){return{type:"MultiLineString",coordinates:fo()}}function fo(){return x.range(_($r/Pi)*Pi,aa,Pi).map(Mn).concat(x.range(_(Hi/Di)*Di,Ci,Di).map(Qn)).concat(x.range(_(br/Qi)*Qi,Qt,Qi).filter(function(An){return m(An%Pi)>r}).map(Ni)).concat(x.range(_(li/dn)*dn,ka,dn).filter(function(An){return m(An%Di)>r}).map(mi))}return eo.lines=function(){return fo().map(function(An){return{type:"LineString",coordinates:An}})},eo.outline=function(){return{type:"Polygon",coordinates:[Mn($r).concat(Qn(Ci).slice(1),Mn(aa).reverse().slice(1),Qn(Hi).reverse().slice(1))]}},eo.extent=function(An){return arguments.length?eo.extentMajor(An).extentMinor(An):eo.extentMinor()},eo.extentMajor=function(An){return arguments.length?($r=+An[0][0],aa=+An[1][0],Hi=+An[0][1],Ci=+An[1][1],$r>aa&&(An=$r,$r=aa,aa=An),Hi>Ci&&(An=Hi,Hi=Ci,Ci=An),eo.precision(ao)):[[$r,Hi],[aa,Ci]]},eo.extentMinor=function(An){return arguments.length?(br=+An[0][0],Qt=+An[1][0],li=+An[0][1],ka=+An[1][1],br>Qt&&(An=br,br=Qt,Qt=An),li>ka&&(An=li,li=ka,ka=An),eo.precision(ao)):[[br,li],[Qt,ka]]},eo.step=function(An){return arguments.length?eo.stepMajor(An).stepMinor(An):eo.stepMinor()},eo.stepMajor=function(An){return arguments.length?(Pi=+An[0],Di=+An[1],eo):[Pi,Di]},eo.stepMinor=function(An){return arguments.length?(Qi=+An[0],dn=+An[1],eo):[Qi,dn]},eo.precision=function(An){return arguments.length?(ao=+An,Ni=Gi(li,ka,90),mi=Ln(br,Qt,ao),Mn=Gi(Hi,Ci,90),Qn=Ln($r,aa,ao),eo):ao},eo.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function _s(){return Us()()}function Gn(Qt,br){var aa=Qt[0]*c,$r=Qt[1]*c,ka=br[0]*c,li=br[1]*c,Ci=l($r),Hi=g($r),Qi=l(li),dn=g(li),Pi=Ci*l(aa),Di=Ci*g(aa),Ni=Qi*l(ka),mi=Qi*g(ka),Mn=2*f(d(R(li-$r)+Ci*Qi*R(ka-aa))),Qn=g(Mn),ao=Mn?function(eo){var fo=g(eo*=Mn)/Qn,An=g(Mn-eo)/Qn,un=An*Pi+fo*Ni,yo=An*Di+fo*mi,Ko=An*Hi+fo*dn;return[T(yo,un)*h,T(Ko,d(un*un+yo*yo))*h]}:function(){return[aa*h,$r*h]};return ao.distance=Mn,ao}function zs(Qt){return Qt}var vs=S(),Ws=S(),il,xn,ko,bo,Is={point:L,lineStart:L,lineEnd:L,polygonStart:function(){Is.lineStart=pu,Is.lineEnd=vl},polygonEnd:function(){Is.lineStart=Is.lineEnd=Is.point=L,vs.add(m(Ws)),Ws.reset()},result:function(){var Qt=vs/2;return vs.reset(),Qt}};function pu(){Is.point=co}function co(Qt,br){Is.point=Vs,il=ko=Qt,xn=bo=br}function Vs(Qt,br){Ws.add(bo*Qt-ko*br),ko=Qt,bo=br}function vl(){Vs(il,xn)}var Ts=1/0,js=Ts,us=-Ts,As=us,Nl={point:su,lineStart:L,lineEnd:L,polygonStart:L,polygonEnd:L,result:function(){var Qt=[[Ts,js],[us,As]];return us=As=-(js=Ts=1/0),Qt}};function su(Qt,br){Qt<Ts&&(Ts=Qt),Qt>us&&(us=Qt),br<js&&(js=br),br>As&&(As=br)}var Tc=0,du=0,Sf=0,Uc=0,Fs=0,dc=0,Hc=0,lu=0,Pl=0,ic,Ou,nl,ml,xs={point:Xs,lineStart:nc,lineEnd:fl,polygonStart:function(){xs.lineStart=xh,xs.lineEnd=ns},polygonEnd:function(){xs.point=Xs,xs.lineStart=nc,xs.lineEnd=fl},result:function(){var Qt=Pl?[Hc/Pl,lu/Pl]:dc?[Uc/dc,Fs/dc]:Sf?[Tc/Sf,du/Sf]:[NaN,NaN];return Tc=du=Sf=Uc=Fs=dc=Hc=lu=Pl=0,Qt}};function Xs(Qt,br){Tc+=Qt,du+=br,++Sf}function nc(){xs.point=Ul}function Ul(Qt,br){xs.point=qu,Xs(nl=Qt,ml=br)}function qu(Qt,br){var aa=Qt-nl,$r=br-ml,ka=d(aa*aa+$r*$r);Uc+=ka*(nl+Qt)/2,Fs+=ka*(ml+br)/2,dc+=ka,Xs(nl=Qt,ml=br)}function fl(){xs.point=Xs}function xh(){xs.point=bh}function ns(){Es(ic,Ou)}function bh(Qt,br){xs.point=Es,Xs(ic=nl=Qt,Ou=ml=br)}function Es(Qt,br){var aa=Qt-nl,$r=br-ml,ka=d(aa*aa+$r*$r);Uc+=ka*(nl+Qt)/2,Fs+=ka*(ml+br)/2,dc+=ka,ka=ml*Qt-nl*br,Hc+=ka*(nl+Qt),lu+=ka*(ml+br),Pl+=ka*3,Xs(nl=Qt,ml=br)}function to(Qt){this._context=Qt}to.prototype={_radius:4.5,pointRadius:function(Qt){return this._radius=Qt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Qt,br){switch(this._point){case 0:{this._context.moveTo(Qt,br),this._point=1;break}case 1:{this._context.lineTo(Qt,br);break}default:{this._context.moveTo(Qt+this._radius,br),this._context.arc(Qt,br,this._radius,0,s);break}}},result:L};var Wc=S(),Vu,jl,Mf,Ac,nf,$l={point:L,lineStart:function(){$l.point=Jf},lineEnd:function(){Vu&&Of(jl,Mf),$l.point=L},polygonStart:function(){Vu=!0},polygonEnd:function(){Vu=null},result:function(){var Qt=+Wc;return Wc.reset(),Qt}};function Jf(Qt,br){$l.point=Of,jl=Ac=Qt,Mf=nf=br}function Of(Qt,br){Ac-=Qt,nf-=br,Wc.add(d(Ac*Ac+nf*nf)),Ac=Qt,nf=br}function of(){this._string=[]}of.prototype={_radius:4.5,_circle:jc(4.5),pointRadius:function(Qt){return(Qt=+Qt)!==this._radius&&(this._radius=Qt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Qt,br){switch(this._point){case 0:{this._string.push("M",Qt,",",br),this._point=1;break}case 1:{this._string.push("L",Qt,",",br);break}default:{this._circle==null&&(this._circle=jc(this._radius)),this._string.push("M",Qt,",",br,this._circle);break}}},result:function(){if(this._string.length){var Qt=this._string.join("");return this._string=[],Qt}else return null}};function jc(Qt){return"m0,"+Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+-2*Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+2*Qt+"z"}function Bf(Qt,br){var aa=4.5,$r,ka;function li(Ci){return Ci&&(typeof aa=="function"&&ka.pointRadius(+aa.apply(this,arguments)),U(Ci,$r(ka))),ka.result()}return li.area=function(Ci){return U(Ci,$r(Is)),Is.result()},li.measure=function(Ci){return U(Ci,$r($l)),$l.result()},li.bounds=function(Ci){return U(Ci,$r(Nl)),Nl.result()},li.centroid=function(Ci){return U(Ci,$r(xs)),xs.result()},li.projection=function(Ci){return arguments.length?($r=Ci==null?(Qt=null,zs):(Qt=Ci).stream,li):Qt},li.context=function(Ci){return arguments.length?(ka=Ci==null?(br=null,new of):new to(br=Ci),typeof aa!="function"&&ka.pointRadius(aa),li):br},li.pointRadius=function(Ci){return arguments.length?(aa=typeof Ci=="function"?Ci:(ka.pointRadius(+Ci),+Ci),li):aa},li.projection(Qt).context(br)}function Nf(Qt){return{stream:Gu(Qt)}}function Gu(Qt){return function(br){var aa=new Ef;for(var $r in Qt)aa[$r]=Qt[$r];return aa.stream=br,aa}}function Ef(){}Ef.prototype={constructor:Ef,point:function(Qt,br){this.stream.point(Qt,br)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function oc(Qt,br,aa){var $r=Qt.clipExtent&&Qt.clipExtent();return Qt.scale(150).translate([0,0]),$r!=null&&Qt.clipExtent(null),U(aa,Qt.stream(Nl)),br(Nl.result()),$r!=null&&Qt.clipExtent($r),Qt}function Xc(Qt,br,aa){return oc(Qt,function($r){var ka=br[1][0]-br[0][0],li=br[1][1]-br[0][1],Ci=Math.min(ka/($r[1][0]-$r[0][0]),li/($r[1][1]-$r[0][1])),Hi=+br[0][0]+(ka-Ci*($r[1][0]+$r[0][0]))/2,Qi=+br[0][1]+(li-Ci*($r[1][1]+$r[0][1]))/2;Qt.scale(150*Ci).translate([Hi,Qi])},aa)}function Ql(Qt,br,aa){return Xc(Qt,[[0,0],br],aa)}function qc(Qt,br,aa){return oc(Qt,function($r){var ka=+br,li=ka/($r[1][0]-$r[0][0]),Ci=(ka-li*($r[1][0]+$r[0][0]))/2,Hi=-li*$r[0][1];Qt.scale(150*li).translate([Ci,Hi])},aa)}function Sc(Qt,br,aa){return oc(Qt,function($r){var ka=+br,li=ka/($r[1][1]-$r[0][1]),Ci=-li*$r[0][0],Hi=(ka-li*($r[1][1]+$r[0][1]))/2;Qt.scale(150*li).translate([Ci,Hi])},aa)}var Zs=16,kf=l(30*c);function fh(Qt,br){return+br?Zc(Qt,br):Uf(Qt)}function Uf(Qt){return Gu({point:function(br,aa){br=Qt(br,aa),this.stream.point(br[0],br[1])}})}function Zc(Qt,br){function aa($r,ka,li,Ci,Hi,Qi,dn,Pi,Di,Ni,mi,Mn,Qn,ao){var eo=dn-$r,fo=Pi-ka,An=eo*eo+fo*fo;if(An>4*br&&Qn--){var un=Ci+Ni,yo=Hi+mi,Ko=Qi+Mn,Ss=d(un*un+yo*yo+Ko*Ko),rl=f(Ko/=Ss),Os=m(m(Ko)-1)<r||m(li-Di)<r?(li+Di)/2:T(yo,un),el=Qt(Os,rl),bs=el[0],Fl=el[1],_l=bs-$r,ll=Fl-ka,Un=fo*_l-eo*ll;(Un*Un/An>br||m((eo*_l+fo*ll)/An-.5)>.3||Ci*Ni+Hi*mi+Qi*Mn<kf)&&(aa($r,ka,li,Ci,Hi,Qi,bs,Fl,Os,un/=Ss,yo/=Ss,Ko,Qn,ao),ao.point(bs,Fl),aa(bs,Fl,Os,un,yo,Ko,dn,Pi,Di,Ni,mi,Mn,Qn,ao))}}return function($r){var ka,li,Ci,Hi,Qi,dn,Pi,Di,Ni,mi,Mn,Qn,ao={point:eo,lineStart:fo,lineEnd:un,polygonStart:function(){$r.polygonStart(),ao.lineStart=yo},polygonEnd:function(){$r.polygonEnd(),ao.lineStart=fo}};function eo(rl,Os){rl=Qt(rl,Os),$r.point(rl[0],rl[1])}function fo(){Di=NaN,ao.point=An,$r.lineStart()}function An(rl,Os){var el=re([rl,Os]),bs=Qt(rl,Os);aa(Di,Ni,Pi,mi,Mn,Qn,Di=bs[0],Ni=bs[1],Pi=rl,mi=el[0],Mn=el[1],Qn=el[2],Zs,$r),$r.point(Di,Ni)}function un(){ao.point=eo,$r.lineEnd()}function yo(){fo(),ao.point=Ko,ao.lineEnd=Ss}function Ko(rl,Os){An(ka=rl,Os),li=Di,Ci=Ni,Hi=mi,Qi=Mn,dn=Qn,ao.point=An}function Ss(){aa(Di,Ni,Pi,mi,Mn,Qn,li,Ci,ka,Hi,Qi,dn,Zs,$r),ao.lineEnd=un,un()}return ao}}var $f=Gu({point:function(Qt,br){this.stream.point(Qt*c,br*c)}});function Cu(Qt){return Gu({point:function(br,aa){var $r=Qt(br,aa);return this.stream.point($r[0],$r[1])}})}function jf(Qt,br,aa,$r,ka){function li(Ci,Hi){return Ci*=$r,Hi*=ka,[br+Qt*Ci,aa-Qt*Hi]}return li.invert=function(Ci,Hi){return[(Ci-br)/Qt*$r,(aa-Hi)/Qt*ka]},li}function yl(Qt,br,aa,$r,ka,li){var Ci=l(li),Hi=g(li),Qi=Ci*Qt,dn=Hi*Qt,Pi=Ci/Qt,Di=Hi/Qt,Ni=(Hi*aa-Ci*br)/Qt,mi=(Hi*br+Ci*aa)/Qt;function Mn(Qn,ao){return Qn*=$r,ao*=ka,[Qi*Qn-dn*ao+br,aa-dn*Qn-Qi*ao]}return Mn.invert=function(Qn,ao){return[$r*(Pi*Qn-Di*ao+Ni),ka*(mi-Di*Qn-Pi*ao)]},Mn}function Lu(Qt){return Mc(function(){return Qt})()}function Mc(Qt){var br,aa=150,$r=480,ka=250,li=0,Ci=0,Hi=0,Qi=0,dn=0,Pi,Di=0,Ni=1,mi=1,Mn=null,Qn=vr,ao=null,eo,fo,An,un=zs,yo=.5,Ko,Ss,rl,Os,el;function bs(Un){return rl(Un[0]*c,Un[1]*c)}function Fl(Un){return Un=rl.invert(Un[0],Un[1]),Un&&[Un[0]*h,Un[1]*h]}bs.stream=function(Un){return Os&&el===Un?Os:Os=$f(Cu(Pi)(Qn(Ko(un(el=Un)))))},bs.preclip=function(Un){return arguments.length?(Qn=Un,Mn=void 0,ll()):Qn},bs.postclip=function(Un){return arguments.length?(un=Un,ao=eo=fo=An=null,ll()):un},bs.clipAngle=function(Un){return arguments.length?(Qn=+Un?ya(Mn=Un*c):(Mn=null,vr),ll()):Mn*h},bs.clipExtent=function(Un){return arguments.length?(un=Un==null?(ao=eo=fo=An=null,zs):ki(ao=+Un[0][0],eo=+Un[0][1],fo=+Un[1][0],An=+Un[1][1]),ll()):ao==null?null:[[ao,eo],[fo,An]]},bs.scale=function(Un){return arguments.length?(aa=+Un,_l()):aa},bs.translate=function(Un){return arguments.length?($r=+Un[0],ka=+Un[1],_l()):[$r,ka]},bs.center=function(Un){return arguments.length?(li=Un[0]%360*c,Ci=Un[1]%360*c,_l()):[li*h,Ci*h]},bs.rotate=function(Un){return arguments.length?(Hi=Un[0]%360*c,Qi=Un[1]%360*c,dn=Un.length>2?Un[2]%360*c:0,_l()):[Hi*h,Qi*h,dn*h]},bs.angle=function(Un){return arguments.length?(Di=Un%360*c,_l()):Di*h},bs.reflectX=function(Un){return arguments.length?(Ni=Un?-1:1,_l()):Ni<0},bs.reflectY=function(Un){return arguments.length?(mi=Un?-1:1,_l()):mi<0},bs.precision=function(Un){return arguments.length?(Ko=fh(Ss,yo=Un*Un),ll()):d(yo)},bs.fitExtent=function(Un,Lo){return Xc(bs,Un,Lo)},bs.fitSize=function(Un,Lo){return Ql(bs,Un,Lo)},bs.fitWidth=function(Un,Lo){return qc(bs,Un,Lo)},bs.fitHeight=function(Un,Lo){return Sc(bs,Un,Lo)};function _l(){var Un=yl(aa,0,0,Ni,mi,Di).apply(null,br(li,Ci)),Lo=(Di?yl:jf)(aa,$r-Un[0],ka-Un[1],Ni,mi,Di);return Pi=Ba(Hi,Qi,dn),Ss=ra(br,Lo),rl=ra(Pi,Ss),Ko=fh(Ss,yo),ll()}function ll(){return Os=el=null,bs}return function(){return br=Qt.apply(this,arguments),bs.invert=br.invert&&Fl,_l()}}function ol(Qt){var br=0,aa=a/3,$r=Mc(Qt),ka=$r(br,aa);return ka.parallels=function(li){return arguments.length?$r(br=li[0]*c,aa=li[1]*c):[br*h,aa*h]},ka}function vc(Qt){var br=l(Qt);function aa($r,ka){return[$r*br,g(ka)/br]}return aa.invert=function($r,ka){return[$r/br,f(ka*br)]},aa}function yu(Qt,br){var aa=g(Qt),$r=(aa+g(br))/2;if(m($r)<r)return vc(Qt);var ka=1+aa*(2*$r-aa),li=d(ka)/$r;function Ci(Hi,Qi){var dn=d(ka-2*$r*g(Qi))/$r;return[dn*g(Hi*=$r),li-dn*l(Hi)]}return Ci.invert=function(Hi,Qi){var dn=li-Qi,Pi=T(Hi,m(dn))*b(dn);return dn*$r<0&&(Pi-=a*b(Hi)*b(dn)),[Pi/$r,f((ka-(Hi*Hi+dn*dn)*$r*$r)/(2*$r))]},Ci}function Tu(){return ol(yu).scale(155.424).center([0,33.6442])}function El(){return Tu().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function qf(Qt){var br=Qt.length;return{point:function(aa,$r){for(var ka=-1;++ka<br;)Qt[ka].point(aa,$r)},sphere:function(){for(var aa=-1;++aa<br;)Qt[aa].sphere()},lineStart:function(){for(var aa=-1;++aa<br;)Qt[aa].lineStart()},lineEnd:function(){for(var aa=-1;++aa<br;)Qt[aa].lineEnd()},polygonStart:function(){for(var aa=-1;++aa<br;)Qt[aa].polygonStart()},polygonEnd:function(){for(var aa=-1;++aa<br;)Qt[aa].polygonEnd()}}}function Qf(){var Qt,br,aa=El(),$r,ka=Tu().rotate([154,0]).center([-2,58.5]).parallels([55,65]),li,Ci=Tu().rotate([157,0]).center([-3,19.9]).parallels([8,18]),Hi,Qi,dn={point:function(Ni,mi){Qi=[Ni,mi]}};function Pi(Ni){var mi=Ni[0],Mn=Ni[1];return Qi=null,$r.point(mi,Mn),Qi||(li.point(mi,Mn),Qi)||(Hi.point(mi,Mn),Qi)}Pi.invert=function(Ni){var mi=aa.scale(),Mn=aa.translate(),Qn=(Ni[0]-Mn[0])/mi,ao=(Ni[1]-Mn[1])/mi;return(ao>=.12&&ao<.234&&Qn>=-.425&&Qn<-.214?ka:ao>=.166&&ao<.234&&Qn>=-.214&&Qn<-.115?Ci:aa).invert(Ni)},Pi.stream=function(Ni){return Qt&&br===Ni?Qt:Qt=qf([aa.stream(br=Ni),ka.stream(Ni),Ci.stream(Ni)])},Pi.precision=function(Ni){return arguments.length?(aa.precision(Ni),ka.precision(Ni),Ci.precision(Ni),Di()):aa.precision()},Pi.scale=function(Ni){return arguments.length?(aa.scale(Ni),ka.scale(Ni*.35),Ci.scale(Ni),Pi.translate(aa.translate())):aa.scale()},Pi.translate=function(Ni){if(!arguments.length)return aa.translate();var mi=aa.scale(),Mn=+Ni[0],Qn=+Ni[1];return $r=aa.translate(Ni).clipExtent([[Mn-.455*mi,Qn-.238*mi],[Mn+.455*mi,Qn+.238*mi]]).stream(dn),li=ka.translate([Mn-.307*mi,Qn+.201*mi]).clipExtent([[Mn-.425*mi+r,Qn+.12*mi+r],[Mn-.214*mi-r,Qn+.234*mi-r]]).stream(dn),Hi=Ci.translate([Mn-.205*mi,Qn+.212*mi]).clipExtent([[Mn-.214*mi+r,Qn+.166*mi+r],[Mn-.115*mi-r,Qn+.234*mi-r]]).stream(dn),Di()},Pi.fitExtent=function(Ni,mi){return Xc(Pi,Ni,mi)},Pi.fitSize=function(Ni,mi){return Ql(Pi,Ni,mi)},Pi.fitWidth=function(Ni,mi){return qc(Pi,Ni,mi)},Pi.fitHeight=function(Ni,mi){return Sc(Pi,Ni,mi)};function Di(){return Qt=br=null,Pi}return Pi.scale(1070)}function Bu(Qt){return function(br,aa){var $r=l(br),ka=l(aa),li=Qt($r*ka);return[li*ka*g(br),li*g(aa)]}}function Ec(Qt){return function(br,aa){var $r=d(br*br+aa*aa),ka=Qt($r),li=g(ka),Ci=l(ka);return[T(br*li,$r*Ci),f($r&&aa*li/$r)]}}var mc=Bu(function(Qt){return d(2/(1+Qt))});mc.invert=Ec(function(Qt){return 2*f(Qt/2)});function Lh(){return Lu(mc).scale(124.75).clipAngle(180-.001)}var sf=Bu(function(Qt){return(Qt=y(Qt))&&Qt/g(Qt)});sf.invert=Ec(function(Qt){return Qt});function vf(){return Lu(sf).scale(79.4188).clipAngle(180-.001)}function Nu(Qt,br){return[Qt,A(u((n+br)/2))]}Nu.invert=function(Qt,br){return[Qt,2*p(w(br))-n]};function lf(){return au(Nu).scale(961/s)}function au(Qt){var br=Lu(Qt),aa=br.center,$r=br.scale,ka=br.translate,li=br.clipExtent,Ci=null,Hi,Qi,dn;br.scale=function(Di){return arguments.length?($r(Di),Pi()):$r()},br.translate=function(Di){return arguments.length?(ka(Di),Pi()):ka()},br.center=function(Di){return arguments.length?(aa(Di),Pi()):aa()},br.clipExtent=function(Di){return arguments.length?(Di==null?Ci=Hi=Qi=dn=null:(Ci=+Di[0][0],Hi=+Di[0][1],Qi=+Di[1][0],dn=+Di[1][1]),Pi()):Ci==null?null:[[Ci,Hi],[Qi,dn]]};function Pi(){var Di=a*$r(),Ni=br(pi(br.rotate()).invert([0,0]));return li(Ci==null?[[Ni[0]-Di,Ni[1]-Di],[Ni[0]+Di,Ni[1]+Di]]:Qt===Nu?[[Math.max(Ni[0]-Di,Ci),Hi],[Math.min(Ni[0]+Di,Qi),dn]]:[[Ci,Math.max(Ni[1]-Di,Hi)],[Qi,Math.min(Ni[1]+Di,dn)]])}return Pi()}function Yc(Qt){return u((n+Qt)/2)}function hh(Qt,br){var aa=l(Qt),$r=Qt===br?g(Qt):A(aa/l(br))/A(Yc(br)/Yc(Qt)),ka=aa*M(Yc(Qt),$r)/$r;if(!$r)return Nu;function li(Ci,Hi){ka>0?Hi<-n+r&&(Hi=-n+r):Hi>n-r&&(Hi=n-r);var Qi=ka/M(Yc(Hi),$r);return[Qi*g($r*Ci),ka-Qi*l($r*Ci)]}return li.invert=function(Ci,Hi){var Qi=ka-Hi,dn=b($r)*d(Ci*Ci+Qi*Qi),Pi=T(Ci,m(Qi))*b(Qi);return Qi*$r<0&&(Pi-=a*b(Ci)*b(Qi)),[Pi/$r,2*p(M(ka/dn,1/$r))-n]},li}function mf(){return ol(hh).scale(109.5).parallels([30,30])}function sl(Qt,br){return[Qt,br]}sl.invert=sl;function _u(){return Lu(sl).scale(152.63)}function Pu(Qt,br){var aa=l(Qt),$r=Qt===br?g(Qt):(aa-l(br))/(br-Qt),ka=aa/$r+Qt;if(m($r)<r)return sl;function li(Ci,Hi){var Qi=ka-Hi,dn=$r*Ci;return[Qi*g(dn),ka-Qi*l(dn)]}return li.invert=function(Ci,Hi){var Qi=ka-Hi,dn=T(Ci,m(Qi))*b(Qi);return Qi*$r<0&&(dn-=a*b(Ci)*b(Qi)),[dn/$r,ka-b($r)*d(Ci*Ci+Qi*Qi)]},li}function Cf(){return ol(Pu).scale(131.154).center([0,13.9389])}var hl=1.340264,uf=-.081106,kc=893e-6,Hu=.003796,gf=d(3)/2,Wu=12;function Kc(Qt,br){var aa=f(gf*g(br)),$r=aa*aa,ka=$r*$r*$r;return[Qt*l(aa)/(gf*(hl+3*uf*$r+ka*(7*kc+9*Hu*$r))),aa*(hl+uf*$r+ka*(kc+Hu*$r))]}Kc.invert=function(Qt,br){for(var aa=br,$r=aa*aa,ka=$r*$r*$r,li=0,Ci,Hi,Qi;li<Wu&&(Hi=aa*(hl+uf*$r+ka*(kc+Hu*$r))-br,Qi=hl+3*uf*$r+ka*(7*kc+9*Hu*$r),aa-=Ci=Hi/Qi,$r=aa*aa,ka=$r*$r*$r,!(m(Ci)<o));++li);return[gf*Qt*(hl+3*uf*$r+ka*(7*kc+9*Hu*$r))/l(aa),f(g(aa)/gf)]};function Lf(){return Lu(Kc).scale(177.158)}function iu(Qt,br){var aa=l(br),$r=l(Qt)*aa;return[aa*g(Qt)/$r,g(br)/$r]}iu.invert=Ec(p);function Vf(){return Lu(iu).scale(144.049).clipAngle(60)}function Xu(){var Qt=1,br=0,aa=0,$r=1,ka=1,li=0,Ci,Hi,Qi=null,dn,Pi,Di,Ni=1,mi=1,Mn=Gu({point:function(un,yo){var Ko=An([un,yo]);this.stream.point(Ko[0],Ko[1])}}),Qn=zs,ao,eo;function fo(){return Ni=Qt*$r,mi=Qt*ka,ao=eo=null,An}function An(un){var yo=un[0]*Ni,Ko=un[1]*mi;if(li){var Ss=Ko*Ci-yo*Hi;yo=yo*Ci+Ko*Hi,Ko=Ss}return[yo+br,Ko+aa]}return An.invert=function(un){var yo=un[0]-br,Ko=un[1]-aa;if(li){var Ss=Ko*Ci+yo*Hi;yo=yo*Ci-Ko*Hi,Ko=Ss}return[yo/Ni,Ko/mi]},An.stream=function(un){return ao&&eo===un?ao:ao=Mn(Qn(eo=un))},An.postclip=function(un){return arguments.length?(Qn=un,Qi=dn=Pi=Di=null,fo()):Qn},An.clipExtent=function(un){return arguments.length?(Qn=un==null?(Qi=dn=Pi=Di=null,zs):ki(Qi=+un[0][0],dn=+un[0][1],Pi=+un[1][0],Di=+un[1][1]),fo()):Qi==null?null:[[Qi,dn],[Pi,Di]]},An.scale=function(un){return arguments.length?(Qt=+un,fo()):Qt},An.translate=function(un){return arguments.length?(br=+un[0],aa=+un[1],fo()):[br,aa]},An.angle=function(un){return arguments.length?(li=un%360*c,Hi=g(li),Ci=l(li),fo()):li*h},An.reflectX=function(un){return arguments.length?($r=un?-1:1,fo()):$r<0},An.reflectY=function(un){return arguments.length?(ka=un?-1:1,fo()):ka<0},An.fitExtent=function(un,yo){return Xc(An,un,yo)},An.fitSize=function(un,yo){return Ql(An,un,yo)},An.fitWidth=function(un,yo){return qc(An,un,yo)},An.fitHeight=function(un,yo){return Sc(An,un,yo)},An}function Cc(Qt,br){var aa=br*br,$r=aa*aa;return[Qt*(.8707-.131979*aa+$r*(-.013791+$r*(.003971*aa-.001529*$r))),br*(1.007226+aa*(.015085+$r*(-.044475+.028874*aa-.005916*$r)))]}Cc.invert=function(Qt,br){var aa=br,$r=25,ka;do{var li=aa*aa,Ci=li*li;aa-=ka=(aa*(1.007226+li*(.015085+Ci*(-.044475+.028874*li-.005916*Ci)))-br)/(1.007226+li*(.015085*3+Ci*(-.044475*7+.028874*9*li-.005916*11*Ci)))}while(m(ka)>r&&--$r>0);return[Qt/(.8707+(li=aa*aa)*(-.131979+li*(-.013791+li*li*li*(.003971-.001529*li)))),aa]};function gc(){return Lu(Cc).scale(175.295)}function ql(Qt,br){return[l(br)*g(Qt),g(br)]}ql.invert=Ec(f);function xu(){return Lu(ql).scale(249.5).clipAngle(90+r)}function Lc(Qt,br){var aa=l(br),$r=1+l(Qt)*aa;return[aa*g(Qt)/$r,g(br)/$r]}Lc.invert=Ec(function(Qt){return 2*p(Qt)});function Jc(){return Lu(Lc).scale(250).clipAngle(142)}function sc(Qt,br){return[A(u((n+br)/2)),-Qt]}sc.invert=function(Qt,br){return[-br,2*p(w(Qt))-n]};function Pc(){var Qt=au(sc),br=Qt.center,aa=Qt.rotate;return Qt.center=function($r){return arguments.length?br([-$r[1],$r[0]]):($r=br(),[$r[1],-$r[0]])},Qt.rotate=function($r){return arguments.length?aa([$r[0],$r[1],$r.length>2?$r[2]+90:90]):($r=aa(),[$r[0],$r[1],$r[2]-90])},aa([0,0,90]).scale(159.155)}v.geoAlbers=El,v.geoAlbersUsa=Qf,v.geoArea=j,v.geoAzimuthalEqualArea=Lh,v.geoAzimuthalEqualAreaRaw=mc,v.geoAzimuthalEquidistant=vf,v.geoAzimuthalEquidistantRaw=sf,v.geoBounds=Ne,v.geoCentroid=Fr,v.geoCircle=on,v.geoClipAntimeridian=vr,v.geoClipCircle=ya,v.geoClipExtent=Ki,v.geoClipRectangle=ki,v.geoConicConformal=mf,v.geoConicConformalRaw=hh,v.geoConicEqualArea=Tu,v.geoConicEqualAreaRaw=yu,v.geoConicEquidistant=Cf,v.geoConicEquidistantRaw=Pu,v.geoContains=Xo,v.geoDistance=as,v.geoEqualEarth=Lf,v.geoEqualEarthRaw=Kc,v.geoEquirectangular=_u,v.geoEquirectangularRaw=sl,v.geoGnomonic=Vf,v.geoGnomonicRaw=iu,v.geoGraticule=Us,v.geoGraticule10=_s,v.geoIdentity=Xu,v.geoInterpolate=Gn,v.geoLength=Oo,v.geoMercator=lf,v.geoMercatorRaw=Nu,v.geoNaturalEarth1=gc,v.geoNaturalEarth1Raw=Cc,v.geoOrthographic=xu,v.geoOrthographicRaw=ql,v.geoPath=Bf,v.geoProjection=Lu,v.geoProjectionMutator=Mc,v.geoRotation=pi,v.geoStereographic=Jc,v.geoStereographicRaw=Lc,v.geoStream=U,v.geoTransform=Nf,v.geoTransverseMercator=Pc,v.geoTransverseMercatorRaw=sc,Object.defineProperty(v,"__esModule",{value:!0})})}}),UU=Xe({"node_modules/d3-geo-projection/dist/d3-geo-projection.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z,zE(),_x()):x(v.d3=v.d3||{},v.d3,v.d3)})(Z,function(v,x,S){"use strict";var E=Math.abs,e=Math.atan,t=Math.atan2,r=Math.cos,o=Math.exp,a=Math.floor,n=Math.log,i=Math.max,s=Math.min,h=Math.pow,c=Math.round,m=Math.sign||function(He){return He>0?1:He<0?-1:0},p=Math.sin,T=Math.tan,l=1e-6,_=1e-12,w=Math.PI,A=w/2,M=w/4,g=Math.SQRT1_2,b=F(2),d=F(w),u=w*2,y=180/w,f=w/180;function R(He){return He?He/Math.sin(He):1}function L(He){return He>1?A:He<-1?-A:Math.asin(He)}function z(He){return He>1?0:He<-1?w:Math.acos(He)}function F(He){return He>0?Math.sqrt(He):0}function N(He){return He=o(2*He),(He-1)/(He+1)}function O(He){return(o(He)-o(-He))/2}function P(He){return(o(He)+o(-He))/2}function U(He){return n(He+F(He*He+1))}function B(He){return n(He+F(He*He-1))}function X(He){var Je=T(He/2),lt=2*n(r(He/2))/(Je*Je);function vt(Lt,At){var zt=r(Lt),cr=r(At),yr=p(At),Er=cr*zt,jr=-((1-Er?n((1+Er)/2)/(1-Er):-.5)+lt/(1+Er));return[jr*cr*p(Lt),jr*yr]}return vt.invert=function(Lt,At){var zt=F(Lt*Lt+At*At),cr=-He/2,yr=50,Er;if(!zt)return[0,0];do{var jr=cr/2,Qr=r(jr),pa=p(jr),Aa=pa/Qr,za=-n(E(Qr));cr-=Er=(2/Aa*za-lt*Aa-zt)/(-za/(pa*pa)+1-lt/(2*Qr*Qr))*(Qr<0?.7:1)}while(E(Er)>l&&--yr>0);var ci=p(cr);return[t(Lt*ci,zt*r(cr)),L(At*ci/zt)]},vt}function $(){var He=A,Je=x.geoProjectionMutator(X),lt=Je(He);return lt.radius=function(vt){return arguments.length?Je(He=vt*f):He*y},lt.scale(179.976).clipAngle(147)}function se(He,Je){var lt=r(Je),vt=R(z(lt*r(He/=2)));return[2*lt*p(He)*vt,p(Je)*vt]}se.invert=function(He,Je){if(!(He*He+4*Je*Je>w*w+l)){var lt=He,vt=Je,Lt=25;do{var At=p(lt),zt=p(lt/2),cr=r(lt/2),yr=p(vt),Er=r(vt),jr=p(2*vt),Qr=yr*yr,pa=Er*Er,Aa=zt*zt,za=1-pa*cr*cr,ci=za?z(Er*cr)*F(Vi=1/za):Vi=0,Vi,ji=2*ci*Er*zt-He,nn=ci*yr-Je,Sn=Vi*(pa*Aa+ci*Er*cr*Qr),Kn=Vi*(.5*At*jr-ci*2*yr*zt),Bn=Vi*.25*(jr*zt-ci*yr*pa*At),wo=Vi*(Qr*cr+ci*Aa*Er),is=Kn*Bn-wo*Sn;if(!is)break;var Ao=(nn*Kn-ji*wo)/is,Zo=(ji*Bn-nn*Sn)/is;lt-=Ao,vt-=Zo}while((E(Ao)>l||E(Zo)>l)&&--Lt>0);return[lt,vt]}};function le(){return x.geoProjection(se).scale(152.63)}function fe(He){var Je=p(He),lt=r(He),vt=He>=0?1:-1,Lt=T(vt*He),At=(1+Je-lt)/2;function zt(cr,yr){var Er=r(yr),jr=r(cr/=2);return[(1+Er)*p(cr),(vt*yr>-t(jr,Lt)-.001?0:-vt*10)+At+p(yr)*lt-(1+Er)*Je*jr]}return zt.invert=function(cr,yr){var Er=0,jr=0,Qr=50;do{var pa=r(Er),Aa=p(Er),za=r(jr),ci=p(jr),Vi=1+za,ji=Vi*Aa-cr,nn=At+ci*lt-Vi*Je*pa-yr,Sn=Vi*pa/2,Kn=-Aa*ci,Bn=Je*Vi*Aa/2,wo=lt*za+Je*pa*ci,is=Kn*Bn-wo*Sn,Ao=(nn*Kn-ji*wo)/is/2,Zo=(ji*Bn-nn*Sn)/is;E(Zo)>2&&(Zo/=2),Er-=Ao,jr-=Zo}while((E(Ao)>l||E(Zo)>l)&&--Qr>0);return vt*jr>-t(r(Er),Lt)-.001?[Er*2,jr]:null},zt}function V(){var He=20*f,Je=He>=0?1:-1,lt=T(Je*He),vt=x.geoProjectionMutator(fe),Lt=vt(He),At=Lt.stream;return Lt.parallel=function(zt){return arguments.length?(lt=T((Je=(He=zt*f)>=0?1:-1)*He),vt(He)):He*y},Lt.stream=function(zt){var cr=Lt.rotate(),yr=At(zt),Er=(Lt.rotate([0,0]),At(zt)),jr=Lt.precision();return Lt.rotate(cr),yr.sphere=function(){Er.polygonStart(),Er.lineStart();for(var Qr=Je*-180;Je*Qr<180;Qr+=Je*90)Er.point(Qr,Je*90);if(He)for(;Je*(Qr-=3*Je*jr)>=-180;)Er.point(Qr,Je*-t(r(Qr*f/2),lt)*y);Er.lineEnd(),Er.polygonEnd()},yr},Lt.scale(218.695).center([0,28.0974])}function Y(He,Je){var lt=T(Je/2),vt=F(1-lt*lt),Lt=1+vt*r(He/=2),At=p(He)*vt/Lt,zt=lt/Lt,cr=At*At,yr=zt*zt;return[4/3*At*(3+cr-3*yr),4/3*zt*(3+3*cr-yr)]}Y.invert=function(He,Je){if(He*=3/8,Je*=3/8,!He&&E(Je)>1)return null;var lt=He*He,vt=Je*Je,Lt=1+lt+vt,At=F((Lt-F(Lt*Lt-4*Je*Je))/2),zt=L(At)/3,cr=At?B(E(Je/At))/3:U(E(He))/3,yr=r(zt),Er=P(cr),jr=Er*Er-yr*yr;return[m(He)*2*t(O(cr)*yr,.25-jr),m(Je)*2*t(Er*p(zt),.25+jr)]};function ee(){return x.geoProjection(Y).scale(66.1603)}var q=F(8),oe=n(1+b);function ae(He,Je){var lt=E(Je);return lt<M?[He,n(T(M+Je/2))]:[He*r(lt)*(2*b-1/p(lt)),m(Je)*(2*b*(lt-M)-n(T(lt/2)))]}ae.invert=function(He,Je){if((At=E(Je))<oe)return[He,2*e(o(Je))-A];var lt=M,vt=25,Lt,At;do{var zt=r(lt/2),cr=T(lt/2);lt-=Lt=(q*(lt-M)-n(cr)-At)/(q-zt*zt/(2*cr))}while(E(Lt)>_&&--vt>0);return[He/(r(lt)*(q-1/p(lt))),m(Je)*lt]};function j(){return x.geoProjection(ae).scale(112.314)}function Q(He){var Je=2*w/He;function lt(vt,Lt){var At=x.geoAzimuthalEquidistantRaw(vt,Lt);if(E(vt)>A){var zt=t(At[1],At[0]),cr=F(At[0]*At[0]+At[1]*At[1]),yr=Je*c((zt-A)/Je)+A,Er=t(p(zt-=yr),2-r(zt));zt=yr+L(w/cr*p(Er))-Er,At[0]=cr*r(zt),At[1]=cr*p(zt)}return At}return lt.invert=function(vt,Lt){var At=F(vt*vt+Lt*Lt);if(At>A){var zt=t(Lt,vt),cr=Je*c((zt-A)/Je)+A,yr=zt>cr?-1:1,Er=At*r(cr-zt),jr=1/T(yr*z((Er-w)/F(w*(w-2*Er)+At*At)));zt=cr+2*e((jr+yr*F(jr*jr-3))/3),vt=At*r(zt),Lt=At*p(zt)}return x.geoAzimuthalEquidistantRaw.invert(vt,Lt)},lt}function re(){var He=5,Je=x.geoProjectionMutator(Q),lt=Je(He),vt=lt.stream,Lt=.01,At=-r(Lt*f),zt=p(Lt*f);return lt.lobes=function(cr){return arguments.length?Je(He=+cr):He},lt.stream=function(cr){var yr=lt.rotate(),Er=vt(cr),jr=(lt.rotate([0,0]),vt(cr));return lt.rotate(yr),Er.sphere=function(){jr.polygonStart(),jr.lineStart();for(var Qr=0,pa=360/He,Aa=2*w/He,za=90-180/He,ci=A;Qr<He;++Qr,za-=pa,ci-=Aa)jr.point(t(zt*r(ci),At)*y,L(zt*p(ci))*y),za<-90?(jr.point(-90,-180-za-Lt),jr.point(-90,-180-za+Lt)):(jr.point(90,za+Lt),jr.point(90,za-Lt));jr.lineEnd(),jr.polygonEnd()},Er},lt.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function ce(He,Je){if(arguments.length<2&&(Je=He),Je===1)return x.geoAzimuthalEqualAreaRaw;if(Je===1/0)return be;function lt(vt,Lt){var At=x.geoAzimuthalEqualAreaRaw(vt/Je,Lt);return At[0]*=He,At}return lt.invert=function(vt,Lt){var At=x.geoAzimuthalEqualAreaRaw.invert(vt/He,Lt);return At[0]*=Je,At},lt}function be(He,Je){return[He*r(Je)/r(Je/=2),2*p(Je)]}be.invert=function(He,Je){var lt=2*L(Je/2);return[He*r(lt/2)/r(lt),lt]};function Ae(){var He=2,Je=x.geoProjectionMutator(ce),lt=Je(He);return lt.coefficient=function(vt){return arguments.length?Je(He=+vt):He},lt.scale(169.529)}function De(He,Je,lt){var vt=100,Lt,At,zt;lt=lt===void 0?0:+lt,Je=+Je;do At=He(lt),zt=He(lt+l),At===zt&&(zt=At+l),lt-=Lt=-1*l*(At-Je)/(At-zt);while(vt-- >0&&E(Lt)>l);return vt<0?NaN:lt}function ze(He,Je,lt){return Je===void 0&&(Je=40),lt===void 0&&(lt=_),function(vt,Lt,At,zt){var cr,yr,Er;At=At===void 0?0:+At,zt=zt===void 0?0:+zt;for(var jr=0;jr<Je;jr++){var Qr=He(At,zt),pa=Qr[0]-vt,Aa=Qr[1]-Lt;if(E(pa)<lt&&E(Aa)<lt)break;var za=pa*pa+Aa*Aa;if(za>cr){At-=yr/=2,zt-=Er/=2;continue}cr=za;var ci=(At>0?-1:1)*lt,Vi=(zt>0?-1:1)*lt,ji=He(At+ci,zt),nn=He(At,zt+Vi),Sn=(ji[0]-Qr[0])/ci,Kn=(ji[1]-Qr[1])/ci,Bn=(nn[0]-Qr[0])/Vi,wo=(nn[1]-Qr[1])/Vi,is=wo*Sn-Kn*Bn,Ao=(E(is)<.5?.5:1)/is;if(yr=(Aa*Bn-pa*wo)*Ao,Er=(pa*Kn-Aa*Sn)*Ao,At+=yr,zt+=Er,E(yr)<lt&&E(Er)<lt)break}return[At,zt]}}function Ze(){var He=ce(1.68,2),Je=1.4,lt=12;function vt(Lt,At){if(Lt+At<-Je){var zt=(Lt-At+1.6)*(Lt+At+Je)/8;Lt+=zt,At-=.8*zt*p(At+w/2)}var cr=He(Lt,At),yr=(1-r(Lt*At))/lt;return cr[1]<0&&(cr[0]*=1+yr),cr[1]>0&&(cr[1]*=1+yr/1.5*cr[0]*cr[0]),cr}return vt.invert=ze(vt),vt}function at(){return x.geoProjection(Ze()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function nt(He,Je){var lt=He*p(Je),vt=30,Lt;do Je-=Lt=(Je+p(Je)-lt)/(1+r(Je));while(E(Lt)>l&&--vt>0);return Je/2}function rt(He,Je,lt){function vt(Lt,At){return[He*Lt*r(At=nt(lt,At)),Je*p(At)]}return vt.invert=function(Lt,At){return At=L(At/Je),[Lt/(He*r(At)),L((2*At+p(2*At))/lt)]},vt}var st=rt(b/A,b,w);function Me(){return x.geoProjection(st).scale(169.529)}var ye=2.00276,he=1.11072;function Oe(He,Je){var lt=nt(w,Je);return[ye*He/(1/r(Je)+he/r(lt)),(Je+b*p(lt))/ye]}Oe.invert=function(He,Je){var lt=ye*Je,vt=Je<0?-M:M,Lt=25,At,zt;do zt=lt-b*p(vt),vt-=At=(p(2*vt)+2*vt-w*p(zt))/(2*r(2*vt)+2+w*r(zt)*b*r(vt));while(E(At)>l&&--Lt>0);return zt=lt-b*p(vt),[He*(1/r(zt)+he/r(vt))/ye,zt]};function tt(){return x.geoProjection(Oe).scale(160.857)}function ot(He){var Je=0,lt=x.geoProjectionMutator(He),vt=lt(Je);return vt.parallel=function(Lt){return arguments.length?lt(Je=Lt*f):Je*y},vt}function Qe(He,Je){return[He*r(Je),Je]}Qe.invert=function(He,Je){return[He/r(Je),Je]};function Pt(){return x.geoProjection(Qe).scale(152.63)}function It(He){if(!He)return Qe;var Je=1/T(He);function lt(vt,Lt){var At=Je+He-Lt,zt=At&&vt*r(Lt)/At;return[At*p(zt),Je-At*r(zt)]}return lt.invert=function(vt,Lt){var At=F(vt*vt+(Lt=Je-Lt)*Lt),zt=Je+He-At;return[At/r(zt)*t(vt,Lt),zt]},lt}function qt(){return ot(It).scale(123.082).center([0,26.1441]).parallel(45)}function Wt(He){function Je(lt,vt){var Lt=A-vt,At=Lt&&lt*He*p(Lt)/Lt;return[Lt*p(At)/He,A-Lt*r(At)]}return Je.invert=function(lt,vt){var Lt=lt*He,At=A-vt,zt=F(Lt*Lt+At*At),cr=t(Lt,At);return[(zt?zt/p(zt):1)*cr/He,A-zt]},Je}function kr(){var He=.5,Je=x.geoProjectionMutator(Wt),lt=Je(He);return lt.fraction=function(vt){return arguments.length?Je(He=+vt):He},lt.scale(158.837)}var mr=rt(1,4/w,w);function qr(){return x.geoProjection(mr).scale(152.63)}function Sr(He,Je,lt,vt,Lt,At){var zt=r(At),cr;if(E(He)>1||E(At)>1)cr=z(lt*Lt+Je*vt*zt);else{var yr=p(He/2),Er=p(At/2);cr=2*L(F(yr*yr+Je*vt*Er*Er))}return E(cr)>l?[cr,t(vt*p(At),Je*Lt-lt*vt*zt)]:[0,0]}function Rr(He,Je,lt){return z((He*He+Je*Je-lt*lt)/(2*He*Je))}function wt(He){return He-2*w*a((He+w)/(2*w))}function Ne(He,Je,lt){for(var vt=[[He[0],He[1],p(He[1]),r(He[1])],[Je[0],Je[1],p(Je[1]),r(Je[1])],[lt[0],lt[1],p(lt[1]),r(lt[1])]],Lt=vt[2],At,zt=0;zt<3;++zt,Lt=At)At=vt[zt],Lt.v=Sr(At[1]-Lt[1],Lt[3],Lt[2],At[3],At[2],At[0]-Lt[0]),Lt.point=[0,0];var cr=Rr(vt[0].v[0],vt[2].v[0],vt[1].v[0]),yr=Rr(vt[0].v[0],vt[1].v[0],vt[2].v[0]),Er=w-cr;vt[2].point[1]=0,vt[0].point[0]=-(vt[1].point[0]=vt[0].v[0]/2);var jr=[vt[2].point[0]=vt[0].point[0]+vt[2].v[0]*r(cr),2*(vt[0].point[1]=vt[1].point[1]=vt[2].v[0]*p(cr))];function Qr(pa,Aa){var za=p(Aa),ci=r(Aa),Vi=new Array(3),ji;for(ji=0;ji<3;++ji){var nn=vt[ji];if(Vi[ji]=Sr(Aa-nn[1],nn[3],nn[2],ci,za,pa-nn[0]),!Vi[ji][0])return nn.point;Vi[ji][1]=wt(Vi[ji][1]-nn.v[1])}var Sn=jr.slice();for(ji=0;ji<3;++ji){var Kn=ji==2?0:ji+1,Bn=Rr(vt[ji].v[0],Vi[ji][0],Vi[Kn][0]);Vi[ji][1]<0&&(Bn=-Bn),ji?ji==1?(Bn=yr-Bn,Sn[0]-=Vi[ji][0]*r(Bn),Sn[1]-=Vi[ji][0]*p(Bn)):(Bn=Er-Bn,Sn[0]+=Vi[ji][0]*r(Bn),Sn[1]+=Vi[ji][0]*p(Bn)):(Sn[0]+=Vi[ji][0]*r(Bn),Sn[1]-=Vi[ji][0]*p(Bn))}return Sn[0]/=3,Sn[1]/=3,Sn}return Qr}function Ke(He){return He[0]*=f,He[1]*=f,He}function Te(){return Ie([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ie(He,Je,lt){var vt=x.geoCentroid({type:"MultiPoint",coordinates:[He,Je,lt]}),Lt=[-vt[0],-vt[1]],At=x.geoRotation(Lt),zt=Ne(Ke(At(He)),Ke(At(Je)),Ke(At(lt)));zt.invert=ze(zt);var cr=x.geoProjection(zt).rotate(Lt),yr=cr.center;return delete cr.rotate,cr.center=function(Er){return arguments.length?yr(At(Er)):At.invert(yr())},cr.clipAngle(90)}function Ve(He,Je){var lt=F(1-p(Je));return[2/d*He*lt,d*(1-lt)]}Ve.invert=function(He,Je){var lt=(lt=Je/d-1)*lt;return[lt>0?He*F(w/lt)/2:0,L(1-lt)]};function Ce(){return x.geoProjection(Ve).scale(95.6464).center([0,30])}function Ee(He){var Je=T(He);function lt(vt,Lt){return[vt,(vt?vt/p(vt):1)*(p(Lt)*r(vt)-Je*r(Lt))]}return lt.invert=Je?function(vt,Lt){vt&&(Lt*=p(vt)/vt);var At=r(vt);return[vt,2*t(F(At*At+Je*Je-Lt*Lt)-At,Je-Lt)]}:function(vt,Lt){return[vt,L(vt?Lt*T(vt)/vt:Lt)]},lt}function Pe(){return ot(Ee).scale(249.828).clipAngle(90)}var ft=F(3);function ct(He,Je){return[ft*He*(2*r(2*Je/3)-1)/d,ft*d*p(Je/3)]}ct.invert=function(He,Je){var lt=3*L(Je/(ft*d));return[d*He/(ft*(2*r(2*lt/3)-1)),lt]};function _t(){return x.geoProjection(ct).scale(156.19)}function Ct(He){var Je=r(He);function lt(vt,Lt){return[vt*Je,p(Lt)/Je]}return lt.invert=function(vt,Lt){return[vt/Je,L(Lt*Je)]},lt}function ir(){return ot(Ct).parallel(38.58).scale(195.044)}function rr(He){var Je=r(He);function lt(vt,Lt){return[vt*Je,(1+Je)*T(Lt/2)]}return lt.invert=function(vt,Lt){return[vt/Je,e(Lt/(1+Je))*2]},lt}function er(){return ot(rr).scale(124.75)}function Lr(He,Je){var lt=F(8/(3*w));return[lt*He*(1-E(Je)/w),lt*Je]}Lr.invert=function(He,Je){var lt=F(8/(3*w)),vt=Je/lt;return[He/(lt*(1-E(vt)/w)),vt]};function fa(){return x.geoProjection(Lr).scale(165.664)}function Da(He,Je){var lt=F(4-3*p(E(Je)));return[2/F(6*w)*He*lt,m(Je)*F(2*w/3)*(2-lt)]}Da.invert=function(He,Je){var lt=2-E(Je)/F(2*w/3);return[He*F(6*w)/(2*lt),m(Je)*L((4-lt*lt)/3)]};function Ia(){return x.geoProjection(Da).scale(165.664)}function qa(He,Je){var lt=F(w*(4+w));return[2/lt*He*(1+F(1-4*Je*Je/(w*w))),4/lt*Je]}qa.invert=function(He,Je){var lt=F(w*(4+w))/2;return[He*lt/(1+F(1-Je*Je*(4+w)/(4*w))),Je*lt/2]};function Wa(){return x.geoProjection(qa).scale(180.739)}function Ca(He,Je){var lt=(2+A)*p(Je);Je/=2;for(var vt=0,Lt=1/0;vt<10&&E(Lt)>l;vt++){var At=r(Je);Je-=Lt=(Je+p(Je)*(At+2)-lt)/(2*At*(1+At))}return[2/F(w*(4+w))*He*(1+r(Je)),2*F(w/(4+w))*p(Je)]}Ca.invert=function(He,Je){var lt=Je*F((4+w)/w)/2,vt=L(lt),Lt=r(vt);return[He/(2/F(w*(4+w))*(1+Lt)),L((vt+lt*(Lt+2))/(2+A))]};function hi(){return x.geoProjection(Ca).scale(180.739)}function wi(He,Je){return[He*(1+r(Je))/F(2+w),2*Je/F(2+w)]}wi.invert=function(He,Je){var lt=F(2+w),vt=Je*lt/2;return[lt*He/(1+r(vt)),vt]};function Kt(){return x.geoProjection(wi).scale(173.044)}function Ft(He,Je){for(var lt=(1+A)*p(Je),vt=0,Lt=1/0;vt<10&&E(Lt)>l;vt++)Je-=Lt=(Je+p(Je)-lt)/(1+r(Je));return lt=F(2+w),[He*(1+r(Je))/lt,2*Je/lt]}Ft.invert=function(He,Je){var lt=1+A,vt=F(lt/2);return[He*2*vt/(1+r(Je*=vt)),L((Je+p(Je))/lt)]};function Yt(){return x.geoProjection(Ft).scale(173.044)}var Jt=3+2*b;function Fr(He,Je){var lt=p(He/=2),vt=r(He),Lt=F(r(Je)),At=r(Je/=2),zt=p(Je)/(At+b*vt*Lt),cr=F(2/(1+zt*zt)),yr=F((b*At+(vt+lt)*Lt)/(b*At+(vt-lt)*Lt));return[Jt*(cr*(yr-1/yr)-2*n(yr)),Jt*(cr*zt*(yr+1/yr)-2*e(zt))]}Fr.invert=function(He,Je){if(!(At=Y.invert(He/1.2,Je*1.065)))return null;var lt=At[0],vt=At[1],Lt=20,At;He/=Jt,Je/=Jt;do{var zt=lt/2,cr=vt/2,yr=p(zt),Er=r(zt),jr=p(cr),Qr=r(cr),pa=r(vt),Aa=F(pa),za=jr/(Qr+b*Er*Aa),ci=za*za,Vi=F(2/(1+ci)),ji=b*Qr+(Er+yr)*Aa,nn=b*Qr+(Er-yr)*Aa,Sn=ji/nn,Kn=F(Sn),Bn=Kn-1/Kn,wo=Kn+1/Kn,is=Vi*Bn-2*n(Kn)-He,Ao=Vi*za*wo-2*e(za)-Je,Zo=jr&&g*Aa*yr*ci/jr,ps=(b*Er*Qr+Aa)/(2*(Qr+b*Er*Aa)*(Qr+b*Er*Aa)*Aa),ul=-.5*za*Vi*Vi*Vi,tl=ul*Zo,Jo=ul*ps,$o=($o=2*Qr+b*Aa*(Er-yr))*$o*Kn,Il=(b*Er*Qr*Aa+pa)/$o,eu=-(b*yr*jr)/(Aa*$o),Ru=Bn*tl-2*Il/Kn+Vi*(Il+Il/Sn),vu=Bn*Jo-2*eu/Kn+Vi*(eu+eu/Sn),Tl=za*wo*tl-2*Zo/(1+ci)+Vi*wo*Zo+Vi*za*(Il-Il/Sn),cu=za*wo*Jo-2*ps/(1+ci)+Vi*wo*ps+Vi*za*(eu-eu/Sn),uc=vu*Tl-cu*Ru;if(!uc)break;var Vl=(Ao*vu-is*cu)/uc,Gl=(is*Tl-Ao*Ru)/uc;lt-=Vl,vt=i(-A,s(A,vt-Gl))}while((E(Vl)>l||E(Gl)>l)&&--Lt>0);return E(E(vt)-A)<l?[0,vt]:Lt&&[lt,vt]};function ta(){return x.geoProjection(Fr).scale(62.5271)}var ra=r(35*f);function ca(He,Je){var lt=T(Je/2);return[He*ra*F(1-lt*lt),(1+ra)*lt]}ca.invert=function(He,Je){var lt=Je/(1+ra);return[He&&He/(ra*F(1-lt*lt)),2*e(lt)]};function Ba(){return x.geoProjection(ca).scale(137.152)}function $a(He,Je){var lt=Je/2,vt=r(lt);return[2*He/d*r(Je)*vt*vt,d*T(lt)]}$a.invert=function(He,Je){var lt=e(Je/d),vt=r(lt),Lt=2*lt;return[He*d/2/(r(Lt)*vt*vt),Lt]};function Za(){return x.geoProjection($a).scale(135.264)}function ri(He){var Je=1-He,lt=At(w,0)[0]-At(-w,0)[0],vt=At(0,A)[1]-At(0,-A)[1],Lt=F(2*vt/lt);function At(yr,Er){var jr=r(Er),Qr=p(Er);return[jr/(Je+He*jr)*yr,Je*Er+He*Qr]}function zt(yr,Er){var jr=At(yr,Er);return[jr[0]*Lt,jr[1]/Lt]}function cr(yr){return zt(0,yr)[1]}return zt.invert=function(yr,Er){var jr=De(cr,Er),Qr=yr/Lt*(He+Je/r(jr));return[Qr,jr]},zt}function pi(){var He=.5,Je=x.geoProjectionMutator(ri),lt=Je(He);return lt.alpha=function(vt){return arguments.length?Je(He=+vt):He},lt.scale(168.725)}function Ra(He){return[He[0]/2,L(T(He[1]/2*f))*y]}function tn(He){return[He[0]*2,2*e(p(He[1]*f))*y]}function on(He){He==null&&(He=x.geoOrthographic);var Je=He(),lt=x.geoEquirectangular().scale(y).precision(0).clipAngle(null).translate([0,0]);function vt(At){return Je(Ra(At))}Je.invert&&(vt.invert=function(At){return tn(Je.invert(At))}),vt.stream=function(At){var zt=Je.stream(At),cr=lt.stream({point:function(yr,Er){zt.point(yr/2,L(T(-Er/2*f))*y)},lineStart:function(){zt.lineStart()},lineEnd:function(){zt.lineEnd()},polygonStart:function(){zt.polygonStart()},polygonEnd:function(){zt.polygonEnd()}});return cr.sphere=zt.sphere,cr};function Lt(At){vt[At]=function(){return arguments.length?(Je[At].apply(Je,arguments),vt):Je[At]()}}return vt.rotate=function(At){return arguments.length?(lt.rotate(At),vt):lt.rotate()},vt.center=function(At){return arguments.length?(Je.center(Ra(At)),vt):tn(Je.center())},Lt("angle"),Lt("clipAngle"),Lt("clipExtent"),Lt("fitExtent"),Lt("fitHeight"),Lt("fitSize"),Lt("fitWidth"),Lt("scale"),Lt("translate"),Lt("precision"),vt.scale(249.5)}function hn(He,Je){var lt=2*w/Je,vt=He*He;function Lt(At,zt){var cr=x.geoAzimuthalEquidistantRaw(At,zt),yr=cr[0],Er=cr[1],jr=yr*yr+Er*Er;if(jr>vt){var Qr=F(jr),pa=t(Er,yr),Aa=lt*c(pa/lt),za=pa-Aa,ci=He*r(za),Vi=(He*p(za)-za*p(ci))/(A-ci),ji=Tt(za,Vi),nn=(w-He)/ut(ji,ci,w);yr=Qr;var Sn=50,Kn;do yr-=Kn=(He+ut(ji,ci,yr)*nn-Qr)/(ji(yr)*nn);while(E(Kn)>l&&--Sn>0);Er=za*p(yr),yr<A&&(Er-=Vi*(yr-A));var Bn=p(Aa),wo=r(Aa);cr[0]=yr*wo-Er*Bn,cr[1]=yr*Bn+Er*wo}return cr}return Lt.invert=function(At,zt){var cr=At*At+zt*zt;if(cr>vt){var yr=F(cr),Er=t(zt,At),jr=lt*c(Er/lt),Qr=Er-jr;At=yr*r(Qr),zt=yr*p(Qr);for(var pa=At-A,Aa=p(At),za=zt/Aa,ci=At<A?1/0:0,Vi=10;;){var ji=He*p(za),nn=He*r(za),Sn=p(nn),Kn=A-nn,Bn=(ji-za*Sn)/Kn,wo=Tt(za,Bn);if(E(ci)<_||!--Vi)break;za-=ci=(za*Aa-Bn*pa-zt)/(Aa-pa*2*(Kn*(nn+za*ji*r(nn)-Sn)-ji*(ji-za*Sn))/(Kn*Kn))}yr=He+ut(wo,nn,At)*(w-He)/ut(wo,nn,w),Er=jr+za,At=yr*r(Er),zt=yr*p(Er)}return x.geoAzimuthalEquidistantRaw.invert(At,zt)},Lt}function Tt(He,Je){return function(lt){var vt=He*r(lt);return lt<A&&(vt-=Je),F(1+vt*vt)}}function ut(He,Je,lt){for(var vt=50,Lt=(lt-Je)/vt,At=He(Je)+He(lt),zt=1,cr=Je;zt<vt;++zt)At+=2*He(cr+=Lt);return At*.5*Lt}function Br(){var He=6,Je=30*f,lt=r(Je),vt=p(Je),Lt=x.geoProjectionMutator(hn),At=Lt(Je,He),zt=At.stream,cr=.01,yr=-r(cr*f),Er=p(cr*f);return At.radius=function(jr){return arguments.length?(lt=r(Je=jr*f),vt=p(Je),Lt(Je,He)):Je*y},At.lobes=function(jr){return arguments.length?Lt(Je,He=+jr):He},At.stream=function(jr){var Qr=At.rotate(),pa=zt(jr),Aa=(At.rotate([0,0]),zt(jr));return At.rotate(Qr),pa.sphere=function(){Aa.polygonStart(),Aa.lineStart();for(var za=0,ci=2*w/He,Vi=0;za<He;++za,Vi-=ci)Aa.point(t(Er*r(Vi),yr)*y,L(Er*p(Vi))*y),Aa.point(t(vt*r(Vi-ci/2),lt)*y,L(vt*p(Vi-ci/2))*y);Aa.lineEnd(),Aa.polygonEnd()},pa},At.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Cr(He,Je,lt,vt,Lt,At,zt,cr){arguments.length<8&&(cr=0);function yr(Er,jr){if(!jr)return[He*Er/w,0];var Qr=jr*jr,pa=He+Qr*(Je+Qr*(lt+Qr*vt)),Aa=jr*(Lt-1+Qr*(At-cr+Qr*zt)),za=(pa*pa+Aa*Aa)/(2*Aa),ci=Er*L(pa/za)/w;return[za*p(ci),jr*(1+Qr*cr)+za*(1-r(ci))]}return yr.invert=function(Er,jr){var Qr=w*Er/He,pa=jr,Aa,za,ci=50;do{var Vi=pa*pa,ji=He+Vi*(Je+Vi*(lt+Vi*vt)),nn=pa*(Lt-1+Vi*(At-cr+Vi*zt)),Sn=ji*ji+nn*nn,Kn=2*nn,Bn=Sn/Kn,wo=Bn*Bn,is=L(ji/Bn)/w,Ao=Qr*is,Zo=ji*ji,ps=(2*Je+Vi*(4*lt+Vi*6*vt))*pa,ul=Lt+Vi*(3*At+Vi*5*zt),tl=2*(ji*ps+nn*(ul-1)),Jo=2*(ul-1),$o=(tl*Kn-Sn*Jo)/(Kn*Kn),Il=r(Ao),eu=p(Ao),Ru=Bn*Il,vu=Bn*eu,Tl=Qr/w*(1/F(1-Zo/wo))*(ps*Bn-ji*$o)/wo,cu=vu-Er,uc=pa*(1+Vi*cr)+Bn-Ru-jr,Vl=$o*eu+Ru*Tl,Gl=Ru*is,de=1+$o-($o*Il-vu*Tl),Fe=vu*is,et=Vl*Fe-de*Gl;if(!et)break;Qr-=Aa=(uc*Vl-cu*de)/et,pa-=za=(cu*Fe-uc*Gl)/et}while((E(Aa)>l||E(za)>l)&&--ci>0);return[Qr,pa]},yr}var xr=Cr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ir(){return x.geoProjection(xr).scale(149.995)}var Ur=Cr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Hr(){return x.geoProjection(Ur).scale(153.93)}var xt=Cr(5/6*w,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Xt(){return x.geoProjection(xt).scale(130.945)}function vr(He,Je){var lt=He*He,vt=Je*Je;return[He*(1-.162388*vt)*(.87-952426e-9*lt*lt),Je*(1+vt/12)]}vr.invert=function(He,Je){var lt=He,vt=Je,Lt=50,At;do{var zt=vt*vt;vt-=At=(vt*(1+zt/12)-Je)/(1+zt/4)}while(E(At)>l&&--Lt>0);Lt=50,He/=1-.162388*zt;do{var cr=(cr=lt*lt)*cr;lt-=At=(lt*(.87-952426e-9*cr)-He)/(.87-.00476213*cr)}while(E(At)>l&&--Lt>0);return[lt,vt]};function Or(){return x.geoProjection(vr).scale(131.747)}var ba=Cr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Pa(){return x.geoProjection(ba).scale(131.087)}function ya(He){var Je=He(A,0)[0]-He(-A,0)[0];function lt(vt,Lt){var At=vt>0?-.5:.5,zt=He(vt+At*w,Lt);return zt[0]-=At*Je,zt}return He.invert&&(lt.invert=function(vt,Lt){var At=vt>0?-.5:.5,zt=He.invert(vt+At*Je,Lt),cr=zt[0]-At*w;return cr<-w?cr+=2*w:cr>w&&(cr-=2*w),zt[0]=cr,zt}),lt}function la(He,Je){var lt=m(He),vt=m(Je),Lt=r(Je),At=r(He)*Lt,zt=p(He)*Lt,cr=p(vt*Je);He=E(t(zt,cr)),Je=L(At),E(He-A)>l&&(He%=A);var yr=Ta(He>w/4?A-He:He,Je);return He>w/4&&(cr=yr[0],yr[0]=-yr[1],yr[1]=-cr),yr[0]*=lt,yr[1]*=-vt,yr}la.invert=function(He,Je){E(He)>1&&(He=m(He)*2-He),E(Je)>1&&(Je=m(Je)*2-Je);var lt=m(He),vt=m(Je),Lt=-lt*He,At=-vt*Je,zt=At/Lt<1,cr=Ai(zt?At:Lt,zt?Lt:At),yr=cr[0],Er=cr[1],jr=r(Er);return zt&&(yr=-A-yr),[lt*(t(p(yr)*jr,-p(Er))+w),vt*L(r(yr)*jr)]};function Ta(He,Je){if(Je===A)return[0,0];var lt=p(Je),vt=lt*lt,Lt=vt*vt,At=1+Lt,zt=1+3*Lt,cr=1-Lt,yr=L(1/F(At)),Er=cr+vt*At*yr,jr=(1-lt)/Er,Qr=F(jr),pa=jr*At,Aa=F(pa),za=Qr*cr,ci,Vi;if(He===0)return[0,-(za+vt*Aa)];var ji=r(Je),nn=1/ji,Sn=2*lt*ji,Kn=(-3*vt+yr*zt)*Sn,Bn=(-Er*ji-(1-lt)*Kn)/(Er*Er),wo=.5*Bn/Qr,is=cr*wo-2*vt*Qr*Sn,Ao=vt*At*Bn+jr*zt*Sn,Zo=-nn*Sn,ps=-nn*Ao,ul=-2*nn*is,tl=4*He/w,Jo;if(He>.222*w||Je<w/4&&He>.175*w){if(ci=(za+vt*F(pa*(1+Lt)-za*za))/(1+Lt),He>w/4)return[ci,ci];var $o=ci,Il=.5*ci;ci=.5*(Il+$o),Vi=50;do{var eu=F(pa-ci*ci),Ru=ci*(ul+Zo*eu)+ps*L(ci/Aa)-tl;if(!Ru)break;Ru<0?Il=ci:$o=ci,ci=.5*(Il+$o)}while(E($o-Il)>l&&--Vi>0)}else{ci=l,Vi=25;do{var vu=ci*ci,Tl=F(pa-vu),cu=ul+Zo*Tl,uc=ci*cu+ps*L(ci/Aa)-tl,Vl=cu+(ps-Zo*vu)/Tl;ci-=Jo=Tl?uc/Vl:0}while(E(Jo)>l&&--Vi>0)}return[ci,-za-vt*F(pa-ci*ci)]}function Ai(He,Je){for(var lt=0,vt=1,Lt=.5,At=50;;){var zt=Lt*Lt,cr=F(Lt),yr=L(1/F(1+zt)),Er=1-zt+Lt*(1+zt)*yr,jr=(1-cr)/Er,Qr=F(jr),pa=jr*(1+zt),Aa=Qr*(1-zt),za=pa-He*He,ci=F(za),Vi=Je+Aa+Lt*ci;if(E(vt-lt)<_||--At===0||Vi===0)break;Vi>0?lt=Lt:vt=Lt,Lt=.5*(lt+vt)}if(!At)return null;var ji=L(cr),nn=r(ji),Sn=1/nn,Kn=2*cr*nn,Bn=(-3*Lt+yr*(1+3*zt))*Kn,wo=(-Er*nn-(1-cr)*Bn)/(Er*Er),is=.5*wo/Qr,Ao=(1-zt)*is-2*Lt*Qr*Kn,Zo=-2*Sn*Ao,ps=-Sn*Kn,ul=-Sn*(Lt*(1+zt)*wo+jr*(1+3*zt)*Kn);return[w/4*(He*(Zo+ps*ci)+ul*L(He/F(pa))),ji]}function ki(){return x.geoProjection(ya(la)).scale(239.75)}function Ki(He,Je,lt){var vt,Lt,At;return He?(vt=_n(He,lt),Je?(Lt=_n(Je,1-lt),At=Lt[1]*Lt[1]+lt*vt[0]*vt[0]*Lt[0]*Lt[0],[[vt[0]*Lt[2]/At,vt[1]*vt[2]*Lt[0]*Lt[1]/At],[vt[1]*Lt[1]/At,-vt[0]*vt[2]*Lt[0]*Lt[2]/At],[vt[2]*Lt[1]*Lt[2]/At,-lt*vt[0]*vt[1]*Lt[0]/At]]):[[vt[0],0],[vt[1],0],[vt[2],0]]):(Lt=_n(Je,1-lt),[[0,Lt[0]/Lt[1]],[1/Lt[1],0],[Lt[2]/Lt[1],0]])}function _n(He,Je){var lt,vt,Lt,At,zt;if(Je<l)return At=p(He),vt=r(He),lt=Je*(He-At*vt)/4,[At-lt*vt,vt+lt*At,1-Je*At*At/2,He-lt];if(Je>=1-l)return lt=(1-Je)/4,vt=P(He),At=N(He),Lt=1/vt,zt=vt*O(He),[At+lt*(zt-He)/(vt*vt),Lt-lt*At*Lt*(zt-He),Lt+lt*At*Lt*(zt+He),2*e(o(He))-A+lt*(zt-He)/vt];var cr=[1,0,0,0,0,0,0,0,0],yr=[F(Je),0,0,0,0,0,0,0,0],Er=0;for(vt=F(1-Je),zt=1;E(yr[Er]/cr[Er])>l&&Er<8;)lt=cr[Er++],yr[Er]=(lt-vt)/2,cr[Er]=(lt+vt)/2,vt=F(lt*vt),zt*=2;Lt=zt*cr[Er]*He;do At=yr[Er]*p(vt=Lt)/cr[Er],Lt=(L(At)+Lt)/2;while(--Er);return[p(Lt),At=r(Lt),At/r(Lt-vt),Lt]}function Rn(He,Je,lt){var vt=E(He),Lt=E(Je),At=O(Lt);if(vt){var zt=1/p(vt),cr=1/(T(vt)*T(vt)),yr=-(cr+lt*(At*At*zt*zt)-1+lt),Er=(lt-1)*cr,jr=(-yr+F(yr*yr-4*Er))/2;return[En(e(1/F(jr)),lt)*m(He),En(e(F((jr/cr-1)/lt)),1-lt)*m(Je)]}return[0,En(e(At),1-lt)*m(Je)]}function En(He,Je){if(!Je)return He;if(Je===1)return n(T(He/2+M));for(var lt=1,vt=F(1-Je),Lt=F(Je),At=0;E(Lt)>l;At++){if(He%w){var zt=e(vt*T(He)/lt);zt<0&&(zt+=w),He+=zt+~~(He/w)*w}else He+=He;Lt=(lt+vt)/2,vt=F(lt*vt),Lt=((lt=Lt)-vt)/2}return He/(h(2,At)*lt)}function On(He,Je){var lt=(b-1)/(b+1),vt=F(1-lt*lt),Lt=En(A,vt*vt),At=-1,zt=n(T(w/4+E(Je)/2)),cr=o(At*zt)/F(lt),yr=no(cr*r(At*He),cr*p(At*He)),Er=Rn(yr[0],yr[1],vt*vt);return[-Er[1],(Je>=0?1:-1)*(.5*Lt-Er[0])]}function no(He,Je){var lt=He*He,vt=Je+1,Lt=1-lt-Je*Je;return[.5*((He>=0?A:-A)-t(Lt,2*He)),-.25*n(Lt*Lt+4*lt)+.5*n(vt*vt+lt)]}function cn(He,Je){var lt=Je[0]*Je[0]+Je[1]*Je[1];return[(He[0]*Je[0]+He[1]*Je[1])/lt,(He[1]*Je[0]-He[0]*Je[1])/lt]}On.invert=function(He,Je){var lt=(b-1)/(b+1),vt=F(1-lt*lt),Lt=En(A,vt*vt),At=-1,zt=Ki(.5*Lt-Je,-He,vt*vt),cr=cn(zt[0],zt[1]),yr=t(cr[1],cr[0])/At;return[yr,2*e(o(.5/At*n(lt*cr[0]*cr[0]+lt*cr[1]*cr[1])))-A]};function lo(){return x.geoProjection(ya(On)).scale(151.496)}function Wo(He){var Je=p(He),lt=r(He),vt=hs(He);vt.invert=hs(-He);function Lt(At,zt){var cr=vt(At,zt);At=cr[0],zt=cr[1];var yr=p(zt),Er=r(zt),jr=r(At),Qr=z(Je*yr+lt*Er*jr),pa=p(Qr),Aa=E(pa)>l?Qr/pa:1;return[Aa*lt*p(At),(E(At)>A?Aa:-Aa)*(Je*Er-lt*yr*jr)]}return Lt.invert=function(At,zt){var cr=F(At*At+zt*zt),yr=-p(cr),Er=r(cr),jr=cr*Er,Qr=-zt*yr,pa=cr*Je,Aa=F(jr*jr+Qr*Qr-pa*pa),za=t(jr*pa+Qr*Aa,Qr*pa-jr*Aa),ci=(cr>A?-1:1)*t(At*yr,cr*r(za)*Er+zt*p(za)*yr);return vt.invert(ci,za)},Lt}function hs(He){var Je=p(He),lt=r(He);return function(vt,Lt){var At=r(Lt),zt=r(vt)*At,cr=p(vt)*At,yr=p(Lt);return[t(cr,zt*lt-yr*Je),L(yr*lt+zt*Je)]}}function Oo(){var He=0,Je=x.geoProjectionMutator(Wo),lt=Je(He),vt=lt.rotate,Lt=lt.stream,At=x.geoCircle();return lt.parallel=function(zt){if(!arguments.length)return He*y;var cr=lt.rotate();return Je(He=zt*f).rotate(cr)},lt.rotate=function(zt){return arguments.length?(vt.call(lt,[zt[0],zt[1]-He*y]),At.center([-zt[0],-zt[1]]),lt):(zt=vt.call(lt),zt[1]+=He*y,zt)},lt.stream=function(zt){return zt=Lt(zt),zt.sphere=function(){zt.polygonStart();var cr=.01,yr=At.radius(90-cr)().coordinates[0],Er=yr.length-1,jr=-1,Qr;for(zt.lineStart();++jr<Er;)zt.point((Qr=yr[jr])[0],Qr[1]);for(zt.lineEnd(),yr=At.radius(90+cr)().coordinates[0],Er=yr.length-1,zt.lineStart();--jr>=0;)zt.point((Qr=yr[jr])[0],Qr[1]);zt.lineEnd(),zt.polygonEnd()},zt},lt.scale(79.4187).parallel(45).clipAngle(180-.001)}var Wn=3,No=L(1-1/Wn)*y,as=Ct(0);function Ns(He){var Je=No*f,lt=Ve(w,Je)[0]-Ve(-w,Je)[0],vt=as(0,Je)[1],Lt=Ve(0,Je)[1],At=d-Lt,zt=u/He,cr=4/u,yr=vt+At*At*4/u;function Er(jr,Qr){var pa,Aa=E(Qr);if(Aa>Je){var za=s(He-1,i(0,a((jr+w)/zt)));jr+=w*(He-1)/He-za*zt,pa=Ve(jr,Aa),pa[0]=pa[0]*u/lt-u*(He-1)/(2*He)+za*u/He,pa[1]=vt+(pa[1]-Lt)*4*At/u,Qr<0&&(pa[1]=-pa[1])}else pa=as(jr,Qr);return pa[0]*=cr,pa[1]/=yr,pa}return Er.invert=function(jr,Qr){jr/=cr,Qr*=yr;var pa=E(Qr);if(pa>vt){var Aa=s(He-1,i(0,a((jr+w)/zt)));jr=(jr+w*(He-1)/He-Aa*zt)*lt/u;var za=Ve.invert(jr,.25*(pa-vt)*u/At+Lt);return za[0]-=w*(He-1)/He-Aa*zt,Qr<0&&(za[1]=-za[1]),za}return as.invert(jr,Qr)},Er}function ss(He,Je){return[He,Je&1?90-l:No]}function uo(He,Je){return[He,Je&1?-90+l:-No]}function jn(He){return[He[0]*(1-l),He[1]]}function Xn(He){var Je=[].concat(S.range(-180,180+He/2,He).map(ss),S.range(180,-180-He/2,-He).map(uo));return{type:"Polygon",coordinates:[He===180?Je.map(jn):Je]}}function ls(){var He=4,Je=x.geoProjectionMutator(Ns),lt=Je(He),vt=lt.stream;return lt.lobes=function(Lt){return arguments.length?Je(He=+Lt):He},lt.stream=function(Lt){var At=lt.rotate(),zt=vt(Lt),cr=(lt.rotate([0,0]),vt(Lt));return lt.rotate(At),zt.sphere=function(){x.geoStream(Xn(180/He),cr)},zt},lt.scale(239.75)}function Cs(He){var Je=1+He,lt=p(1/Je),vt=L(lt),Lt=2*F(w/(At=w+4*vt*Je)),At,zt=.5*Lt*(Je+F(He*(2+He))),cr=He*He,yr=Je*Je;function Er(jr,Qr){var pa=1-p(Qr),Aa,za;if(pa&&pa<2){var ci=A-Qr,Vi=25,ji;do{var nn=p(ci),Sn=r(ci),Kn=vt+t(nn,Je-Sn),Bn=1+yr-2*Je*Sn;ci-=ji=(ci-cr*vt-Je*nn+Bn*Kn-.5*pa*At)/(2*Je*nn*Kn)}while(E(ji)>_&&--Vi>0);Aa=Lt*F(Bn),za=jr*Kn/w}else Aa=Lt*(He+pa),za=jr*vt/w;return[Aa*p(za),zt-Aa*r(za)]}return Er.invert=function(jr,Qr){var pa=jr*jr+(Qr-=zt)*Qr,Aa=(1+yr-pa/(Lt*Lt))/(2*Je),za=z(Aa),ci=p(za),Vi=vt+t(ci,Je-Aa);return[L(jr/F(pa))*w/Vi,L(1-2*(za-cr*vt-Je*ci+(1+yr-2*Je*Aa)*Vi)/At)]},Er}function Ks(){var He=1,Je=x.geoProjectionMutator(Cs),lt=Je(He);return lt.ratio=function(vt){return arguments.length?Je(He=+vt):He},lt.scale(167.774).center([0,18.67])}var Xo=.7109889596207567,Gi=.0528035274542;function Ln(He,Je){return Je>-Xo?(He=st(He,Je),He[1]+=Gi,He):Qe(He,Je)}Ln.invert=function(He,Je){return Je>-Xo?st.invert(He,Je-Gi):Qe.invert(He,Je)};function Us(){return x.geoProjection(Ln).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function _s(He,Je){return E(Je)>Xo?(He=st(He,Je),He[1]-=Je>0?Gi:-Gi,He):Qe(He,Je)}_s.invert=function(He,Je){return E(Je)>Xo?st.invert(He,Je+(Je>0?Gi:-Gi)):Qe.invert(He,Je)};function Gn(){return x.geoProjection(_s).scale(152.63)}function zs(He,Je,lt,vt){var Lt=F(4*w/(2*lt+(1+He-Je/2)*p(2*lt)+(He+Je)/2*p(4*lt)+Je/2*p(6*lt))),At=F(vt*p(lt)*F((1+He*r(2*lt)+Je*r(4*lt))/(1+He+Je))),zt=lt*yr(1);function cr(Qr){return F(1+He*r(2*Qr)+Je*r(4*Qr))}function yr(Qr){var pa=Qr*lt;return(2*pa+(1+He-Je/2)*p(2*pa)+(He+Je)/2*p(4*pa)+Je/2*p(6*pa))/lt}function Er(Qr){return cr(Qr)*p(Qr)}var jr=function(Qr,pa){var Aa=lt*De(yr,zt*p(pa)/lt,pa/w);isNaN(Aa)&&(Aa=lt*m(pa));var za=Lt*cr(Aa);return[za*At*Qr/w*r(Aa),za/At*p(Aa)]};return jr.invert=function(Qr,pa){var Aa=De(Er,pa*At/Lt);return[Qr*w/(r(Aa)*Lt*At*cr(Aa)),L(lt*yr(Aa/lt)/zt)]},lt===0&&(Lt=F(vt/w),jr=function(Qr,pa){return[Qr*Lt,p(pa)/Lt]},jr.invert=function(Qr,pa){return[Qr/Lt,L(pa*Lt)]}),jr}function vs(){var He=1,Je=0,lt=45*f,vt=2,Lt=x.geoProjectionMutator(zs),At=Lt(He,Je,lt,vt);return At.a=function(zt){return arguments.length?Lt(He=+zt,Je,lt,vt):He},At.b=function(zt){return arguments.length?Lt(He,Je=+zt,lt,vt):Je},At.psiMax=function(zt){return arguments.length?Lt(He,Je,lt=+zt*f,vt):lt*y},At.ratio=function(zt){return arguments.length?Lt(He,Je,lt,vt=+zt):vt},At.scale(180.739)}function Ws(He,Je,lt,vt,Lt,At,zt,cr,yr,Er,jr){if(jr.nanEncountered)return NaN;var Qr,pa,Aa,za,ci,Vi,ji,nn,Sn,Kn;if(Qr=lt-Je,pa=He(Je+Qr*.25),Aa=He(lt-Qr*.25),isNaN(pa)){jr.nanEncountered=!0;return}if(isNaN(Aa)){jr.nanEncountered=!0;return}return za=Qr*(vt+4*pa+Lt)/12,ci=Qr*(Lt+4*Aa+At)/12,Vi=za+ci,Kn=(Vi-zt)/15,Er>yr?(jr.maxDepthCount++,Vi+Kn):Math.abs(Kn)<cr?Vi+Kn:(ji=Je+Qr*.5,nn=Ws(He,Je,ji,vt,pa,Lt,za,cr*.5,yr,Er+1,jr),isNaN(nn)?(jr.nanEncountered=!0,NaN):(Sn=Ws(He,ji,lt,Lt,Aa,At,ci,cr*.5,yr,Er+1,jr),isNaN(Sn)?(jr.nanEncountered=!0,NaN):nn+Sn))}function il(He,Je,lt,vt,Lt){var At={maxDepthCount:0,nanEncountered:!1};vt===void 0&&(vt=1e-8),Lt===void 0&&(Lt=20);var zt=He(Je),cr=He(.5*(Je+lt)),yr=He(lt),Er=(zt+4*cr+yr)*(lt-Je)/6,jr=Ws(He,Je,lt,zt,cr,yr,Er,vt,Lt,1,At);return jr}function xn(He,Je,lt){function vt(Aa){return He+(1-He)*h(1-h(Aa,Je),1/Je)}function Lt(Aa){return il(vt,0,Aa,1e-4)}for(var At=1/Lt(1),zt=1e3,cr=(1+1e-8)*At,yr=[],Er=0;Er<=zt;Er++)yr.push(Lt(Er/zt)*cr);function jr(Aa){var za=0,ci=zt,Vi=zt>>1;do yr[Vi]>Aa?ci=Vi:za=Vi,Vi=za+ci>>1;while(Vi>za);var ji=yr[Vi+1]-yr[Vi];return ji&&(ji=(Aa-yr[Vi+1])/ji),(Vi+1+ji)/zt}var Qr=2*jr(1)/w*At/lt,pa=function(Aa,za){var ci=jr(E(p(za))),Vi=vt(ci)*Aa;return ci/=Qr,[Vi,za>=0?ci:-ci]};return pa.invert=function(Aa,za){var ci;return za*=Qr,E(za)<1&&(ci=m(za)*L(Lt(E(za))*At)),[Aa/vt(E(za)),ci]},pa}function ko(){var He=0,Je=2.5,lt=1.183136,vt=x.geoProjectionMutator(xn),Lt=vt(He,Je,lt);return Lt.alpha=function(At){return arguments.length?vt(He=+At,Je,lt):He},Lt.k=function(At){return arguments.length?vt(He,Je=+At,lt):Je},Lt.gamma=function(At){return arguments.length?vt(He,Je,lt=+At):lt},Lt.scale(152.63)}function bo(He,Je){return E(He[0]-Je[0])<l&&E(He[1]-Je[1])<l}function Is(He,Je){for(var lt=-1,vt=He.length,Lt=He[0],At,zt,cr,yr=[];++lt<vt;){At=He[lt],zt=(At[0]-Lt[0])/Je,cr=(At[1]-Lt[1])/Je;for(var Er=0;Er<Je;++Er)yr.push([Lt[0]+Er*zt,Lt[1]+Er*cr]);Lt=At}return yr.push(At),yr}function pu(He){var Je=[],lt,vt,Lt,At,zt,cr,yr,Er=He[0].length;for(yr=0;yr<Er;++yr)lt=He[0][yr],vt=lt[0][0],Lt=lt[0][1],At=lt[1][1],zt=lt[2][0],cr=lt[2][1],Je.push(Is([[vt+l,Lt+l],[vt+l,At-l],[zt-l,At-l],[zt-l,cr+l]],30));for(yr=He[1].length-1;yr>=0;--yr)lt=He[1][yr],vt=lt[0][0],Lt=lt[0][1],At=lt[1][1],zt=lt[2][0],cr=lt[2][1],Je.push(Is([[zt-l,cr-l],[zt-l,At+l],[vt+l,At+l],[vt+l,Lt-l]],30));return{type:"Polygon",coordinates:[S.merge(Je)]}}function co(He,Je,lt){var vt,Lt;function At(yr,Er){for(var jr=Er<0?-1:1,Qr=Je[+(Er<0)],pa=0,Aa=Qr.length-1;pa<Aa&&yr>Qr[pa][2][0];++pa);var za=He(yr-Qr[pa][1][0],Er);return za[0]+=He(Qr[pa][1][0],jr*Er>jr*Qr[pa][0][1]?Qr[pa][0][1]:Er)[0],za}lt?At.invert=lt(At):He.invert&&(At.invert=function(yr,Er){for(var jr=Lt[+(Er<0)],Qr=Je[+(Er<0)],pa=0,Aa=jr.length;pa<Aa;++pa){var za=jr[pa];if(za[0][0]<=yr&&yr<za[1][0]&&za[0][1]<=Er&&Er<za[1][1]){var ci=He.invert(yr-He(Qr[pa][1][0],0)[0],Er);return ci[0]+=Qr[pa][1][0],bo(At(ci[0],ci[1]),[yr,Er])?ci:null}}});var zt=x.geoProjection(At),cr=zt.stream;return zt.stream=function(yr){var Er=zt.rotate(),jr=cr(yr),Qr=(zt.rotate([0,0]),cr(yr));return zt.rotate(Er),jr.sphere=function(){x.geoStream(vt,Qr)},jr},zt.lobes=function(yr){return arguments.length?(vt=pu(yr),Je=yr.map(function(Er){return Er.map(function(jr){return[[jr[0][0]*f,jr[0][1]*f],[jr[1][0]*f,jr[1][1]*f],[jr[2][0]*f,jr[2][1]*f]]})}),Lt=Je.map(function(Er){return Er.map(function(jr){var Qr=He(jr[0][0],jr[0][1])[0],pa=He(jr[2][0],jr[2][1])[0],Aa=He(jr[1][0],jr[0][1])[1],za=He(jr[1][0],jr[1][1])[1],ci;return Aa>za&&(ci=Aa,Aa=za,za=ci),[[Qr,Aa],[pa,za]]})}),zt):Je.map(function(Er){return Er.map(function(jr){return[[jr[0][0]*y,jr[0][1]*y],[jr[1][0]*y,jr[1][1]*y],[jr[2][0]*y,jr[2][1]*y]]})})},Je!=null&&zt.lobes(Je),zt}var Vs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function vl(){return co(Oe,Vs).scale(160.857)}var Ts=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function js(){return co(_s,Ts).scale(152.63)}var us=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return co(st,us).scale(169.529)}var Nl=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function su(){return co(st,Nl).scale(169.529).rotate([20,0])}var Tc=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function du(){return co(Ln,Tc,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Sf=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Uc(){return co(Qe,Sf).scale(152.63).rotate([-20,0])}function Fs(He,Je){return[3/u*He*F(w*w/3-Je*Je),Je]}Fs.invert=function(He,Je){return[u/3*He/F(w*w/3-Je*Je),Je]};function dc(){return x.geoProjection(Fs).scale(158.837)}function Hc(He){function Je(lt,vt){if(E(E(vt)-A)<l)return[0,vt<0?-2:2];var Lt=p(vt),At=h((1+Lt)/(1-Lt),He/2),zt=.5*(At+1/At)+r(lt*=He);return[2*p(lt)/zt,(At-1/At)/zt]}return Je.invert=function(lt,vt){var Lt=E(vt);if(E(Lt-2)<l)return lt?null:[0,m(vt)*A];if(Lt>2)return null;lt/=2,vt/=2;var At=lt*lt,zt=vt*vt,cr=2*vt/(1+At+zt);return cr=h((1+cr)/(1-cr),1/He),[t(2*lt,1-At-zt)/He,L((cr-1)/(cr+1))]},Je}function lu(){var He=.5,Je=x.geoProjectionMutator(Hc),lt=Je(He);return lt.spacing=function(vt){return arguments.length?Je(He=+vt):He},lt.scale(124.75)}var Pl=w/b;function ic(He,Je){return[He*(1+F(r(Je)))/2,Je/(r(Je/2)*r(He/6))]}ic.invert=function(He,Je){var lt=E(He),vt=E(Je),Lt=l,At=A;vt<Pl?At*=vt/Pl:Lt+=6*z(Pl/vt);for(var zt=0;zt<25;zt++){var cr=p(At),yr=F(r(At)),Er=p(At/2),jr=r(At/2),Qr=p(Lt/6),pa=r(Lt/6),Aa=.5*Lt*(1+yr)-lt,za=At/(jr*pa)-vt,ci=yr?-.25*Lt*cr/yr:0,Vi=.5*(1+yr),ji=(1+.5*At*Er/jr)/(jr*pa),nn=At/jr*(Qr/6)/(pa*pa),Sn=ci*nn-ji*Vi,Kn=(Aa*nn-za*Vi)/Sn,Bn=(za*ci-Aa*ji)/Sn;if(At-=Kn,Lt-=Bn,E(Kn)<l&&E(Bn)<l)break}return[He<0?-Lt:Lt,Je<0?-At:At]};function Ou(){return x.geoProjection(ic).scale(97.2672)}function nl(He,Je){var lt=He*He,vt=Je*Je;return[He*(.975534+vt*(-.119161+lt*-.0143059+vt*-.0547009)),Je*(1.00384+lt*(.0802894+vt*-.02855+lt*199025e-9)+vt*(.0998909+vt*-.0491032))]}nl.invert=function(He,Je){var lt=m(He)*w,vt=Je/2,Lt=50;do{var At=lt*lt,zt=vt*vt,cr=lt*vt,yr=lt*(.975534+zt*(-.119161+At*-.0143059+zt*-.0547009))-He,Er=vt*(1.00384+At*(.0802894+zt*-.02855+At*199025e-9)+zt*(.0998909+zt*-.0491032))-Je,jr=.975534-zt*(.119161+3*At*.0143059+zt*.0547009),Qr=-cr*(2*.119161+4*.0547009*zt+2*.0143059*At),pa=cr*(2*.0802894+4*199025e-9*At+2*-.02855*zt),Aa=1.00384+At*(.0802894+199025e-9*At)+zt*(3*(.0998909-.02855*At)-5*.0491032*zt),za=Qr*pa-Aa*jr,ci=(Er*Qr-yr*Aa)/za,Vi=(yr*pa-Er*jr)/za;lt-=ci,vt-=Vi}while((E(ci)>l||E(Vi)>l)&&--Lt>0);return Lt&&[lt,vt]};function ml(){return x.geoProjection(nl).scale(139.98)}function xs(He,Je){return[p(He)/r(Je),T(Je)*r(He)]}xs.invert=function(He,Je){var lt=He*He,vt=Je*Je,Lt=vt+1,At=lt+Lt,zt=He?g*F((At-F(At*At-4*lt))/lt):1/F(Lt);return[L(He*zt),m(Je)*z(zt)]};function Xs(){return x.geoProjection(xs).scale(144.049).clipAngle(90-.001)}function nc(He){var Je=r(He),lt=T(M+He/2);function vt(Lt,At){var zt=At-He,cr=E(zt)<l?Lt*Je:E(cr=M+At/2)<l||E(E(cr)-A)<l?0:Lt*zt/n(T(cr)/lt);return[cr,zt]}return vt.invert=function(Lt,At){var zt,cr=At+He;return[E(At)<l?Lt/Je:E(zt=M+cr/2)<l||E(E(zt)-A)<l?0:Lt*n(T(zt)/lt)/At,cr]},vt}function Ul(){return ot(nc).parallel(40).scale(158.837)}function qu(He,Je){return[He,1.25*n(T(M+.4*Je))]}qu.invert=function(He,Je){return[He,2.5*e(o(.8*Je))-.625*w]};function fl(){return x.geoProjection(qu).scale(108.318)}function xh(He){var Je=He.length-1;function lt(vt,Lt){for(var At=r(Lt),zt=2/(1+At*r(vt)),cr=zt*At*p(vt),yr=zt*p(Lt),Er=Je,jr=He[Er],Qr=jr[0],pa=jr[1],Aa;--Er>=0;)jr=He[Er],Qr=jr[0]+cr*(Aa=Qr)-yr*pa,pa=jr[1]+cr*pa+yr*Aa;return Qr=cr*(Aa=Qr)-yr*pa,pa=cr*pa+yr*Aa,[Qr,pa]}return lt.invert=function(vt,Lt){var At=20,zt=vt,cr=Lt;do{for(var yr=Je,Er=He[yr],jr=Er[0],Qr=Er[1],pa=0,Aa=0,za;--yr>=0;)Er=He[yr],pa=jr+zt*(za=pa)-cr*Aa,Aa=Qr+zt*Aa+cr*za,jr=Er[0]+zt*(za=jr)-cr*Qr,Qr=Er[1]+zt*Qr+cr*za;pa=jr+zt*(za=pa)-cr*Aa,Aa=Qr+zt*Aa+cr*za,jr=zt*(za=jr)-cr*Qr-vt,Qr=zt*Qr+cr*za-Lt;var ci=pa*pa+Aa*Aa,Vi,ji;zt-=Vi=(jr*pa+Qr*Aa)/ci,cr-=ji=(Qr*pa-jr*Aa)/ci}while(E(Vi)+E(ji)>l*l&&--At>0);if(At){var nn=F(zt*zt+cr*cr),Sn=2*e(nn*.5),Kn=p(Sn);return[t(zt*Kn,nn*r(Sn)),nn?L(cr*Kn/nn):0]}},lt}var ns=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],bh=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Es=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],to=[[.9245,0],[0,0],[.01943,0]],Wc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Vu(){return $l(ns,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function jl(){return $l(bh,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Mf(){return $l(Es,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ac(){return $l(to,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function nf(){return $l(Wc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function $l(He,Je){var lt=x.geoProjection(xh(He)).rotate(Je).clipAngle(90),vt=x.geoRotation(Je),Lt=lt.center;return delete lt.rotate,lt.center=function(At){return arguments.length?Lt(vt(At)):vt.invert(Lt())},lt}var Jf=F(6),Of=F(7);function of(He,Je){var lt=L(7*p(Je)/(3*Jf));return[Jf*He*(2*r(2*lt/3)-1)/Of,9*p(lt/3)/Of]}of.invert=function(He,Je){var lt=3*L(Je*Of/9);return[He*Of/(Jf*(2*r(2*lt/3)-1)),L(p(lt)*3*Jf/7)]};function jc(){return x.geoProjection(of).scale(164.859)}function Bf(He,Je){for(var lt=(1+g)*p(Je),vt=Je,Lt=0,At;Lt<25&&(vt-=At=(p(vt/2)+p(vt)-lt)/(.5*r(vt/2)+r(vt)),!(E(At)<l));Lt++);return[He*(1+2*r(vt)/r(vt/2))/(3*b),2*F(3)*p(vt/2)/F(2+b)]}Bf.invert=function(He,Je){var lt=Je*F(2+b)/(2*F(3)),vt=2*L(lt);return[3*b*He/(1+2*r(vt)/r(vt/2)),L((lt+p(vt))/(1+g))]};function Nf(){return x.geoProjection(Bf).scale(188.209)}function Gu(He,Je){for(var lt=F(6/(4+w)),vt=(1+w/4)*p(Je),Lt=Je/2,At=0,zt;At<25&&(Lt-=zt=(Lt/2+p(Lt)-vt)/(.5+r(Lt)),!(E(zt)<l));At++);return[lt*(.5+r(Lt))*He/1.5,lt*Lt]}Gu.invert=function(He,Je){var lt=F(6/(4+w)),vt=Je/lt;return E(E(vt)-A)<l&&(vt=vt<0?-A:A),[1.5*He/(lt*(.5+r(vt))),L((vt/2+p(vt))/(1+w/4))]};function Ef(){return x.geoProjection(Gu).scale(166.518)}function oc(He,Je){var lt=Je*Je,vt=lt*lt,Lt=lt*vt;return[He*(.84719-.13063*lt+Lt*Lt*(-.04515+.05494*lt-.02326*vt+.00331*Lt)),Je*(1.01183+vt*vt*(-.02625+.01926*lt-.00396*vt))]}oc.invert=function(He,Je){var lt=Je,vt=25,Lt,At,zt,cr;do At=lt*lt,zt=At*At,lt-=Lt=(lt*(1.01183+zt*zt*(-.02625+.01926*At-.00396*zt))-Je)/(1.01183+zt*zt*(9*-.02625+11*.01926*At+13*-.00396*zt));while(E(Lt)>_&&--vt>0);return At=lt*lt,zt=At*At,cr=At*zt,[He/(.84719-.13063*At+cr*cr*(-.04515+.05494*At-.02326*zt+.00331*cr)),lt]};function Xc(){return x.geoProjection(oc).scale(175.295)}function Ql(He,Je){return[He*(1+r(Je))/2,2*(Je-T(Je/2))]}Ql.invert=function(He,Je){for(var lt=Je/2,vt=0,Lt=1/0;vt<10&&E(Lt)>l;++vt){var At=r(Je/2);Je-=Lt=(Je-T(Je/2)-lt)/(1-.5/(At*At))}return[2*He/(1+r(Je)),Je]};function qc(){return x.geoProjection(Ql).scale(152.63)}var Sc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Zs(){return co(ce(1/0),Sc).rotate([20,0]).scale(152.63)}function kf(He,Je){var lt=p(Je),vt=r(Je),Lt=m(He);if(He===0||E(Je)===A)return[0,Je];if(Je===0)return[He,0];if(E(He)===A)return[He*vt,A*lt];var At=w/(2*He)-2*He/w,zt=2*Je/w,cr=(1-zt*zt)/(lt-zt),yr=At*At,Er=cr*cr,jr=1+yr/Er,Qr=1+Er/yr,pa=(At*lt/cr-At/2)/jr,Aa=(Er*lt/yr+cr/2)/Qr,za=pa*pa+vt*vt/jr,ci=Aa*Aa-(Er*lt*lt/yr+cr*lt-1)/Qr;return[A*(pa+F(za)*Lt),A*(Aa+F(ci<0?0:ci)*m(-Je*At)*Lt)]}kf.invert=function(He,Je){He/=A,Je/=A;var lt=He*He,vt=Je*Je,Lt=lt+vt,At=w*w;return[He?(Lt-1+F((1-Lt)*(1-Lt)+4*lt))/(2*He)*A:0,De(function(zt){return Lt*(w*p(zt)-2*zt)*w+4*zt*zt*(Je-p(zt))+2*w*zt-At*Je},0)]};function fh(){return x.geoProjection(kf).scale(127.267)}var Uf=1.0148,Zc=.23185,$f=-.14499,Cu=.02406,jf=Uf,yl=5*Zc,Lu=7*$f,Mc=9*Cu,ol=1.790857183;function vc(He,Je){var lt=Je*Je;return[He,Je*(Uf+lt*lt*(Zc+lt*($f+Cu*lt)))]}vc.invert=function(He,Je){Je>ol?Je=ol:Je<-ol&&(Je=-ol);var lt=Je,vt;do{var Lt=lt*lt;lt-=vt=(lt*(Uf+Lt*Lt*(Zc+Lt*($f+Cu*Lt)))-Je)/(jf+Lt*Lt*(yl+Lt*(Lu+Mc*Lt)))}while(E(vt)>l);return[He,lt]};function yu(){return x.geoProjection(vc).scale(139.319)}function Tu(He,Je){if(E(Je)<l)return[He,0];var lt=T(Je),vt=He*p(Je);return[p(vt)/lt,Je+(1-r(vt))/lt]}Tu.invert=function(He,Je){if(E(Je)<l)return[He,0];var lt=He*He+Je*Je,vt=Je*.5,Lt=10,At;do{var zt=T(vt),cr=1/r(vt),yr=lt-2*Je*vt+vt*vt;vt-=At=(zt*yr+2*(vt-Je))/(2+yr*cr*cr+2*(vt-Je)*zt)}while(E(At)>l&&--Lt>0);return zt=T(vt),[(E(Je)<E(vt+1/zt)?L(He*zt):m(Je)*m(He)*(z(E(He*zt))+A))/p(vt),vt]};function El(){return x.geoProjection(Tu).scale(103.74)}function qf(He,Je){var lt=Ec(He[1],He[0]),vt=Ec(Je[1],Je[0]),Lt=Lh(lt,vt),At=mc(lt)/mc(vt);return Bu([1,0,He[0][0],0,1,He[0][1]],Bu([At,0,0,0,At,0],Bu([r(Lt),p(Lt),0,-p(Lt),r(Lt),0],[1,0,-Je[0][0],0,1,-Je[0][1]])))}function Qf(He){var Je=1/(He[0]*He[4]-He[1]*He[3]);return[Je*He[4],-Je*He[1],Je*(He[1]*He[5]-He[2]*He[4]),-Je*He[3],Je*He[0],Je*(He[2]*He[3]-He[0]*He[5])]}function Bu(He,Je){return[He[0]*Je[0]+He[1]*Je[3],He[0]*Je[1]+He[1]*Je[4],He[0]*Je[2]+He[1]*Je[5]+He[2],He[3]*Je[0]+He[4]*Je[3],He[3]*Je[1]+He[4]*Je[4],He[3]*Je[2]+He[4]*Je[5]+He[5]]}function Ec(He,Je){return[He[0]-Je[0],He[1]-Je[1]]}function mc(He){return F(He[0]*He[0]+He[1]*He[1])}function Lh(He,Je){return t(He[0]*Je[1]-He[1]*Je[0],He[0]*Je[0]+He[1]*Je[1])}function sf(He,Je,lt){vt(He,{transform:null});function vt(Er,jr){if(Er.edges=au(Er.face),jr.face){var Qr=Er.shared=lf(Er.face,jr.face),pa=qf(Qr.map(jr.project),Qr.map(Er.project));Er.transform=jr.transform?Bu(jr.transform,pa):pa;for(var Aa=jr.edges,za=0,ci=Aa.length;za<ci;++za)Nu(Qr[0],Aa[za][1])&&Nu(Qr[1],Aa[za][0])&&(Aa[za]=Er),Nu(Qr[0],Aa[za][0])&&Nu(Qr[1],Aa[za][1])&&(Aa[za]=Er);for(Aa=Er.edges,za=0,ci=Aa.length;za<ci;++za)Nu(Qr[0],Aa[za][0])&&Nu(Qr[1],Aa[za][1])&&(Aa[za]=jr),Nu(Qr[0],Aa[za][1])&&Nu(Qr[1],Aa[za][0])&&(Aa[za]=jr)}else Er.transform=jr.transform;return Er.children&&Er.children.forEach(function(Vi){vt(Vi,Er)}),Er}function Lt(Er,jr){var Qr=Je(Er,jr),pa=Qr.project([Er*y,jr*y]),Aa;return(Aa=Qr.transform)?[Aa[0]*pa[0]+Aa[1]*pa[1]+Aa[2],-(Aa[3]*pa[0]+Aa[4]*pa[1]+Aa[5])]:(pa[1]=-pa[1],pa)}Yc(He)&&(Lt.invert=function(Er,jr){var Qr=At(He,[Er,-jr]);return Qr&&(Qr[0]*=f,Qr[1]*=f,Qr)});function At(Er,jr){var Qr=Er.project.invert,pa=Er.transform,Aa=jr;if(pa&&(pa=Qf(pa),Aa=[pa[0]*Aa[0]+pa[1]*Aa[1]+pa[2],pa[3]*Aa[0]+pa[4]*Aa[1]+pa[5]]),Qr&&Er===zt(za=Qr(Aa)))return za;for(var za,ci=Er.children,Vi=0,ji=ci&&ci.length;Vi<ji;++Vi)if(za=At(ci[Vi],jr))return za}function zt(Er){return Je(Er[0]*f,Er[1]*f)}var cr=x.geoProjection(Lt),yr=cr.stream;return cr.stream=function(Er){var jr=cr.rotate(),Qr=yr(Er),pa=(cr.rotate([0,0]),yr(Er));return cr.rotate(jr),Qr.sphere=function(){pa.polygonStart(),pa.lineStart(),vf(pa,He),pa.lineEnd(),pa.polygonEnd()},Qr},cr.angle(lt==null?-30:lt*y)}function vf(He,Je,lt){var vt,Lt=Je.edges,At=Lt.length,zt,cr={type:"MultiPoint",coordinates:Je.face},yr=Je.face.filter(function(ci){return E(ci[1])!==90}),Er=x.geoBounds({type:"MultiPoint",coordinates:yr}),jr=!1,Qr=-1,pa=Er[1][0]-Er[0][0],Aa=pa===180||pa===360?[(Er[0][0]+Er[1][0])/2,(Er[0][1]+Er[1][1])/2]:x.geoCentroid(cr);if(lt)for(;++Qr<At&&Lt[Qr]!==lt;);++Qr;for(var za=0;za<At;++za)zt=Lt[(za+Qr)%At],Array.isArray(zt)?(jr||(He.point((vt=x.geoInterpolate(zt[0],Aa)(l))[0],vt[1]),jr=!0),He.point((vt=x.geoInterpolate(zt[1],Aa)(l))[0],vt[1])):(jr=!1,zt!==lt&&vf(He,zt,Je))}function Nu(He,Je){return He&&Je&&He[0]===Je[0]&&He[1]===Je[1]}function lf(He,Je){for(var lt,vt,Lt=He.length,At=null,zt=0;zt<Lt;++zt){lt=He[zt];for(var cr=Je.length;--cr>=0;)if(vt=Je[cr],lt[0]===vt[0]&&lt[1]===vt[1]){if(At)return[At,lt];At=lt}}}function au(He){for(var Je=He.length,lt=[],vt=He[Je-1],Lt=0;Lt<Je;++Lt)lt.push([vt,vt=He[Lt]]);return lt}function Yc(He){return He.project.invert||He.children&&He.children.some(Yc)}var hh=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],mf=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(He){return He.map(function(Je){return hh[Je]})});function sl(He){He=He||function(lt){var vt=x.geoCentroid({type:"MultiPoint",coordinates:lt});return x.geoGnomonic().scale(1).translate([0,0]).rotate([-vt[0],-vt[1]])};var Je=mf.map(function(lt){return{face:lt,project:He(lt)}});return[-1,0,0,1,0,1,4,5].forEach(function(lt,vt){var Lt=Je[lt];Lt&&(Lt.children||(Lt.children=[])).push(Je[vt])}),sf(Je[0],function(lt,vt){return Je[lt<-w/2?vt<0?6:4:lt<0?vt<0?2:0:lt<w/2?vt<0?3:1:vt<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var _u=2/F(3);function Pu(He,Je){var lt=Ve(He,Je);return[lt[0]*_u,lt[1]]}Pu.invert=function(He,Je){return Ve.invert(He/_u,Je)};function Cf(He){He=He||function(lt){var vt=x.geoCentroid({type:"MultiPoint",coordinates:lt});return x.geoProjection(Pu).translate([0,0]).scale(1).rotate(vt[1]>0?[-vt[0],0]:[180-vt[0],180])};var Je=mf.map(function(lt){return{face:lt,project:He(lt)}});return[-1,0,0,1,0,1,4,5].forEach(function(lt,vt){var Lt=Je[lt];Lt&&(Lt.children||(Lt.children=[])).push(Je[vt])}),sf(Je[0],function(lt,vt){return Je[lt<-w/2?vt<0?6:4:lt<0?vt<0?2:0:lt<w/2?vt<0?3:1:vt<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function hl(He){He=He||function(zt){var cr=zt.length===6?x.geoCentroid({type:"MultiPoint",coordinates:zt}):zt[0];return x.geoGnomonic().scale(1).translate([0,0]).rotate([-cr[0],-cr[1]])};var Je=mf.map(function(zt){for(var cr=zt.map(gf),yr=cr.length,Er=cr[yr-1],jr,Qr=[],pa=0;pa<yr;++pa)jr=cr[pa],Qr.push(Hu([Er[0]*.9486832980505138+jr[0]*.31622776601683794,Er[1]*.9486832980505138+jr[1]*.31622776601683794,Er[2]*.9486832980505138+jr[2]*.31622776601683794]),Hu([jr[0]*.9486832980505138+Er[0]*.31622776601683794,jr[1]*.9486832980505138+Er[1]*.31622776601683794,jr[2]*.9486832980505138+Er[2]*.31622776601683794])),Er=jr;return Qr}),lt=[],vt=[-1,0,0,1,0,1,4,5];Je.forEach(function(zt,cr){for(var yr=mf[cr],Er=yr.length,jr=lt[cr]=[],Qr=0;Qr<Er;++Qr)Je.push([yr[Qr],zt[(Qr*2+2)%(2*Er)],zt[(Qr*2+1)%(2*Er)]]),vt.push(cr),jr.push(kc(gf(zt[(Qr*2+2)%(2*Er)]),gf(zt[(Qr*2+1)%(2*Er)])))});var Lt=Je.map(function(zt){return{project:He(zt),face:zt}});vt.forEach(function(zt,cr){var yr=Lt[zt];yr&&(yr.children||(yr.children=[])).push(Lt[cr])});function At(zt,cr){var yr=r(cr),Er=[yr*r(zt),yr*p(zt),p(cr)],jr=zt<-w/2?cr<0?6:4:zt<0?cr<0?2:0:zt<w/2?cr<0?3:1:cr<0?7:5,Qr=lt[jr];return Lt[uf(Qr[0],Er)<0?8+3*jr:uf(Qr[1],Er)<0?8+3*jr+1:uf(Qr[2],Er)<0?8+3*jr+2:jr]}return sf(Lt[0],At).angle(-30).scale(110.625).center([0,45])}function uf(He,Je){for(var lt=0,vt=He.length,Lt=0;lt<vt;++lt)Lt+=He[lt]*Je[lt];return Lt}function kc(He,Je){return[He[1]*Je[2]-He[2]*Je[1],He[2]*Je[0]-He[0]*Je[2],He[0]*Je[1]-He[1]*Je[0]]}function Hu(He){return[t(He[1],He[0])*y,L(i(-1,s(1,He[2])))*y]}function gf(He){var Je=He[0]*f,lt=He[1]*f,vt=r(lt);return[vt*r(Je),vt*p(Je),p(lt)]}function Wu(){}function Kc(He){if((lt=He.length)<4)return!1;for(var Je=0,lt,vt=He[lt-1][1]*He[0][0]-He[lt-1][0]*He[0][1];++Je<lt;)vt+=He[Je-1][1]*He[Je][0]-He[Je-1][0]*He[Je][1];return vt<=0}function Lf(He,Je){for(var lt=Je[0],vt=Je[1],Lt=!1,At=0,zt=He.length,cr=zt-1;At<zt;cr=At++){var yr=He[At],Er=yr[0],jr=yr[1],Qr=He[cr],pa=Qr[0],Aa=Qr[1];jr>vt^Aa>vt&&lt<(pa-Er)*(vt-jr)/(Aa-jr)+Er&&(Lt=!Lt)}return Lt}function iu(He,Je){var lt=Je.stream,vt;if(!lt)throw new Error("invalid projection");switch(He&&He.type){case"Feature":vt=Xu;break;case"FeatureCollection":vt=Vf;break;default:vt=gc;break}return vt(He,lt)}function Vf(He,Je){return{type:"FeatureCollection",features:He.features.map(function(lt){return Xu(lt,Je)})}}function Xu(He,Je){return{type:"Feature",id:He.id,properties:He.properties,geometry:gc(He.geometry,Je)}}function Cc(He,Je){return{type:"GeometryCollection",geometries:He.geometries.map(function(lt){return gc(lt,Je)})}}function gc(He,Je){if(!He)return null;if(He.type==="GeometryCollection")return Cc(He,Je);var lt;switch(He.type){case"Point":lt=Lc;break;case"MultiPoint":lt=Lc;break;case"LineString":lt=Jc;break;case"MultiLineString":lt=Jc;break;case"Polygon":lt=sc;break;case"MultiPolygon":lt=sc;break;case"Sphere":lt=sc;break;default:return null}return x.geoStream(He,Je(lt)),lt.result()}var ql=[],xu=[],Lc={point:function(He,Je){ql.push([He,Je])},result:function(){var He=ql.length?ql.length<2?{type:"Point",coordinates:ql[0]}:{type:"MultiPoint",coordinates:ql}:null;return ql=[],He}},Jc={lineStart:Wu,point:function(He,Je){ql.push([He,Je])},lineEnd:function(){ql.length&&(xu.push(ql),ql=[])},result:function(){var He=xu.length?xu.length<2?{type:"LineString",coordinates:xu[0]}:{type:"MultiLineString",coordinates:xu}:null;return xu=[],He}},sc={polygonStart:Wu,lineStart:Wu,point:function(He,Je){ql.push([He,Je])},lineEnd:function(){var He=ql.length;if(He){do ql.push(ql[0].slice());while(++He<4);xu.push(ql),ql=[]}},polygonEnd:Wu,result:function(){if(!xu.length)return null;var He=[],Je=[];return xu.forEach(function(lt){Kc(lt)?He.push([lt]):Je.push(lt)}),Je.forEach(function(lt){var vt=lt[0];He.some(function(Lt){if(Lf(Lt[0],vt))return Lt.push(lt),!0})||He.push([lt])}),xu=[],He.length?He.length>1?{type:"MultiPolygon",coordinates:He}:{type:"Polygon",coordinates:He[0]}:null}};function Pc(He){var Je=He(A,0)[0]-He(-A,0)[0];function lt(vt,Lt){var At=E(vt)<A,zt=He(At?vt:vt>0?vt-w:vt+w,Lt),cr=(zt[0]-zt[1])*g,yr=(zt[0]+zt[1])*g;if(At)return[cr,yr];var Er=Je*g,jr=cr>0^yr>0?-1:1;return[jr*cr-m(yr)*Er,jr*yr-m(cr)*Er]}return He.invert&&(lt.invert=function(vt,Lt){var At=(vt+Lt)*g,zt=(Lt-vt)*g,cr=E(At)<.5*Je&&E(zt)<.5*Je;if(!cr){var yr=Je*g,Er=At>0^zt>0?-1:1,jr=-Er*vt+(zt>0?1:-1)*yr,Qr=-Er*Lt+(At>0?1:-1)*yr;At=(-jr-Qr)*g,zt=(jr-Qr)*g}var pa=He.invert(At,zt);return cr||(pa[0]+=At>0?w:-w),pa}),x.geoProjection(lt).rotate([-90,-90,45]).clipAngle(180-.001)}function Qt(){return Pc(la).scale(176.423)}function br(){return Pc(On).scale(111.48)}function aa(He,Je){if(!(0<=(Je=+Je)&&Je<=20))throw new Error("invalid digits");function lt(Er){var jr=Er.length,Qr=2,pa=new Array(jr);for(pa[0]=+Er[0].toFixed(Je),pa[1]=+Er[1].toFixed(Je);Qr<jr;)pa[Qr]=Er[Qr],++Qr;return pa}function vt(Er){return Er.map(lt)}function Lt(Er){for(var jr=lt(Er[0]),Qr=[jr],pa=1;pa<Er.length;pa++){var Aa=lt(Er[pa]);(Aa.length>2||Aa[0]!=jr[0]||Aa[1]!=jr[1])&&(Qr.push(Aa),jr=Aa)}return Qr.length===1&&Er.length>1&&Qr.push(lt(Er[Er.length-1])),Qr}function At(Er){return Er.map(Lt)}function zt(Er){if(Er==null)return Er;var jr;switch(Er.type){case"GeometryCollection":jr={type:"GeometryCollection",geometries:Er.geometries.map(zt)};break;case"Point":jr={type:"Point",coordinates:lt(Er.coordinates)};break;case"MultiPoint":jr={type:Er.type,coordinates:vt(Er.coordinates)};break;case"LineString":jr={type:Er.type,coordinates:Lt(Er.coordinates)};break;case"MultiLineString":case"Polygon":jr={type:Er.type,coordinates:At(Er.coordinates)};break;case"MultiPolygon":jr={type:"MultiPolygon",coordinates:Er.coordinates.map(At)};break;default:return Er}return Er.bbox!=null&&(jr.bbox=Er.bbox),jr}function cr(Er){var jr={type:"Feature",properties:Er.properties,geometry:zt(Er.geometry)};return Er.id!=null&&(jr.id=Er.id),Er.bbox!=null&&(jr.bbox=Er.bbox),jr}if(He!=null)switch(He.type){case"Feature":return cr(He);case"FeatureCollection":{var yr={type:"FeatureCollection",features:He.features.map(cr)};return He.bbox!=null&&(yr.bbox=He.bbox),yr}default:return zt(He)}return He}function $r(He){var Je=p(He);function lt(vt,Lt){var At=Je?T(vt*Je/2)/Je:vt/2;if(!Lt)return[2*At,-He];var zt=2*e(At*p(Lt)),cr=1/T(Lt);return[p(zt)*cr,Lt+(1-r(zt))*cr-He]}return lt.invert=function(vt,Lt){if(E(Lt+=He)<l)return[Je?2*e(Je*vt/2)/Je:vt,0];var At=vt*vt+Lt*Lt,zt=0,cr=10,yr;do{var Er=T(zt),jr=1/r(zt),Qr=At-2*Lt*zt+zt*zt;zt-=yr=(Er*Qr+2*(zt-Lt))/(2+Qr*jr*jr+2*(zt-Lt)*Er)}while(E(yr)>l&&--cr>0);var pa=vt*(Er=T(zt)),Aa=T(E(Lt)<E(zt+1/Er)?L(pa)*.5:z(pa)*.5+w/4)/p(zt);return[Je?2*e(Je*Aa)/Je:2*Aa,zt]},lt}function ka(){return ot($r).scale(131.215)}var li=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];li.forEach(function(He){He[1]*=1.0144});function Ci(He,Je){var lt=s(18,E(Je)*36/w),vt=a(lt),Lt=lt-vt,At=(Qr=li[vt])[0],zt=Qr[1],cr=(Qr=li[++vt])[0],yr=Qr[1],Er=(Qr=li[s(19,++vt)])[0],jr=Qr[1],Qr;return[He*(cr+Lt*(Er-At)/2+Lt*Lt*(Er-2*cr+At)/2),(Je>0?A:-A)*(yr+Lt*(jr-zt)/2+Lt*Lt*(jr-2*yr+zt)/2)]}Ci.invert=function(He,Je){var lt=Je/A,vt=lt*90,Lt=s(18,E(vt/5)),At=i(0,a(Lt));do{var zt=li[At][1],cr=li[At+1][1],yr=li[s(19,At+2)][1],Er=yr-zt,jr=yr-2*cr+zt,Qr=2*(E(lt)-cr)/Er,pa=jr/Er,Aa=Qr*(1-pa*Qr*(1-2*pa*Qr));if(Aa>=0||At===1){vt=(Je>=0?5:-5)*(Aa+Lt);var za=50,ci;do Lt=s(18,E(vt)/5),At=a(Lt),Aa=Lt-At,zt=li[At][1],cr=li[At+1][1],yr=li[s(19,At+2)][1],vt-=(ci=(Je>=0?A:-A)*(cr+Aa*(yr-zt)/2+Aa*Aa*(yr-2*cr+zt)/2)-Je)*y;while(E(ci)>_&&--za>0);break}}while(--At>=0);var Vi=li[At][0],ji=li[At+1][0],nn=li[s(19,At+2)][0];return[He/(ji+Aa*(nn-Vi)/2+Aa*Aa*(nn-2*ji+Vi)/2),vt*f]};function Hi(){return x.geoProjection(Ci).scale(152.63)}function Qi(He){function Je(lt,vt){var Lt=r(vt),At=(He-1)/(He-Lt*r(lt));return[At*Lt*p(lt),At*p(vt)]}return Je.invert=function(lt,vt){var Lt=lt*lt+vt*vt,At=F(Lt),zt=(He-F(1-Lt*(He+1)/(He-1)))/((He-1)/At+At/(He-1));return[t(lt*zt,At*F(1-zt*zt)),At?L(vt*zt/At):0]},Je}function dn(He,Je){var lt=Qi(He);if(!Je)return lt;var vt=r(Je),Lt=p(Je);function At(zt,cr){var yr=lt(zt,cr),Er=yr[1],jr=Er*Lt/(He-1)+vt;return[yr[0]*vt/jr,Er/jr]}return At.invert=function(zt,cr){var yr=(He-1)/(He-1-cr*Lt);return lt.invert(yr*zt,yr*cr*vt)},At}function Pi(){var He=2,Je=0,lt=x.geoProjectionMutator(dn),vt=lt(He,Je);return vt.distance=function(Lt){return arguments.length?lt(He=+Lt,Je):He},vt.tilt=function(Lt){return arguments.length?lt(He,Je=Lt*f):Je*y},vt.scale(432.147).clipAngle(z(1/He)*y-1e-6)}var Di=1e-4,Ni=1e4,mi=-180,Mn=mi+Di,Qn=180,ao=Qn-Di,eo=-90,fo=eo+Di,An=90,un=An-Di;function yo(He){return He.length>0}function Ko(He){return Math.floor(He*Ni)/Ni}function Ss(He){return He===eo||He===An?[0,He]:[mi,Ko(He)]}function rl(He){var Je=He[0],lt=He[1],vt=!1;return Je<=Mn?(Je=mi,vt=!0):Je>=ao&&(Je=Qn,vt=!0),lt<=fo?(lt=eo,vt=!0):lt>=un&&(lt=An,vt=!0),vt?[Je,lt]:He}function Os(He){return He.map(rl)}function el(He,Je,lt){for(var vt=0,Lt=He.length;vt<Lt;++vt){var At=He[vt].slice();lt.push({index:-1,polygon:Je,ring:At});for(var zt=0,cr=At.length;zt<cr;++zt){var yr=At[zt],Er=yr[0],jr=yr[1];if(Er<=Mn||Er>=ao||jr<=fo||jr>=un){At[zt]=rl(yr);for(var Qr=zt+1;Qr<cr;++Qr){var pa=At[Qr],Aa=pa[0],za=pa[1];if(Aa>Mn&&Aa<ao&&za>fo&&za<un)break}if(Qr===zt+1)continue;if(zt){var ci={index:-1,polygon:Je,ring:At.slice(0,zt+1)};ci.ring[ci.ring.length-1]=Ss(jr),lt[lt.length-1]=ci}else lt.pop();if(Qr>=cr)break;lt.push({index:-1,polygon:Je,ring:At=At.slice(Qr-1)}),At[0]=Ss(At[0][1]),zt=-1,cr=At.length}}}}function bs(He){var Je,lt=He.length,vt={},Lt={},At,zt,cr,yr,Er;for(Je=0;Je<lt;++Je){if(At=He[Je],zt=At.ring[0],yr=At.ring[At.ring.length-1],zt[0]===yr[0]&&zt[1]===yr[1]){At.polygon.push(At.ring),He[Je]=null;continue}At.index=Je,vt[zt]=Lt[yr]=At}for(Je=0;Je<lt;++Je)if(At=He[Je],At){if(zt=At.ring[0],yr=At.ring[At.ring.length-1],cr=Lt[zt],Er=vt[yr],delete vt[zt],delete Lt[yr],zt[0]===yr[0]&&zt[1]===yr[1]){At.polygon.push(At.ring);continue}cr?(delete Lt[zt],delete vt[cr.ring[0]],cr.ring.pop(),He[cr.index]=null,At={index:-1,polygon:cr.polygon,ring:cr.ring.concat(At.ring)},cr===Er?At.polygon.push(At.ring):(At.index=lt++,He.push(vt[At.ring[0]]=Lt[At.ring[At.ring.length-1]]=At))):Er?(delete vt[yr],delete Lt[Er.ring[Er.ring.length-1]],At.ring.pop(),At={index:lt++,polygon:Er.polygon,ring:At.ring.concat(Er.ring)},He[Er.index]=null,He.push(vt[At.ring[0]]=Lt[At.ring[At.ring.length-1]]=At)):(At.ring.push(At.ring[0]),At.polygon.push(At.ring))}}function Fl(He){var Je={type:"Feature",geometry:_l(He.geometry)};return He.id!=null&&(Je.id=He.id),He.bbox!=null&&(Je.bbox=He.bbox),He.properties!=null&&(Je.properties=He.properties),Je}function _l(He){if(He==null)return He;var Je,lt,vt,Lt;switch(He.type){case"GeometryCollection":Je={type:"GeometryCollection",geometries:He.geometries.map(_l)};break;case"Point":Je={type:"Point",coordinates:rl(He.coordinates)};break;case"MultiPoint":case"LineString":Je={type:He.type,coordinates:Os(He.coordinates)};break;case"MultiLineString":Je={type:"MultiLineString",coordinates:He.coordinates.map(Os)};break;case"Polygon":{var At=[];el(He.coordinates,At,lt=[]),bs(lt),Je={type:"Polygon",coordinates:At};break}case"MultiPolygon":{lt=[],vt=-1,Lt=He.coordinates.length;for(var zt=new Array(Lt);++vt<Lt;)el(He.coordinates[vt],zt[vt]=[],lt);bs(lt),Je={type:"MultiPolygon",coordinates:zt.filter(yo)};break}default:return He}return He.bbox!=null&&(Je.bbox=He.bbox),Je}function ll(He){if(He==null)return He;switch(He.type){case"Feature":return Fl(He);case"FeatureCollection":{var Je={type:"FeatureCollection",features:He.features.map(Fl)};return He.bbox!=null&&(Je.bbox=He.bbox),Je}default:return _l(He)}}function Un(He,Je){var lt=T(Je/2),vt=p(M*lt);return[He*(.74482-.34588*vt*vt),1.70711*lt]}Un.invert=function(He,Je){var lt=Je/1.70711,vt=p(M*lt);return[He/(.74482-.34588*vt*vt),2*e(lt)]};function Lo(){return x.geoProjection(Un).scale(146.153)}function Js(He,Je,lt){var vt=x.geoInterpolate(Je,lt),Lt=vt(.5),At=x.geoRotation([-Lt[0],-Lt[1]])(Je),zt=vt.distance/2,cr=-L(p(At[1]*f)/p(zt)),yr=[-Lt[0],-Lt[1],-(At[0]>0?w-cr:cr)*y],Er=x.geoProjection(He(zt)).rotate(yr),jr=x.geoRotation(yr),Qr=Er.center;return delete Er.rotate,Er.center=function(pa){return arguments.length?Qr(jr(pa)):jr.invert(Qr())},Er.clipAngle(90)}function Rs(He){var Je=r(He);function lt(vt,Lt){var At=x.geoGnomonicRaw(vt,Lt);return At[0]*=Je,At}return lt.invert=function(vt,Lt){return x.geoGnomonicRaw.invert(vt/Je,Lt)},lt}function uu(){return Iu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Iu(He,Je){return Js(Rs,He,Je)}function Zu(He){if(!(He*=2))return x.geoAzimuthalEquidistantRaw;var Je=-He/2,lt=-Je,vt=He*He,Lt=T(lt),At=.5/p(lt);function zt(cr,yr){var Er=z(r(yr)*r(cr-Je)),jr=z(r(yr)*r(cr-lt)),Qr=yr<0?-1:1;return Er*=Er,jr*=jr,[(Er-jr)/(2*He),Qr*F(4*vt*jr-(vt-Er+jr)*(vt-Er+jr))/(2*He)]}return zt.invert=function(cr,yr){var Er=yr*yr,jr=r(F(Er+(pa=cr+Je)*pa)),Qr=r(F(Er+(pa=cr+lt)*pa)),pa,Aa;return[t(Aa=jr-Qr,pa=(jr+Qr)*Lt),(yr<0?-1:1)*z(F(pa*pa+Aa*Aa)*At)]},zt}function Ic(){return bu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function bu(He,Je){return Js(Zu,He,Je)}function Rc(He,Je){if(E(Je)<l)return[He,0];var lt=E(Je/A),vt=L(lt);if(E(He)<l||E(E(Je)-A)<l)return[0,m(Je)*w*T(vt/2)];var Lt=r(vt),At=E(w/He-He/w)/2,zt=At*At,cr=Lt/(lt+Lt-1),yr=cr*(2/lt-1),Er=yr*yr,jr=Er+zt,Qr=cr-Er,pa=zt+cr;return[m(He)*w*(At*Qr+F(zt*Qr*Qr-jr*(cr*cr-Er)))/jr,m(Je)*w*(yr*pa-At*F((zt+1)*jr-pa*pa))/jr]}Rc.invert=function(He,Je){if(E(Je)<l)return[He,0];if(E(He)<l)return[0,A*p(2*e(Je/w))];var lt=(He/=w)*He,vt=(Je/=w)*Je,Lt=lt+vt,At=Lt*Lt,zt=-E(Je)*(1+Lt),cr=zt-2*vt+lt,yr=-2*zt+1+2*vt+At,Er=vt/yr+(2*cr*cr*cr/(yr*yr*yr)-9*zt*cr/(yr*yr))/27,jr=(zt-cr*cr/(3*yr))/yr,Qr=2*F(-jr/3),pa=z(3*Er/(jr*Qr))/3;return[w*(Lt-1+F(1+2*(lt-vt)+At))/(2*He),m(Je)*w*(-Qr*r(pa+w/3)-cr/(3*yr))]};function Au(){return x.geoProjection(Rc).scale(79.4183)}function yc(He,Je){if(E(Je)<l)return[He,0];var lt=E(Je/A),vt=L(lt);if(E(He)<l||E(E(Je)-A)<l)return[0,m(Je)*w*T(vt/2)];var Lt=r(vt),At=E(w/He-He/w)/2,zt=At*At,cr=Lt*(F(1+zt)-At*Lt)/(1+zt*lt*lt);return[m(He)*w*cr,m(Je)*w*F(1-cr*(2*At+cr))]}yc.invert=function(He,Je){if(!He)return[0,A*p(2*e(Je/w))];var lt=E(He/w),vt=(1-lt*lt-(Je/=w)*Je)/(2*lt),Lt=vt*vt,At=F(Lt+1);return[m(He)*w*(At-vt),m(Je)*A*p(2*t(F((1-2*vt*lt)*(vt+At)-lt),F(At+vt+lt)))]};function ho(){return x.geoProjection(yc).scale(79.4183)}function Ro(He,Je){if(E(Je)<l)return[He,0];var lt=Je/A,vt=L(lt);if(E(He)<l||E(E(Je)-A)<l)return[0,w*T(vt/2)];var Lt=(w/He-He/w)/2,At=lt/(1+r(vt));return[w*(m(He)*F(Lt*Lt+1-At*At)-Lt),w*At]}Ro.invert=function(He,Je){if(!Je)return[He,0];var lt=Je/w,vt=(w*w*(1-lt*lt)-He*He)/(2*w*He);return[He?w*(m(He)*F(vt*vt+1)-vt):0,A*p(2*e(lt))]};function Dc(){return x.geoProjection(Ro).scale(79.4183)}function lc(He,Je){if(!Je)return[He,0];var lt=E(Je);if(!He||lt===A)return[0,Je];var vt=lt/A,Lt=vt*vt,At=(8*vt-Lt*(Lt+2)-5)/(2*Lt*(vt-1)),zt=At*At,cr=vt*At,yr=Lt+zt+2*cr,Er=vt+3*At,jr=He/A,Qr=jr+1/jr,pa=m(E(He)-A)*F(Qr*Qr-4),Aa=pa*pa,za=yr*(Lt+zt*Aa-1)+(1-Lt)*(Lt*(Er*Er+4*zt)+12*cr*zt+4*zt*zt),ci=(pa*(yr+zt-1)+2*F(za))/(4*yr+Aa);return[m(He)*A*ci,m(Je)*A*F(1+pa*E(ci)-ci*ci)]}lc.invert=function(He,Je){var lt;if(!He||!Je)return[He,Je];Je/=w;var vt=m(He)*He/A,Lt=(vt*vt-1+4*Je*Je)/E(vt),At=Lt*Lt,zt=2*Je,cr=50;do{var yr=zt*zt,Er=(8*zt-yr*(yr+2)-5)/(2*yr*(zt-1)),jr=(3*zt-yr*zt-10)/(2*yr*zt),Qr=Er*Er,pa=zt*Er,Aa=zt+Er,za=Aa*Aa,ci=zt+3*Er,Vi=za*(yr+Qr*At-1)+(1-yr)*(yr*(ci*ci+4*Qr)+Qr*(12*pa+4*Qr)),ji=-2*Aa*(4*pa*Qr+(1-4*yr+3*yr*yr)*(1+jr)+Qr*(-6+14*yr-At+(-8+8*yr-2*At)*jr)+pa*(-8+12*yr+(-10+10*yr-At)*jr)),nn=F(Vi),Sn=Lt*(za+Qr-1)+2*nn-vt*(4*za+At),Kn=Lt*(2*Er*jr+2*Aa*(1+jr))+ji/nn-8*Aa*(Lt*(-1+Qr+za)+2*nn)*(1+jr)/(At+4*za);zt-=lt=Sn/Kn}while(lt>l&&--cr>0);return[m(He)*(F(Lt*Lt+4)+Lt)*w/4,A*zt]};function Yu(){return x.geoProjection(lc).scale(127.16)}function Ue(He,Je,lt,vt,Lt){function At(zt,cr){var yr=lt*p(vt*cr),Er=F(1-yr*yr),jr=F(2/(1+Er*r(zt*=Lt)));return[He*Er*jr*p(zt),Je*yr*jr]}return At.invert=function(zt,cr){var yr=zt/He,Er=cr/Je,jr=F(yr*yr+Er*Er),Qr=2*L(jr/2);return[t(zt*T(Qr),He*jr)/Lt,jr&&L(cr*p(Qr)/(Je*lt*jr))/vt]},At}function I(He,Je,lt,vt){var Lt=w/3;He=i(He,l),Je=i(Je,l),He=s(He,A),Je=s(Je,w-l),lt=i(lt,0),lt=s(lt,100-l),vt=i(vt,l);var At=lt/100+1,zt=vt/100,cr=z(At*r(Lt))/Lt,yr=p(He)/p(cr*A),Er=Je/w,jr=F(zt*p(He/2)/p(Je/2)),Qr=jr/F(Er*yr*cr),pa=1/(jr*F(Er*yr*cr));return Ue(Qr,pa,yr,cr,Er)}function ie(){var He=65*f,Je=60*f,lt=20,vt=200,Lt=x.geoProjectionMutator(I),At=Lt(He,Je,lt,vt);return At.poleline=function(zt){return arguments.length?Lt(He=+zt*f,Je,lt,vt):He*y},At.parallels=function(zt){return arguments.length?Lt(He,Je=+zt*f,lt,vt):Je*y},At.inflation=function(zt){return arguments.length?Lt(He,Je,lt=+zt,vt):lt},At.ratio=function(zt){return arguments.length?Lt(He,Je,lt,vt=+zt):vt},At.scale(163.775)}function we(){return ie().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Se=4*w+3*F(3),Be=2*F(2*w*F(3)/Se),dt=rt(Be*F(3)/w,Be,Se/6);function St(){return x.geoProjection(dt).scale(176.84)}function Nt(He,Je){return[He*F(1-3*Je*Je/(w*w)),Je]}Nt.invert=function(He,Je){return[He/F(1-3*Je*Je/(w*w)),Je]};function $t(){return x.geoProjection(Nt).scale(152.63)}function Tr(He,Je){var lt=r(Je),vt=r(He)*lt,Lt=1-vt,At=r(He=t(p(He)*lt,-p(Je))),zt=p(He);return lt=F(1-vt*vt),[zt*lt-At*Lt,-At*lt-zt*Lt]}Tr.invert=function(He,Je){var lt=(He*He+Je*Je)/-2,vt=F(-lt*(2+lt)),Lt=Je*lt+He*vt,At=He*lt-Je*vt,zt=F(At*At+Lt*Lt);return[t(vt*Lt,zt*(1+lt)),zt?-L(vt*At/zt):0]};function Ar(){return x.geoProjection(Tr).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Kr(He,Je){var lt=se(He,Je);return[(lt[0]+He/A)/2,(lt[1]+Je)/2]}Kr.invert=function(He,Je){var lt=He,vt=Je,Lt=25;do{var At=r(vt),zt=p(vt),cr=p(2*vt),yr=zt*zt,Er=At*At,jr=p(lt),Qr=r(lt/2),pa=p(lt/2),Aa=pa*pa,za=1-Er*Qr*Qr,ci=za?z(At*Qr)*F(Vi=1/za):Vi=0,Vi,ji=.5*(2*ci*At*pa+lt/A)-He,nn=.5*(ci*zt+vt)-Je,Sn=.5*Vi*(Er*Aa+ci*At*Qr*yr)+.5/A,Kn=Vi*(jr*cr/4-ci*zt*pa),Bn=.125*Vi*(cr*pa-ci*zt*Er*jr),wo=.5*Vi*(yr*Qr+ci*Aa*At)+.5,is=Kn*Bn-wo*Sn,Ao=(nn*Kn-ji*wo)/is,Zo=(ji*Bn-nn*Sn)/is;lt-=Ao,vt-=Zo}while((E(Ao)>l||E(Zo)>l)&&--Lt>0);return[lt,vt]};function na(){return x.geoProjection(Kr).scale(158.837)}v.geoNaturalEarth=x.geoNaturalEarth1,v.geoNaturalEarthRaw=x.geoNaturalEarth1Raw,v.geoAiry=$,v.geoAiryRaw=X,v.geoAitoff=le,v.geoAitoffRaw=se,v.geoArmadillo=V,v.geoArmadilloRaw=fe,v.geoAugust=ee,v.geoAugustRaw=Y,v.geoBaker=j,v.geoBakerRaw=ae,v.geoBerghaus=re,v.geoBerghausRaw=Q,v.geoBertin1953=at,v.geoBertin1953Raw=Ze,v.geoBoggs=tt,v.geoBoggsRaw=Oe,v.geoBonne=qt,v.geoBonneRaw=It,v.geoBottomley=kr,v.geoBottomleyRaw=Wt,v.geoBromley=qr,v.geoBromleyRaw=mr,v.geoChamberlin=Ie,v.geoChamberlinRaw=Ne,v.geoChamberlinAfrica=Te,v.geoCollignon=Ce,v.geoCollignonRaw=Ve,v.geoCraig=Pe,v.geoCraigRaw=Ee,v.geoCraster=_t,v.geoCrasterRaw=ct,v.geoCylindricalEqualArea=ir,v.geoCylindricalEqualAreaRaw=Ct,v.geoCylindricalStereographic=er,v.geoCylindricalStereographicRaw=rr,v.geoEckert1=fa,v.geoEckert1Raw=Lr,v.geoEckert2=Ia,v.geoEckert2Raw=Da,v.geoEckert3=Wa,v.geoEckert3Raw=qa,v.geoEckert4=hi,v.geoEckert4Raw=Ca,v.geoEckert5=Kt,v.geoEckert5Raw=wi,v.geoEckert6=Yt,v.geoEckert6Raw=Ft,v.geoEisenlohr=ta,v.geoEisenlohrRaw=Fr,v.geoFahey=Ba,v.geoFaheyRaw=ca,v.geoFoucaut=Za,v.geoFoucautRaw=$a,v.geoFoucautSinusoidal=pi,v.geoFoucautSinusoidalRaw=ri,v.geoGilbert=on,v.geoGingery=Br,v.geoGingeryRaw=hn,v.geoGinzburg4=Ir,v.geoGinzburg4Raw=xr,v.geoGinzburg5=Hr,v.geoGinzburg5Raw=Ur,v.geoGinzburg6=Xt,v.geoGinzburg6Raw=xt,v.geoGinzburg8=Or,v.geoGinzburg8Raw=vr,v.geoGinzburg9=Pa,v.geoGinzburg9Raw=ba,v.geoGringorten=ki,v.geoGringortenRaw=la,v.geoGuyou=lo,v.geoGuyouRaw=On,v.geoHammer=Ae,v.geoHammerRaw=ce,v.geoHammerRetroazimuthal=Oo,v.geoHammerRetroazimuthalRaw=Wo,v.geoHealpix=ls,v.geoHealpixRaw=Ns,v.geoHill=Ks,v.geoHillRaw=Cs,v.geoHomolosine=Gn,v.geoHomolosineRaw=_s,v.geoHufnagel=vs,v.geoHufnagelRaw=zs,v.geoHyperelliptical=ko,v.geoHyperellipticalRaw=xn,v.geoInterrupt=co,v.geoInterruptedBoggs=vl,v.geoInterruptedHomolosine=js,v.geoInterruptedMollweide=As,v.geoInterruptedMollweideHemispheres=su,v.geoInterruptedSinuMollweide=du,v.geoInterruptedSinusoidal=Uc,v.geoKavrayskiy7=dc,v.geoKavrayskiy7Raw=Fs,v.geoLagrange=lu,v.geoLagrangeRaw=Hc,v.geoLarrivee=Ou,v.geoLarriveeRaw=ic,v.geoLaskowski=ml,v.geoLaskowskiRaw=nl,v.geoLittrow=Xs,v.geoLittrowRaw=xs,v.geoLoximuthal=Ul,v.geoLoximuthalRaw=nc,v.geoMiller=fl,v.geoMillerRaw=qu,v.geoModifiedStereographic=$l,v.geoModifiedStereographicRaw=xh,v.geoModifiedStereographicAlaska=Vu,v.geoModifiedStereographicGs48=jl,v.geoModifiedStereographicGs50=Mf,v.geoModifiedStereographicMiller=Ac,v.geoModifiedStereographicLee=nf,v.geoMollweide=Me,v.geoMollweideRaw=st,v.geoMtFlatPolarParabolic=jc,v.geoMtFlatPolarParabolicRaw=of,v.geoMtFlatPolarQuartic=Nf,v.geoMtFlatPolarQuarticRaw=Bf,v.geoMtFlatPolarSinusoidal=Ef,v.geoMtFlatPolarSinusoidalRaw=Gu,v.geoNaturalEarth2=Xc,v.geoNaturalEarth2Raw=oc,v.geoNellHammer=qc,v.geoNellHammerRaw=Ql,v.geoInterruptedQuarticAuthalic=Zs,v.geoNicolosi=fh,v.geoNicolosiRaw=kf,v.geoPatterson=yu,v.geoPattersonRaw=vc,v.geoPolyconic=El,v.geoPolyconicRaw=Tu,v.geoPolyhedral=sf,v.geoPolyhedralButterfly=sl,v.geoPolyhedralCollignon=Cf,v.geoPolyhedralWaterman=hl,v.geoProject=iu,v.geoGringortenQuincuncial=Qt,v.geoPeirceQuincuncial=br,v.geoPierceQuincuncial=br,v.geoQuantize=aa,v.geoQuincuncial=Pc,v.geoRectangularPolyconic=ka,v.geoRectangularPolyconicRaw=$r,v.geoRobinson=Hi,v.geoRobinsonRaw=Ci,v.geoSatellite=Pi,v.geoSatelliteRaw=dn,v.geoSinuMollweide=Us,v.geoSinuMollweideRaw=Ln,v.geoSinusoidal=Pt,v.geoSinusoidalRaw=Qe,v.geoStitch=ll,v.geoTimes=Lo,v.geoTimesRaw=Un,v.geoTwoPointAzimuthal=Iu,v.geoTwoPointAzimuthalRaw=Rs,v.geoTwoPointAzimuthalUsa=uu,v.geoTwoPointEquidistant=bu,v.geoTwoPointEquidistantRaw=Zu,v.geoTwoPointEquidistantUsa=Ic,v.geoVanDerGrinten=Au,v.geoVanDerGrintenRaw=Rc,v.geoVanDerGrinten2=ho,v.geoVanDerGrinten2Raw=yc,v.geoVanDerGrinten3=Dc,v.geoVanDerGrinten3Raw=Ro,v.geoVanDerGrinten4=Yu,v.geoVanDerGrinten4Raw=lc,v.geoWagner=ie,v.geoWagner7=we,v.geoWagnerRaw=I,v.geoWagner4=St,v.geoWagner4Raw=dt,v.geoWagner6=$t,v.geoWagner6Raw=Nt,v.geoWiechel=Ar,v.geoWiechelRaw=Tr,v.geoWinkel3=na,v.geoWinkel3Raw=Kr,Object.defineProperty(v,"__esModule",{value:!0})})}}),jU=Xe({"src/plots/geo/zoom.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=so(),E=Math.PI/180,e=180/Math.PI,t={cursor:"pointer"},r={cursor:"auto"};function o(y,f){var R=y.projection,L;return f._isScoped?L=i:f._isClipped?L=h:L=s,L(y,R)}G.exports=o;function a(y,f){return v.behavior.zoom().translate(f.translate()).scale(f.scale())}function n(y,f,R){var L=y.id,z=y.graphDiv,F=z.layout,N=F[L],O=z._fullLayout,P=O[L],U={},B={};function X($,se){U[L+"."+$]=x.nestedProperty(N,$).get(),S.call("_storeDirectGUIEdit",F,O._preGUI,U);var le=x.nestedProperty(P,$);le.get()!==se&&(le.set(se),x.nestedProperty(N,$).set(se),B[L+"."+$]=se)}R(X),X("projection.scale",f.scale()/y.fitScale),X("fitbounds",!1),z.emit("plotly_relayout",B)}function i(y,f){var R=a(y,f);function L(){v.select(this).style(t)}function z(){f.scale(v.event.scale).translate(v.event.translate),y.render(!0);var O=f.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1]})}function F(O){var P=f.invert(y.midPt);O("center.lon",P[0]),O("center.lat",P[1])}function N(){v.select(this).style(r),n(y,f,F)}return R.on("zoomstart",L).on("zoom",z).on("zoomend",N),R}function s(y,f){var R=a(y,f),L=2,z,F,N,O,P,U,B,X,$;function se(q){return f.invert(q)}function le(q){var oe=se(q);if(!oe)return!0;var ae=f(oe);return Math.abs(ae[0]-q[0])>L||Math.abs(ae[1]-q[1])>L}function fe(){v.select(this).style(t),z=v.mouse(this),F=f.rotate(),N=f.translate(),O=F,P=se(z)}function V(){if(U=v.mouse(this),le(z)){R.scale(f.scale()),R.translate(f.translate());return}f.scale(v.event.scale),f.translate([N[0],v.event.translate[1]]),P?se(U)&&(X=se(U),B=[O[0]+(X[0]-P[0]),F[1],F[2]],f.rotate(B),O=B):(z=U,P=se(z)),$=!0,y.render(!0);var q=f.rotate(),oe=f.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.center.lon":oe[0],"geo.center.lat":oe[1],"geo.projection.rotation.lon":-q[0]})}function Y(){v.select(this).style(r),$&&n(y,f,ee)}function ee(q){var oe=f.rotate(),ae=f.invert(y.midPt);q("projection.rotation.lon",-oe[0]),q("center.lon",ae[0]),q("center.lat",ae[1])}return R.on("zoomstart",fe).on("zoom",V).on("zoomend",Y),R}function h(y,f){var R={r:f.rotate(),k:f.scale()},L=a(y,f),z=u(L,"zoomstart","zoom","zoomend"),F=0,N=L.on,O;L.on("zoomstart",function(){v.select(this).style(t);var $=v.mouse(this),se=f.rotate(),le=se,fe=f.translate(),V=m(se);O=c(f,$),N.call(L,"zoom",function(){var Y=v.mouse(this);if(f.scale(R.k=v.event.scale),!O)$=Y,O=c(f,$);else if(c(f,Y)){f.rotate(se).translate(fe);var ee=c(f,Y),q=T(O,ee),oe=M(p(V,q)),ae=R.r=l(oe,O,le);(!isFinite(ae[0])||!isFinite(ae[1])||!isFinite(ae[2]))&&(ae=le),f.rotate(ae),le=ae}U(z.of(this,arguments))}),P(z.of(this,arguments))}).on("zoomend",function(){v.select(this).style(r),N.call(L,"zoom",null),B(z.of(this,arguments)),n(y,f,X)}).on("zoom.redraw",function(){y.render(!0);var $=f.rotate();y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.projection.rotation.lon":-$[0],"geo.projection.rotation.lat":-$[1]})});function P($){F++||$({type:"zoomstart"})}function U($){$({type:"zoom"})}function B($){--F||$({type:"zoomend"})}function X($){var se=f.rotate();$("projection.rotation.lon",-se[0]),$("projection.rotation.lat",-se[1])}return v.rebind(L,z,"on")}function c(y,f){var R=y.invert(f);return R&&isFinite(R[0])&&isFinite(R[1])&&g(R)}function m(y){var f=.5*y[0]*E,R=.5*y[1]*E,L=.5*y[2]*E,z=Math.sin(f),F=Math.cos(f),N=Math.sin(R),O=Math.cos(R),P=Math.sin(L),U=Math.cos(L);return[F*O*U+z*N*P,z*O*U-F*N*P,F*N*U+z*O*P,F*O*P-z*N*U]}function p(y,f){var R=y[0],L=y[1],z=y[2],F=y[3],N=f[0],O=f[1],P=f[2],U=f[3];return[R*N-L*O-z*P-F*U,R*O+L*N+z*U-F*P,R*P-L*U+z*N+F*O,R*U+L*P-z*O+F*N]}function T(y,f){if(!(!y||!f)){var R=d(y,f),L=Math.sqrt(b(R,R)),z=.5*Math.acos(Math.max(-1,Math.min(1,b(y,f)))),F=Math.sin(z)/L;return L&&[Math.cos(z),R[2]*F,-R[1]*F,R[0]*F]}}function l(y,f,R){var L=A(f,2,y[0]);L=A(L,1,y[1]),L=A(L,0,y[2]-R[2]);var z=f[0],F=f[1],N=f[2],O=L[0],P=L[1],U=L[2],B=Math.atan2(F,z)*e,X=Math.sqrt(z*z+F*F),$,se;Math.abs(P)>X?(se=(P>0?90:-90)-B,$=0):(se=Math.asin(P/X)*e-B,$=Math.sqrt(X*X-P*P));var le=180-se-2*B,fe=(Math.atan2(U,O)-Math.atan2(N,$))*e,V=(Math.atan2(U,O)-Math.atan2(N,-$))*e,Y=_(R[0],R[1],se,fe),ee=_(R[0],R[1],le,V);return Y<=ee?[se,fe,R[2]]:[le,V,R[2]]}function _(y,f,R,L){var z=w(R-y),F=w(L-f);return Math.sqrt(z*z+F*F)}function w(y){return(y%360+540)%360-180}function A(y,f,R){var L=R*E,z=y.slice(),F=f===0?1:0,N=f===2?1:2,O=Math.cos(L),P=Math.sin(L);return z[F]=y[F]*O-y[N]*P,z[N]=y[N]*O+y[F]*P,z}function M(y){return[Math.atan2(2*(y[0]*y[1]+y[2]*y[3]),1-2*(y[1]*y[1]+y[2]*y[2]))*e,Math.asin(Math.max(-1,Math.min(1,2*(y[0]*y[2]-y[3]*y[1]))))*e,Math.atan2(2*(y[0]*y[3]+y[1]*y[2]),1-2*(y[2]*y[2]+y[3]*y[3]))*e]}function g(y){var f=y[0]*E,R=y[1]*E,L=Math.cos(R);return[L*Math.cos(f),L*Math.sin(f),Math.sin(R)]}function b(y,f){for(var R=0,L=0,z=y.length;L<z;++L)R+=y[L]*f[L];return R}function d(y,f){return[y[1]*f[2]-y[2]*f[1],y[2]*f[0]-y[0]*f[2],y[0]*f[1]-y[1]*f[0]]}function u(y){for(var f=0,R=arguments.length,L=[];++f<R;)L.push(arguments[f]);var z=v.dispatch.apply(null,L);return z.of=function(F,N){return function(O){var P;try{P=O.sourceEvent=v.event,O.target=y,v.event=O,z[O.type].apply(F,N)}finally{v.event=P}}},z}}}),qU=Xe({"src/plots/geo/geo.js"(Z,G){"use strict";var v=Hn(),x=zE(),S=x.geoPath,E=x.geoDistance,e=UU(),t=so(),r=sa(),o=r.strTranslate,a=$n(),n=es(),i=rf(),s=bc(),h=Go(),c=Yd().getAutoRange,m=Ap(),p=Af().prepSelect,T=Af().clearOutline,l=Af().selectOnClick,_=jU(),w=yx(),A=g0(),M=nT(),g=IE().feature;function b(R){this.id=R.id,this.graphDiv=R.graphDiv,this.container=R.container,this.topojsonURL=R.topojsonURL,this.isStatic=R.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var d=b.prototype;G.exports=function(L){return new b(L)},d.plot=function(R,L,z,F){var N=this;if(F)return N.update(R,L,!0);N._geoCalcData=R,N._fullLayout=L;var O=L[this.id],P=[],U=!1;for(var B in w.layerNameToAdjective)if(B!=="frame"&&O["show"+B]){U=!0;break}for(var X=!1,$=0;$<R.length;$++){var se=R[0][0].trace;se._geo=N,se.locationmode&&(U=!0);var le=se.marker;if(le){var fe=le.angle,V=le.angleref;(fe||V==="north"||V==="previous")&&(X=!0)}}if(this._hasMarkerAngles=X,U){var Y=M.getTopojsonName(O);(N.topojson===null||Y!==N.topojsonName)&&(N.topojsonName=Y,PlotlyGeoAssets.topojson[N.topojsonName]===void 0&&P.push(N.fetchTopojson()))}P=P.concat(A.fetchTraceGeoData(R)),z.push(new Promise(function(ee,q){Promise.all(P).then(function(){N.topojson=PlotlyGeoAssets.topojson[N.topojsonName],N.update(R,L),ee()}).catch(q)}))},d.fetchTopojson=function(){var R=this,L=M.getTopojsonPath(R.topojsonURL,R.topojsonName);return new Promise(function(z,F){v.json(L,function(N,O){if(N)return N.status===404?F(new Error(["plotly.js could not find topojson file at",L+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):F(new Error(["unexpected error while fetching topojson file at",L].join(" ")));PlotlyGeoAssets.topojson[R.topojsonName]=O,z()})})},d.update=function(R,L,z){var F=L[this.id];this.hasChoropleth=!1;for(var N=0;N<R.length;N++){var O=R[N],P=O[0].trace;P.type==="choropleth"&&(this.hasChoropleth=!0),P.visible===!0&&P._length>0&&P._module.calcGeoJSON(O,L)}if(!z){var U=this.updateProjection(R,L);if(U)return;(!this.viewInitial||this.scope!==F.scope)&&this.saveViewInitial(F)}this.scope=F.scope,this.updateBaseLayers(L,F),this.updateDims(L,F),this.updateFx(L,F),s.generalUpdatePerTraceModule(this.graphDiv,this,R,F);var B=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=B.selectAll(".point"),this.dataPoints.text=B.selectAll("text"),this.dataPaths.line=B.selectAll(".js-line");var X=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=X.selectAll("path"),this._render()},d.updateProjection=function(R,L){var z=this.graphDiv,F=L[this.id],N=L._size,O=F.domain,P=F.projection,U=F.lonaxis,B=F.lataxis,X=U._ax,$=B._ax,se=this.projection=u(F),le=[[N.l+N.w*O.x[0],N.t+N.h*(1-O.y[1])],[N.l+N.w*O.x[1],N.t+N.h*(1-O.y[0])]],fe=F.center||{},V=P.rotation||{},Y=U.range||[],ee=B.range||[];if(F.fitbounds){X._length=le[1][0]-le[0][0],$._length=le[1][1]-le[0][1],X.range=c(z,X),$.range=c(z,$);var q=(X.range[0]+X.range[1])/2,oe=($.range[0]+$.range[1])/2;if(F._isScoped)fe={lon:q,lat:oe};else if(F._isClipped){fe={lon:q,lat:oe},V={lon:q,lat:oe,roll:V.roll};var ae=P.type,j=w.lonaxisSpan[ae]/2||180,Q=w.lataxisSpan[ae]/2||90;Y=[q-j,q+j],ee=[oe-Q,oe+Q]}else fe={lon:q,lat:oe},V={lon:q,lat:V.lat,roll:V.roll}}se.center([fe.lon-V.lon,fe.lat-V.lat]).rotate([-V.lon,-V.lat,V.roll]).parallels(P.parallels);var re=f(Y,ee);se.fitExtent(le,re);var ce=this.bounds=se.getBounds(re),be=this.fitScale=se.scale(),Ae=se.translate();if(F.fitbounds){var De=se.getBounds(f(X.range,$.range)),ze=Math.min((ce[1][0]-ce[0][0])/(De[1][0]-De[0][0]),(ce[1][1]-ce[0][1])/(De[1][1]-De[0][1]));isFinite(ze)?se.scale(ze*be):r.warn("Something went wrong during"+this.id+"fitbounds computations.")}else se.scale(P.scale*be);var Ze=this.midPt=[(ce[0][0]+ce[1][0])/2,(ce[0][1]+ce[1][1])/2];if(se.translate([Ae[0]+(Ze[0]-Ae[0]),Ae[1]+(Ze[1]-Ae[1])]).clipExtent(ce),F._isAlbersUsa){var at=se([fe.lon,fe.lat]),nt=se.translate();se.translate([nt[0]-(at[0]-nt[0]),nt[1]-(at[1]-nt[1])])}},d.updateBaseLayers=function(R,L){var z=this,F=z.topojson,N=z.layers,O=z.basePaths;function P(le){return le==="lonaxis"||le==="lataxis"}function U(le){return!!w.lineLayers[le]}function B(le){return!!w.fillLayers[le]}var X=this.hasChoropleth?w.layersForChoropleth:w.layers,$=X.filter(function(le){return U(le)||B(le)?L["show"+le]:P(le)?L[le].showgrid:!0}),se=z.framework.selectAll(".layer").data($,String);se.exit().each(function(le){delete N[le],delete O[le],v.select(this).remove()}),se.enter().append("g").attr("class",function(le){return"layer "+le}).each(function(le){var fe=N[le]=v.select(this);le==="bg"?z.bgRect=fe.append("rect").style("pointer-events","all"):P(le)?O[le]=fe.append("path").style("fill","none"):le==="backplot"?fe.append("g").classed("choroplethlayer",!0):le==="frontplot"?fe.append("g").classed("scatterlayer",!0):U(le)?O[le]=fe.append("path").style("fill","none").style("stroke-miterlimit",2):B(le)&&(O[le]=fe.append("path").style("stroke","none"))}),se.order(),se.each(function(le){var fe=O[le],V=w.layerNameToAdjective[le];le==="frame"?fe.datum(w.sphereSVG):U(le)||B(le)?fe.datum(g(F,F.objects[le])):P(le)&&fe.datum(y(le,L,R)).call(a.stroke,L[le].gridcolor).call(n.dashLine,L[le].griddash,L[le].gridwidth),U(le)?fe.call(a.stroke,L[V+"color"]).call(n.dashLine,"",L[V+"width"]):B(le)&&fe.call(a.fill,L[V+"color"])})},d.updateDims=function(R,L){var z=this.bounds,F=(L.framewidth||0)/2,N=z[0][0]-F,O=z[0][1]-F,P=z[1][0]-N+F,U=z[1][1]-O+F;n.setRect(this.clipRect,N,O,P,U),this.bgRect.call(n.setRect,N,O,P,U).call(a.fill,L.bgcolor),this.xaxis._offset=N,this.xaxis._length=P,this.yaxis._offset=O,this.yaxis._length=U},d.updateFx=function(R,L){var z=this,F=z.graphDiv,N=z.bgRect,O=R.dragmode,P=R.clickmode;if(z.isStatic)return;function U(){var se=z.viewInitial,le={};for(var fe in se)le[z.id+"."+fe]=se[fe];t.call("_guiRelayout",F,le),F.emit("plotly_doubleclick",null)}function B(se){return z.projection.invert([se[0]+z.xaxis._offset,se[1]+z.yaxis._offset])}var X=function(se,le){if(le.isRect){var fe=se.range={};fe[z.id]=[B([le.xmin,le.ymin]),B([le.xmax,le.ymax])]}else{var V=se.lassoPoints={};V[z.id]=le.map(B)}},$={element:z.bgRect.node(),gd:F,plotinfo:{id:z.id,xaxis:z.xaxis,yaxis:z.yaxis,fillRangeItems:X},xaxes:[z.xaxis],yaxes:[z.yaxis],subplot:z.id,clickFn:function(se){se===2&&T(F)}};O==="pan"?(N.node().onmousedown=null,N.call(_(z,L)),N.on("dblclick.zoom",U),F._context._scrollZoom.geo||N.on("wheel.zoom",null)):(O==="select"||O==="lasso")&&(N.on(".zoom",null),$.prepFn=function(se,le,fe){p(se,le,fe,$,O)},m.init($)),N.on("mousemove",function(){var se=z.projection.invert(r.getPositionFromD3Event());if(!se)return m.unhover(F,v.event);z.xaxis.p2c=function(){return se[0]},z.yaxis.p2c=function(){return se[1]},i.hover(F,v.event,z.id)}),N.on("mouseout",function(){F._dragging||m.unhover(F,v.event)}),N.on("click",function(){O!=="select"&&O!=="lasso"&&(P.indexOf("select")>-1&&l(v.event,F,[z.xaxis],[z.yaxis],z.id,$),P.indexOf("event")>-1&&i.click(F,v.event))})},d.makeFramework=function(){var R=this,L=R.graphDiv,z=L._fullLayout,F="clip"+z._uid+R.id;R.clipDef=z._clips.append("clipPath").attr("id",F),R.clipRect=R.clipDef.append("rect"),R.framework=v.select(R.container).append("g").attr("class","geo "+R.id).call(n.setClipUrl,F,L),R.project=function(N){var O=R.projection(N);return O?[O[0]-R.xaxis._offset,O[1]-R.yaxis._offset]:[null,null]},R.xaxis={_id:"x",c2p:function(N){return R.project(N)[0]}},R.yaxis={_id:"y",c2p:function(N){return R.project(N)[1]}},R.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},h.setConvert(R.mockAxis,z)},d.saveViewInitial=function(R){var L=R.center||{},z=R.projection,F=z.rotation||{};this.viewInitial={fitbounds:R.fitbounds,"projection.scale":z.scale};var N;R._isScoped?N={"center.lon":L.lon,"center.lat":L.lat}:R._isClipped?N={"projection.rotation.lon":F.lon,"projection.rotation.lat":F.lat}:N={"center.lon":L.lon,"center.lat":L.lat,"projection.rotation.lon":F.lon},r.extendFlat(this.viewInitial,N)},d.render=function(R){this._hasMarkerAngles&&R?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},d._render=function(){var R=this.projection,L=R.getPath(),z;function F(O){var P=R(O.lonlat);return P?o(P[0],P[1]):null}function N(O){return R.isLonLatOverEdges(O.lonlat)?"none":null}for(z in this.basePaths)this.basePaths[z].attr("d",L);for(z in this.dataPaths)this.dataPaths[z].attr("d",function(O){return L(O.geojson)});for(z in this.dataPoints)this.dataPoints[z].attr("display",N).attr("transform",F)};function u(R){var L=R.projection,z=L.type,F=w.projNames[z];F="geo"+r.titleCase(F);for(var N=x[F]||e[F],O=N(),P=R._isSatellite?Math.acos(1/L.distance)*180/Math.PI:R._isClipped?w.lonaxisSpan[z]/2:null,U=["center","rotate","parallels","clipExtent"],B=function(se){return se?O:[]},X=0;X<U.length;X++){var $=U[X];typeof O[$]!="function"&&(O[$]=B)}return O.isLonLatOverEdges=function(se){if(O(se)===null)return!0;if(P){var le=O.rotate(),fe=E(se,[-le[0],-le[1]]),V=P*Math.PI/180;return fe>V}else return!1},O.getPath=function(){return S().projection(O)},O.getBounds=function(se){return O.getPath().bounds(se)},O.precision(w.precision),R._isSatellite&&O.tilt(L.tilt).distance(L.distance),P&&O.clipAngle(P-w.clipPad),O}function y(R,L,z){var F=1e-6,N=2.5,O=L[R],P=w.scopeDefaults[L.scope],U,B,X;R==="lonaxis"?(U=P.lonaxisRange,B=P.lataxisRange,X=function(oe,ae){return[oe,ae]}):R==="lataxis"&&(U=P.lataxisRange,B=P.lonaxisRange,X=function(oe,ae){return[ae,oe]});var $={type:"linear",range:[U[0],U[1]-F],tick0:O.tick0,dtick:O.dtick};h.setConvert($,z);var se=h.calcTicks($);!L.isScoped&&R==="lonaxis"&&se.pop();for(var le=se.length,fe=new Array(le),V=0;V<le;V++)for(var Y=se[V].x,ee=fe[V]=[],q=B[0];q<B[1]+N;q+=N)ee.push(X(Y,q));return{type:"MultiLineString",coordinates:fe}}function f(R,L){var z=w.clipPad,F=R[0]+z,N=R[1]-z,O=L[0]+z,P=L[1]-z;F>0&&N<0&&(N+=360);var U=(N-F)/4;return{type:"Polygon",coordinates:[[[F,O],[F,P],[F+U,P],[F+2*U,P],[F+3*U,P],[N,P],[N,O],[N-U,O],[N-2*U,O],[N-3*U,O],[F,O]]]}}}}),FE=Xe({"src/plots/geo/layout_attributes.js"(Z,G){"use strict";var v=sh(),x=wc().attributes,S=Gh().dash,E=yx(),e=pc().overrideAll,t=Jm(),r={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:v.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:S},o=G.exports=e({domain:x({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:t(E.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:t(E.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:v.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:E.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:E.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:E.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:E.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:v.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:v.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:v.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:v.background},lonaxis:r,lataxis:r},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),VU=Xe({"src/plots/geo/layout_defaults.js"(Z,G){"use strict";var v=sa(),x=o0(),S=Hh().getSubplotData,E=yx(),e=FE(),t=E.axesNames;G.exports=function(a,n,i){x(a,n,i,{type:"geo",attributes:e,handleDefaults:r,fullData:i,partition:"y"})};function r(o,a,n,i){var s=S(i.fullData,"geo",i.id),h=s.map(function(ee){return ee.index}),c=n("resolution"),m=n("scope"),p=E.scopeDefaults[m],T=n("projection.type",p.projType),l=a._isAlbersUsa=T==="albers usa";l&&(m=a.scope="usa");var _=a._isScoped=m!=="world",w=a._isSatellite=T==="satellite",A=a._isConic=T.indexOf("conic")!==-1||T==="albers",M=a._isClipped=!!E.lonaxisSpan[T];if(o.visible===!1){var g=v.extendDeep({},a._template);g.showcoastlines=!1,g.showcountries=!1,g.showframe=!1,g.showlakes=!1,g.showland=!1,g.showocean=!1,g.showrivers=!1,g.showsubunits=!1,g.lonaxis&&(g.lonaxis.showgrid=!1),g.lataxis&&(g.lataxis.showgrid=!1),a._template=g}for(var b=n("visible"),d,u=0;u<t.length;u++){var y=t[u],f=[30,10][u],R;if(_)R=p[y+"Range"];else{var L=E[y+"Span"],z=(L[T]||L["*"])/2,F=n("projection.rotation."+y.slice(0,3),p.projRotate[u]);R=[F-z,F+z]}var N=n(y+".range",R);n(y+".tick0"),n(y+".dtick",f),d=n(y+".showgrid",b?void 0:!1),d&&(n(y+".gridcolor"),n(y+".gridwidth"),n(y+".griddash")),a[y]._ax={type:"linear",_id:y.slice(0,3),_traceIndices:h,setScale:v.identity,c2l:v.identity,r2l:v.identity,autorange:!0,range:N.slice(),_m:1,_input:{}}}var O=a.lonaxis.range,P=a.lataxis.range,U=O[0],B=O[1];U>0&&B<0&&(B+=360);var X=(U+B)/2,$;if(!l){var se=_?p.projRotate:[X,0,0];$=n("projection.rotation.lon",se[0]),n("projection.rotation.lat",se[1]),n("projection.rotation.roll",se[2]),d=n("showcoastlines",!_&&b),d&&(n("coastlinecolor"),n("coastlinewidth")),d=n("showocean",b?void 0:!1),d&&n("oceancolor")}var le,fe;if(l?(le=-96.6,fe=38.7):(le=_?X:$,fe=(P[0]+P[1])/2),n("center.lon",le),n("center.lat",fe),w&&(n("projection.tilt"),n("projection.distance")),A){var V=p.projParallels||[0,60];n("projection.parallels",V)}n("projection.scale"),d=n("showland",b?void 0:!1),d&&n("landcolor"),d=n("showlakes",b?void 0:!1),d&&n("lakecolor"),d=n("showrivers",b?void 0:!1),d&&(n("rivercolor"),n("riverwidth")),d=n("showcountries",_&&m!=="usa"&&b),d&&(n("countrycolor"),n("countrywidth")),(m==="usa"||m==="north america"&&c===50)&&(n("showsubunits",b),n("subunitcolor"),n("subunitwidth")),_||(d=n("showframe",b),d&&(n("framecolor"),n("framewidth"))),n("bgcolor");var Y=n("fitbounds");Y&&(delete a.projection.scale,_?(delete a.center.lon,delete a.center.lat):M?(delete a.center.lon,delete a.center.lat,delete a.projection.rotation.lon,delete a.projection.rotation.lat,delete a.lonaxis.range,delete a.lataxis.range):(delete a.center.lon,delete a.center.lat,delete a.projection.rotation.lon))}}}),OE=Xe({"src/plots/geo/index.js"(Z,G){"use strict";var v=Hh().getSubplotCalcData,x=sa().counterRegex,S=qU(),E="geo",e=x(E),t={};t[E]={valType:"subplotid",dflt:E,editType:"calc"};function r(n){for(var i=n._fullLayout,s=n.calcdata,h=i._subplots[E],c=0;c<h.length;c++){var m=h[c],p=v(s,E,m),T=i[m],l=T._subplot;l||(l=S({id:m,graphDiv:n,container:i._geolayer.node(),topojsonURL:n._context.topojsonURL,staticPlot:n._context.staticPlot}),i[m]._subplot=l),l.plot(p,i,n._promises)}}function o(n,i,s,h){for(var c=h._subplots[E]||[],m=0;m<c.length;m++){var p=c[m],T=h[p]._subplot;!i[p]&&T&&(T.framework.remove(),T.clipDef.remove())}}function a(n){for(var i=n._fullLayout,s=i._subplots[E],h=0;h<s.length;h++){var c=i[s[h]],m=c._subplot;m.updateFx(i,c)}}G.exports={attr:E,name:E,idRoot:E,idRegex:e,attrRegex:e,attributes:t,layoutAttributes:FE(),supplyLayoutDefaults:VU(),plot:r,updateFx:a,clean:o}}}),GU=Xe({"src/traces/scattergeo/index.js"(Z,G){"use strict";G.exports={attributes:vg(),supplyDefaults:PU(),colorbar:pp(),formatLabels:IU(),calc:iT(),calcGeoJSON:DE().calcGeoJSON,plot:DE().plot,style:RE(),styleOnSelect:Qp().styleOnSelect,hoverPoints:OU(),eventData:BU(),selectPoints:NU(),moduleType:"trace",name:"scattergeo",basePlotModule:OE(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}}}),HU=Xe({"lib/scattergeo.js"(Z,G){"use strict";G.exports=GU()}}),k1=Xe({"src/traces/choropleth/attributes.js"(Z,G){"use strict";var{hovertemplateAttrs:v,templatefallbackAttrs:x}=Jl(),S=vg(),E=ku(),e=ru(),t=sh().defaultLine,r=Qo().extendFlat,o=S.marker.line;G.exports=r({locations:{valType:"data_array",editType:"calc"},locationmode:S.locationmode,z:{valType:"data_array",editType:"calc"},geojson:r({},S.geojson,{}),featureidkey:S.featureidkey,text:r({},S.text,{}),hovertext:r({},S.hovertext,{}),marker:{line:{color:r({},o.color,{dflt:t}),width:r({},o.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:S.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:S.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:r({},e.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:v(),hovertemplatefallback:x(),showlegend:r({},e.showlegend,{dflt:!1})},E("",{cLetter:"z",editTypeOverride:"calc"}))}}),WU=Xe({"src/traces/choropleth/defaults.js"(Z,G){"use strict";var v=sa(),x=_h(),S=k1(),E=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");G.exports=function(t,r,o,a){function n(T,l){return v.coerce(t,r,S,T,l)}var i=n("locations"),s=n("z");if(!(i&&i.length&&v.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(i.length,s.length);var h=n("geojson"),c;(typeof h=="string"&&h!==""||v.isPlainObject(h))&&(c="geojson-id");var m=n("locationmode",c);m==="country names"&&v.warn(E),m==="geojson-id"&&n("featureidkey"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var p=n("marker.line.width");p&&n("marker.line.color"),n("marker.opacity"),x(t,r,a,n,{prefix:"",cLetter:"z"}),v.coerceSelectionMarkerOpacity(r,n)}}}),lT=Xe({"src/traces/choropleth/calc.js"(Z,G){"use strict";var v=rs(),x=Hs().BADNUM,S=Tp(),E=Av(),e=Od();function t(r){return r&&typeof r=="string"}G.exports=function(o,a){var n=a._length,i=new Array(n),s;a.geojson?s=function(T){return t(T)||v(T)}:s=t;for(var h=0;h<n;h++){var c=i[h]={},m=a.locations[h],p=a.z[h];s(m)&&v(p)?(c.loc=m,c.z=p):(c.loc=null,c.z=x),c.index=h}return E(i,a),S(o,a,{vals:a.z,containerStr:"",cLetter:"z"}),e(i,a),i}}}),uT=Xe({"src/traces/choropleth/style.js"(Z,G){"use strict";var v=Hn(),x=$n(),S=es(),E=rc();function e(o,a){a&&t(o,a)}function t(o,a){var n=a[0].trace,i=a[0].node3,s=i.selectAll(".choroplethlocation"),h=n.marker||{},c=h.line||{},m=E.makeColorScaleFuncFromTrace(n);s.each(function(p){v.select(this).attr("fill",m(p.z)).call(x.stroke,p.mlc||c.color).call(S.dashLine,"",p.mlw||c.width||0).style("opacity",h.opacity)}),S.selectedPointStyle(s,n)}function r(o,a){var n=a[0].node3,i=a[0].trace;i.selectedpoints?S.selectedPointStyle(n.selectAll(".choroplethlocation"),i):t(o,a)}G.exports={style:e,styleOnSelect:r}}}),BE=Xe({"src/traces/choropleth/plot.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=g0(),E=nT().getTopojsonFeatures,e=Yd().findExtremes,t=uT().style;function r(a,n,i){var s=n.layers.backplot.select(".choroplethlayer");x.makeTraceGroups(s,i,"trace choropleth").each(function(h){var c=v.select(this),m=c.selectAll("path.choroplethlocation").data(x.identity);m.enter().append("path").classed("choroplethlocation",!0),m.exit().remove(),t(a,h)})}function o(a,n){for(var i=a[0].trace,s=n[i.geo],h=s._subplot,c=i.locationmode,m=i._length,p=c==="geojson-id"?S.extractTraceFeature(a):E(i,h.topojson),T=[],l=[],_=0;_<m;_++){var w=a[_],A=c==="geojson-id"?w.fOut:S.locationToFeature(c,w.loc,p);if(A){w.geojson=A,w.ct=A.properties.ct,w._polygons=S.feature2polygons(A);var M=S.computeBbox(A);T.push(M[0],M[2]),l.push(M[1],M[3])}else w.geojson=null}if(s.fitbounds==="geojson"&&c==="geojson-id"){var g=S.computeBbox(S.getTraceGeojson(i));T=[g[0],g[2]],l=[g[1],g[3]]}var b={padded:!0};i._extremes.lon=e(s.lonaxis._ax,T,b),i._extremes.lat=e(s.lataxis._ax,l,b)}G.exports={calcGeoJSON:o,plot:r}}}),cT=Xe({"src/traces/choropleth/hover.js"(Z,G){"use strict";var v=Go(),x=k1(),S=sa().fillText;G.exports=function(t,r,o){var a=t.cd,n=a[0].trace,i=t.subplot,s,h,c,m,p=[r,o],T=[r+360,o];for(h=0;h<a.length;h++)if(s=a[h],m=!1,s._polygons){for(c=0;c<s._polygons.length;c++)s._polygons[c].contains(p)&&(m=!m),s._polygons[c].contains(T)&&(m=!m);if(m)break}if(!(!m||!s))return t.x0=t.x1=t.xa.c2p(s.ct),t.y0=t.y1=t.ya.c2p(s.ct),t.index=s.index,t.location=s.loc,t.z=s.z,t.zLabel=v.tickText(i.mockAxis,i.mockAxis.c2l(s.z),"hover").text,t.hovertemplate=s.hovertemplate,E(t,n,s),[t]};function E(e,t,r){if(!t.hovertemplate){var o=r.hi||t.hoverinfo,a=String(r.loc),n=o==="all"?x.hoverinfo.flags:o.split("+"),i=n.indexOf("name")!==-1,s=n.indexOf("location")!==-1,h=n.indexOf("z")!==-1,c=n.indexOf("text")!==-1,m=!i&&s,p=[];m?e.nameOverride=a:(i&&(e.nameOverride=t.name),s&&p.push(a)),h&&p.push(e.zLabel),c&&S(r,t,p),e.extraText=p.join("<br>")}}}}),fT=Xe({"src/traces/choropleth/event_data.js"(Z,G){"use strict";G.exports=function(x,S,E,e,t){x.location=S.location,x.z=S.z;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x.ct=r.ct,x}}}),hT=Xe({"src/traces/choropleth/select.js"(Z,G){"use strict";G.exports=function(x,S){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],o,a,n,i,s;if(S===!1)for(o=0;o<E.length;o++)E[o].selected=0;else for(o=0;o<E.length;o++)a=E[o],n=a.ct,n&&(i=e.c2p(n),s=t.c2p(n),S.contains([i,s],null,o,x)?(r.push({pointNumber:o,lon:n[0],lat:n[1]}),a.selected=1):a.selected=0);return r}}}),XU=Xe({"src/traces/choropleth/index.js"(Z,G){"use strict";G.exports={attributes:k1(),supplyDefaults:WU(),colorbar:n0(),calc:lT(),calcGeoJSON:BE().calcGeoJSON,plot:BE().plot,style:uT().style,styleOnSelect:uT().styleOnSelect,hoverPoints:cT(),eventData:fT(),selectPoints:hT(),moduleType:"trace",name:"choropleth",basePlotModule:OE(),categories:["geo","noOpacity","showLegend"],meta:{}}}}),ZU=Xe({"lib/choropleth.js"(Z,G){"use strict";G.exports=XU()}}),pT=Xe({"src/traces/scattergl/hover.js"(Z,G){"use strict";var v=so(),x=sa(),S=l1();function E(t,r,o,a){var n=t.cd,i=n[0].t,s=n[0].trace,h=t.xa,c=t.ya,m=i.x,p=i.y,T=h.c2p(r),l=c.c2p(o),_=t.distance,w;if(i.tree){var A=h.p2c(T-_),M=h.p2c(T+_),g=c.p2c(l-_),b=c.p2c(l+_);a==="x"?w=i.tree.range(Math.min(A,M),Math.min(c._rl[0],c._rl[1]),Math.max(A,M),Math.max(c._rl[0],c._rl[1])):w=i.tree.range(Math.min(A,M),Math.min(g,b),Math.max(A,M),Math.max(g,b))}else w=i.ids;var d,u,y,f,R,L,z,F,N,O=_;if(a==="x"){var P=!!s.xperiodalignment,U=!!s.yperiodalignment;for(R=0;R<w.length;R++){if(d=w[R],y=m[d],L=Math.abs(h.c2p(y)-T),P){var B=h.c2p(s._xStarts[d]),X=h.c2p(s._xEnds[d]);L=T>=Math.min(B,X)&&T<=Math.max(B,X)?0:1/0}if(L<O){if(O=L,f=p[d],z=c.c2p(f)-l,U){var $=c.c2p(s._yStarts[d]),se=c.c2p(s._yEnds[d]);z=l>=Math.min($,se)&&l<=Math.max($,se)?0:1/0}N=Math.sqrt(L*L+z*z),u=w[R]}}}else for(R=w.length-1;R>-1;R--)d=w[R],y=m[d],f=p[d],L=h.c2p(y)-T,z=c.c2p(f)-l,F=Math.sqrt(L*L+z*z),F<O&&(O=N=F,u=d);return t.index=u,t.distance=O,t.dxy=N,u===void 0?[t]:[e(t,m,p,s)]}function e(t,r,o,a){var n=t.xa,i=t.ya,s=t.distance,h=t.dxy,c=t.index,m={pointNumber:c,x:r[c],y:o[c]};m.tx=x.isArrayOrTypedArray(a.text)?a.text[c]:a.text,m.htx=Array.isArray(a.hovertext)?a.hovertext[c]:a.hovertext,m.data=Array.isArray(a.customdata)?a.customdata[c]:a.customdata,m.tp=Array.isArray(a.textposition)?a.textposition[c]:a.textposition;var p=a.textfont;p&&(m.ts=x.isArrayOrTypedArray(p.size)?p.size[c]:p.size,m.tc=x.isArrayOrTypedArray(p.color)?p.color[c]:p.color,m.tf=Array.isArray(p.family)?p.family[c]:p.family,m.tw=Array.isArray(p.weight)?p.weight[c]:p.weight,m.ty=Array.isArray(p.style)?p.style[c]:p.style,m.tv=Array.isArray(p.variant)?p.variant[c]:p.variant);var T=a.marker;T&&(m.ms=x.isArrayOrTypedArray(T.size)?T.size[c]:T.size,m.mo=x.isArrayOrTypedArray(T.opacity)?T.opacity[c]:T.opacity,m.mx=x.isArrayOrTypedArray(T.symbol)?T.symbol[c]:T.symbol,m.ma=x.isArrayOrTypedArray(T.angle)?T.angle[c]:T.angle,m.mc=x.isArrayOrTypedArray(T.color)?T.color[c]:T.color);var l=T&&T.line;l&&(m.mlc=Array.isArray(l.color)?l.color[c]:l.color,m.mlw=x.isArrayOrTypedArray(l.width)?l.width[c]:l.width);var _=T&&T.gradient;_&&_.type!=="none"&&(m.mgt=Array.isArray(_.type)?_.type[c]:_.type,m.mgc=Array.isArray(_.color)?_.color[c]:_.color);var w=n.c2p(m.x,!0),A=i.c2p(m.y,!0),M=m.mrc||1,g=a.hoverlabel;g&&(m.hbg=Array.isArray(g.bgcolor)?g.bgcolor[c]:g.bgcolor,m.hbc=Array.isArray(g.bordercolor)?g.bordercolor[c]:g.bordercolor,m.hts=x.isArrayOrTypedArray(g.font.size)?g.font.size[c]:g.font.size,m.htc=Array.isArray(g.font.color)?g.font.color[c]:g.font.color,m.htf=Array.isArray(g.font.family)?g.font.family[c]:g.font.family,m.hnl=x.isArrayOrTypedArray(g.namelength)?g.namelength[c]:g.namelength);var b=a.hoverinfo;b&&(m.hi=Array.isArray(b)?b[c]:b);var d=a.hovertemplate;d&&(m.ht=Array.isArray(d)?d[c]:d);var u={};u[t.index]=m;var y=a._origX,f=a._origY,R=x.extendFlat({},t,{color:S(a,m),x0:w-M,x1:w+M,xLabelVal:y?y[c]:m.x,y0:A-M,y1:A+M,yLabelVal:f?f[c]:m.y,cd:u,distance:s,spikeDistance:h,hovertemplate:m.ht});return m.htx?R.text=m.htx:m.tx?R.text=m.tx:a.text&&(R.text=a.text),x.fillText(m,a,R),v.getComponentMethod("errorbars","hoverInfo")(m,a,R),R}G.exports={hoverPoints:E,calcHover:e}}}),y0=Xe({"src/traces/scattergl/constants.js"(Z,G){"use strict";var v=20;G.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:v,SYMBOL_STROKE:v/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}}}),xx=Xe({"src/traces/scattergl/attributes.js"(Z,G){"use strict";var v=ru(),x=tc(),S=$d(),E=af(),e=tf().axisHoverFormat,t=ku(),r=Jm(),o=Qo().extendFlat,a=pc().overrideAll,n=y0().DASHES,i=E.line,s=E.marker,h=s.line,c=G.exports=a({x:E.x,x0:E.x0,dx:E.dx,y:E.y,y0:E.y0,dy:E.dy,xperiod:E.xperiod,yperiod:E.yperiod,xperiod0:E.xperiod0,yperiod0:E.yperiod0,xperiodalignment:E.xperiodalignment,yperiodalignment:E.yperiodalignment,xhoverformat:e("x"),yhoverformat:e("y"),text:E.text,hovertext:E.hovertext,textposition:E.textposition,textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:i.color,width:i.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:r(n),dflt:"solid"}},marker:o({},t("marker"),{symbol:s.symbol,angle:s.angle,size:s.size,sizeref:s.sizeref,sizemin:s.sizemin,sizemode:s.sizemode,opacity:s.opacity,colorbar:s.colorbar,line:o({},t("marker.line"),{width:h.width})}),connectgaps:E.connectgaps,fill:o({},E.fill,{dflt:"none"}),fillcolor:S(),selected:{marker:E.selected.marker,textfont:E.selected.textfont},unselected:{marker:E.unselected.marker,textfont:E.unselected.textfont},opacity:v.opacity},"calc","nested");c.x.editType=c.y.editType=c.x0.editType=c.y0.editType="calc+clearAxisTypes",c.hovertemplate=E.hovertemplate,c.hovertemplatefallback=E.hovertemplatefallback,c.texttemplate=E.texttemplate,c.texttemplatefallback=E.texttemplatefallback}}),dT=Xe({"src/traces/scattergl/helpers.js"(Z){"use strict";var G=y0();Z.isOpenSymbol=function(v){return typeof v=="string"?G.OPEN_RE.test(v):v%200>100},Z.isDotSymbol=function(v){return typeof v=="string"?G.DOT_RE.test(v):v>200}}}),YU=Xe({"src/traces/scattergl/defaults.js"(Z,G){"use strict";var v=sa(),x=so(),S=dT(),E=xx(),e=Tv(),t=Fu(),r=n1(),o=Qd(),a=md(),n=Dd(),i=ev(),s=zd();G.exports=function(c,m,p,T){function l(u,y){return v.coerce(c,m,E,u,y)}var _=c.marker?S.isOpenSymbol(c.marker.symbol):!1,w=t.isBubble(c),A=r(c,m,T,l);if(!A){m.visible=!1;return}o(c,m,T,l),l("xhoverformat"),l("yhoverformat");var M=A<e.PTS_LINESONLY?"lines+markers":"lines";l("text"),l("hovertext"),l("hovertemplate"),l("hovertemplatefallback"),l("mode",M),t.hasMarkers(m)&&(a(c,m,p,T,l,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),l("marker.line.width",_||w?1:0)),t.hasLines(m)&&(l("connectgaps"),n(c,m,p,T,l),l("line.shape")),t.hasText(m)&&(l("texttemplate"),l("texttemplatefallback"),s(c,m,T,l,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var g=(m.line||{}).color,b=(m.marker||{}).color;l("fill"),m.fill!=="none"&&i(c,m,p,l);var d=x.getComponentMethod("errorbars","supplyDefaults");d(c,m,g||b||p,{axis:"y"}),d(c,m,g||b||p,{axis:"x",inherit:"y"}),v.coerceSelectionMarkerOpacity(m,l)}}}),KU=Xe({"src/traces/scattergl/format_labels.js"(Z,G){"use strict";var v=P2();G.exports=function(S,E,e){var t=S.i;return"x"in S||(S.x=E._x[t]),"y"in S||(S.y=E._y[t]),v(S,E,e)}}}),JU=Xe({"node_modules/binary-search-bounds/search-bounds.js"(Z,G){"use strict";function v(r,o,a,n,i){for(var s=i+1;n<=i;){var h=n+i>>>1,c=r[h],m=a!==void 0?a(c,o):c-o;m>=0?(s=h,i=h-1):n=h+1}return s}function x(r,o,a,n,i){for(var s=i+1;n<=i;){var h=n+i>>>1,c=r[h],m=a!==void 0?a(c,o):c-o;m>0?(s=h,i=h-1):n=h+1}return s}function S(r,o,a,n,i){for(var s=n-1;n<=i;){var h=n+i>>>1,c=r[h],m=a!==void 0?a(c,o):c-o;m<0?(s=h,n=h+1):i=h-1}return s}function E(r,o,a,n,i){for(var s=n-1;n<=i;){var h=n+i>>>1,c=r[h],m=a!==void 0?a(c,o):c-o;m<=0?(s=h,n=h+1):i=h-1}return s}function e(r,o,a,n,i){for(;n<=i;){var s=n+i>>>1,h=r[s],c=a!==void 0?a(h,o):h-o;if(c===0)return s;c<=0?n=s+1:i=s-1}return-1}function t(r,o,a,n,i,s){return typeof a=="function"?s(r,o,a,n===void 0?0:n|0,i===void 0?r.length-1:i|0):s(r,o,void 0,a===void 0?0:a|0,n===void 0?r.length-1:n|0)}G.exports={ge:function(r,o,a,n,i){return t(r,o,a,n,i,v)},gt:function(r,o,a,n,i){return t(r,o,a,n,i,x)},lt:function(r,o,a,n,i){return t(r,o,a,n,i,S)},le:function(r,o,a,n,i){return t(r,o,a,n,i,E)},eq:function(r,o,a,n,i){return t(r,o,a,n,i,e)}}}}),Ev=Xe({"node_modules/pick-by-alias/index.js"(Z,G){"use strict";G.exports=function(E,e,t){var r={},o,a;if(typeof e=="string"&&(e=x(e)),Array.isArray(e)){var n={};for(a=0;a<e.length;a++)n[e[a]]=!0;e=n}for(o in e)e[o]=x(e[o]);var i={};for(o in e){var s=e[o];if(Array.isArray(s))for(a=0;a<s.length;a++){var h=s[a];if(t&&(i[h]=!0),h in E){if(r[o]=E[h],t)for(var c=a;c<s.length;c++)i[s[c]]=!0;break}}else o in E&&(e[o]&&(r[o]=E[o]),t&&(i[o]=!0))}if(t)for(o in E)i[o]||(r[o]=E[o]);return r};var v={};function x(S){return v[S]?v[S]:(typeof S=="string"&&(S=v[S]=S.split(/\s*,\s*|\s+/)),S)}}}),C1=Xe({"node_modules/parse-rect/index.js"(Z,G){"use strict";var v=Ev();G.exports=x;function x(S){var E;return arguments.length>1&&(S=arguments),typeof S=="string"?S=S.split(/\s/).map(parseFloat):typeof S=="number"&&(S=[S]),S.length&&typeof S[0]=="number"?S.length===1?E={width:S[0],height:S[0],x:0,y:0}:S.length===2?E={width:S[0],height:S[1],x:0,y:0}:E={x:S[0],y:S[1],width:S[2]-S[0]||0,height:S[3]-S[1]||0}:S&&(S=v(S,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),E={x:S.left||0,y:S.top||0},S.width==null?S.right?E.width=S.right-E.x:E.width=0:E.width=S.width,S.height==null?S.bottom?E.height=S.bottom-E.y:E.height=0:E.height=S.height),E}}}),mg=Xe({"node_modules/array-bounds/index.js"(Z,G){"use strict";G.exports=v;function v(x,S){if(!x||x.length==null)throw Error("Argument should be an array");S==null?S=1:S=Math.floor(S);for(var E=Array(S*2),e=0;e<S;e++){for(var t=-1/0,r=1/0,o=e,a=x.length;o<a;o+=S)x[o]>t&&(t=x[o]),x[o]<r&&(r=x[o]);E[e]=r,E[S+e]=t}return E}}}),$U=Xe({"node_modules/defined/index.js"(Z,G){G.exports=function(){for(var v=0;v<arguments.length;v++)if(arguments[v]!==void 0)return arguments[v]}}}),gg=Xe({"node_modules/flatten-vertex-data/index.js"(Z,G){var v=Q3();G.exports=x;function x(S,E,e){if(!S)throw new TypeError("must specify data as first parameter");if(e=+(e||0)|0,Array.isArray(S)&&S[0]&&typeof S[0][0]=="number"){var t=S[0].length,r=S.length*t,o,a,n,i;(!E||typeof E=="string")&&(E=new(v(E||"float32"))(r+e));var s=E.length-e;if(r!==s)throw new Error("source length "+r+" ("+t+"x"+S.length+") does not match destination length "+s);for(o=0,n=e;o<S.length;o++)for(a=0;a<t;a++)E[n++]=S[o][a]===null?NaN:S[o][a]}else if(!E||typeof E=="string"){var h=v(E||"float32");if(Array.isArray(S)||E==="array")for(E=new h(S.length+e),o=0,n=e,i=E.length;n<i;n++,o++)E[n]=S[o]===null?NaN:S[o];else e===0?E=new h(S):(E=new h(S.length+e),E.set(S,e))}else E.set(S,e);return E}}}),QU=Xe({"node_modules/is-obj/index.js"(Z,G){"use strict";G.exports=function(v){var x=typeof v;return v!==null&&(x==="object"||x==="function")}}}),ej=Xe({"node_modules/math-log2/index.js"(Z,G){"use strict";G.exports=Math.log2||function(v){return Math.log(v)*Math.LOG2E}}}),tj=Xe({"node_modules/@plotly/point-cluster/quad.js"(Z,G){"use strict";var v=JU(),x=mx(),S=C1(),E=mg(),e=Ev(),t=$U(),r=gg(),o=QU(),a=Q3(),n=ej(),i=1073741824;G.exports=function(c,m){m||(m={}),c=r(c,"float64"),m=e(m,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let p=t(m.maxDepth,255),T=t(m.bounds,E(c,2));T[0]===T[2]&&T[2]++,T[1]===T[3]&&T[3]++;let l=s(c,T),_=c.length>>>1,w;m.dtype||(m.dtype="array"),typeof m.dtype=="string"?w=new(a(m.dtype))(_):m.dtype&&(w=m.dtype,Array.isArray(w)&&(w.length=_));for(let L=0;L<_;++L)w[L]=L;let A=[],M=[],g=[],b=[];u(0,0,1,w,0,1);let d=0;for(let L=0;L<A.length;L++){let z=A[L];if(w.set)w.set(z,d);else for(let N=0,O=z.length;N<O;N++)w[N+d]=z[N];let F=d+A[L].length;b[L]=[d,F],d=F}return w.range=y,w;function u(L,z,F,N,O,P){if(!N.length)return null;let U=A[O]||(A[O]=[]),B=g[O]||(g[O]=[]),X=M[O]||(M[O]=[]),$=U.length;if(O++,O>p||P>i){for(let oe=0;oe<N.length;oe++)U.push(N[oe]),B.push(P),X.push(null,null,null,null);return $}if(U.push(N[0]),B.push(P),N.length<=1)return X.push(null,null,null,null),$;let se=F*.5,le=L+se,fe=z+se,V=[],Y=[],ee=[],q=[];for(let oe=1,ae=N.length;oe<ae;oe++){let j=N[oe],Q=l[j*2],re=l[j*2+1];Q<le?re<fe?V.push(j):Y.push(j):re<fe?ee.push(j):q.push(j)}return P<<=2,X.push(u(L,z,se,V,O,P),u(L,fe,se,Y,O,P+1),u(le,z,se,ee,O,P+2),u(le,fe,se,q,O,P+3)),$}function y(...L){let z;if(o(L[L.length-1])){let ee=L.pop();!L.length&&(ee.x!=null||ee.l!=null||ee.left!=null)&&(L=[ee],z={}),z=e(ee,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else z={};L.length||(L=T);let F=S(...L),[N,O,P,U]=[Math.min(F.x,F.x+F.width),Math.min(F.y,F.y+F.height),Math.max(F.x,F.x+F.width),Math.max(F.y,F.y+F.height)],[B,X,$,se]=s([N,O,P,U],T),le=t(z.level,A.length);if(z.d!=null){let ee;typeof z.d=="number"?ee=[z.d,z.d]:z.d.length&&(ee=z.d),le=Math.min(Math.max(Math.ceil(-n(Math.abs(ee[0])/(T[2]-T[0]))),Math.ceil(-n(Math.abs(ee[1])/(T[3]-T[1])))),le)}if(le=Math.min(le,A.length),z.lod)return f(B,X,$,se,le);let fe=[];V(0,0,1,0,0,1);function V(ee,q,oe,ae,j,Q){if(j===null||Q===null)return;let re=ee+oe,ce=q+oe;if(B>re||X>ce||$<ee||se<q||ae>=le||j===Q)return;let be=A[ae];Q===void 0&&(Q=be.length);for(let Me=j;Me<Q;Me++){let ye=be[Me],he=c[ye*2],Oe=c[ye*2+1];he>=N&&he<=P&&Oe>=O&&Oe<=U&&fe.push(ye)}let Ae=M[ae],De=Ae[j*4+0],ze=Ae[j*4+1],Ze=Ae[j*4+2],at=Ae[j*4+3],nt=Y(Ae,j+1),rt=oe*.5,st=ae+1;V(ee,q,rt,st,De,ze||Ze||at||nt),V(ee,q+rt,rt,st,ze,Ze||at||nt),V(ee+rt,q,rt,st,Ze,at||nt),V(ee+rt,q+rt,rt,st,at,nt)}function Y(ee,q){let oe=null,ae=0;for(;oe===null;)if(oe=ee[q*4+ae],ae++,ae>ee.length)return null;return oe}return fe}function f(L,z,F,N,O){let P=[];for(let U=0;U<O;U++){let B=g[U],X=b[U][0],$=R(L,z,U),se=R(F,N,U),le=v.ge(B,$),fe=v.gt(B,se,le,B.length-1);P[U]=[le+X,fe+X]}return P}function R(L,z,F){let N=1,O=.5,P=.5,U=.5;for(let B=0;B<F;B++)N<<=2,N+=L<O?z<P?0:1:z<P?2:3,U*=.5,O+=L<O?-U:U,P+=z<P?-U:U;return N}};function s(h,c){let[m,p,T,l]=c,_=1/(T-m),w=1/(l-p),A=new Array(h.length);for(let M=0,g=h.length/2;M<g;M++)A[2*M]=x((h[2*M]-m)*_,0,1),A[2*M+1]=x((h[2*M+1]-p)*w,0,1);return A}}}),vT=Xe({"node_modules/@plotly/point-cluster/index.js"(Z,G){"use strict";G.exports=tj()}}),NE=Xe({"node_modules/abs-svg-path/index.js"(Z,G){G.exports=v;function v(x){var S=0,E=0,e=0,t=0;return x.map(function(r){r=r.slice();var o=r[0],a=o.toUpperCase();if(o!=a)switch(r[0]=a,o){case"a":r[6]+=e,r[7]+=t;break;case"v":r[1]+=t;break;case"h":r[1]+=e;break;default:for(var n=1;n<r.length;)r[n++]+=e,r[n++]+=t}switch(a){case"Z":e=S,t=E;break;case"H":e=r[1];break;case"V":t=r[1];break;case"M":e=S=r[1],t=E=r[2];break;default:e=r[r.length-2],t=r[r.length-1]}return r})}}}),rj=Xe({"node_modules/svg-arc-to-cubic-bezier/cjs/index.js"(Z,G){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var v=function(){function o(a,n){var i=[],s=!0,h=!1,c=void 0;try{for(var m=a[Symbol.iterator](),p;!(s=(p=m.next()).done)&&(i.push(p.value),!(n&&i.length===n));s=!0);}catch(T){h=!0,c=T}finally{try{!s&&m.return&&m.return()}finally{if(h)throw c}}return i}return function(a,n){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return o(a,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=Math.PI*2,S=function(a,n,i,s,h,c,m){var p=a.x,T=a.y;p*=n,T*=i;var l=s*p-h*T,_=h*p+s*T;return{x:l+c,y:_+m}},E=function(a,n){var i=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),s=Math.cos(a),h=Math.sin(a),c=Math.cos(a+n),m=Math.sin(a+n);return[{x:s-h*i,y:h+s*i},{x:c+m*i,y:m-c*i},{x:c,y:m}]},e=function(a,n,i,s){var h=a*s-n*i<0?-1:1,c=a*i+n*s;return c>1&&(c=1),c<-1&&(c=-1),h*Math.acos(c)},t=function(a,n,i,s,h,c,m,p,T,l,_,w){var A=Math.pow(h,2),M=Math.pow(c,2),g=Math.pow(_,2),b=Math.pow(w,2),d=A*M-A*b-M*g;d<0&&(d=0),d/=A*b+M*g,d=Math.sqrt(d)*(m===p?-1:1);var u=d*h/c*w,y=d*-c/h*_,f=l*u-T*y+(a+i)/2,R=T*u+l*y+(n+s)/2,L=(_-u)/h,z=(w-y)/c,F=(-_-u)/h,N=(-w-y)/c,O=e(1,0,L,z),P=e(L,z,F,N);return p===0&&P>0&&(P-=x),p===1&&P<0&&(P+=x),[f,R,O,P]},r=function(a){var n=a.px,i=a.py,s=a.cx,h=a.cy,c=a.rx,m=a.ry,p=a.xAxisRotation,T=p===void 0?0:p,l=a.largeArcFlag,_=l===void 0?0:l,w=a.sweepFlag,A=w===void 0?0:w,M=[];if(c===0||m===0)return[];var g=Math.sin(T*x/360),b=Math.cos(T*x/360),d=b*(n-s)/2+g*(i-h)/2,u=-g*(n-s)/2+b*(i-h)/2;if(d===0&&u===0)return[];c=Math.abs(c),m=Math.abs(m);var y=Math.pow(d,2)/Math.pow(c,2)+Math.pow(u,2)/Math.pow(m,2);y>1&&(c*=Math.sqrt(y),m*=Math.sqrt(y));var f=t(n,i,s,h,c,m,_,A,g,b,d,u),R=v(f,4),L=R[0],z=R[1],F=R[2],N=R[3],O=Math.abs(N)/(x/4);Math.abs(1-O)<1e-7&&(O=1);var P=Math.max(Math.ceil(O),1);N/=P;for(var U=0;U<P;U++)M.push(E(F,N)),F+=N;return M.map(function(B){var X=S(B[0],c,m,b,g,L,z),$=X.x,se=X.y,le=S(B[1],c,m,b,g,L,z),fe=le.x,V=le.y,Y=S(B[2],c,m,b,g,L,z),ee=Y.x,q=Y.y;return{x1:$,y1:se,x2:fe,y2:V,x:ee,y:q}})};Z.default=r,G.exports=Z.default}}),aj=Xe({"node_modules/svg-path-bounds/node_modules/normalize-svg-path/index.js"(Z,G){"use strict";G.exports=x;var v=rj();function x(e){for(var t,r=[],o=0,a=0,n=0,i=0,s=null,h=null,c=0,m=0,p=0,T=e.length;p<T;p++){var l=e[p],_=l[0];switch(_){case"M":n=l[1],i=l[2];break;case"A":var w=v({px:c,py:m,cx:l[6],cy:l[7],rx:l[1],ry:l[2],xAxisRotation:l[3],largeArcFlag:l[4],sweepFlag:l[5]});if(!w.length)continue;for(var A=0,M;A<w.length;A++)M=w[A],l=["C",M.x1,M.y1,M.x2,M.y2,M.x,M.y],A<w.length-1&&r.push(l);break;case"S":var g=c,b=m;(t=="C"||t=="S")&&(g+=g-o,b+=b-a),l=["C",g,b,l[1],l[2],l[3],l[4]];break;case"T":t=="Q"||t=="T"?(s=c*2-s,h=m*2-h):(s=c,h=m),l=E(c,m,s,h,l[1],l[2]);break;case"Q":s=l[1],h=l[2],l=E(c,m,l[1],l[2],l[3],l[4]);break;case"L":l=S(c,m,l[1],l[2]);break;case"H":l=S(c,m,l[1],m);break;case"V":l=S(c,m,c,l[1]);break;case"Z":l=S(c,m,n,i);break}t=_,c=l[l.length-2],m=l[l.length-1],l.length>4?(o=l[l.length-4],a=l[l.length-3]):(o=c,a=m),r.push(l)}return r}function S(e,t,r,o){return["C",e,t,r,o,r,o]}function E(e,t,r,o,a,n){return["C",e/3+2/3*r,t/3+2/3*o,a/3+2/3*r,n/3+2/3*o,a,n]}}}),UE=Xe({"node_modules/is-svg-path/index.js"(Z,G){"use strict";G.exports=function(x){return typeof x!="string"?!1:(x=x.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(x)&&/[\dz]$/i.test(x)&&x.length>4))}}}),ij=Xe({"node_modules/svg-path-bounds/index.js"(Z,G){"use strict";var v=M_(),x=NE(),S=aj(),E=UE(),e=K_();G.exports=t;function t(r){if(Array.isArray(r)&&r.length===1&&typeof r[0]=="string"&&(r=r[0]),typeof r=="string"&&(e(E(r),"String is not an SVG path."),r=v(r)),e(Array.isArray(r),"Argument should be a string or an array of path segments."),r=x(r),r=S(r),!r.length)return[0,0,0,0];for(var o=[1/0,1/0,-1/0,-1/0],a=0,n=r.length;a<n;a++)for(var i=r[a].slice(1),s=0;s<i.length;s+=2)i[s+0]<o[0]&&(o[0]=i[s+0]),i[s+1]<o[1]&&(o[1]=i[s+1]),i[s+0]>o[2]&&(o[2]=i[s+0]),i[s+1]>o[3]&&(o[3]=i[s+1]);return o}}}),nj=Xe({"node_modules/normalize-svg-path/index.js"(Z,G){var v=Math.PI,x=o(120);G.exports=S;function S(a){for(var n,i=[],s=0,h=0,c=0,m=0,p=null,T=null,l=0,_=0,w=0,A=a.length;w<A;w++){var M=a[w],g=M[0];switch(g){case"M":c=M[1],m=M[2];break;case"A":M=t(l,_,M[1],M[2],o(M[3]),M[4],M[5],M[6],M[7]),M.unshift("C"),M.length>7&&(i.push(M.splice(0,7)),M.unshift("C"));break;case"S":var b=l,d=_;(n=="C"||n=="S")&&(b+=b-s,d+=d-h),M=["C",b,d,M[1],M[2],M[3],M[4]];break;case"T":n=="Q"||n=="T"?(p=l*2-p,T=_*2-T):(p=l,T=_),M=e(l,_,p,T,M[1],M[2]);break;case"Q":p=M[1],T=M[2],M=e(l,_,M[1],M[2],M[3],M[4]);break;case"L":M=E(l,_,M[1],M[2]);break;case"H":M=E(l,_,M[1],_);break;case"V":M=E(l,_,l,M[1]);break;case"Z":M=E(l,_,c,m);break}n=g,l=M[M.length-2],_=M[M.length-1],M.length>4?(s=M[M.length-4],h=M[M.length-3]):(s=l,h=_),i.push(M)}return i}function E(a,n,i,s){return["C",a,n,i,s,i,s]}function e(a,n,i,s,h,c){return["C",a/3+2/3*i,n/3+2/3*s,h/3+2/3*i,c/3+2/3*s,h,c]}function t(a,n,i,s,h,c,m,p,T,l){if(l)f=l[0],R=l[1],u=l[2],y=l[3];else{var _=r(a,n,-h);a=_.x,n=_.y,_=r(p,T,-h),p=_.x,T=_.y;var w=(a-p)/2,A=(n-T)/2,M=w*w/(i*i)+A*A/(s*s);M>1&&(M=Math.sqrt(M),i=M*i,s=M*s);var g=i*i,b=s*s,d=(c==m?-1:1)*Math.sqrt(Math.abs((g*b-g*A*A-b*w*w)/(g*A*A+b*w*w)));d==1/0&&(d=1);var u=d*i*A/s+(a+p)/2,y=d*-s*w/i+(n+T)/2,f=Math.asin(((n-y)/s).toFixed(9)),R=Math.asin(((T-y)/s).toFixed(9));f=a<u?v-f:f,R=p<u?v-R:R,f<0&&(f=v*2+f),R<0&&(R=v*2+R),m&&f>R&&(f=f-v*2),!m&&R>f&&(R=R-v*2)}if(Math.abs(R-f)>x){var L=R,z=p,F=T;R=f+x*(m&&R>f?1:-1),p=u+i*Math.cos(R),T=y+s*Math.sin(R);var N=t(p,T,i,s,h,0,m,z,F,[R,L,u,y])}var O=Math.tan((R-f)/4),P=4/3*i*O,U=4/3*s*O,B=[2*a-(a+P*Math.sin(f)),2*n-(n-U*Math.cos(f)),p+P*Math.sin(R),T-U*Math.cos(R),p,T];if(l)return B;N&&(B=B.concat(N));for(var X=0;X<B.length;){var $=r(B[X],B[X+1],h);B[X++]=$.x,B[X++]=$.y}return B}function r(a,n,i){return{x:a*Math.cos(i)-n*Math.sin(i),y:a*Math.sin(i)+n*Math.cos(i)}}function o(a){return a*(v/180)}}}),oj=Xe({"node_modules/draw-svg-path/index.js"(Z,G){var v=NE(),x=nj(),S={M:"moveTo",C:"bezierCurveTo"};G.exports=function(E,e){E.beginPath(),x(v(e)).forEach(function(t){var r=t[0],o=t.slice(1);E[S[r]].apply(E,o)}),E.closePath()}}}),sj=Xe({"node_modules/bitmap-sdf/index.js"(Z,G){"use strict";var v=mx();G.exports=S;var x=1e20;function S(t,r){r||(r={});var o=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,s,h,c,m,p,T,l,_,w,A;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,s=r.height,c=t,r.stride?p=r.stride:p=Math.floor(t.length/i/s)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(l=t,T=l.getContext("2d"),i=l.width,s=l.height,_=T.getImageData(0,0,i,s),c=_.data,p=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(l=t.canvas,T=t,i=l.width,s=l.height,_=T.getImageData(0,0,i,s),c=_.data,p=4):window.ImageData&&t instanceof window.ImageData&&(_=t,i=t.width,s=t.height,c=_.data,p=4);if(h=Math.max(i,s),window.Uint8ClampedArray&&c instanceof window.Uint8ClampedArray||window.Uint8Array&&c instanceof window.Uint8Array)for(m=c,c=Array(i*s),w=0,A=m.length;w<A;w++)c[w]=m[w*p+n]/255;else if(p!==1)throw Error("Raw data can have only 1 value per pixel");var M=Array(i*s),g=Array(i*s),b=Array(h),d=Array(h),u=Array(h+1),y=Array(h);for(w=0,A=i*s;w<A;w++){var f=c[w];M[w]=f===1?0:f===0?x:Math.pow(Math.max(0,.5-f),2),g[w]=f===1?x:f===0?0:Math.pow(Math.max(0,f-.5),2)}E(M,i,s,b,d,y,u),E(g,i,s,b,d,y,u);var R=window.Float32Array?new Float32Array(i*s):new Array(i*s);for(w=0,A=i*s;w<A;w++)R[w]=v(1-((M[w]-g[w])/a+o),0,1);return R}function E(t,r,o,a,n,i,s){for(var h=0;h<r;h++){for(var c=0;c<o;c++)a[c]=t[c*r+h];for(e(a,n,i,s,o),c=0;c<o;c++)t[c*r+h]=n[c]}for(c=0;c<o;c++){for(h=0;h<r;h++)a[h]=t[c*r+h];for(e(a,n,i,s,r),h=0;h<r;h++)t[c*r+h]=Math.sqrt(n[h])}}function e(t,r,o,a,n){o[0]=0,a[0]=-x,a[1]=+x;for(var i=1,s=0;i<n;i++){for(var h=(t[i]+i*i-(t[o[s]]+o[s]*o[s]))/(2*i-2*o[s]);h<=a[s];)s--,h=(t[i]+i*i-(t[o[s]]+o[s]*o[s]))/(2*i-2*o[s]);s++,o[s]=i,a[s]=h,a[s+1]=+x}for(i=0,s=0;i<n;i++){for(;a[s+1]<i;)s++;r[i]=(i-o[s])*(i-o[s])+t[o[s]]}}}}),lj=Xe({"node_modules/svg-path-sdf/index.js"(Z,G){"use strict";var v=ij(),x=M_(),S=oj(),E=UE(),e=sj(),t=document.createElement("canvas"),r=t.getContext("2d");G.exports=o;function o(i,s){if(!E(i))throw Error("Argument should be valid svg path string");s||(s={});var h,c;s.shape?(h=s.shape[0],c=s.shape[1]):(h=t.width=s.w||s.width||200,c=t.height=s.h||s.height||200);var m=Math.min(h,c),p=s.stroke||0,T=s.viewbox||s.viewBox||v(i),l=[h/(T[2]-T[0]),c/(T[3]-T[1])],_=Math.min(l[0]||0,l[1]||0)/2;if(r.fillStyle="black",r.fillRect(0,0,h,c),r.fillStyle="white",p&&(typeof p!="number"&&(p=1),p>0?r.strokeStyle="white":r.strokeStyle="black",r.lineWidth=Math.abs(p)),r.translate(h*.5,c*.5),r.scale(_,_),n()){var w=new Path2D(i);r.fill(w),p&&r.stroke(w)}else{var A=x(i);S(r,A),r.fill(),p&&r.stroke()}r.setTransform(1,0,0,1,0,0);var M=e(r,{cutoff:s.cutoff!=null?s.cutoff:.5,radius:s.radius!=null?s.radius:m*.5});return M}var a;function n(){if(a!=null)return a;var i=document.createElement("canvas").getContext("2d");if(i.canvas.width=i.canvas.height=1,!window.Path2D)return a=!1;var s=new Path2D("M0,0h1v1h-1v-1Z");i.fillStyle="black",i.fill(s);var h=i.getImageData(0,0,1,1);return a=h&&h.data&&h.data[3]===255}}}),yg=Xe({"src/traces/scattergl/convert.js"(Z,G){"use strict";var v=rs(),x=lj(),S=d0(),E=so(),e=sa(),t=e.isArrayOrTypedArray,r=es(),o=ef(),a=tm().formatColor,n=Fu(),i=r1(),s=dT(),h=y0(),c=Ym().DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},p=$p().appendArrayPointValue;function T(N,O){var P,U={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},B=N._context.plotGlPixelRatio;if(O.visible!==!0)return U;if(n.hasText(O)&&(U.text=l(N,O),U.textSel=M(N,O,O.selected),U.textUnsel=M(N,O,O.unselected)),n.hasMarkers(O)&&(U.marker=w(N,O),U.markerSel=A(N,O,O.selected),U.markerUnsel=A(N,O,O.unselected),!O.unselected&&t(O.marker.opacity))){var X=O.marker.opacity;for(U.markerUnsel.opacity=new Array(X.length),P=0;P<X.length;P++)U.markerUnsel.opacity[P]=c*X[P]}if(n.hasLines(O)){U.line={overlay:!0,thickness:O.line.width*B,color:O.line.color,opacity:O.opacity};var $=(h.DASHES[O.line.dash]||[1]).slice();for(P=0;P<$.length;++P)$[P]*=O.line.width*B;U.line.dashes=$}return O.error_x&&O.error_x.visible&&(U.errorX=g(O,O.error_x,B)),O.error_y&&O.error_y.visible&&(U.errorY=g(O,O.error_y,B)),O.fill&&O.fill!=="none"&&(U.fill={closed:!0,fill:O.fillcolor,thickness:0}),U}function l(N,O){var P=N._fullLayout,U=O._length,B=O.textfont,X=O.textposition,$=t(X)?X:[X],se=B.color,le=B.size,fe=B.family,V=B.weight,Y=B.style,ee=B.variant,q={},oe,ae=N._context.plotGlPixelRatio,j=O.texttemplate;if(j){q.text=[];var Q=P._d3locale,re=Array.isArray(j),ce=re?Math.min(j.length,U):U,be=re?function(nt){return j[nt]}:function(){return j};for(oe=0;oe<ce;oe++){var Ae={i:oe},De=O._module.formatLabels(Ae,O,P),ze={};p(ze,O,oe),q.text.push(e.texttemplateString({data:[ze,Ae,O._meta],fallback:O.texttemplatefallback,labels:De,locale:Q,template:be(oe)}))}}else t(O.text)&&O.text.length<U?q.text=O.text.slice():q.text=O.text;if(t(q.text))for(oe=q.text.length;oe<U;oe++)q.text[oe]="";for(q.opacity=O.opacity,q.font={},q.align=[],q.baseline=[],oe=0;oe<$.length;oe++){var Ze=$[oe].split(/\s+/);switch(Ze[1]){case"left":q.align.push("right");break;case"right":q.align.push("left");break;default:q.align.push(Ze[1])}switch(Ze[0]){case"top":q.baseline.push("bottom");break;case"bottom":q.baseline.push("top");break;default:q.baseline.push(Ze[0])}}if(t(se))for(q.color=new Array(U),oe=0;oe<U;oe++)q.color[oe]=se[oe];else q.color=se;if(t(le)||Array.isArray(fe)||t(V)||Array.isArray(Y)||Array.isArray(ee))for(q.font=new Array(U),oe=0;oe<U;oe++){var at=q.font[oe]={};at.size=(e.isTypedArray(le)?le[oe]:t(le)?v(le[oe])?le[oe]:0:le)*ae,at.family=Array.isArray(fe)?fe[oe]:fe,at.weight=_(t(V)?V[oe]:V),at.style=Array.isArray(Y)?Y[oe]:Y,at.variant=Array.isArray(ee)?ee[oe]:ee}else q.font={size:le*ae,family:fe,weight:_(V),style:Y,variant:ee};return q}function _(N){return N<=1e3?N>500?"bold":"normal":N}function w(N,O){var P=O._length,U=O.marker,B={},X,$=t(U.symbol),se=t(U.angle),le=t(U.color),fe=t(U.line.color),V=t(U.opacity),Y=t(U.size),ee=t(U.line.width),q;if($||(q=s.isOpenSymbol(U.symbol)),$||le||fe||V||se){B.symbols=new Array(P),B.angles=new Array(P),B.colors=new Array(P),B.borderColors=new Array(P);var oe=U.symbol,ae=U.angle,j=a(U,U.opacity,P),Q=a(U.line,U.opacity,P);if(!t(Q[0])){var re=Q;for(Q=Array(P),X=0;X<P;X++)Q[X]=re}if(!t(j[0])){var ce=j;for(j=Array(P),X=0;X<P;X++)j[X]=ce}if(!t(oe)){var be=oe;for(oe=Array(P),X=0;X<P;X++)oe[X]=be}if(!t(ae)){var Ae=ae;for(ae=Array(P),X=0;X<P;X++)ae[X]=Ae}for(B.symbols=oe,B.angles=ae,B.colors=j,B.borderColors=Q,X=0;X<P;X++)$&&(q=s.isOpenSymbol(U.symbol[X])),q&&(Q[X]=j[X].slice(),j[X]=j[X].slice(),j[X][3]=0);for(B.opacity=O.opacity,B.markers=new Array(P),X=0;X<P;X++)B.markers[X]=R({mx:B.symbols[X],ma:B.angles[X]},O)}else q?(B.color=S(U.color,"uint8"),B.color[3]=0,B.borderColor=S(U.color,"uint8")):(B.color=S(U.color,"uint8"),B.borderColor=S(U.line.color,"uint8")),B.opacity=O.opacity*U.opacity,B.marker=R({mx:U.symbol,ma:U.angle},O);var De=1,ze=i(O,De),Ze;if(Y||ee){var at=B.sizes=new Array(P),nt=B.borderSizes=new Array(P),rt=0,st;if(Y){for(X=0;X<P;X++)at[X]=ze(U.size[X]),rt+=at[X];st=rt/P}else for(Ze=ze(U.size),X=0;X<P;X++)at[X]=Ze;if(ee)for(X=0;X<P;X++)nt[X]=U.line.width[X];else for(Ze=U.line.width,X=0;X<P;X++)nt[X]=Ze;B.sizeAvg=st}else B.size=ze(U&&U.size||10),B.borderSizes=ze(U.line.width);return B}function A(N,O,P){var U=O.marker,B={};return P&&(P.marker&&P.marker.symbol?B=w(N,e.extendFlat({},U,P.marker)):P.marker&&(P.marker.size&&(B.size=P.marker.size),P.marker.color&&(B.colors=P.marker.color),P.marker.opacity!==void 0&&(B.opacity=P.marker.opacity))),B}function M(N,O,P){var U={};if(!P)return U;if(P.textfont){var B={opacity:1,text:O.text,texttemplate:O.texttemplate,textposition:O.textposition,textfont:e.extendFlat({},O.textfont)};P.textfont&&e.extendFlat(B.textfont,P.textfont),U=l(N,B)}return U}function g(N,O,P){var U={capSize:O.width*2*P,lineWidth:O.thickness*P,color:O.color};return O.copy_ystyle&&(U=N.error_y),U}var b=h.SYMBOL_SDF_SIZE,d=h.SYMBOL_SIZE,u=h.SYMBOL_STROKE,y={},f=r.symbolFuncs[0](d*.05);function R(N,O){var P=N.mx;if(P==="circle")return null;var U,B,X=r.symbolNumber(P),$=r.symbolFuncs[X%100],se=!!r.symbolNoDot[X%100],le=!!r.symbolNoFill[X%100],fe=s.isDotSymbol(P);if(N.ma&&(P+="_"+N.ma),y[P])return y[P];var V=r.getMarkerAngle(N,O);return fe&&!se?U=$(d*1.1,V)+f:U=$(d,V),B=x(U,{w:b,h:b,viewBox:[-d,-d,d,d],stroke:le?u:-u}),y[P]=B,B||null}function L(N,O,P){var U=P.length,B=U/2,X,$;if(n.hasLines(O)&&B)if(O.line.shape==="hv"){for(X=[],$=0;$<B-1;$++)isNaN(P[$*2])||isNaN(P[$*2+1])?X.push(NaN,NaN,NaN,NaN):(X.push(P[$*2],P[$*2+1]),!isNaN(P[$*2+2])&&!isNaN(P[$*2+3])?X.push(P[$*2+2],P[$*2+1]):X.push(NaN,NaN));X.push(P[U-2],P[U-1])}else if(O.line.shape==="hvh"){for(X=[],$=0;$<B-1;$++)if(isNaN(P[$*2])||isNaN(P[$*2+1])||isNaN(P[$*2+2])||isNaN(P[$*2+3]))!isNaN(P[$*2])&&!isNaN(P[$*2+1])?X.push(P[$*2],P[$*2+1]):X.push(NaN,NaN),X.push(NaN,NaN);else{var se=(P[$*2]+P[$*2+2])/2;X.push(P[$*2],P[$*2+1],se,P[$*2+1],se,P[$*2+3])}X.push(P[U-2],P[U-1])}else if(O.line.shape==="vhv"){for(X=[],$=0;$<B-1;$++)if(isNaN(P[$*2])||isNaN(P[$*2+1])||isNaN(P[$*2+2])||isNaN(P[$*2+3]))!isNaN(P[$*2])&&!isNaN(P[$*2+1])?X.push(P[$*2],P[$*2+1]):X.push(NaN,NaN),X.push(NaN,NaN);else{var le=(P[$*2+1]+P[$*2+3])/2;X.push(P[$*2],P[$*2+1],P[$*2],le,P[$*2+2],le)}X.push(P[U-2],P[U-1])}else if(O.line.shape==="vh"){for(X=[],$=0;$<B-1;$++)isNaN(P[$*2])||isNaN(P[$*2+1])?X.push(NaN,NaN,NaN,NaN):(X.push(P[$*2],P[$*2+1]),!isNaN(P[$*2+2])&&!isNaN(P[$*2+3])?X.push(P[$*2],P[$*2+3]):X.push(NaN,NaN));X.push(P[U-2],P[U-1])}else X=P;var fe=!1;for($=0;$<X.length;$++)if(isNaN(X[$])){fe=!0;break}var V=fe||X.length>h.TOO_MANY_POINTS||n.hasMarkers(O)?"rect":"round";if(fe&&O.connectgaps){var Y=X[0],ee=X[1];for($=0;$<X.length;$+=2)isNaN(X[$])||isNaN(X[$+1])?(X[$]=Y,X[$+1]=ee):(Y=X[$],ee=X[$+1])}return{join:V,positions:X}}function z(N,O,P,U,B){var X=E.getComponentMethod("errorbars","makeComputeError"),$=o.getFromId(N,O.xaxis,"x"),se=o.getFromId(N,O.yaxis,"y"),le=P.length/2,fe={};function V(Y,ee){var q=ee._id.charAt(0),oe=O["error_"+q];if(oe&&oe.visible&&(ee.type==="linear"||ee.type==="log")){for(var ae=X(oe),j={x:0,y:1}[q],Q={x:[0,1,2,3],y:[2,3,0,1]}[q],re=new Float64Array(4*le),ce=1/0,be=-1/0,Ae=0,De=0;Ae<le;Ae++,De+=4){var ze=Y[Ae];if(v(ze)){var Ze=P[Ae*2+j],at=ae(ze,Ae),nt=at[0],rt=at[1];if(v(nt)&&v(rt)){var st=ze-nt,Me=ze+rt;re[De+Q[0]]=Ze-ee.c2l(st),re[De+Q[1]]=ee.c2l(Me)-Ze,re[De+Q[2]]=0,re[De+Q[3]]=0,ce=Math.min(ce,ze-nt),be=Math.max(be,ze+rt)}}}fe[q]={positions:P,errors:re,_bnds:[ce,be]}}}return V(U,$),V(B,se),fe}function F(N,O,P,U){var B=O._length,X={},$;if(n.hasMarkers(O)){var se=P.font,le=P.align,fe=P.baseline;for(X.offset=new Array(B),$=0;$<B;$++){var V=U.sizes?U.sizes[$]:U.size,Y=t(se)?se[$].size:se.size,ee=t(le)?le.length>1?le[$]:le[0]:le,q=t(fe)?fe.length>1?fe[$]:fe[0]:fe,oe=m[ee],ae=m[q],j=V?V/.8+1:0,Q=-ae*j-ae*.5;X.offset[$]=[oe*j/Y,Q/Y]}}return X}G.exports={style:T,markerStyle:w,markerSelection:A,linePositions:L,errorBarPositions:z,textPosition:F}}}),jE=Xe({"src/traces/scattergl/scene_update.js"(Z,G){"use strict";var v=sa();G.exports=function(S,E){var e=E._scene,t={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},r={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return E._scene||(e=E._scene={},e.init=function(){v.extendFlat(e,r,t)},e.init(),e.update=function(a){var n=v.repeat(a,e.count);if(e.fill2d&&e.fill2d.update(n),e.scatter2d&&e.scatter2d.update(n),e.line2d&&e.line2d.update(n),e.error2d&&e.error2d.update(n.concat(n)),e.select2d&&e.select2d.update(n),e.glText)for(var i=0;i<e.count;i++)e.glText[i].update(a)},e.draw=function(){for(var a=e.count,n=e.fill2d,i=e.error2d,s=e.line2d,h=e.scatter2d,c=e.glText,m=e.select2d,p=e.selectBatch,T=e.unselectBatch,l=0;l<a;l++){if(n&&e.fillOrder[l]&&n.draw(e.fillOrder[l]),s&&e.lineOptions[l]&&s.draw(l),i&&(e.errorXOptions[l]&&i.draw(l),e.errorYOptions[l]&&i.draw(l+a)),h&&e.markerOptions[l])if(T[l].length){var _=v.repeat([],e.count);_[l]=T[l],h.draw(_)}else p[l].length||h.draw(l);c[l]&&e.textOptions[l]&&c[l].render()}m&&m.draw(p),e.dirty=!1},e.destroy=function(){e.fill2d&&e.fill2d.destroy&&e.fill2d.destroy(),e.scatter2d&&e.scatter2d.destroy&&e.scatter2d.destroy(),e.error2d&&e.error2d.destroy&&e.error2d.destroy(),e.line2d&&e.line2d.destroy&&e.line2d.destroy(),e.select2d&&e.select2d.destroy&&e.select2d.destroy(),e.glText&&e.glText.forEach(function(a){a.destroy&&a.destroy()}),e.lineOptions=null,e.fillOptions=null,e.markerOptions=null,e.markerSelectedOptions=null,e.markerUnselectedOptions=null,e.errorXOptions=null,e.errorYOptions=null,e.textOptions=null,e.textSelectedOptions=null,e.textUnselectedOptions=null,e.selectBatch=null,e.unselectBatch=null,E._scene=null}),e.dirty||v.extendFlat(e,t),e}}}),uj=Xe({"src/traces/scattergl/calc.js"(Z,G){"use strict";var v=vT(),x=sa(),S=ef(),E=Yd().findExtremes,e=tv(),t=Bd(),r=t.calcMarkerSize,o=t.calcAxisExpansion,a=t.setFirstScatter,n=Fd(),i=yg(),s=jE(),h=Hs().BADNUM,c=y0().TOO_MANY_POINTS;G.exports=function(l,_){var w=l._fullLayout,A=_._xA=S.getFromId(l,_.xaxis,"x"),M=_._yA=S.getFromId(l,_.yaxis,"y"),g=w._plots[_.xaxis+_.yaxis],b=_._length,d=b>=c,u=b*2,y={},f,R=A.makeCalcdata(_,"x"),L=M.makeCalcdata(_,"y"),z=e(_,A,"x",R),F=e(_,M,"y",L),N=z.vals,O=F.vals;_._x=N,_._y=O,_.xperiodalignment&&(_._origX=R,_._xStarts=z.starts,_._xEnds=z.ends),_.yperiodalignment&&(_._origY=L,_._yStarts=F.starts,_._yEnds=F.ends);var P=new Array(u),U=new Array(b);for(f=0;f<b;f++)P[f*2]=N[f]===h?NaN:N[f],P[f*2+1]=O[f]===h?NaN:O[f],U[f]=f;if(A.type==="log")for(f=0;f<u;f+=2)P[f]=A.c2l(P[f]);if(M.type==="log")for(f=1;f<u;f+=2)P[f]=M.c2l(P[f]);d&&A.type!=="log"&&M.type!=="log"?y.tree=v(P):y.ids=U,n(l,_);var B=p(l,g,_,P,N,O),X=s(l,g);a(w,_);var $;return d?B.marker&&($=B.marker.sizeAvg||Math.max(B.marker.size,3)):$=r(_,b),o(l,_,A,M,N,O,$),B.errorX&&m(_,A,B.errorX),B.errorY&&m(_,M,B.errorY),B.fill&&!X.fill2d&&(X.fill2d=!0),B.marker&&!X.scatter2d&&(X.scatter2d=!0),B.line&&!X.line2d&&(X.line2d=!0),(B.errorX||B.errorY)&&!X.error2d&&(X.error2d=!0),B.text&&!X.glText&&(X.glText=!0),B.marker&&(B.marker.snap=b),X.lineOptions.push(B.line),X.errorXOptions.push(B.errorX),X.errorYOptions.push(B.errorY),X.fillOptions.push(B.fill),X.markerOptions.push(B.marker),X.markerSelectedOptions.push(B.markerSel),X.markerUnselectedOptions.push(B.markerUnsel),X.textOptions.push(B.text),X.textSelectedOptions.push(B.textSel),X.textUnselectedOptions.push(B.textUnsel),X.selectBatch.push([]),X.unselectBatch.push([]),y._scene=X,y.index=X.count,y.x=N,y.y=O,y.positions=P,X.count++,[{x:!1,y:!1,t:y,trace:_}]};function m(T,l,_){var w=T._extremes[l._id],A=E(l,_._bnds,{padded:!0});w.min=w.min.concat(A.min),w.max=w.max.concat(A.max)}function p(T,l,_,w,A,M){var g=i.style(T,_);if(g.marker&&(g.marker.positions=w),g.line&&w.length>1&&x.extendFlat(g.line,i.linePositions(T,_,w)),g.errorX||g.errorY){var b=i.errorBarPositions(T,_,w,A,M);g.errorX&&x.extendFlat(g.errorX,b.x),g.errorY&&x.extendFlat(g.errorY,b.y)}return g.text&&(x.extendFlat(g.text,{positions:w},i.textPosition(T,_,g.text,g.marker)),x.extendFlat(g.textSel,{positions:w},i.textPosition(T,_,g.text,g.markerSel)),x.extendFlat(g.textUnsel,{positions:w},i.textPosition(T,_,g.text,g.markerUnsel))),g}}}),qE=Xe({"src/traces/scattergl/edit_style.js"(Z,G){"use strict";var v=sa(),x=$n(),S=Ym().DESELECTDIM;function E(e){var t=e[0],r=t.trace,o=t.t,a=o._scene,n=o.index,i=a.selectBatch[n],s=a.unselectBatch[n],h=a.textOptions[n],c=a.textSelectedOptions[n]||{},m=a.textUnselectedOptions[n]||{},p=v.extendFlat({},h),T,l;if(i.length||s.length){var _=c.color,w=m.color,A=h.color,M=v.isArrayOrTypedArray(A);for(p.color=new Array(r._length),T=0;T<i.length;T++)l=i[T],p.color[l]=_||(M?A[l]:A);for(T=0;T<s.length;T++){l=s[T];var g=M?A[l]:A;p.color[l]=w||(_?g:x.addOpacity(g,S))}}a.glText[n].update(p)}G.exports={styleTextSelection:E}}}),VE=Xe({"src/traces/scattergl/select.js"(Z,G){"use strict";var v=Fu(),x=qE().styleTextSelection;G.exports=function(E,e){var t=E.cd,r=E.xaxis,o=E.yaxis,a=[],n=t[0].trace,i=t[0].t,s=n._length,h=i.x,c=i.y,m=i._scene,p=i.index;if(!m)return a;var T=v.hasText(n),l=v.hasMarkers(n),_=!l&&!T;if(n.visible!==!0||_)return a;var w=[],A=[];if(e!==!1&&!e.degenerate)for(var M=0;M<s;M++)e.contains([i.xpx[M],i.ypx[M]],!1,M,E)?(w.push(M),a.push({pointNumber:M,x:r.c2d(h[M]),y:o.c2d(c[M])})):A.push(M);if(l){var g=m.scatter2d;if(!w.length&&!A.length){var b=new Array(m.count);b[p]=m.markerOptions[p],g.update.apply(g,b)}else if(!m.selectBatch[p].length&&!m.unselectBatch[p].length){var d=new Array(m.count);d[p]=m.markerUnselectedOptions[p],g.update.apply(g,d)}}return m.selectBatch[p]=w,m.unselectBatch[p]=A,T&&x(t),a}}}),cj=Xe({"src/traces/scattergl/base_index.js"(Z,G){"use strict";var v=pT();G.exports={moduleType:"trace",name:"scattergl",basePlotModule:Kf(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:xx(),supplyDefaults:YU(),crossTraceDefaults:z5(),colorbar:pp(),formatLabels:KU(),calc:uj(),hoverPoints:v.hoverPoints,selectPoints:VE(),meta:{}}}}),fj=Xe({"node_modules/color-id/index.js"(Z,G){"use strict";var v=mx();G.exports=x,G.exports.to=x,G.exports.from=S;function x(E,e){e==null&&(e=!0);var t=E[0],r=E[1],o=E[2],a=E[3];a==null&&(a=e?1:255),e&&(t*=255,r*=255,o*=255,a*=255),t=v(t,0,255)&255,r=v(r,0,255)&255,o=v(o,0,255)&255,a=v(a,0,255)&255;var n=t*16777216+(r<<16)+(o<<8)+a;return n}function S(E,e){E=+E;var t=E>>>24,r=(E&16711680)>>>16,o=(E&65280)>>>8,a=E&255;return e===!1?[t,r,o,a]:[t/255,r/255,o/255,a/255]}}}),ch=Xe({"node_modules/object-assign/index.js"(Z,G){"use strict";var v=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;function E(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}G.exports=e()?Object.assign:function(t,r){for(var o,a=E(t),n,i=1;i<arguments.length;i++){o=Object(arguments[i]);for(var s in o)x.call(o,s)&&(a[s]=o[s]);if(v){n=v(o);for(var h=0;h<n.length;h++)S.call(o,n[h])&&(a[n[h]]=o[n[h]])}}return a}}}),hj=Xe({"node_modules/glslify/browser.js"(Z,G){G.exports=function(v){typeof v=="string"&&(v=[v]);for(var x=[].slice.call(arguments,1),S=[],E=0;E<v.length-1;E++)S.push(v[E],x[E]||"");return S.push(v[E]),S.join("")}}}),GE=Xe({"node_modules/update-diff/index.js"(Z,G){"use strict";G.exports=function(x,S,E){Array.isArray(E)||(E=[].slice.call(arguments,2));for(var e=0,t=E.length;e<t;e++){var r=E[e];for(var o in r)if(!(S[o]!==void 0&&!Array.isArray(S[o])&&x[o]===S[o])&&o in S){var a;if(r[o]===!0)a=S[o];else{if(r[o]===!1)continue;if(typeof r[o]=="function"&&(a=r[o](S[o],x,S),a===void 0))continue}x[o]=a}}return x}}}),pj=Xe({"node_modules/is-iexplorer/index.js"(Z,G){"use strict";G.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))}}),mT=Xe({"node_modules/to-float32/index.js"(Z,G){"use strict";G.exports=S,G.exports.float32=G.exports.float=S,G.exports.fract32=G.exports.fract=x;var v=new Float32Array(1);function x(E,e){if(E.length){if(E instanceof Float32Array)return new Float32Array(E.length);e instanceof Float32Array||(e=S(E));for(var t=0,r=e.length;t<r;t++)e[t]=E[t]-e[t];return e}return S(E-S(E))}function S(E){return E.length?E instanceof Float32Array?E:new Float32Array(E):(v[0]=E,v[0])}}}),HE=Xe({"node_modules/regl-scatter2d/bundle.js"(Z,G){"use strict";function v(y,f){var R=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(R!=null){var L,z,F,N,O=[],P=!0,U=!1;try{if(F=(R=R.call(y)).next,f===0){if(Object(R)!==R)return;P=!1}else for(;!(P=(L=F.call(R)).done)&&(O.push(L.value),O.length!==f);P=!0);}catch(B){U=!0,z=B}finally{try{if(!P&&R.return!=null&&(N=R.return(),Object(N)!==N))return}finally{if(U)throw z}}return O}}function x(y,f){return e(y)||v(y,f)||r(y,f)||n()}function S(y){return E(y)||t(y)||r(y)||a()}function E(y){if(Array.isArray(y))return o(y)}function e(y){if(Array.isArray(y))return y}function t(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function r(y,f){if(y){if(typeof y=="string")return o(y,f);var R=Object.prototype.toString.call(y).slice(8,-1);if(R==="Object"&&y.constructor&&(R=y.constructor.name),R==="Map"||R==="Set")return Array.from(y);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(y,f)}}function o(y,f){(f==null||f>y.length)&&(f=y.length);for(var R=0,L=new Array(f);R<f;R++)L[R]=y[R];return L}function a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1995In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1996In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=d0(),s=mg(),h=fj(),c=vT(),m=ch(),p=hj(),T=Ev(),l=GE(),_=gg(),w=pj(),A=mT(),M=C1(),g=b;function b(y,f){var R=this;if(!(this instanceof b))return new b(y,f);typeof y=="function"?(f||(f={}),f.regl=y):(f=y,y=null),f&&f.length&&(f.positions=f),y=f.regl;var L=y._gl,z,F=[],N={},O=[],P=[null],U=[null],B=255,X=100;this.tooManyColors=w,z=y.texture({data:new Uint8Array(B*4),width:B,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),m(this,{regl:y,gl:L,groups:O,markerCache:U,markerTextures:P,palette:F,paletteIds:N,paletteTexture:z,maxColors:B,maxSize:X,canvas:L.canvas}),this.update(f);var $={uniforms:{constPointSize:!!f.constPointSize,opacity:y.prop("opacity"),paletteSize:function(V,Y){return[R.tooManyColors?0:B,z.height]},pixelRatio:y.context("pixelRatio"),scale:y.prop("scale"),scaleFract:y.prop("scaleFract"),translate:y.prop("translate"),translateFract:y.prop("translateFract"),markerTexture:y.prop("markerTexture"),paletteTexture:z},attributes:{x:function(V,Y){return Y.xAttr||{buffer:Y.positionBuffer,stride:8,offset:0}},y:function(V,Y){return Y.yAttr||{buffer:Y.positionBuffer,stride:8,offset:4}},xFract:function(V,Y){return Y.xAttr?{constant:[0,0]}:{buffer:Y.positionFractBuffer,stride:8,offset:0}},yFract:function(V,Y){return Y.yAttr?{constant:[0,0]}:{buffer:Y.positionFractBuffer,stride:8,offset:4}},size:function(V,Y){return Y.size.length?{buffer:Y.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(Y.size*255/R.maxSize)]}},borderSize:function(V,Y){return Y.borderSize.length?{buffer:Y.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(Y.borderSize*255/R.maxSize)]}},colorId:function(V,Y){return Y.color.length?{buffer:Y.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?F.slice(Y.color*4,Y.color*4+4):[Y.color]}},borderColorId:function(V,Y){return Y.borderColor.length?{buffer:Y.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?F.slice(Y.borderColor*4,Y.borderColor*4+4):[Y.borderColor]}},isActive:function(V,Y){return Y.activation===!0?{constant:[1]}:Y.activation?Y.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:y.prop("viewport")},viewport:y.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:y.prop("elements"),count:y.prop("count"),offset:y.prop("offset"),primitive:"points"},se=m({},$);se.frag=p([`precision highp float;
1997#define GLSLIFY 1

Callers 9

McFunction · 0.70
QfFunction · 0.70
XuFunction · 0.70
ScFunction · 0.70
ZcFunction · 0.70
$fFunction · 0.70
TuFunction · 0.70
ufFunction · 0.70
renderLayerMethod · 0.70

Calls 8

ocFunction · 0.70
JfFunction · 0.70
MfFunction · 0.70
scaleMethod · 0.45
pushMethod · 0.45
getMethod · 0.45
getSourceMethod · 0.45
coveringZoomLevelMethod · 0.45

Tested by

no test coverage detected